Question
Question: How do you differentiate \[g\left( x \right)=x{{e}^{2x}}\] using the product rule?...
How do you differentiate g(x)=xe2x using the product rule?
Solution
We are given a function g(x)=xe2x and we are asked to find the derivative of it using the product rule. To do the solution we will learn about the product rule. Once we have it we will also need the knowledge that how we differentiate x and e2x. We know that the derivative of x is 1 and derivative of ex is ex. Along with this, we will need the knowledge of the chain rule of derivative to get to the final product.
Complete step-by-step solution:
We are given a function given as g(x)=xe2x and we are asked to find the derivative of it. We have to use the product rule to find the derivative. Before we move forward we will learn the product rule. The product rule is for those functions in which the single function is formed by the product of 2 functions. We can see that our function is formed by the product of x and e2x. So, that’s why we need the product rule to find the derivative. So, the product rule says that for the term as u.v, its derivative is given as
dxd(u.v)=dxvd(u)+dxud(v)
So, to find the derivative of xe2x we consider x as u and e2x as v.
Now, as we have u = x and v=e2x so we will use the product rule which says
dxd(u.v)=dxvd(u)+dxud(v)
So, we will get,
⇒dxd(xe2x)=e2xdxdx+xdxd(e2x)......(i)
Now, we know that dxd(xn)=nxn−1, so we will get,
dxd(x1)=1......(ii)
Also, we will find the derivative of e2x. We have to use the chain rule as we can see that e2x is formed by the composition of 2 functions e2x and 2x.
e2x=ex.(2x)
For such functions, to differentiate them we use chain rule which is given as dxd(f(g(x)))=f′(g(x)).g′(x)
So, we consider f(x)=ex and g(x)=2x. So, we get, dxd(e2x)=e2x.(2) as dxd(ex)=ex and dxd(2x)=2.
So,
dxd(e2x)=2e2x......(iii)
Using (ii) and (iii) in (i), we get,
⇒dxd(xe2x)=e2x.1+1.(2e2x)
Simplifying, we get,
⇒dxd(xe2x)=e2x+2e2x
⇒dxd(xe2x)=3e2x
So, we get the derivative of xe2x as 3e2x.
Note: While simplifying the fraction remember we can add like terms only. While calculating derivative we need to be careful while picking the function as if our function is comprised of more than one function then its derivative will be different than usual like dxd(e2x)=e2x as it was made up by the composition of ex and 2x. Also, while differentiating we need to carefully use d(xn)=n.xn−1. Simple error may happen while calculating.