CALCULUS 1 • DERIVATIVES: DEFINITION & RULES

Derivatives of sin & cos — Derivatives of Sine and Cosine

Discover why the slopes of sine and cosine waves are simply each other in disguise.

Historical Context & Motivation

Long before calculus existed as a formal subject, mathematicians and astronomers wrestled with circular motion and the behavior of waves. Ancient Greek scholars studied the geometry of chords in circles, laying the groundwork for what we now call trigonometric functions. By the 17th century, the question shifted from 'what are these functions?' to 'how fast do they change?' That question — the rate of change of sine and cosine — sits at the heart of this lesson.

~150 AD
Ptolemy's Chord Tables
Claudius Ptolemy compiled detailed tables of circular chords — the ancient equivalent of sine values — to predict planetary positions. These tables planted the seeds for trigonometry as a mathematical discipline.
~1400
Kerala School's Early Calculus
Mādhava of Saṅgamagrāma and his followers in India discovered infinite series expansions for sine and cosine, anticipating key ideas of calculus roughly 250 years before Newton and Leibniz.
1665–1676
Newton & Leibniz Develop Calculus
Isaac Newton and Gottfried Leibniz independently formalized differentiation. Newton used his 'method of fluxions' to compute derivatives of trigonometric functions while studying optics and planetary orbits.
1748
Euler's Introductio
Leonhard Euler published his landmark textbook connecting exponential and trigonometric functions through the famous identity e^(ix) = cos x + i sin x, which elegantly shows why the derivatives of sine and cosine cycle into each other.

The central question driving this lesson is straightforward: if you graph y = sin x or y = cos x and zoom in on a single point, what is the slope of the curve at that exact instant? Answering that question unlocks the ability to model vibrations, sound waves, electrical signals, and anything else that oscillates — which turns out to be a huge portion of the physical world.

Core Principles & Definitions

Before jumping into formulas, you need to be comfortable with a few foundational ideas. The derivative of a function tells you its instantaneous rate of change — essentially, the slope of the tangent line at any point. When the function is sin x or cos x, the derivative itself turns out to be another trigonometric function, which is one of the most elegant results in all of calculus.

1

Radian Measure Is Essential

The derivative rules for sine and cosine only work when the angle x is measured in radians. Using degrees will produce incorrect results because the limit definitions depend on radian measure.
2

Key Limit: (sin h)/h → 1

As h approaches 0, the ratio sin h / h approaches 1. This special limit is the engine that makes the derivative of sin x come out to cos x.
3

Key Limit: (cos h − 1)/h → 0

As h approaches 0, (cos h − 1)/h approaches 0. This companion limit eliminates an unwanted term and ensures the derivative formula is clean and simple.
4

Derivatives Cycle Through Trig

Differentiating sin x gives cos x, differentiating cos x gives −sin x, and repeating the process cycles back to the original function every four derivatives.
KEY TAKEAWAY
Think of a Ferris wheel. Your height above the ground traces out a sine curve over time. The derivative — how fast your height is changing — is largest when you sweep through the middle and zero when you're at the very top or bottom. That's exactly the shape of a cosine curve! The derivative of sine is cosine because the rate of change of one wave is described perfectly by the other.

Visual Explanation — Sine, Cosine & Their Slopes

The diagram below plots y = sin x in cyan and its derivative y = cos x in violet over two full periods. Notice how every peak of the sine curve corresponds to a zero crossing of the cosine curve, and every zero crossing of sine corresponds to a peak or valley of cosine. This visual relationship is the geometric heart of the rule d/dx [sin x] = cos x.

The solid cyan curve is y = sin x and the dashed violet curve is y = cos x. At every peak or valley of sine, the cosine curve crosses zero — confirming that the slope of sine is exactly cosine.

Study the annotations on the graph. At x = π/2, the sine curve reaches its maximum value of 1, so the curve is momentarily flat — the tangent line is horizontal, meaning the slope is 0. Sure enough, cos(π/2) = 0. At x = π, sin x passes through zero on its way down, so the slope is as negative as it gets; cos(π) = −1 confirms this. This point-by-point agreement is not coincidence — it is the geometric proof that the derivative of sine is cosine.

Mathematical Framework — Deriving the Rules

Let's see where the derivative formulas actually come from, starting from the limit definition of the derivative. You will need the angle addition identities and the two special limits introduced in Section 2.

Derivative of sin x

Starting from f(x) = sin x, we apply the limit definition: f′(x) = lim(h→0) [sin(x + h) − sin x] / h. Using the angle addition formula, sin(x + h) = sin x cos h + cos x sin h, we substitute and simplify.

LIMIT DEFINITION APPLIED
f′(x) = lim [sin x · cos h + cos x · sin h − sin x] / h
We expanded sin(x + h) using the sum identity, then subtracted sin x.
FACTOR AND SEPARATE
f′(x) = lim [sin x · (cos h − 1)/h] + lim [cos x · (sin h)/h]
Group the sin x terms together and the cos x terms together, then split into two limits.
APPLY SPECIAL LIMITS
f′(x) = sin x · (0) + cos x · (1) = cos x
Since lim(h→0) (cos h − 1)/h = 0 and lim(h→0) (sin h)/h = 1, the first term vanishes and the second yields cos x.

Derivative of cos x

The process is nearly identical. Start with g(x) = cos x and use cos(x + h) = cos x cos h − sin x sin h. After the same factoring trick, you get:

DERIVATIVE OF COSINE
g′(x) = cos x · (0) − sin x · (1) = −sin x
The negative sign in the cosine addition formula carries through, producing −sin x rather than +sin x.
⚠️ Don't Forget the Negative Sign!
The most common mistake students make is writing d/dx [cos x] = sin x instead of −sin x. A quick sanity check: at x = 0, cosine is at its peak (slope = 0), and −sin(0) = 0 ✓. Just past x = 0, cosine decreases, so its derivative should be negative — and −sin x is indeed negative for small positive x ✓.

The Four-Step Derivative Cycle

One of the most satisfying patterns in calculus is that repeated differentiation of sine and cosine cycles through exactly four functions. Differentiating sin x gives cos x; differentiating cos x gives −sin x; differentiating −sin x gives −cos x; and differentiating −cos x gives sin x — right back where you started. This four-step cycle is useful when you need higher-order derivatives.

Starting from sin x, each arrow represents one differentiation. After four steps the cycle returns to sin x. For example, the 7th derivative of sin x equals the 3rd position in the cycle (since 7 mod 4 = 3), which is −cos x.
Higher-order derivatives cycle with period 4.
Derivative Orderd/dx of sin xd/dx of cos x
1stcos x−sin x
2nd−sin x−cos x
3rd−cos xsin x
4thsin xcos x
5thcos x (cycle restarts)−sin x (cycle restarts)

Worked Example — Differentiating a Mixed Expression

Let's differentiate f(x) = 3 sin x + 5 cos x − 2x step by step. This combines the new trig derivative rules with the familiar power rule and the constant multiple rule.

Find f′(x) when f(x) = 3 sin x + 5 cos x − 2x
1
Step 1 — Identify Each TermThe function has three terms: 3 sin x, 5 cos x, and −2x. We differentiate each term independently using the sum/difference rule.
2
Step 2 — Differentiate 3 sin xBy the constant multiple rule and the derivative of sin x: d/dx [3 sin x] = 3 · d/dx [sin x] = 3 · cos x.
3 cos x
3
Step 3 — Differentiate 5 cos xSimilarly: d/dx [5 cos x] = 5 · d/dx [cos x] = 5 · (−sin x) = −5 sin x. Remember the negative sign that comes from the cosine derivative!
−5 sin x
4
Step 4 — Differentiate −2xUsing the power rule (or simply recognizing that the derivative of x is 1): d/dx [−2x] = −2.
−2
5
Step 5 — Combine the ResultsAdd the derivatives of each term: f′(x) = 3 cos x + (−5 sin x) + (−2).
f′(x) = 3 cos x − 5 sin x − 2
Quick Verification
Check at x = 0: f(0) = 3(0) + 5(1) − 0 = 5, and f′(0) = 3(1) − 5(0) − 2 = 1. The function is increasing at x = 0, which matches the positive derivative.

Common Mistakes & How to Avoid Them

The derivative rules for sine and cosine are short, but several pitfalls trap students regularly. The table below catalogs the most common errors and the correct approaches.

Common errors when differentiating sine and cosine
Common MistakeWhy It's WrongCorrect Approach
d/dx [cos x] = sin x (missing negative)The cosine addition formula has a minus sign that carries through the derivation.d/dx [cos x] = −sin x. Always include the negative.
Using degree mode on a calculatorThe special limits only equal 1 and 0 in radians. In degrees, lim (sin h)/h ≈ π/180, not 1.Always work in radians when differentiating trig functions.
Forgetting the chain rule with sin(3x)d/dx [sin(3x)] ≠ cos(3x). The inner function 3x must be differentiated too.d/dx [sin(3x)] = cos(3x) · 3 = 3 cos(3x). (Chain rule topic.)
Confusing the function and its derivativesin x and cos x look similar on a graph, making it easy to mix up which is the original and which is the derivative.Remember: slopes of sin x match values of cos x. Check a few specific points to confirm.
💡 MEMORY AID
Here is a simple mnemonic: "Sine → Cosine is sunshine, but Cosine → Sine picks up a Negative." In other words, differentiating sine is 'positive' and straightforward, while differentiating cosine introduces a minus sign. Whenever you're unsure, sketch the graphs: where sine goes up, cosine is positive; where cosine goes down, negative sine confirms the sign.

Connection to Advanced Topics

Mastering the derivatives of sin x and cos x is a gateway to much more. Nearly every advanced derivative rule involving trigonometry builds directly on these two results. The table below previews how these basics evolve as you continue in calculus.

How today's rules connect to upcoming calculus topics
This Lesson (Basics)What Comes Next
d/dx [sin x] = cos xWith the chain rule: d/dx [sin(u)] = cos(u) · u′, allowing you to differentiate sin(x²), sin(3x + 1), etc.
d/dx [cos x] = −sin xCombined with the quotient rule, you can derive d/dx [tan x] = sec²x and the derivatives of all six trig functions.
The 4-step derivative cycleLeads to solving differential equations like y″ + y = 0, whose solutions are sin x and cos x — the foundation of simple harmonic motion in physics.
Graphical slope analysisExtends to curve sketching: using f′ to find maxima, minima, and inflection points of any function built from sine and cosine.

Perhaps the most beautiful connection is Euler's formula: eix = cos x + i sin x. Differentiating both sides with respect to x (treating i as a constant) gives ieix = −sin x + i cos x, which simultaneously confirms both d/dx [cos x] = −sin x and d/dx [sin x] = cos x. You'll explore this fully if you take courses in complex analysis or differential equations — and it all rests on the foundations laid today.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why the derivative of sin x at x = π/2 equals zero. Use the graph of sin x to support your answer.
PROBLEM 2BASIC CALCULATION
Find the derivative of f(x) = 7 sin x − 4 cos x.
PROBLEM 3INTERMEDIATE
Find the equation of the tangent line to y = sin x + cos x at x = 0.
PROBLEM 4APPLIED
A buoy bobs up and down in the ocean so that its height (in meters) above the sea floor is h(t) = 3 + 2 sin t, where t is time in seconds. Find the velocity of the buoy at t = π/3 seconds. Is the buoy rising or falling at that instant?
PROBLEM 5CRITICAL THINKING
Find all values of x in the interval [0, 2π) where the function f(x) = sin x − cos x has a horizontal tangent line. What is the value of f at each of those points?

Lesson Summary

The two fundamental trigonometric derivative rules state that d/dx [sin x] = cos x and d/dx [cos x] = −sin x, valid when x is measured in radians. These results depend on two special limits: lim(h→0) (sin h)/h = 1 and lim(h→0) (cos h − 1)/h = 0. Graphically, each peak of sin x corresponds to a zero of cos x, and vice versa, providing a visual confirmation that the derivative of one wave is the other.

Repeated differentiation produces a four-step cycle: sin x → cos x → −sin x → −cos x → sin x. The most common mistake is dropping the negative sign in the derivative of cosine. These two rules serve as building blocks for the chain rule with trig functions, the derivatives of all six trig functions, and applications throughout physics and engineering involving periodic motion.

Varsity Tutors • Calculus 1 • Derivatives of sin & cos — Derivatives of Sine and Cosine