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:

๐‘‘๐‘‘๐‘ฅ๐‘“(๐‘ฅ)=limโ„Žโ†’0๐‘“(๐‘ฅ+โ„Ž)โˆ’๐‘“(๐‘ฅ)โ„Ž

We have ๐‘“(๐‘ฅ) =sinโก(๐‘ฅ). Hence ๐‘“(๐‘ฅ+โ„Ž)=sinโก(๐‘ฅ+โ„Ž)=sinโก๐‘ฅcosโกโ„Ž+sinโกโ„Žcosโก๐‘ฅ 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โก๐‘ฅ=limโ„Žโ†’0sinโก(๐‘ฅ+โ„Ž)โˆ’sinโก๐‘ฅโ„Ž=limโ„Žโ†’0(sinโก๐‘ฅcosโกโ„Ž+sinโกโ„Žcosโก๐‘ฅ)โˆ’sinโก๐‘ฅโ„Ž=limโ„Žโ†’0sinโก๐‘ฅcosโกโ„Žโˆ’sinโก๐‘ฅ+sinโกโ„Žcosโก๐‘ฅโ„Ž=limโ„Žโ†’0sinโก๐‘ฅcosโกโ„Žโˆ’sinโก๐‘ฅโ„Ž+limโ„Žโ†’0sinโกโ„Žcosโก๐‘ฅโ„Ž=limโ„Žโ†’0sinโก๐‘ฅ(cosโกโ„Žโˆ’1)โ„Ž+limโ„Žโ†’0cosโก๐‘ฅsinโกโ„Žโ„Ž[sinโก๐‘ฅ and cosโก๐‘ฅ are unaffected by the limit]=sinโก๐‘ฅ[limโ„Žโ†’0cosโกโ„Žโˆ’1โ„Ž]+cosโก๐‘ฅ[limโ„Žโ†’0sinโกโ„Žโ„Ž](โˆ—)

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 (*):

limโ„Žโ†’0sinโก๐‘ฅcosโกโ„Žโˆ’sinโก๐‘ฅโ„Ž+limโ„Žโ†’0sinโกโ„Žcosโก๐‘ฅโ„Ž[sinโก๐‘ฅ and cosโก๐‘ฅ are unaffected by the limit]๐‘‘๐‘‘๐‘ฅsinโก๐‘ฅ=sinโก๐‘ฅ[limโ„Žโ†’0cosโกโ„Žโˆ’1โ„Ž]+cosโก๐‘ฅ[limโ„Žโ†’0sinโกโ„Žโ„Ž](โˆ—)=sinโก๐‘ฅ[limโ„Žโ†’0cosโกโ„Žโˆ’1โ„Ž]0+cosโก๐‘ฅ[limโ„Žโ†’0sinโกโ„Žโ„Ž]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โก๐‘ฅcosโกโ„Žโˆ’sinโก๐‘ฅ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โก๐‘ฅ=limโ„Žโ†’0cosโก(๐‘ฅ+โ„Ž)โˆ’cosโก๐‘ฅโ„Ž=limโ„Žโ†’0(cosโก๐‘ฅcosโกโ„Žโˆ’sinโก๐‘ฅsinโกโ„Ž)โˆ’cosโก๐‘ฅโ„Ž=limโ„Žโ†’0cosโก๐‘ฅcosโกโ„Žโˆ’cosโก๐‘ฅโˆ’sinโก๐‘ฅsinโกโ„Žโ„Ž=limโ„Žโ†’0cosโก๐‘ฅcosโกโ„Žโˆ’cosโก๐‘ฅโ„Žโˆ’limโ„Žโ†’0sinโก๐‘ฅsinโกโ„Žโ„Ž=limโ„Žโ†’0cosโก๐‘ฅ(cosโกโ„Žโˆ’1)โ„Žโˆ’limโ„Žโ†’0sinโก๐‘ฅsinโกโ„Žโ„Ž[sinโก๐‘ฅ and cosโก๐‘ฅ are unaffected by the limit]=cosโก๐‘ฅ[limโ„Žโ†’0cosโกโ„Žโˆ’1โ„Ž]โˆ’sinโก๐‘ฅ[limโ„Žโ†’0sinโกโ„Žโ„Ž][Same two "special trig limits" as above]=cosโก๐‘ฅ[limโ„Žโ†’0cosโกโ„Žโˆ’1โ„Ž]0โˆ’sinโก๐‘ฅ[limโ„Žโ†’0sinโกโ„Žโ„Ž]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โก๐‘ฅ.

Practice Problems

As we said above, we'll use these two derivatives again and again and again, so you'll have them memorized soon enough. Let's do a few quick problems now to start:

Practice Problem 1

If ๐‘“(๐‘ฅ) =12๐‘ฅ2 +sinโก๐‘ฅ, then ๐‘“โ€ฒ(๐‘ฅ) =

(A) ๐‘ฅ+cosโก๐‘ฅ(B) ๐‘ฅโˆ’cosโก๐‘ฅ(C) ๐‘ฅ+cosโก๐‘ฅ (D) 2๐‘ฅโˆ’cosโก๐‘ฅ(E) none of these

Practice Problem 2

If ๐‘“(๐‘ฅ) =cosโก๐‘ฅ +๐‘’๐‘ฅ, then ๐‘‘๐‘“๐‘‘๐‘ฅ =

(A) sinโก๐‘ฅ+๐‘’๐‘ฅ(B) โˆ’sinโก๐‘ฅ+๐‘’๐‘ฅโˆ’1(C) โˆ’sinโก๐‘ฅ+๐‘ฅ๐‘’๐‘ฅโˆ’1

(D) โˆ’sinโก๐‘ฅ+๐‘’๐‘ฅ(E) none of these

Practice Problem 3

The slope of the tangent line to the curve ๐‘ฆ =cosโก๐‘ฅ at ๐‘ฅ =๐œ‹4 is

(A) โˆš22(B) โˆ’โˆš22(C) โˆ’0.014(D) 0.014(E) none of these

Practice Problem 4

An equation for the tangent line to the curve ๐‘“(๐‘ฅ) =cosโก๐‘ฅ at ๐‘ฅ =๐œ‹4 is

(A) ๐‘ฆโˆ’โˆš22=โˆš22(๐‘ฅโˆ’๐œ‹4)(B) ๐‘ฆโˆ’โˆš22=โˆ’โˆš22(๐‘ฅโˆ’๐œ‹4) (C) ๐‘ฆ+โˆš22=โˆ’โˆš22(๐‘ฅโˆ’๐œ‹4)(D) ๐‘ฆโˆ’โˆš22=โˆš22(๐‘ฅโˆ’๐œ‹4) (E) none of these


These two derivatives complete our initial toolkit of derivatives: You can now find the derivative of power functions, polynomials, exponential, and the two fundamental trig functions. In the next section we'll see how to take the derivative of a function that is the product or quotient of two other functions, things like ๐‘ฅ๐‘’๐‘ฅ and sinโก๐‘ฅcosโก๐‘ฅ.

The Upshot

  1. The derivative of sinโก๐‘ฅ is ๐‘‘๐‘‘๐‘ฅsinโก๐‘ฅ =cosโก๐‘ฅ.
  2. The derivative of cosโก๐‘ฅ is ๐‘‘๐‘‘๐‘ฅcosโก๐‘ฅ = โˆ’sinโก๐‘ฅ.

Questions or comments about what's on this screen, or anything else other Calculus-related? Please post on the Forum!