Solveeit Logo

Question

Question: How do you find the derivative of \(y = x{e^x}\)?...

How do you find the derivative of y=xexy = x{e^x}?

Explanation

Solution

To differentiate means to find the derivative of a function or rate of change of a function with respect to some variable. If a function yy is to be differentiated with respect to xx, then it will be written as dydx\dfrac{{dy}}{{dx}}. Since the given expression to be differentiated is the product of two expressions or functions, therefore we will use the product rule for differentiation. The product rule states that if y=f(x)×g(x)y = f(x) \times g(x), thendydx=f(x)dg(x)dx+g(x)df(x)dx\dfrac{{dy}}{{dx}} = f(x)\dfrac{{dg(x)}}{{dx}} + g(x)\dfrac{{df(x)}}{{dx}}.

Complete step by step solution:
It is given that y=xexy = x{e^x}.
Here f(x)=xf(x) = x and g(x)=exg(x) = {e^x}. On substituting these values in the product rule of differentiation, we will get
dydx=f(x)dg(x)dx+g(x)df(x)dx\Rightarrow \dfrac{{dy}}{{dx}} = f(x)\dfrac{{dg(x)}}{{dx}} + g(x)\dfrac{{df(x)}}{{dx}}
dydx=xdexdx+exdxdx\Rightarrow \dfrac{{dy}}{{dx}} = x\dfrac{{d{e^x}}}{{dx}} + {e^x}\dfrac{{dx}}{{dx}}
For the first part of the expression at the right-hand side of the equation, it must be known that the differentiation or derivative of ex{e^x} with respect to xx is ex{e^x}, i.e. dexdx=ex\dfrac{{d{e^x}}}{{dx}} = {e^x} On substituting these values, we will get
dydx=(x×ex)+exdxdx\Rightarrow \dfrac{{dy}}{{dx}} = (x \times {e^x}) + {e^x}\dfrac{{dx}}{{dx}}
Now for the second part of the expression at the right hand side of the equation, one of the rule of differentiation must be remembered that states dxndx=nxn1\dfrac{{d{x^n}}}{{dx}} = n{x^{n - 1}}. In our case n=1n = 1, so dx1dx=1×x11=x0=1\dfrac{{d{x^1}}}{{dx}} = 1 \times {x^{1 - 1}} = {x^0} = 1, i.e. dxdx=1\dfrac{{dx}}{{dx}} = 1 On substituting these values, we will get
dydx=(x×ex)+(ex×1)\Rightarrow \dfrac{{dy}}{{dx}} = (x \times {e^x}) + ({e^x} \times 1)
On further simplifying, we will get
dydx=xex+ex\Rightarrow \dfrac{{dy}}{{dx}} = x{e^x} + {e^x}

Hence, when we find the derivative of y=xexy = x{e^x}, we get xex+exx{e^x} + {e^x} as the answer.

Note:
If a function yy is to be differentiated with respect to xx, then it is written as dydx\dfrac{{dy}}{{dx}}. But it can also be expressed as DyDy as DD is sometimes used in place of ddx\dfrac{d}{{dx}}.