We have to find the 2nd derivative of the function:
[tex]y=xe^x[/tex]We would need to know the product rule of derivatives, which is:
If u and v are two functions, then the derivative of u*v is:
[tex]\begin{gathered} \text{If y=uv} \\ dy=uv^{\prime}+vu^{\prime} \end{gathered}[/tex]So, we have:
[tex]\frac{dy}{dx}=x\frac{d}{dx}(e^x)+e^x\frac{d}{dx}(x)[/tex]Remember, the derivative of e^x is e^x and the derivative of "x" is 1.
Thus, we have:
[tex]\begin{gathered} \frac{dy}{dx}=x\frac{d}{dx}(e^x)+e^x\frac{d}{dx}(x) \\ \frac{dy}{dx}=xe^x+e^x(1) \\ \frac{dy}{dx}=xe^x+e^x \end{gathered}[/tex]To get the 2nd derivative, we again have to use the product rule of differentiation on xe^x and just do the differentiation of e^x and sum it. Thus, the process is shown below:
[tex]\begin{gathered} \frac{dy}{dx}=xe^x+e^x \\ \frac{d^2y}{dx^2}=x\frac{d}{dx}(e^x)+e^x\frac{d}{dx}(x)+\frac{d}{dx}(e^x) \\ \frac{d^2y}{dx^2}=xe^x+e^x+e^x \\ \frac{d^2y}{dx^2}=xe^x+2e^x \end{gathered}[/tex]The 2nd derivative of the function shown is:
[tex]\frac{d^2y}{dx^2}=xe^x+2e^x[/tex]