← Back to learning objective

Second derivative via repeated product rule

Let f(x)=x2exf(x) = x^2 e^x.

Find f′′(x)f''(x) for f(x)=x2exf(x) = x^2 e^x by applying the product rule twice.

Hint

First find f′(x)f'(x) using the product rule with u=x2u = x^2 and v=exv = e^x. Then apply the product rule again to f′(x)f'(x), since it is itself a product (or sum of products) involving exe^x.

Step-by-step solution

Using the product rule on f(x)=x2exf(x) = x^2 e^x with u=x2u = x^2, u′=2xu' = 2x, v=exv = e^x, v′=exv' = e^x, we get f′(x)=2xex+x2exf'(x) = 2x e^x + x^2 e^x. This can be written as f′(x)=(x2+2x)exf'(x) = (x^2 + 2x)e^x.

Now differentiate f′(x)=(x2+2x)exf'(x) = (x^2+2x)e^x using the product rule again: with u=x2+2xu = x^2+2x, u′=2x+2u' = 2x+2, v=exv = e^x, v′=exv' = e^x, we get f′′(x)=(2x+2)ex+(x2+2x)exf''(x) = (2x+2)e^x + (x^2+2x)e^x. Combining like terms gives f′′(x)=(x2+4x+2)exf''(x) = (x^2 + 4x + 2)e^x.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap