The gradient of sin x, read off its graph
With x in radians, y = sin x climbs through the origin at gradient 1, because as . At it reaches its peak, where the tangent is flat and the gradient is 0. At it falls through zero at gradient −1, at it is flat again at its lowest point, and at it climbs at gradient 1 once more.
Those gradients, 1, 0, −1, 0, 1, are the values of cos x at the same five points. Where sine is steepest, cosine is at a peak or a trough; where sine peaks, cosine crosses zero.
The gold curve y = sin x and the dashed curve y = cos x, for x from −0.5 to 6.5 radians. The gold line y = x is the tangent to sin x at the origin, where cos 0 = 1. At , sin x peaks at 1 and cos x is 0.
The derivative of sin x, from the limit
The addition formula gives sin(x + h) = sin x cos h + cos x sin h. So the difference quotient is .
Two limits finish it. With h in radians, . And : since , the quotient is , which tends to 0 × 1 = 0. At h = 0.1 the two quotients are 0.99833 and −0.04996; at h = 0.01 they are 0.999983 and −0.0050.
So the difference quotient tends to sin x × 0 + cos x × 1, and the derivative of sin x is cos x. Check at x = 1: the chord from 1 to 1.001 has gradient , and cos 1 = 0.54030.
The derivative of cos x
The same steps run on cos(x + h) = cos x cos h − sin x sin h. The difference quotient is , which tends to cos x × 0 − sin x × 1. So the derivative of cos x is −sin x.
The minus sign shows on the graph. Between 0 and , cos x falls from 1 to −1, so its gradient is negative, and sin x is positive there. Check at x = 1: the chord from 1 to 1.001 has gradient −0.84174, and −sin 1 = −0.84147.
Four steps round a cycle
Differentiate sin x and the result is cos x. Differentiate that and the result is −sin x; a constant factor of −1 stays where it is. Then −sin x gives −cos x, and −cos x gives sin x again.
So differentiating four times in a row returns to the start: sin x, cos x, −sin x, −cos x, sin x. Differentiating sin x ten times goes round the cycle twice, which is eight steps, and then two more, to −sin x.
the height is sin θ and the upward part of the velocity (−sin θ, cos θ) is cos θ: d(sin θ)/dθ = cos θ
Rotate to θ = 0 and compare the height with the upward speed
A point at angle on a circle of radius 1 has height . Turning at 1 radian per second, it climbs at per second, the second bar. At the height is 0.87 and the climb is 0.5; at the height is 0 and the climb is at its fastest.
Radians only
Both proofs used , which holds only for h in radians. An angle of h degrees is radians, so with h in degrees, tends to instead.
Then every derivative carries that factor: the derivative of sin(x°) with respect to x is . At x = 60 that is 0.01745 × 0.5 = 0.0087 per degree, not 0.5. In calculus, the angle in sin x and cos x is in radians unless it says otherwise.
Multiples, sums and a coefficient on the angle
Constant multiples and sums differentiate term by term. y = 3 sin x + 2 cos x has derivative 3 cos x − 2 sin x, and at x = 0 that is 3 × 1 − 2 × 0 = 3.
A coefficient on the angle needs the chain rule. For y = sin 5x, the inner function is 5x and the outer function is sin, so . At x = 0.2 that is 5 cos 1 = 2.7015.
For , the inner function is and the outer function is cos, so , which is −2 sin 1 = −1.6829 at x = 1.
The usual mistakes
Giving the derivative of cos x as sin x. Cosine falls from its peak at 0 while sin x is positive, so the derivative is −sin x.
Putting a minus sign on the derivative of sin x. Sine climbs through the origin, so its gradient there is +1 = cos 0.
Leaving out the inner factor. sin 5x differentiates to 5 cos 5x, not cos 5x.
Working in degrees. The results and hold only with x in radians.
A crank pin on a wheel
In the application below, the height of a pin on a turning wheel is 10 sin x. Its derivative, 10 cos x, gives how fast the pin rises, and where 10 cos x = 0 the pin is momentarily at rest.
Worked example: A Crank Pin Turning on a Wheel: the Speed at Which It Rises, and the Instant It Is at Rest
Question A crank wheel of radius 10 cm turns at a steady 1 radian per second. The height of the crank pin above the center of the wheel is h = 10sin x centimeters, where x is the number of seconds after the pin passes the level of the center. (a) How fast is the pin rising after π3 seconds? (b) At what time is the pin first momentarily at rest, and how high is it then?
1.Let x be the number of seconds. The wheel turns at 1 radian per second, so x is also the angle turned, in radians, and h = 10sin x centimeters.
The pin is 10sin x cm above the center, and x is both the seconds and the angle turned in radians. 2.Differentiate: the derivative of sin x is cos x, and the constant multiple stays, so dhdx = 10cos x centimeters per second.
The derivative of sin x is cos x, and the constant multiple stays: dhdx = 10cos x. 3.(a) At x = π3, cosπ3 = 12, so dhdx = 10 × 12 = 5: the pin is rising at 5 centimeters per second.
(a) At x = π3 the tangent has gradient 5: dhdx = 10 × 12 = 5 cm per second. 4.The pin is momentarily at rest when 10cos x = 0. The first time this happens is x = π2 ≈ 1.57 seconds.
The pin is at rest where 10cos x = 0, first at x = π2 ≈ 1.57 seconds. 5.(b) There h = 10sinπ2 = 10 centimeters, the top of the pin's travel. Check: at x = π3 the pin is only 10sinπ3 ≈ 8.66 centimeters up and still rising.
(b) There the curve is flat and h = 10 cm, the top of the travel.
Answer: (a) It is rising at 5 centimeters per second; (b) at x = π2 ≈ 1.57 seconds, 10 centimeters above the center
Common mistakes
- Working in degrees and writing cos 60° into a rate per second. The derivatives of sin x and cos x hold only when x is in radians, so the angle and the time must both be read in radians here.
- Reading the greatest height as the moment of the greatest rate. The pin rises fastest as it passes the center, where cos x = 1, and it is at rest at the very top.
More rules of differentiation problems, worked step by step →