chalkalong

Calculus

Find the derivative of

Watch it drawn on a whiteboard, step by step, as the tutor explains it.

Watch the lesson

Step by step solution

  1. 1. Identify the two factors

    We use the product rule because our expression is a product of two distinct functions of x. Let's label our first function u of x equals x squared. And our second function is v of x equals sin x.

    y=x2⋅sin⁡xy = x^2 \cdot \sin x
    u(x)=x2u(x) = x^2
    v(x)=sin⁡xv(x) = \sin x

    Pause here and try it: What is the product rule formula for d/dx (u v)?

  2. 2. Apply the product rule

    It is tempting to just take the derivative of each piece and multiply them. That simple product shortcut fails because both factors change simultaneously. The product rule states that the derivative of u times v is u prime v plus u v prime.

    (x2)′⋅(sin⁡x)′=2xcos⁡x(x^2)' \cdot (\sin x)' = 2x \cos x
    ddx[u⋅v]=u′v+uv′\frac{d}{dx}[u \cdot v] = u' v + u v'
  3. 3. Find individual derivatives

    First, by the power rule, the derivative of x squared is 2 x. Next, the derivative of sin x is cos x.

    u′(x)=2xu'(x) = 2x
    v′(x)=cos⁡xv'(x) = \cos x
  4. 4. Assemble final derivative

    Now we substitute all four pieces into our formula. Simplifying gives 2 x sin x plus x squared cos x. Let's check our derivative against the graph of the function. Notice that when the blue function reaching a local peak near x equals 2.3, our green derivative curve crosses zero.

    ddx[x2sin⁡x]=(2x)(sin⁡x)+(x2)(cos⁡x)\frac{d}{dx}[x^2 \sin x] = (2x)(\sin x) + (x^2)(\cos x)
    =2xsin⁡x+x2cos⁡x= 2x \sin x + x^2 \cos x

    Now you try: Find the derivative of x cubed times cos x

Try one yourself

More problems like this

See all: Calculus

Stuck on a different problem?

Take a photo of it and watch it taught on a whiteboard. You can stop and ask questions any time.

Snap your own problem, the first lesson is free