A.3 Derivatives of sin𝑥 and cos𝑥

On this screen we're going to develop formally the derivatives of sin𝑥 and cos𝑥, which we will need again and again. We'll use Desmos to help make sense of the results, and of course also practice using them in various Practice Problems below.

In case you'd simply like to memorize these results so you can move on:

Derivatives of sin x and cos x

𝑑𝑑𝑥sin𝑥=cos𝑥and𝑑𝑑𝑥cos𝑥=sin𝑥

Yep: the derivative of sin is cosine, and the derivative of cosine is negative sine. You just gotta remember those.
Tip icon

Many students find it helpful to remember that, as it turns out, the trig functions that start with "co," like "cosine," have a negative sign in their derivatives, while the trig functions without "co" at their start do not. Hence we can quickly remember that the derivative of cosine is negative sine, while the derivative of sine is (positive) cosine.

You can see a full list of the trig function derivatives on our Handy Table of Trig Function Derivatives, quickly accessible from the "Key Formulas" drop-down menu toward the upper right of every screen. We'll develop the results for sin and cos below, and for the other trig functions later in this Chapter once we have more tools.

I. Derivative of sin𝑥: 𝑑𝑑𝑥sin𝑥 =cos𝑥

To find the derivative of sin𝑥, we start, as always, with the definition of the derivative applied to the function. Recall the definition of the derivative:

𝑑𝑑𝑥𝑓(𝑥)=lim0𝑓(𝑥+)𝑓(𝑥)

We have 𝑓(𝑥) =sin(𝑥). Hence 𝑓(𝑥+)=sin(𝑥+)=sin𝑥cos+sincos𝑥 where we used the sine addition formula sin(𝑥 +𝑦) =sin𝑥cos𝑦 +sin𝑦cos𝑥. (All such trig formulas are available in our Handy Table of Trig Formulas and Identities, also available from the Key Formulas drop-down menu in the upper right of every screen.)

Making these substitutions in the definition of the derivative for 𝑓(𝑥) =sin𝑥 gives us

𝑑𝑑𝑥sin𝑥=lim0sin(𝑥+)sin𝑥=lim0(sin𝑥cos+sincos𝑥)sin𝑥=lim0sin𝑥cossin𝑥+sincos𝑥=lim0sin𝑥cossin𝑥+lim0sincos𝑥=lim0sin𝑥(cos1)+lim0cos𝑥sin[sin𝑥 and cos𝑥 are unaffected by the limit]=sin𝑥[lim0cos1]+cos𝑥[lim0sin]()

You might recognize the "Special Trig Limits" we learned when we were first exploring limits:

lim𝜃0cos𝜃1𝜃=0andlim𝜃0sin𝜃𝜃=1

The actual reason we introduced those then is because we need them now to complete our proof, continuing from the line marked (*):

lim0sin𝑥cossin𝑥+lim0sincos𝑥[sin𝑥 and cos𝑥 are unaffected by the limit]𝑑𝑑𝑥sin𝑥=sin𝑥[lim0cos1]+cos𝑥[lim0sin]()=sin𝑥[lim0cos1]0+cos𝑥[lim0sin]1=cos𝑥

That is, we have the key result:

Derivative of sin x

𝑑𝑑𝑥sin𝑥=cos𝑥

The following Exploration let's you explore this relationship graphically.

EXPLORATION 1: Moveable tangent line for 𝑦 =sin𝑥

The top graph below shows 𝑦 =sin𝑥.

The lower graph automatically updates to show the value of the function's derivative at the same point 𝑥 =𝑎 that's in the upper graph. That is, for each value of 𝑥 =𝑎, we automatically plot the point (𝑎,𝑓(𝑎)) on the lower graph.

Verify for yourself:

  • Are the zeros of 𝑓(𝑥) where you expect them to be? (That is, where the tangent line to the graph of 𝑦 =sin𝑥 is horizontal?)
  • Are the maximum and minimum values of 𝑓(𝑥) where you expect them to be? (Where is the slope of the curve 𝑦 =sin𝑥 steepest in the positive and negative directions?)

We hope that you can see for yourself how the way the slope of the tangent line to the curve 𝑦 =sin𝑥 leads directly to the derivative 𝑓(𝑥) =cos𝑥.

II. Derivative of cos𝑥: 𝑑𝑑𝑥cos𝑥 = sin𝑥

The approach to finding the derivative of cos𝑥 is very much the same as that for sin𝑥 above; we'll just make use of a different trig addition formula.

We start of course with the definition of the derivative applied to 𝑔(𝑥) =cos𝑥. Then 𝑔(𝑥+)=cos(𝑥+)=cos𝑥cossin𝑥sin where we have used the trig addition formula cos(𝑥 +𝑦) =cos𝑥cos𝑦 sin𝑥sin𝑦.

The definition of the derivative for 𝑔(𝑥) =cos𝑥 then gives us

𝑑𝑑𝑥cos𝑥=lim0cos(𝑥+)cos𝑥=lim0(cos𝑥cossin𝑥sin)cos𝑥=lim0cos𝑥coscos𝑥sin𝑥sin=lim0cos𝑥coscos𝑥lim0sin𝑥sin=lim0cos𝑥(cos1)lim0sin𝑥sin[sin𝑥 and cos𝑥 are unaffected by the limit]=cos𝑥[lim0cos1]sin𝑥[lim0sin][Same two "special trig limits" as above]=cos𝑥[lim0cos1]0sin𝑥[lim0sin]1=sin𝑥

That is, we have another key result:

Derivative of cos x

𝑑𝑑𝑥cos𝑥=sin𝑥

The following Exploration lets you see the graphical relationship between the function 𝑔(𝑥) =cos𝑥 and its derivative 𝑔(𝑥) = sin𝑥.

EXPLORATION 2: Moveable tangent line for 𝑦 =cos𝑥

The top graph below shows 𝑦 =cos𝑥.

The lower graph automatically updates to show the value of the function's derivative at the same point 𝑥 =𝑎 that's in the upper graph. That is, for each value of 𝑥 =𝑎, we automatically plot the point (𝑎,𝑓(𝑎)) on the lower graph.

Verify for yourself:

  • Are the zeros of 𝑔(𝑥) where you expect them to be? (That is, where the tangent line to the graph of 𝑦 =cos𝑥 is horizontal?)
  • Are the maximum and minimum values of 𝑔(𝑥) where you expect them to be? (Where is the slope of the curve 𝑦 =cos𝑥 steepest in the positive and negative directions?)

We hope that you can see for yourself how the way the slope of the tangent line to the curve 𝑦 =cos𝑥 leads directly to the derivative 𝑔(𝑥) = sin𝑥.