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.

A smooth function curve with a function symbol and rising tangent trend.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

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 eixe^{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.

SECTION 2

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.

SECTION 3

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.

y = sin x and y' = cos x10−10π/2π3π/22π5π/23πsin peak → cos = 0sin valley → cos = 0sin xcos x (derivative)
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.

SECTION 4

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[sinx⋅cosh+cosx⋅sinh−sinx]/hf′(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[sinx⋅(cosh−1)/h]+lim[cosx⋅(sinh)/h]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)=sinx⋅(0)+cosx⋅(1)=cosxf′(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)=cosx⋅(0)−sinx⋅(1)=−sinxg′(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 ✓.

SECTION 5

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.

The Derivative Cycle of Trigonometric Functionssin xcos x−sin x−cos xd/dxd/dxd/dxd/dxAfter four differentiations you return to sin x. The cycle repeats indefinitely.To find the nth derivative, compute n mod 4 and follow the cycle.
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.
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)

Higher-order derivatives cycle with period 4.

SECTION 6

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. 1

    Step 1 — Identify Each Term

    The function has three terms: 3 sin x, 5 cos x, and −2x. We differentiate each term independently using the sum/difference rule.
  2. 2

    Step 2 — Differentiate 3 sin x

    By 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. 3

    Step 3 — Differentiate 5 cos x

    Similarly: 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. 4

    Step 4 — Differentiate −2x

    Using the power rule (or simply recognizing that the derivative of x is 1): d/dx [−2x] = −2.
    −2
  5. 5

    Step 5 — Combine the Results

    Add 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.

SECTION 7

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 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.

Common errors when differentiating sine and cosine

💡

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.

SECTION 8

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.

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.

How today's rules connect to upcoming calculus topics

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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

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.
Show answer
At x = π/2, the sine curve reaches its maximum value of 1. At any peak, the tangent line is perfectly horizontal, which means the slope is zero. Since the derivative gives the slope of the tangent line, f′(π/2) = cos(π/2) = 0. Graphically, you can see that just before x = π/2 the curve is rising (positive slope) and just after it is falling (negative slope), so the slope must pass through zero exactly at the peak.

Question 2: BASIC CALCULATION

Find the derivative of f(x) = 7 sin x − 4 cos x.
Show answer
Apply the constant multiple rule and the derivative rules for each term. The derivative of 7 sin x is 7 cos x (since d/dx [sin x] = cos x). The derivative of −4 cos x is −4 · (−sin x) = 4 sin x (since d/dx [cos x] = −sin x). Combining: f′(x) = 7 cos x + 4 sin x. Always remember to carry the negative sign through when differentiating cosine.

Question 3: INTERMEDIATE

Find the equation of the tangent line to y = sin x + cos x at x = 0.
Show answer
First, find the y-coordinate: y(0) = sin 0 + cos 0 = 0 + 1 = 1, so the point is (0, 1). Next, find the derivative: y′ = cos x − sin x. Evaluate at x = 0: y′(0) = cos 0 − sin 0 = 1 − 0 = 1, so the slope is 1. Using point-slope form: y − 1 = 1(x − 0), which simplifies to y = x + 1. This tangent line passes through (0, 1) with slope 1, touching the curve at that single point.

Question 4: APPLIED

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?
Show answer
Velocity is the derivative of the height function: v(t) = h′(t) = d/dx [3 + 2 sin t] = 0 + 2 cos t = 2 cos t. At t = π/3: v(π/3) = 2 cos(π/3) = 2 × (1/2) = 1 m/s. Since the velocity is positive, the buoy is rising at t = π/3 seconds. This makes physical sense: at t = π/3 (60°), the sine function has not yet reached its peak at t = π/2, so the buoy is still moving upward.

Question 5: CRITICAL 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?
Show answer
A horizontal tangent occurs where f′(x) = 0. Differentiate: f′(x) = cos x − (−sin x) = cos x + sin x. Setting this equal to zero: cos x + sin x = 0, which means sin x = −cos x, so tan x = −1. In [0, 2π), tan x = −1 at x = 3π/4 and x = 7π/4. At x = 3π/4: f(3π/4) = sin(3π/4) − cos(3π/4) = (√2/2) − (−√2/2) = √2. At x = 7π/4: f(7π/4) = sin(7π/4) − cos(7π/4) = (−√2/2) − (√2/2) = −√2. So the function has a maximum of √2 at x = 3π/4 and a minimum of −√2 at x = 7π/4. This problem synthesizes derivative rules, trigonometric identities, and critical-point analysis.

SUMMARY

Lesson Summary

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