Solveeit Logo

Question

Question: What is the second derivative of \( f\left( x \right) = x{e^{{x^2}}} \) ?...

What is the second derivative of f(x)=xex2f\left( x \right) = x{e^{{x^2}}} ?

Explanation

Solution

Hint : In order to find the second derivative of the given function, first we need to find the first derivative. For that we can see that there are two functions, one is xx and second is ex2{e^{{x^2}}} , which is needed to be solved separately, so we would be using product rule to solve this, and our first derivative is obtained. Similarly, we obtain our first derivative result as a part of two functions, so we would again use product rule to solve, and our second derivative is obtained.

Complete step by step solution:
We are given with the function f(x)=xex2f\left( x \right) = x{e^{{x^2}}} , which is a set of two different functions that is xx and ex2{e^{{x^2}}} .
From product rule we know how to derive two functions separately in a multiplication, and the rule is as: d(uv)dx=udvdx+vdudx\dfrac{{d\left( {uv} \right)}}{{dx}} = u\dfrac{{dv}}{{dx}} + v\dfrac{{du}}{{dx}} .
Comparing uvuv with our function f(x)=xex2f\left( x \right) = x{e^{{x^2}}} , we get that u=xu = x and v=ex2v = {e^{{x^2}}} .
Substituting these values in the product rule and we get:
d(xex2)dx=xdex2dx+ex2dxdx\dfrac{{d\left( {x{e^{{x^2}}}} \right)}}{{dx}} = x\dfrac{{d{e^{{x^2}}}}}{{dx}} + {e^{{x^2}}}\dfrac{{dx}}{{dx}}
On further solving with formulas of derivatives, we get:

d(xex2)dx=x.(2xex2)+ex2 d(xex2)dx=x.2xex2+ex2 d(xex2)dx=2x2ex2+ex2   \dfrac{{d\left( {x{e^{{x^2}}}} \right)}}{{dx}} = x.\left( {2x{e^{{x^2}}}} \right) + {e^{{x^2}}} \\\ \dfrac{{d\left( {x{e^{{x^2}}}} \right)}}{{dx}} = x.2x{e^{{x^2}}} + {e^{{x^2}}} \\\ \dfrac{{d\left( {x{e^{{x^2}}}} \right)}}{{dx}} = 2{x^2}{e^{{x^2}}} + {e^{{x^2}}} \;

Taking ex2{e^{{x^2}}} common:
d(xex2)dx=ex2(2x2+1)\dfrac{{d\left( {x{e^{{x^2}}}} \right)}}{{dx}} = {e^{{x^2}}}\left( {2{x^2} + 1} \right)
Therefore, our first derivative obtained is: d(xex2)dx=ex2(2x2+1)\dfrac{{d\left( {x{e^{{x^2}}}} \right)}}{{dx}} = {e^{{x^2}}}\left( {2{x^2} + 1} \right)
Derivating the obtained first derivative again with respect to dxdx , to obtain our second derivative.
We can see that there are two functions present in first derivative also, so again using product rule:
Comparing uvuv with our function ex2(2x2+1){e^{{x^2}}}\left( {2{x^2} + 1} \right) , we get that u=ex2u = {e^{{x^2}}} and v=(2x2+1)v = \left( {2{x^2} + 1} \right) .
Substituting these values in the product rule and we get:
d(d(xex2)dx)dx=ex2d(2x2+1)dx+(2x2+1)dex2dx\dfrac{{d\left( {\dfrac{{d\left( {x{e^{{x^2}}}} \right)}}{{dx}}} \right)}}{{dx}} = {e^{{x^2}}}\dfrac{{d\left( {2{x^2} + 1} \right)}}{{dx}} + \left( {2{x^2} + 1} \right)\dfrac{{d{e^{{x^2}}}}}{{dx}}
On further solving with formulas of derivatives, we get:

d2(xex2)dx2=ex2d(2x2+1)dx+(2x2+1)dex2dx d2(xex2)dx2=ex2.(d2x2dx+d1dx)+(2x2+1)dex2dx d2(xex2)dx2=ex2.(4x+0)+(2x2+1).2xex2   \dfrac{{{d^2}\left( {x{e^{{x^2}}}} \right)}}{{d{x^2}}} = {e^{{x^2}}}\dfrac{{d\left( {2{x^2} + 1} \right)}}{{dx}} + \left( {2{x^2} + 1} \right)\dfrac{{d{e^{{x^2}}}}}{{dx}} \\\ \dfrac{{{d^2}\left( {x{e^{{x^2}}}} \right)}}{{d{x^2}}} = {e^{{x^2}}}.\left( {\dfrac{{d2{x^2}}}{{dx}} + \dfrac{{d1}}{{dx}}} \right) + \left( {2{x^2} + 1} \right)\dfrac{{d{e^{{x^2}}}}}{{dx}} \\\ \dfrac{{{d^2}\left( {x{e^{{x^2}}}} \right)}}{{d{x^2}}} = {e^{{x^2}}}.\left( {4x + 0} \right) + \left( {2{x^2} + 1} \right).2x{e^{{x^2}}} \;

Taking ex2{e^{{x^2}}} common:

d2(xex2)dx2=ex2.(4x+(2x2+1).2x) d2(xex2)dx2=ex2.(4x+4x3+2x) d2(xex2)dx2=ex2.(4x3+6x)   \dfrac{{{d^2}\left( {x{e^{{x^2}}}} \right)}}{{d{x^2}}} = {e^{{x^2}}}.\left( {4x + \left( {2{x^2} + 1} \right).2x} \right) \\\ \dfrac{{{d^2}\left( {x{e^{{x^2}}}} \right)}}{{d{x^2}}} = {e^{{x^2}}}.\left( {4x + 4{x^3} + 2x} \right) \\\ \dfrac{{{d^2}\left( {x{e^{{x^2}}}} \right)}}{{d{x^2}}} = {e^{{x^2}}}.\left( {4{x^3} + 6x} \right) \;

The second derivative obtained is ex2.(4x3+6x){e^{{x^2}}}.\left( {4{x^3} + 6x} \right) .
Therefore, the second derivative of f(x)=xex2f\left( x \right) = x{e^{{x^2}}} is ex2.(4x3+6x){e^{{x^2}}}.\left( {4{x^3} + 6x} \right).
So, the correct answer is “ ex2.(4x3+6x){e^{{x^2}}}.\left( {4{x^3} + 6x} \right)”.

Note : We could have also considered f(x)=yf\left( x \right) = y, for our first derivative it can be written as f(x)f'\left( x \right) or yy'. Similarly, for the second derivative, it's written as f(x)f''\left( x \right) or yy''.
It’s important to remember product rules to solve these types of questions.
The product rule: d(uv)dx=udvdx+vdudx\dfrac{{d\left( {uv} \right)}}{{dx}} = u\dfrac{{dv}}{{dx}} + v\dfrac{{du}}{{dx}}