Grade by Grade
A. Rate of Change · Derivatives of Exponential and Sinusoidal Functions

Investigating the Derivative of sin x

A2.4About 70 minutes
Learning goals
  • I can build a table of instantaneous rates of change of y = sin x and graph them.
  • I can recognize that the graph of the derivative of sin x is the graph of cos x.
  • I can explain, using the limits of (sin h)/h and (cos h − 1)/h, why d/dx sin x = cos x when x is in radians.
  • I can differentiate functions involving sin x and find tangent lines to y = sin x.

Words to know

radian
The angle that cuts off an arc equal to the radius. 2π radians = 360°. Calculus rules for sine and cosine need radians.
sinusoidal function
A function whose graph is a sine or cosine wave, such as y = sin x or y = 3 cos(2x) + 1.
derivative of sin x
d/dx sin x = cos x (x in radians).
compound angle formula
sin(a + b) = sin a cos b + cos a sin b, from MHF4U.
limit
The value a quantity approaches as the input approaches some value, such as (sin h)/h → 1 as h → 0.

Waves have slopes too

A child on a playground swing, a buoy bobbing on Lake Ontario, the voltage in a household outlet: all follow sine waves. How fast are they changing at each moment? To answer, we need the derivative of sin x.

Remember from MHF4U: in Radian Measure and Trigonometric Functions you graphed y = sin x in radians, with period 2π. In the Rates of Change unit you estimated that a sine curve changes fastest where it crosses its midline and has rate 0 at its peaks and troughs. Today you will turn that into an exact rule.

Set your calculator to radian mode. Everything in this lesson uses radians.

A table of tangent slopes

Expectation A2.4 asks you to find the derivative by investigation. For each x, estimate the slope with the difference quotient [sin(x + h) − sin x] ÷ h, using h = 0.0001.

xsin xslope (h = 0.0001)cos x
001.00001
π/6 ≈ 0.5240.50.86600.8660
π/3 ≈ 1.0470.86600.50000.5
π/2 ≈ 1.57110.00000
2π/3 ≈ 2.0940.8660−0.5000−0.5
5π/6 ≈ 2.6180.5−0.8661−0.8660
π ≈ 3.1420−1.0000−1
3π/2 ≈ 4.712−10.00000
2π ≈ 6.28301.00001
The estimated slopes of y = sin x match the values of cos x.
π/2π3π/22π−11xyslope 10.50−100.5y = sin xShort lines aretangents. Numbersare their slopes.
Tangents to y = sin x. The slope is 1 at x = 0, 0 at the peak x = π/2, −1 at x = π and 0 again at the trough x = 3π/2.
π/2π3π/22π−11xslopeDots: slopes ofy = sin x, measuredevery π/6.Dashed: y = cos x.They match:d/dx sin x = cos x
Plotting the slopes of y = sin x gives a wave that starts at 1, drops to −1 at π and returns to 1 at 2π: the graph of y = cos x.

The derivative of sine

d/dx sin x = cos x (x in radians).

On a graphing tool you can check it by graphing y = sin x, asking for its derivative (or plotting the slope of a sliding tangent), and seeing the graph of y = cos x appear.

Why it works: the algebra

Use the definition of the derivative and the compound angle formula from MHF4U Trigonometric Identities and Equations, sin(x + h) = sin x cos h + cos x sin h:

[sin(x + h) − sin x] ÷ h = [sin x cos h + cos x sin h − sin x] ÷ h

= sin x × (cos h − 1)/h + cos x × (sin h)/h.

As h → 0, only two limits matter. They do not depend on x, and a calculator in radian mode shows them clearly:

h(sin h)/h(cos h − 1)/h
0.50.958851−0.244835
0.10.998334−0.049958
0.010.999983−0.005000
0.0011.000000 (rounded)−0.000500
As h → 0, (sin h)/h → 1 and (cos h − 1)/h → 0.

So the difference quotient approaches sin x × 0 + cos x × 1 = cos x.

Why radians? The fact (sin h)/h → 1 is true only when h is measured in radians. For a small angle, the arc length h and the height sin h on a unit circle are almost equal. In degrees, the slope of y = sin x at 30° is about 0.01511, not cos 30° ≈ 0.866: it is (π/180) cos 30°. Radians make the rule clean, which is why calculus always uses them.

Worked example

Example 1: Basic derivatives

Differentiate (a) y = 3 sin x (b) y = sin x + x² (c) y = 5x − 2 sin x

  1. (a) Constant multiple rule: y′ = 3 cos x.
  2. (b) Sum rule: y′ = cos x + 2x.
  3. (c) y′ = 5 − 2 cos x.

(a) 3 cos x (b) cos x + 2x (c) 5 − 2 cos x

Worked example

Example 2: A tangent line

Find the equation of the tangent to y = sin x at x = π/3.

  1. Point: (π/3, sin(π/3)) = (π/3, √3/2).
  2. Slope: y′ = cos x, so m = cos(π/3) = 1/2.
  3. y − √3/2 = (1/2)(x − π/3).
  4. y = (1/2)x − π/6 + √3/2 ≈ 0.5x + 0.342.

y = (1/2)x + √3/2 − π/6 (about y = 0.5x + 0.342).

Worked example

Example 3: Where is the tangent horizontal?

Find all x in [0, 2π] where y = sin x has a horizontal tangent, and where its slope is 1/2.

  1. Horizontal: cos x = 0, so x = π/2 or x = 3π/2 (the peak and the trough).
  2. Slope 1/2: cos x = 1/2. From the special triangles and the unit circle (MHF4U), x = π/3 or x = 5π/3.

Horizontal at x = π/2 and 3π/2; slope 1/2 at x = π/3 and 5π/3.

Worked example

Example 4: Mixing with earlier rules

For f(x) = 2 sin x − x, find f′(π) and say whether f is increasing or decreasing there.

  1. f′(x) = 2 cos x − 1.
  2. f′(π) = 2(−1) − 1 = −3.

f′(π) = −3, so f is decreasing at x = π.

Hands-on activity

Measure the slopes of a sine wave by hand

You need: graph paper, a ruler, a pencil, a calculator in radian mode, and a piece of string about 50 cm long with a small weight on the end (for example a key or a metal washer) for a pendulum.

Part A: tangents on paper

  1. Draw x-axis from 0 to 6.5 and y-axis from −1.2 to 1.2. Use the same scale on both axes (for example 2 cm per unit). This matters: slopes only read correctly with equal scales.
  2. Plot y = sin x at x = 0, 0.5, 1, 1.5, …, 6.5 and draw a smooth curve.
  3. At x = 0, 1, 2, 3, 4, 5 and 6, lay a ruler along the curve as a tangent and estimate its slope (rise ÷ run).
  4. Plot your slopes on the same grid. Then compute cos x at those x-values and compare.

Part B: pendulum

  1. Hold the string still and let the weight swing gently. Watch where it moves fastest and where it pauses.

What to look for: your slopes should be close to cos 0 = 1, cos 1 ≈ 0.54, cos 2 ≈ −0.42, cos 3 ≈ −0.99, cos 4 ≈ −0.65, cos 5 ≈ 0.28 and cos 6 ≈ 0.96. The pendulum pauses at the ends of its swing (largest displacement) and moves fastest through the middle (zero displacement), just as sin x has slope 0 at its peaks and slope ±1 at its zeros. A motion sensor in a classroom would show the velocity graph as a cosine-shaped wave.

Just for fun

Why is the sine function never upset about its derivative? Because cos x is just sin x shifted left by π/2. It knows it's only a phase.

Your turn

1

Differentiate y = 4 sin x.

2

Differentiate y = x³ − sin x.

3

Find the slope of y = sin x at x = π/4, exactly.

4

Find the slope of y = sin x at x = 2 (radians), to three decimal places.

5

Find the equation of the tangent to y = sin x at x = 0.

6

Find all x in [0, 2π] where y = sin x has slope −1.

More practice: warm-up

1

What is d/dx sin x?

2

In what angle unit must x be measured for d/dx sin x = cos x to be true?

3

What is the slope of y = sin x at its maximum point?

4

Evaluate the limit of (sin h)/h as h → 0 (h in radians).

5

Differentiate y = sin x + 7.

More practice: on your own

1

Find the equation of the tangent to y = 2 sin x at x = π/6.

2

For f(x) = x + 2 sin x, find all x in [0, 2π] where the tangent is horizontal.

3

Explain using the derivative why y = x + sin x never decreases.

4

Use h = 0.001 to estimate the slope of y = sin x at x = 1, and compare with cos 1.

5

Find y″ for y = sin x, given that d/dx cos x = −sin x (next lesson).

Challenge

1

If x is in degrees, show that the slope of y = sin x at x = 30° is about 0.0151, and explain where the factor π/180 comes from.

2

Use the table of (sin h)/h to explain why sin(0.01) ≈ 0.01. How good is the approximation sin h ≈ h for h = 0.1?

3

Find the points on y = sin x, 0 ≤ x ≤ 2π, where the tangent is parallel to the line y = x/2 + 3.

Check your understanding

Quiz

1.

d/dx sin x =

2.

At which x-value is the slope of y = sin x equal to −1?

3.

Why do calculus rules for sine use radians?

4.

The tangent to y = sin x at x = 0 is:

5.

If f(x) = 3 sin x + x², then f′(0) =

6.

Where is y = sin x increasing most steeply on [0, 2π]?

For parents and teachers

Big idea (A2.4): the derivative of sin x is cos x. Students should see this three ways: from a table of slopes, from the graph (the slope curve of a sine wave is a cosine wave), and from the limit argument using (sin h)/h → 1. It only works in radians.

How to help: check that the calculator is in radian mode (a very common source of wrong answers). Ask your teen to point to the peaks of a sine graph and say what the derivative is there (0), and where the curve is steepest (at the zeros).

Common difficulties:

  • Using degree mode: the slopes come out about 57 times too small.
  • Mixing up the signs: d/dx sin x = cos x (positive), but d/dx cos x = −sin x (next lesson).
  • Reading slopes from a graph whose axes have different scales.
  • Forgetting exact values from the unit circle (MHF4U), such as cos(π/3) = 1/2.