Skip to content
One hour with George, then a written plan the next working day. Book yours.

Derivatives of trig functions

There are six trigonometric derivatives to know: the derivatives of sine, cosine, tangent, cotangent, secant and cosecant. Three of them are the negatives of the other three, and each has a version for a composite function that picks up an extra factor from the chain rule. All the formulas assume that angles are measured in radians.

For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.

Book your first session
Derivatives of the six trigonometric functions, with the chain rule version for an inner function u(x)
FunctionDerivativeWith an inner function u(x)
sin xcos xcos(u) x u'
cos x-sin x-sin(u) x u'
tan xsec^2 xsec^2(u) x u'
cot x-csc^2 x-csc^2(u) x u'
sec xsec x tan xsec(u) tan(u) x u'
csc x-csc x cot x-csc(u) cot(u) x u'

The chain rule column multiplies the derivative of the outer function, evaluated at u, by the derivative u'(x) of the inside. Angles are in radians.

Formulas as given in OpenStax, Calculus Volume 1, section 3.5; each one was checked here against a numerical difference quotient at x = 0.7

Why do these formulas look the way they do?

The first two come from limits. The derivative of sine at x is cos x because of two limits as h shrinks to zero: sin(h)/h approaches 1 and (cos(h) - 1)/h approaches 0, both with h in radians. The same argument gives -sin x for cosine. The other four then follow from the quotient rule, since tan x is sin x over cos x, cot x is cos x over sin x, sec x is 1 over cos x, and csc x is 1 over sin x.

Two patterns make the table easy to hold. Every function that begins with "co" has a derivative with a minus sign. And the derivatives of secant and cosecant contain the original function, multiplied by the matching tangent or cotangent, so you can build them from memory of the first four.

If the angle is in degrees, there is an extra factor of pi/180. For instance, the derivative of sin(x degrees) is (pi/180) cos(x degrees). That is the reason calculus uses radians.

How does the chain rule fit in?

Most functions you meet have more than the bare variable inside the trig function. The routine has three steps. Name the inside, called u. Differentiate the outside as if u were the variable. Multiply by the derivative of u.

Worked examples. Differentiate each function.

  1. y = sin(3x^2). The inside is u = 3x^2, with u' = 6x. So y' = cos(3x^2) x 6x = 6x cos(3x^2).
  2. y = cos(5x). The inside is 5x, with derivative 5, so y' = -5 sin(5x).
  3. y = tan(x/2). The inside is x/2, with derivative 1/2, so y' = (1/2) sec^2(x/2).
  4. y = sec(4x). The inside has derivative 4, so y' = 4 sec(4x) tan(4x).
  5. y = cot(2x + 1). The inside has derivative 2, so y' = -2 csc^2(2x + 1).
  6. y = csc(x^3). The inside is x^3, with derivative 3x^2, so y' = -3x^2 csc(x^3) cot(x^3).

Answer: the six derivatives are 6x cos(3x^2), -5 sin(5x), (1/2) sec^2(x/2), 4 sec(4x) tan(4x), -2 csc^2(2x + 1) and -3x^2 csc(x^3) cot(x^3).

Each of these was checked by comparing it with a numerical difference quotient at x = 0.7, and the two values matched.

What if the function is a power or a product?

A power of a trig function has the trig function inside. For y = sin^2(x), which means (sin x) squared, the outside is the square and the inside is sin x. The derivative is 2 sin x times cos x, which is 2 sin x cos x, or sin(2x). For a product such as y = x^2 cos x, use the product rule: the derivative is 2x cos x + x^2 times (-sin x), which is 2x cos x - x^2 sin x.

How do you use the derivative to find a slope or tangent line?

Differentiate, then substitute the x-value. For f(x) = sin(2x), the derivative is 2 cos(2x), and at x = pi/6 the slope is 2 cos(pi/3) = 2 x 0.5 = 1. For y = tan x at x = pi/4, the point is (pi/4, 1) and the slope is sec^2(pi/4) = 1 / cos^2(pi/4) = 1 / 0.5 = 2, so the tangent line is y - 1 = 2(x - pi/4).

Which mistakes show up most?

  • Dropping the chain rule factor. The derivative of cos(5x) is not -sin(5x).
  • Losing the minus sign on any of the three "co" functions.
  • Writing sec^2 x for the derivative of sec x. The square belongs to the derivative of tan x.
  • Differentiating sin(x^2) as cos(x)^2 or as 2 sin x cos x. The square is inside the sine, not outside.
  • Using degrees. Formulas hold for radian measure.

Where does this appear in a course?

In the College Board's AP® Calculus framework, Topic 2.7 covers the derivatives of cosine and sine, and Topic 2.10 covers the derivatives of tangent, cotangent, secant and cosecant, both in Unit 2. A student preparing for an AP® Calculus unit test on differentiation needs all six, together with the chain, product and quotient rules.

When does a tutor help with derivatives?

A tutor helps when you know the six formulas and still lose points in the chain rule. A session can drill the three-step routine until naming the inside becomes automatic. See the calculus tutoring page, the packages, or book a first session. For the trigonometry behind the formulas, read about trig identities and the unit circle.

Common questions

What is the derivative of sin x?

cos x.

What is the derivative of cos x?

-sin x.

What is the derivative of tan x?

sec^2 x, which is 1 / cos^2 x.

Do these derivative formulas work in degrees?

Not as written. They are for radians. With degrees, a factor of pi/180 appears.

Sources