AP Calculus AB and BC

Derivative of cos(x^2): Answer, Chain Rule, Mistakes

The derivative of cos of x squared with respect to x is negative 2x sin(x^2). The inner function is x squared with derivative 2x, and differentiating the outer cosine brings a minus sign, so the chain rule gives -2x sin(x^2). This differs from (cos x) squared, whose derivative is -2 cos x sin x.

ddx[cos(x2)]=2xsin(x2)\frac{d}{dx}\left[\cos(x^2)\right] = -2x\sin(x^2)

How to differentiate cos(x^2)

The squaring is inside the cosine, so x2x^{2} is the inner function and cosine is the outer function. The chain rule differentiates the outer, keeps the inner, then multiplies by the inner derivative.

ddxcos(u)=sin(u)dudx\frac{d}{dx}\cos(u) = -\sin(u)\cdot\frac{du}{dx}

With u=x2u = x^{2}, the inside differentiates to 2x2x, and the outer cosine contributes a minus sign.

ddxcos(x2)=sin(x2)2x=2xsin(x2)\frac{d}{dx}\cos(x^{2}) = -\sin(x^{2})\cdot 2x = -2x\sin(x^{2})

Two things happen at once

Track the minus sign and the 2x

The minus sign comes from differentiating cosine, and the factor 2x2x comes from the chain rule acting on the inner x2x^{2}. Dropping either one is the usual error.

Do not read cos(x2)\cos(x^{2}) as cos2x=(cosx)2\cos^{2}x = (\cos x)^{2}. That look-alike differentiates to 2cosxsinx-2\cos x\sin x, a different function. In cos(x2)\cos(x^{2}) the square is on the input; in cos2x\cos^{2}x it is on the output.

Where the derivative of cos(x^2) shows up on the AP exam

The chain rule is Topic 3.1, on both AB and BC. Like its sine partner, cos(x2)\cos(x^{2}) is used to test whether you can identify the inner function and keep the argument intact through differentiation.

Common mistakes with the derivative of cos(x^2)

  • Answering sin(x2)-\sin(x^{2}), forgetting the inner derivative 2x2x.
  • Answering 2xsin(x2)2x\sin(x^{2}), losing the minus sign that comes from the cosine.
  • Answering 2cosxsinx-2\cos x\sin x, reading cos(x2)\cos(x^{2}) as cos2x\cos^{2}x.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of cos(x^2)?

ddxcos(x2)=2xsin(x2)\frac{d}{dx}\cos(x^{2}) = -2x\sin(x^{2}), by the chain rule with inner function x2x^{2}.

Why is there a minus sign?

Differentiating the outer cosine gives sin-\sin, and the chain rule attaches the inner derivative 2x2x, producing 2xsin(x2)-2x\sin(x^{2}).

How is cos(x^2) different from cos^2 x?

cos(x2)\cos(x^{2}) squares the input and gives 2xsin(x2)-2x\sin(x^{2}); cos2x\cos^{2}x squares the output and gives 2cosxsinx-2\cos x\sin x.