Calculus · real student question

Find the derivative of y = sin^2(x).

Question

Find the derivative of

y=sin2xy=\sin^2 x

Step-by-step solution

  1. Decode the notation first. sin2x\sin^2 x means (sinx)2\left(\sin x\right)^2, not sin(x2)\sin\left(x^2\right). The outer function is the squaring and the inner function is the sine; getting this backwards produces 2xcos(x2)2x\cos(x^2), an entirely different answer.

  2. Set up the chain rule with an explicit substitution. Let

    u=sinx  y=u2u=\sin x\ \Longrightarrow\ y=u^2

    The chain rule then says

    dydx=dydududx=2ududx\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}=2u\cdot\frac{du}{dx}

  3. Differentiate the inner function.

    dudx=ddxsinx=cosx\frac{du}{dx}=\frac{d}{dx}\sin x=\cos x

    (This is where radians matter: ddxsinx=cosx\frac{d}{dx}\sin x=\cos x holds only for radian measure.)

  4. Substitute back.

    dydx=2sinxcosx\frac{dy}{dx}=2\sin x\cos x

    Note that uu must be replaced by sinx\sin x — leaving the answer as 2ucosx2u\cos x would be incomplete.

  5. Rewrite with the double-angle identity. Since sin2x=2sinxcosx\sin 2x=2\sin x\cos x,

    dydx=sin2x\frac{dy}{dx}=\sin 2x

    Both forms are correct; the compact one makes the zeros obvious, at x=kπ2x=\tfrac{k\pi}{2}.

  6. Check numerically. At x=0.7x=0.7 a central difference gives 0.985449730.98544973, and sin(1.4)=0.98544973\sin(1.4)=0.98544973 ✓. As a structural check, y=sin2xy=\sin^2x has minima at x=0,πx=0,\pi and a maximum at x=π2x=\tfrac\pi2, and sin2x\sin 2x vanishes at exactly those points.

Answer

dydx=2sinxcosx=sin2x\frac{dy}{dx}=2\sin x\cos x=\sin 2x

Need to solve a different problem like this? Open the solver →