← Back to learning objective

Derivative of x^2 sin(x) via the product rule

Let g(x)=x2sin⁡(x)g(x) = x^2 \sin(x). Use the product rule, along with the power rule and the derivative of sin⁡(x)\sin(x), to find g′(x)g'(x).

Hint

Write g(x)=u(x)v(x)g(x) = u(x)v(x) with u(x)=x2u(x) = x^2 and v(x)=sin⁡(x)v(x) = \sin(x). The product rule says g′(x)=u′(x)v(x)+u(x)v′(x)g'(x) = u'(x)v(x) + u(x)v'(x). You'll need u′(x)=2xu'(x) = 2x and v′(x)=cos⁡(x)v'(x) = \cos(x).

Step-by-step solution

Identify the two factors: u(x)=x2u(x) = x^2 and v(x)=sin⁡(x)v(x) = \sin(x). By the power rule, u′(x)=2xu'(x) = 2x, and by the memorized trigonometric derivative rule, v′(x)=cos⁡(x)v'(x) = \cos(x).

Apply the product rule formula g′(x)=u′(x)v(x)+u(x)v′(x)g'(x) = u'(x)v(x) + u(x)v'(x), substituting in the pieces found above: g′(x)=2xsin⁡(x)+x2cos⁡(x)g'(x) = 2x\sin(x) + x^2\cos(x). This is the fully simplified derivative.

Sign of the derivative of cosine

Hint
Step-by-step solution

The derivative of cosine of x is negative sine of x. This is one of the six memorized trigonometric derivatives, and the negative sign is a common point of confusion. In part a, you used the derivative of sine of x, which is positive cosine of x, showing how the two are related but differ in sign.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap