Derivatives of sine and cosine, and the product and quotient rules
The derivative of sin x is cos x, and the derivative of cos x is −sin x. Both follow from the addition formulas and two limits at zero, which a picture of the unit circle explains: short pieces of curves are nearly straight. A second, purely geometric argument gives the same result, and only works with angles in radians. Two general rules, for products and quotients, multiply what we can differentiate.
The goal of the first part of 18.01 is to be able to differentiate every function we meet. Lecture 3 adds the trigonometric functions and two powerful general rules. (OpenCourseWare lists David Jerison as the instructor of the recorded lectures; the written notes for this lecture record the 2006 class as presented by Kobi Kremnizer.)
Derivative formulas come in two kinds. Specific ones give the derivative of one particular function, such as xn or 1/x from Lecture 1. General ones say how derivatives combine, whatever the functions are: the derivative of a sum is the sum of the derivatives, and a constant factor comes along unchanged.
Sum and constant rules
(u+v)′=u′+v′,(cu)′=cu′(c constant)
In words
the quantity u plus v, prime equals u prime plus v prime, (c u) prime equals c u prime (c constant )
the quantity the quantity u plus v, the quantity x plus capital delta x, all minus the quantity u plus v, (x), all over the quantity capital delta x, equals the quantity u of the quantity x plus capital delta x, minus u(x), all over the quantity capital delta x, plus the quantity v of the quantity x plus capital delta x, minus v(x), all over the quantity capital delta x, goes to u prime (x) plus v prime (x)
the quantity sine of the quantity x plus capital delta x, minus sine x, all over the quantity capital delta x, equals the quantity sine x cos capital delta x plus cos x sine capital delta x minus sine x, all over the quantity capital delta x
Setting Δx=0 gives 0/0, as every derivative does. The trick is to group the terms so that each zero stays over a zero. Since cos0=1, the term sinxcosΔx only cancels against −sinx, so they go together:
Grouping the terms
Δxsin(x+Δx)−sinx=sinxΔxcosΔx−1+cosxΔxsinΔx
In words
the quantity sine of the quantity x plus capital delta x, minus sine x, all over the quantity capital delta x, equals sine x the quantity cos capital delta x minus 1, all over the quantity capital delta x, plus cos x sine capital delta x over the quantity capital delta x
Two limits from Lecture 2 finish the job. Call them A and B:
The limits A and B
A:Δx→0limΔxcosΔx−1=0,B:Δx→0limΔxsinΔx=1
In words
A: the limit as capital delta x goes to 0 of the quantity cos capital delta x minus 1, all over the quantity capital delta x, equals 0, B: the limit as capital delta x goes to 0 of sine capital delta x over the quantity capital delta x, equals 1
the quantity cos of the quantity x plus capital delta x, minus cos x, all over the quantity capital delta x, equals cos x the quantity cos capital delta x minus 1, all over the quantity capital delta x, minus sine x sine capital delta x over the quantity capital delta x
sinx and cosx, computed from their formulas. The straight line is the tangent to sinx at x=a (move the slider): its slope always equals the height of the dashed cosx curve at the same a. Where sinx peaks (a≈1.57) the tangent is flat and cosx crosses zero.
d over d x cos x the absolute value of sub x equals 0 equals the limit as capital delta x goes to 0 of the quantity cos capital delta x minus 1, all over the quantity capital delta x, d over d x sine x sub x equals 0 equals the limit as capital delta x goes to 0 of sine capital delta x over the quantity capital delta x
These are exactly A and B. So the proof shows something striking: the rate of change of sine and cosine at one point, x=0, determines it everywhere. The addition formulas carry it round the circle.
Why A and B are true: short curves are nearly straight#
Sine and cosine are defined geometrically, so the proofs are geometric. Rename Δx as an angle θ, and draw it at the centre of the unit circle. Then sinθ is the vertical distance from the circle to the horizontal axis, and, measured in radians, θ is also the length of the arc it cuts off.
B. Double the picture, with a copy of the angle below the axis. It looks like a bow and its string: the string is the vertical chord, of length 2sinθ, and the bow is the arc, of length 2θ. So
Bow string over bow
θsinθ=2θ2sinθ=length of the bowlength of the string
In words
sine theta over theta equals 2 sine theta over the quantity 2 theta, equals length of the string over length of the bow
As θ shrinks, the bow straightens and the two lengths become nearly equal, so the ratio tends to 1. The principle: short pieces of curves are nearly straight.
A. Write the limit with a positive numerator, (1−cosθ)/θ. In the same bow, the distance from the centre to the string is cosθ, so 1−cosθ is the small gap between the string and the middle of the bow. Zoom in as θ shrinks, keeping the picture big enough to see: the bow flattens onto the string and the gap disappears. Both the gap and θ tend to 0, but the gap does so much faster, so
The gap goes to zero faster
θ→0limθ1−cosθ=0
In words
the limit as theta goes to 0 of the quantity 1 minus cos theta, all over theta equals 0
The bow and its string on the unit circle (centre at the origin), drawn from x=coss, y=sins for −θ≤s≤θ. Make θ smaller with the slider: the string's length 2sinθ and the bow's length 2θ become nearly equal (limit B), while the gap 1−cosθ between them shrinks much faster than θ (limit A).
The proof of B compares a straight length with an arc length on the unit circle. It only works if the angle is measured by that arc length, and that is exactly what a radian is. (For A the unit hardly matters: changing it only rescales a quantity that tends to 0.) In degrees, which divide the circle into 360 arbitrary parts, B and so both formulas fail:
Only in radians
dxdsinx=cosx,dxdcosx=−sinx(x in radians)
In words
d over d x sine x equals cos x, d over d x cos x equals minus sine x (x in radians )
As Lecture 2 showed, if x were in degrees, sine at 0 would rise by only π/180≈0.01745 per degree, not by 1: the formulas would carry this extra factor everywhere.
The lecture then derivesd(sinθ)/dθ=cosθ for every θ at once, directly from a picture. A point P moves round the unit circle; its height is y=sinθ. Move it a little further, by an angle Δθ, to a point Q, and let R be the corner of the right-angled triangle with PR vertical and RQ horizontal. Then the change in height is Δy=PR.
The arc from P to Q has length Δθ, and, short curves being nearly straight, the straight segment PQ has almost the same length: PQ≈Δθ.
The segment PQ is nearly perpendicular to the radius OP (in the limit it is the tangent). The radius makes the angle θ with the horizontal; turn both lines by 90° and the horizontal becomes the vertical PR, while OP becomes PQ. So the angle between PQ and PR is also about θ.
In the right-angled triangle PQR, the vertical side is the hypotenuse times the cosine of that angle:
The geometric proof
Δy=PR≈PQcosθ≈Δθcosθ⟹dθdy=Δθ→0limΔθΔy=cosθ
In words
capital delta y equals P R is approximately P Q cos theta is approximately capital delta theta cos theta which gives d y over d theta equals the limit as capital delta theta goes to 0 of capital delta y over the quantity capital delta theta, equals cos theta
The triangle PQR of the geometric proof, computed from P=(cosθ,sinθ) and Q=(cos(θ+Δθ),sin(θ+Δθ)), with R straight above P at Q's height. As Δθ shrinks, the chord PQ hugs the arc, becomes perpendicular to the radius OP, and makes the angle θ with the vertical PR, so PR≈Δθcosθ.
At any visible scale the result is an approximation; in the limit it is exact. Reasoning like this, with small Δx's and Δy's, is how arc length is developed later, in 18.02 (multivariable calculus).
Worked example
The derivative of sine, checked numerically
Estimate the slope of sinx at x=1 with a difference quotient, Δx=0.001, and compare with cos1.
Difference quotient
(sin1.001−sin1)/0.001≈0.53988.
The formula
cos1≈0.54030. The two agree to within 0.0005, and the agreement improves as Δx shrinks.
Two more general rules, stated at the end of the lecture and proved next time, let us differentiate products and quotients of functions we already know.
The way to remember it, and to prove it, is to change one factor at a time: change u while v stays fixed, then change v while u stays fixed, and add the two effects.
Quotient rule
(vu)′=v2u′v−uv′(v=0)
In words
( u over v ) prime equals the quantity u prime v minus u v prime, all over v squared (v is not equal to 0)
the quantity (u v) the quantity x plus capital delta x, all minus (u v)(x), all over the quantity capital delta x, equals the quantity u of the quantity x plus capital delta x, minus u(x), all over the quantity capital delta x, times v(x) plus u of the quantity x plus capital delta x, the quantity v of the quantity x plus capital delta x, minus v(x), all over the quantity capital delta x, goes to u prime (x)v(x) plus u(x) v prime (x)
using u(x+Δx)→u(x), which holds because u, being differentiable, is continuous (Lecture 2). The notes (PDF p. 4) picture this as a rectangle with sides u and v: increasing v by Δv adds a strip of area uΔv, increasing u adds vΔu, and the small corner ΔuΔv is negligible, so the area changes by about uΔv+vΔu. They also begin the proof of the quotient rule (PDF p. 5), writing u(x+Δx)/v(x+Δx)−u(x)/v(x) over a common denominator; the next lecture completes both proofs.
Worked example
Using the new rules
Differentiate (a) x2sinx, and evaluate it at x=π/2; (b) tanx=sinx/cosx.
(a) Product rule
(x2sinx)′=2xsinx+x2cosx. At x=π/2: 2⋅2π⋅1+4π2⋅0=π≈3.14.
(b) Quotient rule
With u=sinx, v=cosx: (tanx)′=cos2xcosx⋅cosx−sinx⋅(−sinx)=cos2x1, using cos2x+sin2x=1. At x=π/4 this is 1/(1/2)=2.
In the addition formulas, the first of two angles; in the graph, the point where the tangent is drawn; in the cosmology note, the scale factor. Say it: “a”.
How fast one quantity changes compared with another, often time: the change in the first divided by the change in the second. Explained in Rates of change and area under a graph.
The natural unit of angle: the angle whose arc on a circle is as long as the radius. A full turn is 2π radians. Explained in Angles, radians and trigonometry.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
Having a derivative: at that point the graph has a single, definite, non-vertical tangent line, with no corner or break. Explained in The mean value theorem and inequalities.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
A universe with more than the critical density, whose space curves back on itself like a sphere, so it is finite. Explained in Open, closed and flat universes.
The number a(t) that tells how much distances in the universe have stretched: when it doubles, every distance between galaxies doubles. Explained in Towards the universe: an expanding gas cools.
So small that leaving it out makes no noticeable difference to the result.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).