Solveeit Logo

Question

Question: How do you find the derivative of \[y=2x{{e}^{x}}-2{{e}^{x}}\]?...

How do you find the derivative of y=2xex2exy=2x{{e}^{x}}-2{{e}^{x}}?

Explanation

Solution

To solve the given question, we must know the derivatives of some functions and a rule of derivative. The function whose derivative we should know are x&exx\And {{e}^{x}}, their derivative with respect to x are 1&ex1\And {{e}^{x}} respectively. We should also know the product rule of the differentiation which states that d(f(x)g(x))dx=d(f(x))dxg(x)+f(x)d(g(x))dx\dfrac{d\left( f(x)g(x) \right)}{dx}=\dfrac{d\left( f(x) \right)}{dx}g(x)+f(x)\dfrac{d\left( g(x) \right)}{dx}. We will use these to find the derivative of the given expression.

Complete step-by-step answer:
We are given the expression y=2xex2exy=2x{{e}^{x}}-2{{e}^{x}}, we need to find its derivative. The given expression has two terms, as we can see both of the terms have 2ex2{{e}^{x}} common to them. So, we can take this factor common to both of them, and write the given expression as,
y=2ex(x1)y=2{{e}^{x}}\left( x-1 \right)
The given expression is of the form f(x)g(x)f(x)g(x), that is a product of two functions. We know the product rule states that d(f(x)g(x))dx=d(f(x))dxg(x)+f(x)d(g(x))dx\dfrac{d\left( f(x)g(x) \right)}{dx}=\dfrac{d\left( f(x) \right)}{dx}g(x)+f(x)\dfrac{d\left( g(x) \right)}{dx}. Here we have f(x)=2ex&g(x)=x1f(x)=2{{e}^{x}}\And g(x)=x-1
To find the dydx\dfrac{dy}{dx} or d(2ex(x1))dx\dfrac{d\left( 2{{e}^{x}}\left( x-1 \right) \right)}{dx}, we need to find d(2ex)dx\dfrac{d\left( 2{{e}^{x}} \right)}{dx}, and d(x)dx\dfrac{d\left( x \right)}{dx}.
We know the derivative of ex{{e}^{x}} with respect to x, is ex{{e}^{x}} itself. So, d(2ex)dx=2ex\dfrac{d\left( 2{{e}^{x}} \right)}{dx}=2{{e}^{x}}. Also, the derivative of x with respect to x is 1, d(x1)dx=1\dfrac{d\left( x-1 \right)}{dx}=1.
dydx=d(2ex(x1))dx\dfrac{dy}{dx}=\dfrac{d\left( 2{{e}^{x}}\left( x-1 \right) \right)}{dx}
Using the product, we get
d(2ex)dx(x1)+2exd(x1)dx\Rightarrow \dfrac{d\left( 2{{e}^{x}} \right)}{dx}\left( x-1 \right)+2{{e}^{x}}\dfrac{d\left( x-1 \right)}{dx}
Substituting the values of the derivatives, we get
2ex(x1)+2ex×1=2xex\Rightarrow 2{{e}^{x}}\left( x-1 \right)+2{{e}^{x}}\times 1=2x{{e}^{x}}
Hence, the derivative of the given expression is 2xex2x{{e}^{x}}.

Note: Here we expressed the given expression in the form exf(x){{e}^{x}}f(x). For the expressions of these forms, we can use a trick for differentiation.
d(exf(x))dx=ex(f(x)+d(f(x))dx)\dfrac{d\left( {{e}^{x}}f(x) \right)}{dx}={{e}^{x}}\left( f(x)+\dfrac{d\left( f(x) \right)}{dx} \right).
By using this property, we can find the derivative of these types of expression easily.