Solveeit Logo

Question

Question: How do you find the first and second derivative of \({{x}^{2}}{{e}^{x}}\) ?...

How do you find the first and second derivative of x2ex{{x}^{2}}{{e}^{x}} ?

Explanation

Solution

We can find the first and second derivative of x2ex{{x}^{2}}{{e}^{x}} by using basic formulae of differentiation. We can use the product rule formula to find the first and second derivative of x2ex{{x}^{2}}{{e}^{x}} Formula for the product rule is given as ddx(uv)=udvdx+vdudx\dfrac{d}{dx}\left( uv \right)=u\dfrac{dv}{dx}+v\dfrac{du}{dx}

Complete step by step answer:
From the given question it had been asked to find the first and second derivative of x2ex{{x}^{2}}{{e}^{x}}
By using the product rule formula shown above, we can get the derivatives,
By applying the product rule formula we get, dydx = 2x × ex + ex × x2 \dfrac{dy}{dx}\text{ = 2x }\times \text{ }{{\text{e}}^{x}}\text{ + }{{\text{e}}^{x}}\text{ }\times \text{ }{{\text{x}}^{2}}\text{ }
We know that ddx(x2)=2x\dfrac{d}{dx}\left( {{x}^{2}} \right)=2x and ddx(ex)=ex\dfrac{d}{dx}\left( {{e}^{x}} \right)={{e}^{x}}
On furthermore simplifying we get, dydx = 2xex + exx2 \dfrac{dy}{dx}\text{ = 2x}{{\text{e}}^{x}}\text{ + }{{\text{e}}^{x}}{{\text{x}}^{2}}\text{ }
Now, we have to take xexx{{e}^{x}} common on both sides of the equation to make it simplified.
On taking xexx{{e}^{x}} common on both sides of the equation, we get dydx = x(x+2)ex \dfrac{dy}{dx}\text{ = }x\left( x+2 \right){{e}^{x}}\text{ }
Therefore, we got the first derivative of the given question.
Now differentiate the first derivative to get the second derivative.
We can differentiate the first derivative by applying the product rule formula.
By applying the product rule formula for first derivative we get,
dydx = x(x+2)ex \dfrac{dy}{dx}\text{ = }x\left( x+2 \right){{e}^{x}}\text{ }
d2ydx2=2 × ex + 2x × ex + 2x × ex + x2 × ex\Rightarrow \dfrac{{{d}^{2}}y}{d{{x}^{2}}}=2\text{ }\times \text{ }{{\text{e}}^{x}}\text{ + 2x }\times \text{ }{{\text{e}}^{x}}\text{ + 2x }\times \text{ }{{\text{e}}^{x}}\text{ + }{{\text{x}}^{2}}\text{ }\times \text{ }{{\text{e}}^{x}}
On furthermore simplifying we get,
d2ydx2=2ex + 2xex + 2xex + x2ex\dfrac{{{d}^{2}}y}{d{{x}^{2}}}=2{{\text{e}}^{x}}\text{ + 2x}{{\text{e}}^{x}}\text{ + 2x}{{\text{e}}^{x}}\text{ + }{{\text{x}}^{2}}{{\text{e}}^{x}}
d2ydx2=2ex + 4xex + x2ex\Rightarrow \dfrac{{{d}^{2}}y}{d{{x}^{2}}}=2{{\text{e}}^{x}}\text{ + 4x}{{\text{e}}^{x}}\text{ + }{{\text{x}}^{2}}{{\text{e}}^{x}}
Now, take ex{{e}^{x}} common on the right hand side of the equation.
By taking ex{{e}^{x}} common on right hand side of the equation we get, d2ydx2=ex(x2+4x+2)\dfrac{{{d}^{2}}y}{d{{x}^{2}}}={{\text{e}}^{x}}\left( {{x}^{2}}+4x+2 \right)
Therefore, we got the second derivative for the given question.
Therefore,
First derivative of x2ex{{x}^{2}}{{e}^{x}} is dydx = x(x+2)ex \dfrac{dy}{dx}\text{ = }x\left( x+2 \right){{e}^{x}}\text{ }
Second derivative of x2ex{{x}^{2}}{{e}^{x}} is d2ydx2=ex(x2+4x+2)\dfrac{{{d}^{2}}y}{d{{x}^{2}}}={{\text{e}}^{x}}\left( {{x}^{2}}+4x+2 \right)

Note:
We should be well known about the product rule formula and its application in the derivative problems. Similarly to the product rule used in this question we have a division rule given as ddx(uv)=v(ddxu)u(ddxv)v2\dfrac{d}{dx}\left( \dfrac{u}{v} \right)=\dfrac{v\left( \dfrac{d}{dx}u \right)-u\left( \dfrac{d}{dx}v \right)}{{{v}^{2}}} which can be used in questions of this type.