The two fundamental trigonometric limits and why they require radians, the derivatives of sine and cosine proved from them with the addition formula, the other four derivatives by the quotient rule and the co-function pattern, the four-step cycle of higher derivatives, and simple harmonic motion.
Subject: Calculus I · 72 slides · symbolic lesson
Open the interactive version of this deck
Title
Calculus I · Section 3.5
Slopes of the functions that oscillate
Objectives
Sections 3.3 and 3.4 gave you rules for powers, products and quotients. This lesson adds the six trigonometric functions, and with them the mathematics of anything that oscillates.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 241 — learning objectives 3.5.1 to 3.5.3
So far your derivative rules cover powers, and anything you can build from powers with sums, products and quotients. That is a lot of functions, but it leaves out the ones that describe anything that repeats: a spring, a pendulum, a sound wave, alternating current, the tides. Those are written with sine and cosine.
This lesson adds the six trigonometric functions to your toolkit. The first two, sine and cosine, need a genuine proof from the definition of the derivative, and that proof is where the two special limits from Chapter 2 finally earn their keep. The other four then follow from the quotient rule with no new limits at all.
Two surprises are waiting. Sine and cosine turn into each other when you differentiate, so their higher derivatives run round a cycle of four. And every formula in this lesson quietly assumes that angles are measured in radians, which is the real reason calculus uses radians at all.
Warm-up
Discussion prompt
Section 2.3 proved two limits about sine and cosine as the angle h shrinks to zero. Write both down, with their values, before revealing.
Write both limits down before you reveal them. If you can only remember one, that is normal: the first is the famous one, and the second tends to be forgotten because it follows from the first.
The first says that for a small angle measured in radians, the sine of the angle is almost the angle itself, so their ratio heads to one. The second says that cosine of a small angle is so close to one that even after dividing the gap by the angle, what is left shrinks to zero.
Keep both in view. In about ten slides you will see the proof that the derivative of sine is cosine, and those two numbers, one and zero, are the only limits it uses. Everything else in the proof is algebra.
Section
Part 1
Prediction
\[ D(x) = \frac{\sin(x + 0.01) - \sin x}{0.01} \]
Predict first
This difference quotient approximates the slope of sine at every x. If you graphed it, which curve would you expect to see?
Correct: A cosine curve
Why: Sine is steepest going up at 0 (slope 1), flat at its peak (slope 0), steepest going down at pi (slope −1). A function that is 1, then 0, then −1 across those points is cosine.
Commit to an option before revealing. You do not need any new theory to answer this, only the shape of the sine curve and the idea that a derivative is a slope.
Picture sine starting at the origin. It leaves the origin climbing at a steady diagonal, so its slope there is about one. It flattens out at its peak at pi over two, so the slope there is zero. Then it falls, most steeply as it crosses the axis at pi, where the slope is about minus one. Then it flattens again at the trough.
Now list those slopes: one, zero, minus one, zero, one. That is the pattern of cosine at the same angles. The quotient on the slide computes exactly those slopes numerically, so its graph should be a cosine curve. The next slide draws it.
Concept
Figure (svg): The graph of D of x, the difference quotient of sine with h equal to 0.01, drawn from minus 2 pi to 2 pi; a dashed cosine curve lies on top of it so closely that the two cannot be told apart.
With h fixed at one hundredth, the difference quotient is already an excellent slope estimate at every point, and its graph lies on top of the cosine curve.
| x | D(x) | cos x |
|---|---|---|
| 0 | 0.999983 | 1 |
| 1 | 0.536086 | 0.540302 |
| π/2 | −0.005000 | 0 |
| 2 | −0.420686 | −0.416147 |
The gaps are all under one hundredth, and they shrink as h does. That is strong evidence, not yet a proof.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 242 — Figure 3.25
This is the experiment the textbook starts with, and it is worth taking seriously. The formula on the graph is the ordinary difference quotient for sine, with the step h frozen at one hundredth. For each x it measures the slope of a very short secant line, which is almost the slope of the tangent.
Look at how closely the thick curve and the dashed cosine agree: you cannot see daylight between them. The table puts numbers on it. At x equal to one the quotient is 0.5361 and cosine of one is 0.5403; at pi over two the quotient is minus 0.005 and cosine is zero. Every gap is under one hundredth, and it shrinks if you shrink h.
This is strong evidence, not a proof. A picture cannot rule out a tiny difference that only shows up in the fifth decimal place. The proof comes in Part 2, and it confirms what your eyes are telling you.
Concept
Figure (svg): The sine curve from 0 to 2 pi with short tangent segments drawn at seven points; each segment is labelled with its slope: 1, 0.71, 0, minus 0.71, minus 1, 0, 1.
Draw a tangent segment at a few landmark points and read off each slope. The list of slopes is the list of cosine values at the same angles.
\[ \text{slopes: } 1,\; 0.71,\; 0,\; -0.71,\; -1,\; 0,\; 1 \quad = \quad \cos 0,\; \cos\tfrac{\pi}{4},\; \dots,\; \cos 2\pi \]
Here the same idea is done by hand, the way you learned to sketch a derivative in Section 3.2. At each marked point a short tangent segment is drawn, and its slope is written beside it.
Start at the left. At zero the segment rises at a forty-five degree angle, slope one. At pi over four it is a little flatter, about 0.71. At the peak it is flat. Past the peak it tilts down, and at pi it is steepest downward, slope minus one. At the trough it is flat again, and at two pi it is back to slope one.
Now compare each slope with cosine of the same angle. Cosine of zero is one, cosine of pi over four is about 0.71, cosine of pi over two is zero, and so on. The two lists match number for number. The slope of sine at any point is the height of cosine at that point.
Picture it
Figure (svg): Two stacked graphs over 0 to 2 pi: sine on top and cosine below, with dashed vertical lines at pi over 2 and 3 pi over 2 marking where sine has its peak and trough and cosine crosses zero.
Stack the two graphs on one horizontal axis. Every flat point of the upper curve sits over a zero of the lower one; every rising stretch sits over a positive stretch.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, pp. 243-244 — Figure 3.27
This is the textbook's Figure 3.27 idea, redrawn with the two curves on separate axes that share the same horizontal scale, so you can read straight down from one to the other.
Follow the dashed vertical lines. At pi over two sine reaches its peak, and directly below, cosine crosses zero. At three pi over two sine reaches its trough, and again cosine crosses zero. Horizontal tangents on top line up with zeros underneath, exactly as they must if the bottom curve is the derivative of the top one.
Now look between the lines. From zero to pi over two, sine is rising and cosine is above the axis. From pi over two to three pi over two, sine is falling and cosine is below the axis. The sign of the lower curve tells you the direction of the upper curve everywhere. That is the reading skill you will use on the next slide.
Sorting
Sort into buckets
Sort each point of the sine curve by what sine is doing there, reading the sign of cosine.
For each point, find the value of cosine there, or at least its sign, and let that tell you what sine is doing. You are using the derivative to read the behaviour of the original function, which is the central skill of Chapter 4.
The flat points are the easy pair: pi over two and three pi over two, where cosine is zero and sine is at its peak and trough. Zero and seven pi over four both have positive cosine, so sine is climbing there, even though at seven pi over four sine itself is still negative.
That last one is the item to think about. Sine is below the axis at seven pi over four, but it is on its way back up. The height of a function and the direction it is moving are separate questions, and only the derivative answers the second.
Section
Part 2
Concept
Figure (svg): Two panels. Left: the graph of sine h over h for h from minus 11 to 11, a wave that rises to a hollow point at height 1 when h is 0. Right: the graph of cosine h minus 1 over h, passing through a hollow point at the origin.
\[ \lim_{h\to 0}\frac{\sin h}{h} = 1 \qquad \lim_{h\to 0}\frac{\cos h - 1}{h} = 0 \]
| h | sin h / h | (cos h − 1)/h |
|---|---|---|
| 0.5 | 0.958851 | −0.244835 |
| 0.1 | 0.998334 | −0.049958 |
| 0.01 | 0.999983 | −0.005000 |
| 0.001 | 1.000000 | −0.000500 |
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 243 — the two limits and Figure 3.26
Here are the two limits again, now with pictures and numbers. On the left, sine h over h is undefined at zero, which is why the dot is hollow, but the curve heads straight for height one from both sides. On the right, the cosine quotient heads for zero.
The table makes the approach concrete. As h drops from a half to a thousandth, the first column closes in on one and the second closes in on zero, the second one shrinking by a factor of ten each time h does. That pattern is a hint: the cosine quotient behaves like minus a half times h near zero.
Both of these were proved in Section 2.3, the first by squeezing between areas on the unit circle. You will not reprove them here. What matters now is recognising them when they appear inside a bigger expression, which is exactly what the proof of the sine derivative requires.
Concept
The second limit is not a new fact: multiply by the conjugate and it becomes the first limit times something that vanishes.
\[ \frac{\cos h - 1}{h} = \frac{\cos h - 1}{h}\cdot\frac{\cos h + 1}{\cos h + 1} = \frac{\cos^2 h - 1}{h(\cos h + 1)} \]
\[ = \frac{-\sin^2 h}{h(\cos h + 1)} = -\frac{\sin h}{h}\cdot\frac{\sin h}{\cos h + 1} \]
\[ \longrightarrow -(1)\cdot\frac{0}{1 + 1} = 0 \]
So the whole section rests on one geometric fact: the limit of sine h over h is 1.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 243 — recalled from Section 2.3
This slide shows why the second limit is not really a separate fact. The trick is the conjugate: multiply top and bottom by cosine h plus one. The top becomes cos squared h minus one, which by the Pythagorean identity is minus sin squared h.
Now split the result into two factors. One is the first fundamental limit, sine h over h, heading to one. The other is sine h over cosine h plus one, and as h goes to zero that is zero over two, which is zero. One times zero is zero.
So the whole lesson rests on a single geometric fact, the limit of sine h over h. If you ever forget the second limit, you can rebuild it in four lines with this conjugate trick.
Concept
Figure (svg): A unit circle with two radii: one at angle x, whose height is sine x, and one at the larger angle x plus h, whose height is sine of x plus h. Dashed verticals drop from each endpoint to the horizontal axis.
\[ \sin(x + h) = \sin x\cos h + \cos x\sin h \]
In the difference quotient, x is fixed and only h moves. The addition formula splits the new height into a piece carrying sine x and a piece carrying cosine x, each multiplied by something that depends on h alone.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 243 — the angle-sum identity
In the difference quotient for sine, the numerator is sine of x plus h minus sine of x. The picture shows what that is: two points on the unit circle, one at angle x and one a little further round at angle x plus h, and the numerator is the change in height between them.
The trouble is that x and h are tangled together inside one sine. The addition formula untangles them. It writes the new height as sine x times cosine h plus cosine x times sine h. Now every piece is either something that depends on x alone, or something that depends on h alone.
That separation is what makes the limit possible. When h goes to zero, the x pieces just sit there as constants, and the h pieces turn into the two fundamental limits. Watch for exactly that on the next slide.
Worked example
Prove the formula from the definition of the derivative.
Write the definition
Why: The limit of the difference quotient as h goes to zero.
\[ \frac{d}{dx}\sin x = \lim_{h\to 0}\frac{\sin(x+h) - \sin x}{h} \]
Expand with the addition formula
Why: Sine of a sum.
\[ = \lim_{h\to 0}\frac{\sin x\cos h + \cos x\sin h - \sin x}{h} \]
Regroup the sine x terms
Why: Put the two terms carrying sine x together.
\[ = \lim_{h\to 0}\left(\frac{\sin x\cos h - \sin x}{h} + \frac{\cos x\sin h}{h}\right) \]
Factor out sine x and cosine x
Why: They do not depend on h, so they are constants in this limit.
\[ = \lim_{h\to 0}\left(\sin x\cdot\frac{\cos h - 1}{h} + \cos x\cdot\frac{\sin h}{h}\right) \]
Apply the two limits
Why: The first fraction tends to 0, the second to 1.
\[ = \sin x\cdot 0 + \cos x\cdot 1 \]
Simplify
Why: Only the second term survives.
\[ \frac{d}{dx}\sin x = \cos x \]
Check against the numerical quotient
Why: At x equal to 1 the difference quotient with h one hundredth gave 0.5361, and the formula gives cos 1, which is 0.5403; at x equal to 0 both are 1.
\[ D(1) = 0.5361 \approx 0.5403 = \cos 1 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, pp. 242-243 — Theorem 3.8 and its proof
Read the proof one line at a time and make sure you could justify each move. The first line is just the definition of the derivative. The second substitutes the addition formula into the numerator.
The third and fourth lines are the only creative step. You gather the two terms that contain sine x, and factor sine x out of them, so that what is left is exactly cosine h minus one, over h. The remaining term has cosine x times sine h over h. Each fundamental limit now appears once, cleanly.
Remember that the limit is taken as h goes to zero with x held fixed, so sine x and cosine x behave as constants and come straight through the limit. The first limit is zero and kills the first term, the second is one, and cosine x is left standing.
The check compares the proved formula with the numerical experiment from Part 1. At x equal to one the difference quotient with h one hundredth gave 0.5361, and cosine of one is 0.5403. The small gap is the error from not letting h go all the way to zero.
Notation
Annotate
On: \( \sin x\cdot\frac{\cos h - 1}{h} + \cos x\cdot\frac{\sin h}{h} \)
Step through the notes and connect each piece to its fate in the limit. This one line is the heart of the proof, so it is worth knowing what every symbol in it is doing.
The two coefficients, sine x and cosine x, do not involve h. While h shrinks they are just numbers, whatever x happens to be. The two fractions involve only h, and they are exactly the two fundamental limits.
So the limit of the whole expression is sine x times zero plus cosine x times one. The zero wipes out the first term entirely, which is why sine does not appear in its own derivative. The last note is the one to hold onto: the second fraction tends to one only in radians. That is the single place in the proof where the unit of angle matters.
Worked example
The same proof with the cosine addition formula, which carries a minus sign.
\[ \cos(x + h) = \cos x\cos h - \sin x\sin h \]
Write the definition and expand
Why: Substitute the addition formula into the numerator.
\[ \frac{d}{dx}\cos x = \lim_{h\to 0}\frac{\cos x\cos h - \sin x\sin h - \cos x}{h} \]
Regroup and factor
Why: Collect the cosine x terms; pull the constants out.
\[ = \lim_{h\to 0}\left(\cos x\cdot\frac{\cos h - 1}{h} - \sin x\cdot\frac{\sin h}{h}\right) \]
Apply the two limits
Why: Zero and one again.
\[ = \cos x\cdot 0 - \sin x\cdot 1 \]
Simplify
Why: The surviving term keeps its minus.
\[ \frac{d}{dx}\cos x = -\sin x \]
Check with the graph
Why: Cosine falls between 0 and pi, where sine is positive, so its slope must be negative there; at pi over 2 cosine falls at slope minus one.
\[ \left.\frac{d}{dx}\cos x\right|_{x=\pi/2} = -\sin\frac{\pi}{2} = -1 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 249 — Exercise 208; Theorem 3.8, p. 242
The textbook proves only the sine formula and leaves cosine to this exercise, because the argument is the same with one change. The cosine addition formula has a minus sign in the middle, where the sine formula has a plus.
Follow that minus sign through the proof. After regrouping, you have cosine x times the cosine quotient, minus sine x times the sine quotient. The limits are zero and one as before, so the first term vanishes and you are left with minus sine x. The minus in the answer comes straight from the minus in the identity.
The check reads the answer off the graph. Cosine falls all the way from zero to pi, and sine is positive on that stretch, so minus sine is negative there, as a falling function's slope must be. At pi over two cosine crosses the axis heading down at its steepest, and minus sine of pi over two is exactly minus one.
Fill the middle
Fill in the blanks
\lim_0\left(\cos x\cdot\frac1___ - \sin x\cdot\frac______\right) = \cos x\cdot ___ - \sin x\cdot ___
Why: The cosine-minus-one fraction tends to 0 and the sine fraction tends to 1, leaving minus sine x.
Fill in each blank with the value of the limit sitting directly above it. You are not computing anything new, only recognising the two fundamental limits in place.
The first blank multiplies cosine x, and it holds the limit of cosine h minus one over h, which is zero. The second multiplies sine x, and it holds the limit of sine h over h, which is one.
Then the right-hand side is cosine x times zero minus sine x times one, which is minus sine x. If you put one in the first blank and zero in the second, you swapped the two limits, and you would have proved that the derivative of cosine is cosine, which the graph immediately contradicts.
Intuition
Figure (svg): Two panels of the same sine curve. Left: the horizontal axis is in radians from 0 to 2 pi and the tangent at the origin, slope 1, is drawn. Right: the axis is in degrees from 0 to 360 and the same tangent line now has slope 0.0175 per degree.
Nothing in the proof mentions units, except the first limit. It equals 1 only because the sector area in the squeeze argument is half the angle, which holds for radians. Measure in degrees and the angle number is 180 over pi times bigger, so every slope shrinks by that factor.
\[ \frac{d}{dx}\sin(x^{\circ}) = \frac{\pi}{180}\cos(x^{\circ}) \approx 0.0175\cos(x^{\circ}) \]
Stewart, Calculus: Early Transcendentals 8e, §3.3 Derivatives of Trigonometric Functions §3.3, pp. 190-192 — the radian requirement
Both panels show the very same sine wave. The only difference is the label on the horizontal axis: radians on the left, degrees on the right. Yet the tangent line at the origin has slope one on the left and about 0.0175 on the right.
The reason is that slope is rise over run, and the run is measured in whatever unit the axis uses. One radian is about 57.3 degrees, so the same rise is spread over 57.3 times as many units when you count in degrees. Every slope shrinks by that factor, which is pi over 180.
Go back to the proof and ask where this enters. Only in the first fundamental limit, which equals one because the sector area in the squeeze argument is half the angle, a formula true only in radians. In degrees that limit is pi over 180, and the factor rides all the way into the derivative. Radians are the one unit in which the derivative of sine is exactly cosine, with no stray constant, and that is why calculus uses them.
Estimation
Predict first
A calculator in degree mode estimates the slope of y = sin x at x = 0 from the quotient sin(0.01)/0.01. Roughly what does it report?
Correct: 0.0175
Why: In degree mode, sin(0.01) is the sine of one hundredth of a degree, about 0.000175, so the quotient is about 0.0175, which is pi over 180. The shape of sine is the same; only the unit on the axis has changed, and it stretches the curve so that its slope is 57.3 times smaller.
\[ \frac{\sin(0.01^{\circ})}{0.01} = 0.017453 \approx \frac{\pi}{180} \]
Choose before revealing. This is the practical face of the previous slide, and a mistake that costs real marks on calculator questions.
In degree mode the calculator reads 0.01 as a hundredth of a degree, which is a tiny angle, about 0.000175 radians. Its sine is about the same, 0.000175, and dividing by 0.01 gives about 0.0175. That is pi over 180, not one.
So a degree-mode calculator reports slopes that are 57.3 times too small, and the answer to any rate problem built on it is wrong by that factor. Whenever a problem involves a derivative of a trigonometric function, check the mode before you press anything.
Trap
A slip made on almost every first test:
\[ \frac{d}{dx}\sin x = -\cos x \]
\[ \frac{d}{dx}\cos x = \sin x \]
Wrong twice: the signs have swapped places.
Check against the picture at x equal to 0: sine is climbing, so its slope must be positive, and cos 0 is 1. Cosine is at its peak there, and just past the peak it is falling, so its derivative carries the minus.
\[ (\sin x)' = \cos x \]
\[ (\cos x)' = -\sin x \]
This is the most common error in the whole section, because the two formulas look so alike that the minus sign drifts to the wrong one. Memorising harder is not the cure. Checking against the graph is.
At zero, sine is climbing through the origin, so its derivative must be positive, and cosine of zero is one: no minus on the sine formula. Cosine sits at its peak at zero and is about to fall, so just to the right its derivative must be negative, and minus sine is negative there. The minus belongs to cosine.
A second anchor: the co-functions, cosine, cotangent and cosecant, are exactly the ones whose derivatives carry a minus sign. Cosine is a co-function, so it gets the minus.
Section
Part 3
Worked example
Find the derivative of the product below.
\[ f(x) = 5x^3\sin x \]
Apply the product rule
Why: Derivative of the first times the second, plus the derivative of the second times the first.
\[ f'(x) = \frac{d}{dx}(5x^3)\cdot\sin x + \frac{d}{dx}(\sin x)\cdot 5x^3 \]
Differentiate each factor
Why: Power rule on the first; Theorem 3.8 on the second.
\[ f'(x) = 15x^2\cdot\sin x + \cos x\cdot 5x^3 \]
Tidy up
Why: Coefficients and powers in front of the trig factor.
\[ f'(x) = 15x^2\sin x + 5x^3\cos x \]
Check numerically at x equal to 1
Why: A symmetric difference quotient of the original function at 1 gives 15.3236, the same as the formula.
\[ f'(1) = 15\sin 1 + 5\cos 1 \approx 15.3236 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 244 — Example 3.39
Nothing about the product rule changes because one factor is trigonometric. You differentiate the first factor and keep the second, then keep the first and differentiate the second, and add.
The only new ingredient is the derivative of sine, which is cosine. The power rule gives fifteen x squared for the other factor. The last step just tidies the order so the polynomial coefficients sit in front of the trig functions, which is the conventional way to write it.
The check is a habit worth building now, while the functions are still easy to evaluate. Compute the formula at x equal to one, and separately compute a difference quotient of the original function at one with a tiny step. Both give 15.3236. When two independent calculations agree to four decimal places, you can trust your derivative.
Worked example
\[ f(x) = \sin x\cos x \]
Apply the product rule
Why: Both factors are trigonometric.
\[ f'(x) = (\cos x)(\cos x) + (\sin x)(-\sin x) \]
Multiply out
Why: Two squares, one with a minus.
\[ f'(x) = \cos^2 x - \sin^2 x \]
Check with a double-angle identity
Why: Sine x cosine x is half of sine 2x, whose derivative by the chain rule of Section 3.6 is cosine 2x, and the double-angle formula says that equals cos squared minus sin squared.
\[ \tfrac12\sin 2x \;\Longrightarrow\; f'(x) = \cos 2x = \cos^2 x - \sin^2 x \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 244 — Checkpoint 3.25
Here both factors are trigonometric, so the product rule calls on both halves of Theorem 3.8. The derivative of sine is cosine, and multiplying by the other factor, cosine, gives cosine squared. The derivative of cosine is minus sine, and multiplying by sine gives minus sine squared.
The answer, cos squared minus sin squared, may look familiar from trigonometry: it is one form of the double-angle formula for cosine of 2x.
That gives a genuinely independent check. Sine x cosine x is exactly half of sine 2x. In the next section the chain rule will tell you the derivative of that is cosine 2x, and the double-angle identity says cosine 2x equals cos squared minus sin squared. Two routes, one answer.
Worked example
\[ g(x) = \frac{\cos x}{4x^2} \]
Apply the quotient rule
Why: Bottom times derivative of top, minus top times derivative of bottom, over bottom squared.
\[ g'(x) = \frac{(-\sin x)(4x^2) - (\cos x)(8x)}{(4x^2)^2} \]
Expand the denominator
Why: Four squared is sixteen.
\[ g'(x) = \frac{-4x^2\sin x - 8x\cos x}{16x^4} \]
Cancel the common factor 4x
Why: It divides both terms on top and the bottom.
\[ g'(x) = \frac{-x\sin x - 2\cos x}{4x^3} \]
Check numerically at x equal to 1
Why: The formula gives minus sin 1 minus 2 cos 1, over 4, about minus 0.4805; a difference quotient of g at 1 gives the same.
\[ g'(1) = \frac{-\sin 1 - 2\cos 1}{4} \approx -0.4805 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 244 — Example 3.40
The quotient rule has a fixed order, and the order matters because of the subtraction. Bottom times the derivative of the top, minus top times the derivative of the bottom, all over the bottom squared.
Here the derivative of the top is minus sine x and the derivative of the bottom is eight x. Once you have written the first line correctly, the rest is simplification: square the four x squared to get sixteen x to the fourth, then notice that four x divides both terms on top and the bottom, and cancel it.
Do not skip the cancellation. An unsimplified derivative is not wrong, but it is harder to use and harder to check. The check at x equal to one gives minus 0.4805 from the formula and the same from a difference quotient. The negative sign makes sense: near x equal to one both the top and one over the bottom are decreasing.
Error analysis
Annotate
On: \( \frac{d}{dx}\frac{\cos x}{4x^2} = \frac{8x\cos x - (-\sin x)(4x^2)}{(4x^2)^2} \)
Try to spot what went wrong before you reveal the notes. Every individual derivative in the line is correct: eight x, and minus sine x. The mistake is in where they are placed.
The numerator starts with the derivative of the bottom, eight x, times the top. The quotient rule starts with the bottom times the derivative of the top. Because the two terms are subtracted, swapping them multiplies the whole answer by minus one.
The quick test in the second note is the one to remember. Plug in a convenient value and ask whether the sign is believable. Here the function is decreasing near one, so its derivative must be negative, and this version gives a positive number. A sign test like that catches a reversed quotient rule in seconds.
Worked example
\[ f(x) = \frac{x}{\cos x} \]
Apply the quotient rule
Why: The derivative of the top is 1, of the bottom minus sine x.
\[ f'(x) = \frac{(1)(\cos x) - x(-\sin x)}{\cos^2 x} \]
Clear the double negative
Why: Minus times minus.
\[ f'(x) = \frac{\cos x + x\sin x}{\cos^2 x} \]
Check at x equal to 0
Why: The formula gives 1 over 1. Near zero, x over cos x is almost x, whose slope is 1.
\[ f'(0) = \frac{1 + 0}{1} = 1 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 244 — Checkpoint 3.26
Another quotient, and this time the top is just x, whose derivative is one. The derivative of the bottom is minus sine x, so the second term of the numerator is x times minus sine x, subtracted.
Subtracting a negative makes a positive, so the numerator becomes cosine x plus x sine x. The bottom is cos squared x. You could rewrite the answer using secant and tangent, but the form on the slide is perfectly good.
The check at zero uses a simple idea: near zero, cosine is almost one, so x over cosine x is almost just x, and its slope should be almost one. The formula gives exactly one at zero, and a difference quotient agrees.
Concept
If s(t) is a particle's position, its velocity is the derivative. The particle is at rest at the instants the velocity is zero, where the position graph has a horizontal tangent.
\[ v(t) = s'(t), \qquad \text{at rest} \iff v(t) = 0 \]
With trigonometric positions, the equation for rest is a trigonometric equation, usually with several solutions in the time interval. Find all of them.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 245 — Example 3.41
This is the first application, and it uses nothing more than what the derivative means. If s of t is the position of a particle moving along a line, its velocity is the derivative, and the particle is momentarily at rest exactly when that velocity is zero.
On the position graph those instants are the horizontal tangents: the turning points where the particle stops before reversing, or pauses before carrying on.
When the position involves sine or cosine, setting the velocity to zero gives a trigonometric equation. Trigonometric equations usually have more than one solution in an interval, and a calculator's inverse function will only ever give you one. Finding all of them is the part of these problems that most often goes wrong, so the next slide slows it down.
Step zero
\[ 2\cos t - 1 = 0, \qquad 0 \le t \le 2\pi \]
Discussion prompt
Before you solve: how many solutions should there be in this interval, and in which quadrants? Say why before revealing.
Answer the question before solving anything. The point of this pause is to know how many answers to expect, so that you notice if you have found too few.
Cosine is one half at pi over three, in the first quadrant. But cosine is positive in the fourth quadrant too, and by symmetry it is one half again at two pi minus pi over three, which is five pi over three. Across one full turn, cosine takes every value strictly between minus one and one exactly twice.
A calculator's inverse cosine will hand you pi over three and stop. If you had not predicted two solutions, you would have missed the second rest time, and the particle's motion would make no sense: it has to stop twice to turn round twice.
Worked example
\[ s(t) = 2\sin t - t, \qquad 0 \le t \le 2\pi \]
Differentiate the position
Why: Theorem 3.8 on the first term, power rule on the second.
\[ v(t) = s'(t) = 2\cos t - 1 \]
Set the velocity to zero
Why: Rest means zero velocity.
\[ 2\cos t - 1 = 0 \]
Isolate cosine
Why: Add one, divide by two.
\[ \cos t = \tfrac12 \]
Solve on the interval
Why: One angle in the first quadrant, one in the fourth.
\[ t = \frac{\pi}{3} \quad\text{and}\quad t = \frac{5\pi}{3} \]
Figure (svg): The position curve s of t equals 2 sine t minus t for t from 0 to 2 pi. It rises to a peak at t equal to pi over 3, falls to a trough at 5 pi over 3, then rises again; short horizontal tangent segments mark both points.
Check by substituting
Why: Cosine of both angles is one half, so the velocity vanishes at each.
\[ v\left(\tfrac{\pi}{3}\right) = 2\cdot\tfrac12 - 1 = 0, \quad v\left(\tfrac{5\pi}{3}\right) = 2\cdot\tfrac12 - 1 = 0 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 245 — Example 3.41
Follow the recipe from the last two slides. Differentiate the position to get the velocity, two cosine t minus one. Set that equal to zero, isolate cosine, and solve on the given interval.
The interval runs from zero to two pi, one full turn, so the step-zero reasoning says to expect two solutions, one in the first quadrant and one in the fourth. They are pi over three and five pi over three.
The graph shows what these times mean. The position rises to a peak at pi over three, where the particle stops and turns back, then falls to a trough at five pi over three, where it stops and turns again. The horizontal tangent segments are exactly the zero-velocity instants.
The check substitutes both times back into the velocity. Cosine of both is one half, so two times one half minus one is zero at each. Always substitute back: it catches an angle taken from the wrong quadrant.
Worked example
\[ s(t) = \sqrt3\,t + 2\cos t, \qquad 0 \le t \le 2\pi \]
Differentiate
Why: The first term has constant slope root three.
\[ v(t) = \sqrt3 - 2\sin t \]
Set it to zero and isolate sine
Why: Rest means zero velocity.
\[ \sin t = \frac{\sqrt3}{2} \]
Solve on the interval
Why: Sine is positive in the first and second quadrants.
\[ t = \frac{\pi}{3} \quad\text{and}\quad t = \frac{2\pi}{3} \]
Figure (svg): The velocity curve v of t equals root 3 minus 2 sine t for t from 0 to 2 pi. It dips below the t-axis between pi over 3 and 2 pi over 3, crossing zero at both ends of that interval.
Check by substituting
Why: Sine of both angles is root three over two.
\[ v\left(\tfrac{\pi}{3}\right) = \sqrt3 - 2\cdot\tfrac{\sqrt3}{2} = 0 = v\left(\tfrac{2\pi}{3}\right) \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 245 — Checkpoint 3.27
The same procedure, with the roles of sine and cosine swapped. The derivative of root three times t is just root three, a constant, and the derivative of two cosine t is minus two sine t.
Setting the velocity to zero gives sine t equal to root three over two. Sine is positive in the first and second quadrants, so there are two solutions: pi over three and two pi over three.
The picture shows the velocity itself this time. It sits well above zero most of the time, but dips just below the axis between the two solutions. So the particle moves forward, stops, backs up a little, stops again, and then carries on forward. The shaded dip is the short reversal.
Section
Part 4
Worked example
\[ f(x) = \tan x = \frac{\sin x}{\cos x} \]
Apply the quotient rule
Why: Top is sine, bottom is cosine.
\[ f'(x) = \frac{\cos x\cdot\cos x - \sin x\cdot(-\sin x)}{(\cos x)^2} \]
Simplify the numerator
Why: Minus times minus is plus.
\[ f'(x) = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} \]
Use the Pythagorean identity
Why: Cos squared plus sin squared is one.
\[ f'(x) = \frac{1}{\cos^2 x} \]
Rewrite with secant
Why: Secant is one over cosine.
\[ f'(x) = \sec^2 x \]
Check numerically at x equal to 1
Why: A difference quotient of tangent at 1 gives 3.4255, and one over cos squared of 1 is 3.4255.
\[ \sec^2 1 = \frac{1}{\cos^2 1} \approx 3.4255 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 245 — Example 3.42
There is no need for another limit proof. Tangent is sine over cosine, and you already know how to differentiate a quotient and how to differentiate sine and cosine.
The quotient rule gives cosine times cosine minus sine times minus sine, over cosine squared. The two minus signs combine into a plus, and the numerator becomes cos squared plus sin squared. That is the Pythagorean identity, so the numerator is just one.
What is left is one over cos squared, which is secant squared. Notice how the identity did the heavy lifting: without it the answer would look much messier. Whenever you differentiate a trig quotient, look for cos squared plus sin squared in the result.
The numerical check at x equal to one confirms it: the formula and a difference quotient both give 3.4255.
Picture it
Figure (svg): The graph of tangent x on the interval from minus pi over 2 to pi over 2, rising from the lower asymptote to the upper one, together with the graph of secant squared x, a U-shaped curve whose lowest value is 1 at x equal to 0.
Secant squared is a square of a real number whose size is at least one, so the slope of tangent is never less than one. Tangent rises across every interval where it is defined, gently at the centre and ever more steeply toward the asymptotes.
Look at the two curves together. Tangent rises from the bottom asymptote to the top one across the interval, and its derivative, secant squared, is the U-shaped curve drawn over it.
Secant squared is one over cos squared, and cos squared is never more than one. So secant squared is never less than one: the horizontal line at height one is its floor, touched only at x equal to zero. That means tangent's slope is at least one everywhere, gentlest at the centre and growing without bound as you approach an asymptote.
You can see both facts on the tangent curve. Through the origin it rises at exactly forty-five degrees, slope one, and near the asymptotes it becomes almost vertical.
Counterexample
\[ \frac{d}{dx}\tan x = \sec^2 x > 0 \quad\text{for every } x \text{ in the domain} \]
Discussion prompt
Someone concludes that tangent is increasing on its whole domain, so a larger input always gives a larger output. Find two inputs that break the claim, and say what the claim forgot.
Look for a pair of inputs before revealing, and think about what the graph of tangent looks like over more than one period.
Tangent of pi over four is one. Tangent of three pi over four is minus one. The larger input produced the smaller output, even though the derivative is positive at every point of the domain. So the claim is false.
The flaw is the gap in the domain. Between pi over four and three pi over four sits pi over two, where tangent has a vertical asymptote and is not defined at all. A positive derivative forces a function to increase only across an interval with no gaps. Tangent increases on each separate branch, but it jumps from very large positive values back to very large negative values at every asymptote.
Worked example
\[ f(x) = \cot x = \frac{\cos x}{\sin x} \]
Apply the quotient rule
Why: Top is cosine, bottom is sine.
\[ f'(x) = \frac{(-\sin x)\sin x - \cos x\cdot\cos x}{\sin^2 x} \]
Factor out the minus sign
Why: Both terms on top are negative.
\[ f'(x) = \frac{-(\sin^2 x + \cos^2 x)}{\sin^2 x} \]
Use the Pythagorean identity
Why: The bracket is one.
\[ f'(x) = \frac{-1}{\sin^2 x} \]
Rewrite with cosecant
Why: Cosecant is one over sine.
\[ f'(x) = -\csc^2 x \]
Check the sign on the graph
Why: Cotangent falls across every interval between its asymptotes, so its derivative must be negative; a difference quotient at 1 gives minus 1.4123, matching.
\[ -\csc^2 1 = -\frac{1}{\sin^2 1} \approx -1.4123 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 245 — Checkpoint 3.28
Cotangent is cosine over sine, the reciprocal of tangent, so the quotient rule works exactly as it did for tangent. The differences are in the signs.
The derivative of the top is minus sine, which multiplied by the bottom gives minus sin squared. Then you subtract the top times the derivative of the bottom, which is cos squared. Both terms are negative, so factor out a minus sign and the bracket is the Pythagorean identity again, equal to one.
The result is minus one over sin squared, which is minus cosecant squared. The minus sign fits the graph: cotangent falls across every interval between its asymptotes, so its derivative must be negative everywhere. At x equal to one the formula gives minus 1.4123, and a difference quotient agrees.
Worked example
\[ f(x) = \sec x = \frac{1}{\cos x} \]
Apply the quotient rule
Why: The top is the constant 1, whose derivative is 0.
\[ f'(x) = \frac{0\cdot\cos x - 1\cdot(-\sin x)}{\cos^2 x} \]
Simplify the numerator
Why: Only the second term remains.
\[ f'(x) = \frac{\sin x}{\cos^2 x} \]
Split the fraction
Why: One cosine to each factor.
\[ f'(x) = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} \]
Name the factors
Why: Secant times tangent.
\[ f'(x) = \sec x\tan x \]
Check numerically at x equal to 1
Why: A difference quotient of secant at 1 gives 2.8825, and sec 1 times tan 1 is 2.8825.
\[ \sec 1\tan 1 = \frac{\tan 1}{\cos 1} \approx 2.8825 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 249 — Exercise 206
Secant is one over cosine, so the top of the quotient is the constant one, whose derivative is zero. That makes the first term of the quotient rule vanish.
What survives is minus one times minus sine, which is plus sine, over cos squared. The last two steps are rewriting, not calculus. Split cos squared into two copies of cosine and give one to each factor: one over cosine is secant, sine over cosine is tangent.
So the derivative of secant is secant times tangent. At x equal to one that is about 2.8825, and a difference quotient of secant at one agrees. It is worth doing this derivation once yourself, because it shows that the table on the next slide is not something to memorise blindly.
Concept
| function | derivative | function | derivative |
|---|---|---|---|
| sin x | cos x | cos x | −sin x |
| tan x | sec² x | cot x | −csc² x |
| sec x | sec x tan x | csc x | −csc x cot x |
Cosecant follows exactly as secant did: the quotient rule on one over sine gives minus cosine over sine squared, which splits into minus cosecant times cotangent.
\[ \frac{d}{dx}\csc x = \frac{-\cos x}{\sin^2 x} = -\csc x\cot x \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 246 — Theorem 3.9, equations 3.13 to 3.16
Here is the whole family in one table, arranged so that each function sits beside its co-function. The left column is sine, tangent, secant; the right column is cosine, cotangent, cosecant.
You have now derived five of the six. The sixth, cosecant, goes exactly like secant: one over sine, quotient rule, and the derivative of sine is cosine, so you get minus cosine over sin squared. Split it into minus one over sine times cosine over sine, which is minus cosecant times cotangent.
Look down the right column: every entry has a minus sign. Look across each row: each right-hand entry is the left-hand one with every function replaced by its co-function. Those two observations are the whole memory aid, and the next slide spells them out.
Notation
Annotate
On: \( \frac{d}{dx}\csc x = -\csc x\cot x \quad\longleftrightarrow\quad \frac{d}{dx}\sec x = \sec x\tan x \)
The line on the slide pairs the secant formula with the cosecant formula. Step through the notes and check each claim against the table on the previous slide.
The first note is the swap: replace secant by cosecant and tangent by cotangent, and the secant formula becomes the cosecant formula except for the sign. The same swap turns the tangent formula into the cotangent formula, and the sine formula into the cosine formula.
The second note is the sign: all three co-functions pick up a minus. The third note explains why, and you will be able to prove it in the next section. The co-function of x is the original function of the complementary angle, pi over two minus x, and differentiating that minus x brings out a factor of minus one. So you only need to learn three formulas; the other three come free.
Matching
Match the pairs
Why: Learn the tan and sec rows; the cot and csc rows are the same with every function swapped for its co-function and a minus sign in front.
Match each function before checking, and try to do it from the pattern rather than from memory: learn the tangent and secant rows, then produce the other two by the co-function swap and a minus sign.
Tangent goes to secant squared. Swap to co-functions and add the minus: cotangent goes to minus cosecant squared. Secant goes to secant tangent; swap and add the minus: cosecant goes to minus cosecant cotangent.
If you mixed up the two squared answers, anchor them with the graphs. Tangent is always increasing, so its derivative is always positive, and secant squared is the positive one. Cotangent is always decreasing, so its derivative is the negative one.
Worked example
Find the line tangent to the graph of cotangent at x equal to pi over 4.
\[ f(x) = \cot x, \qquad x = \frac{\pi}{4} \]
Find the point
Why: Cotangent of pi over 4 is 1.
\[ f\left(\tfrac{\pi}{4}\right) = \cot\tfrac{\pi}{4} = 1 \;\Longrightarrow\; \left(\tfrac{\pi}{4}, 1\right) \]
Differentiate
Why: From the table.
\[ f'(x) = -\csc^2 x \]
Evaluate the slope
Why: Cosecant of pi over 4 is root 2, and its square is 2.
\[ f'\left(\tfrac{\pi}{4}\right) = -\left(\sqrt2\right)^2 = -2 \]
Write the point-slope form
Why: Point and slope.
\[ y - 1 = -2\left(x - \tfrac{\pi}{4}\right) \]
Solve for y
Why: Distribute the minus two and add one.
\[ y = -2x + 1 + \frac{\pi}{2} \]
Figure (svg): The graph of cotangent x for x between 0 and pi, falling from the left asymptote to the right one, with the tangent line y equals minus 2x plus 1 plus pi over 2 touching it at the point pi over 4, 1.
Check that the line passes through the point
Why: Put x equal to pi over 4 into the final line.
\[ -2\cdot\tfrac{\pi}{4} + 1 + \tfrac{\pi}{2} = -\tfrac{\pi}{2} + 1 + \tfrac{\pi}{2} = 1 \;\checkmark \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 246 — Example 3.43
Every tangent-line problem needs the same two things: a point and a slope. The point comes from the function itself; the slope comes from the derivative evaluated at the same x.
Cotangent of pi over four is one, so the point is pi over four, one. The derivative of cotangent is minus cosecant squared. Cosecant of pi over four is one over sine of pi over four, which is root two, and root two squared is two, so the slope is minus two.
Point-slope form then gives the line, and distributing puts it into slope-intercept form: minus two x plus one plus pi over two. The picture shows the line resting against the curve at the marked point, falling with it.
The check substitutes x equal to pi over four into the final line. The pi over two terms cancel and you get one, so the line passes through the point of tangency, as it must.
Worked example
\[ f(x) = \csc x + x\tan x \]
Apply the sum rule
Why: Differentiate term by term.
\[ f'(x) = \frac{d}{dx}(\csc x) + \frac{d}{dx}(x\tan x) \]
First term from the table
Why: Cosecant carries a minus.
\[ \frac{d}{dx}\csc x = -\csc x\cot x \]
Product rule on the second
Why: The derivative of x is 1.
\[ \frac{d}{dx}(x\tan x) = (1)(\tan x) + (\sec^2 x)(x) \]
Assemble
Why: Add the pieces.
\[ f'(x) = -\csc x\cot x + \tan x + x\sec^2 x \]
Check numerically at x equal to 1
Why: The formula gives 4.2199, and a difference quotient of the original function at 1 gives 4.2199.
\[ f'(1) = -\csc 1\cot 1 + \tan 1 + \sec^2 1 \approx 4.2199 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 246 — Example 3.44
Look at the structure first. The function is a sum of two terms, so differentiate them separately. The first is a single trig function; the second is a product of x and tangent.
The first term comes straight from the table, and it is a co-function, so it carries a minus: minus cosecant cotangent. The second needs the product rule: the derivative of x is one, times tangent, plus secant squared times x.
Put the pieces together and you have the answer, which does not simplify further in any useful way. The numerical check at x equal to one gives 4.2199 from the formula and the same from a difference quotient of the original function. That kind of check is especially valuable with three terms, where a single dropped sign is easy to miss.
Fill the middle
\[ f(x) = 2\tan x - 3\cot x \]
Fill in the blanks
f'(x) = 2\,\sec^2 x - 3\left(-\csc^2 x\right) = 2\sec^2 x + 3\csc^2 x
Why: Tangent differentiates to secant squared; cotangent to minus cosecant squared, and minus 3 times that minus becomes plus 3 cosecant squared.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 247 — Checkpoint 3.29
Fill in the two derivatives from the table. The constant multiples just ride along, which is the constant multiple rule from Section 3.3.
The first blank is the derivative of tangent, secant squared. The second is the derivative of cotangent, minus cosecant squared, which you should type with its minus sign.
Then look at the final form. Three times a minus becomes a subtraction of a negative, which turns into plus three cosecant squared. So both terms of the derivative are positive. That fits the graphs: two tangent x is increasing, and subtracting three cotangent x means subtracting something decreasing, which also increases.
Prediction
\[ f(x) = \tan x, \qquad x = \frac{\pi}{6} \]
Predict first
What is the slope of the tangent line to y = tan x at x = π/6?
Correct: 4/3
Why: The slope is sec²(π/6). cos(π/6) = √3/2, so sec(π/6) = 2/√3 and its square is 4/3. The option 1/√3 is tan(π/6) itself, the height, not the slope; 2/√3 forgot to square.
\[ \sec^2\frac{\pi}{6} = \left(\frac{2}{\sqrt3}\right)^2 = \frac43 \]
Make your choice before revealing. The distractors are built from the most common slips, so if you chose one of them, find out which slip it was.
The slope of the tangent line is the derivative, secant squared, evaluated at pi over six. Cosine of pi over six is root three over two, so secant is two over root three, and squaring gives four thirds.
One over root three is tangent of pi over six, the height of the curve rather than its slope, a mix-up worth watching for in every tangent-line problem. Two over root three is secant without the square. And three quarters is cos squared instead of its reciprocal.
Trap
Secant is one over cosine, so it is tempting to write:
\[ \frac{d}{dx}\frac{1}{\cos x} = \frac{1}{-\sin x} \]
Wrong. The derivative of a reciprocal is not the reciprocal of the derivative.
Use the quotient rule (or the table). At x equal to 0 the wrong version is undefined, while secant is smooth and flat at its lowest point there, so its slope is 0.
\[ (\sec x)' = \sec x\tan x \]
\[ (\sec x)'\big|_{0} = 1\cdot 0 = 0 \]
The tempting line treats differentiation as if it passed through a reciprocal: the derivative of one over cosine would be one over the derivative of cosine. It does not work that way, just as the derivative of a product is not the product of the derivatives.
A quick test exposes it. At zero, the wrong answer is one over minus sine of zero, which is one over zero, undefined. But secant is perfectly smooth at zero: it is one over cosine, which has its lowest value there, one, with a horizontal tangent. So the true derivative at zero must be zero, and secant times tangent at zero is one times zero, which is zero.
When you meet a reciprocal, use the quotient rule with one on top, or the table. Both give secant tangent.
Section
Part 5
Worked example
\[ y = \sin x \]
First derivative
Why: Theorem 3.8.
\[ \frac{dy}{dx} = \cos x \]
Second derivative
Why: Differentiate cosine.
\[ \frac{d^2y}{dx^2} = -\sin x \]
Third derivative
Why: The constant minus one rides along.
\[ \frac{d^3y}{dx^3} = -\cos x \]
Fourth derivative
Why: Minus times minus sine.
\[ \frac{d^4y}{dx^4} = \sin x \]
Figure (svg): A cycle diagram: sine x at the top, cosine x on the right, minus sine x at the bottom, minus cosine x on the left, with arrows labelled d by dx going clockwise from each to the next and back to sine x.
Check the fourth against the second
Why: The fourth derivative is the second derivative of the second derivative: two more steps from minus sine lands on sine.
\[ \frac{d^2}{dx^2}(-\sin x) = -(-\sin x) = \sin x \;\checkmark \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 247 — Example 3.45
Each step is just the sine or cosine rule applied once more, with any constant factor carried along. Sine goes to cosine, cosine to minus sine, minus sine to minus cosine, and minus cosine back to sine.
The diagram arranges those four functions around a circle, with one derivative per arrow. Going round once takes four arrows and brings you back to the start. That is why higher derivatives of sine and cosine never become more complicated, unlike a polynomial whose derivatives eventually vanish, or a product whose derivatives keep growing more terms.
The check uses the cycle in a different way: the fourth derivative is the second derivative applied twice. The second derivative of sine is minus sine, and the second derivative of that is minus minus sine, which is sine. Same answer by a different route.
Concept
Since four derivatives bring sine back to itself, only the remainder when the order is divided by four matters.
| remainder of n ÷ 4 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| nth derivative of sin x | sin x | cos x | −sin x | −cos x |
| nth derivative of cos x | cos x | −sin x | −cos x | sin x |
\[ \frac{d^{4n}}{dx^{4n}}\sin x = \sin x, \qquad \frac{d^{4n+1}}{dx^{4n+1}}\sin x = \cos x \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 247 — analysis of Example 3.45
Once you see the cycle, you never need to take derivatives one at a time. Four derivatives bring you back to the start, so any number of complete trips round the cycle can be thrown away, and only the leftover steps matter.
The leftover is the remainder when the order is divided by four. The table lists the four possible remainders and what each one gives for sine and for cosine. Read it like a lookup table: find the remainder, read the entry.
The two formulas at the bottom are the textbook's way of writing the first two columns. Any multiple of four returns sine to itself, and one more than a multiple of four gives cosine. The rest of the table follows the same way.
Worked example
\[ \frac{d^{74}}{dx^{74}}\sin x \]
Divide the order by four
Why: Eighteen full turns of the cycle, two steps left over.
\[ 74 = 4(18) + 2 \]
Discard the full turns
Why: Seventy-two derivatives return sine to sine.
\[ \frac{d^{74}}{dx^{74}}\sin x = \frac{d^{2}}{dx^{2}}\left(\frac{d^{72}}{dx^{72}}\sin x\right) = \frac{d^{2}}{dx^{2}}\sin x \]
Take the remaining two steps
Why: Second derivative of sine.
\[ \frac{d^{74}}{dx^{74}}\sin x = -\sin x \]
Check with the table
Why: Remainder 2 in the sine row reads minus sine x.
\[ 74 \bmod 4 = 2 \;\Longrightarrow\; -\sin x \;\checkmark \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 247 — Example 3.46
Nobody should differentiate seventy-four times. Divide seventy-four by four: it goes eighteen times, which accounts for seventy-two derivatives, with two left over.
The seventy-two derivatives are eighteen complete trips round the cycle, and each trip returns sine to sine. So after seventy-two derivatives you have sine again, and you only need to take two more. The second derivative of sine is minus sine.
The check reads the same answer from the table on the previous slide: remainder two in the sine row is minus sine. When you work these problems, write the division explicitly, seventy-four equals four times eighteen plus two, because the most common mistake is to use the quotient, eighteen, instead of the remainder.
Prediction
\[ y = \cos x, \qquad \frac{d^4y}{dx^4} = \;? \]
Predict first
What is the fourth derivative of cos x?
Correct: cos x
Why: cos x → −sin x → −cos x → sin x → cos x. Four steps go all the way round the cycle, whichever function you start from.
Choose before revealing, and try to answer without writing out all four derivatives.
The cycle argument does not care where you start. Four steps take you all the way round from any starting point, so the fourth derivative of cosine is cosine, just as the fourth derivative of sine is sine.
If you want to see it step by step: cosine goes to minus sine, then to minus cosine, then to sine, then back to cosine. The distractors are the first, second and third derivatives, which are the answers you would reach by stopping one, two or three steps early.
Fill the middle
Fill in the blanks
59 = 4(14) + 3 \;\Longrightarrow\; \frac-\cos x}___}\sin x = ___
Why: Fifty-six derivatives are fourteen full turns; three steps remain, and the third derivative of sine is minus cosine.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 247 — Checkpoint 3.32
Fill in the remainder first, then the derivative. Fifty-nine divided by four is fourteen with three left over, since four times fourteen is fifty-six.
Fifty-six derivatives are fourteen full trips and bring sine back to sine. Three steps remain: cosine, then minus sine, then minus cosine. So the answer is minus cosine x.
Notice that you never used the fourteen for anything except checking the arithmetic. Only the remainder decides the answer. If your remainder came out as fourteen, you took the quotient; if it came out as zero or four, recheck the multiplication.
Worked example
\[ y = x\sin x - \cos x \]
First derivative
Why: Product rule on the first term; the minus cosine differentiates to plus sine.
\[ y' = (1)\sin x + x\cos x + \sin x \]
Collect like terms
Why: Two sines.
\[ y' = 2\sin x + x\cos x \]
Differentiate again
Why: Product rule on x cosine x.
\[ y'' = 2\cos x + (1)\cos x + x(-\sin x) \]
Collect like terms
Why: Three cosines.
\[ y'' = 3\cos x - x\sin x \]
Check numerically at x equal to 1
Why: A second-difference quotient of the original function at 1 gives 0.7794, and so does the formula.
\[ y''(1) = 3\cos 1 - \sin 1 \approx 0.7794 \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 248 — Exercise 191
A second derivative is just the derivative taken twice, and the main risk is losing a term along the way. Simplify after the first derivative so that the second step starts from the tidiest possible expression.
The first term, x sine x, needs the product rule, which gives sine x plus x cosine x. The second term, minus cosine x, differentiates to plus sine x. Collecting the two sines gives two sine x plus x cosine x.
Differentiate again. Two sine x gives two cosine x, and the product x cosine x gives cosine x minus x sine x. The cosines combine into three cosine x. The check uses a second-difference quotient at x equal to one, which estimates the second derivative directly from the original function, and it agrees with the formula at 0.7794.
Intuition
Cosine is sine moved a quarter period to the left, and so is every step of the cycle. Read that way, the cycle is not four facts to memorise but one fact applied four times.
\[ \cos x = \sin\left(x + \tfrac{\pi}{2}\right) \]
\[ -\sin x = \sin\left(x + \pi\right), \qquad -\cos x = \sin\left(x + \tfrac{3\pi}{2}\right) \]
Four quarter turns make a full period, and a sine wave shifted a full period is itself. That is why the fourth derivative returns.
Here is a way to see the cycle rather than memorise it. Cosine is sine shifted a quarter period to the left: the cosine graph is the sine graph slid over by pi over two.
Minus sine is sine shifted by half a period, pi, because shifting a sine wave by half a period turns it upside down. Minus cosine is sine shifted by three quarters of a period. So each derivative of sine is sine shifted one more quarter period to the left.
After four quarter shifts you have moved one full period, and a sine wave shifted by a full period lies exactly on top of itself. That is the cycle of four, explained by one fact applied four times. The next slide lets you watch it happen.
Tweak it
Parameter explorer
The curve is the kth derivative of sin x. Step k from 0 to 4 and watch where the wave goes. Which way does each derivative shift it, and by how much?
\[ \frac{d^{{k}}}{dx^{{k}}}\sin x = \sin\left(x + \tfrac{{k}\pi}{2}\right) \]
Start the slider at zero, where the curve is plain sine, then step it to one. The wave jumps a quarter period to the left and becomes cosine, the first derivative. Keep stepping.
At two the wave is sine upside down, minus sine. At three it is minus cosine. At four it has travelled a full period and sits exactly where it started. Watch the crest: it moves left by pi over two at every step.
This gives you a way to check any high-order derivative visually. Take the remainder of the order divided by four and slide sine left by that many quarter periods. Whatever curve you land on is the answer.
Section
Part 6
Concept
Figure (svg): Three curves over 0 to 2 pi for a mass on a spring: position s equals 2 cosine t, velocity v equals minus 2 sine t, and acceleration a equals minus 2 cosine t, which is the position curve flipped upside down.
\[ s = 2\cos t \;\longrightarrow\; v = -2\sin t \;\longrightarrow\; a = -2\cos t \]
\[ a(t) = -s(t) \]
Two derivatives bring back the position with its sign flipped. The pull is always toward the centre and grows with the distance from it: the defining property of simple harmonic motion, a mass on a spring.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, pp. 241-242 — simple harmonic motion
Here is the payoff for physics. A mass bouncing on a spring has a position that is a cosine or sine curve, here two cosine t. Its velocity is the derivative, minus two sine t, and its acceleration is the derivative of that, minus two cosine t.
Compare the first and last curves on the graph. The acceleration is the position flipped upside down: exactly minus the position, at every instant. When the mass is above the centre, the acceleration points down; when it is below, it points up. The pull is always back toward the centre, and it is strongest at the extremes.
That relationship, acceleration equal to minus the position, is the definition of simple harmonic motion. It says the restoring force is proportional to the displacement, which is Hooke's law for a spring. The fact that sine and cosine satisfy it is exactly why they describe every such oscillation.
Concept
Speed is the size of the velocity. Acceleration in the same direction as the motion adds to the speed; acceleration against the motion takes from it.
| velocity | acceleration | the particle is |
|---|---|---|
| positive | positive | speeding up |
| negative | negative | speeding up |
| positive | negative | slowing down |
| negative | positive | slowing down |
So compare signs: the same sign means speeding up, opposite signs mean slowing down. The sign of the acceleration alone decides nothing.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 248 — Example 3.47
It is easy to assume that negative acceleration means slowing down, because in everyday speech acceleration means going faster. In calculus, acceleration is the rate of change of velocity, and velocity has a sign that gives direction.
Think of the acceleration as a push. If the push points the same way the particle is moving, it adds to the speed. If it points against the motion, it acts as a brake. The table lists all four sign combinations, and the rule collapses to one sentence: same sign, speeding up; opposite signs, slowing down.
So to answer a speeding-up question you always need both numbers, the velocity and the acceleration, at the same instant. The sign of either one alone tells you nothing about speed.
Worked example
\[ s(t) = 2 - \sin t, \qquad \text{find } v\left(\tfrac{\pi}{4}\right),\; a\left(\tfrac{\pi}{4}\right) \]
Differentiate the position
Why: The constant 2 has derivative 0.
\[ v(t) = s'(t) = -\cos t \]
Evaluate the velocity
Why: Cosine of pi over 4 is one over root two.
\[ v\left(\tfrac{\pi}{4}\right) = -\frac{1}{\sqrt2} \approx -0.707 \]
Differentiate again
Why: The derivative of minus cosine is sine.
\[ a(t) = v'(t) = \sin t \]
Evaluate the acceleration
Why: Sine of pi over 4 is also one over root two.
\[ a\left(\tfrac{\pi}{4}\right) = \frac{1}{\sqrt2} \approx 0.707 \]
Figure (svg): A horizontal number line for position s from 0.5 to 2.6. A dot marks the particle at about 1.293. Above it, a velocity arrow of length 0.707 points left, and above that an acceleration arrow of length 0.707 points right.
Check by comparing signs
Why: Velocity negative, acceleration positive: they oppose, so the particle is slowing down. Indeed the speed, the absolute value of cosine, is falling toward 0 as t approaches pi over 2.
\[ v < 0 < a \;\Longrightarrow\; \text{slowing down} \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 248 — Example 3.47
Two derivatives, two evaluations, one comparison. The velocity is minus cosine t, because the constant two disappears and the derivative of minus sine is minus cosine. At pi over four that is minus one over root two, about minus 0.707.
The acceleration is the derivative of minus cosine, which is sine. At pi over four that is plus one over root two, about 0.707. The picture puts the particle on its line with both arrows attached: the velocity arrow points left and the acceleration arrow points right.
Opposite directions mean the acceleration is braking the motion, so the particle is slowing down. The check confirms it another way: the speed is the size of minus cosine t, and as t grows from pi over four toward pi over two, that size falls toward zero. A falling speed is exactly what slowing down means.
Worked example
\[ s(t) = 2\sin t, \qquad t = \frac{5\pi}{6} \]
Differentiate the position
Why: Velocity.
\[ v(t) = 2\cos t \]
Evaluate the velocity
Why: Cosine of 5 pi over 6 is minus root three over two.
\[ v\left(\tfrac{5\pi}{6}\right) = 2\left(-\tfrac{\sqrt3}{2}\right) = -\sqrt3 \approx -1.732 \]
Differentiate again
Why: Acceleration.
\[ a(t) = -2\sin t \]
Evaluate the acceleration
Why: Sine of 5 pi over 6 is one half.
\[ a\left(\tfrac{5\pi}{6}\right) = -2\left(\tfrac12\right) = -1 \]
Figure (svg): Velocity 2 cosine t and acceleration minus 2 sine t plotted from 0 to 2 pi, with a dashed vertical line at 5 pi over 6 where both curves are below the axis.
Check by comparing signs, and with the rule
Why: Both negative, so the block is speeding up; and acceleration is minus position, which is minus 1 here, as found.
\[ v < 0, \; a < 0 \;\Longrightarrow\; \text{speeding up}; \quad a = -s = -1 \;\checkmark \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 248 — Checkpoint 3.33
Same procedure as Example 3.47. The velocity of two sine t is two cosine t, and at five pi over six cosine is minus root three over two, so the velocity is minus root three, about minus 1.73.
The acceleration is minus two sine t, and sine of five pi over six is one half, so the acceleration is minus one. Both are negative, so velocity and acceleration point the same way and the block is speeding up.
The graph shows the moment: the dashed line at five pi over six crosses both curves below the axis. The last check uses the simple harmonic rule from two slides ago. The acceleration should equal minus the position, and the position at five pi over six is two times one half, which is one, so the acceleration should be minus one. It is.
Worked example
A pendulum's position is given below. At time 0 its position is 0 centimetres and its velocity is 3 centimetres per second. Find a and b.
\[ s(t) = a\cos t + b\sin t \]
Use the position condition
Why: Cosine of 0 is 1, sine of 0 is 0.
\[ s(0) = a\cdot 1 + b\cdot 0 = a = 0 \]
Differentiate the position
Why: Theorem 3.8 on each term.
\[ v(t) = -a\sin t + b\cos t \]
Use the velocity condition
Why: Again, sine of 0 is 0 and cosine of 0 is 1.
\[ v(0) = -a\cdot 0 + b\cdot 1 = b = 3 \]
Check both conditions
Why: With a equal to 0 and b equal to 3 the position is 3 sine t: it starts at 0 and its derivative 3 cosine t starts at 3.
\[ s = 3\sin t: \quad s(0) = 0, \quad v(0) = 3\cos 0 = 3 \;\checkmark \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 249 — Exercise 201
This runs the calculus backwards: you know the form of the motion and two facts about it at time zero, and you need the unknown constants. The key is that at t equal to zero, sine is zero and cosine is one, so each condition isolates one constant.
The position condition kills the sine term, leaving a equal to zero. To use the velocity condition you first differentiate: minus a sine t plus b cosine t. At time zero the sine term dies again and you are left with b equal to three.
The check builds the answer and tests it. With a zero and b three the position is three sine t, which starts at zero, and its derivative three cosine t starts at three. Both conditions hold. In physics these two numbers are called the initial position and initial velocity, and they always pin down the two constants of a simple harmonic motion.
Estimation
\[ s(t) = -6\cos t \;\text{(inches)}, \qquad v(t) = 6\sin t \]
Predict first
Five seconds is a little less than 2π ≈ 6.28 seconds. Without a calculator, what is v(5) roughly?
Correct: About −5.8 in/s
Why: 5 radians lies in the fourth quadrant (between 3π/2 ≈ 4.71 and 2π), where sine is negative and near its bottom, so 6 sin 5 is large and negative: 6 sin 5 ≈ −5.75 inches per second. −1.7 is −6 cos 5, the position, not the velocity. A calculator in degree mode would give 6 sin 5° ≈ 0.52, which is wrong.
\[ v(5) = 6\sin 5 \approx -5.75 \text{ in/s} \]
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 249 — Exercise 200
Estimate before you reveal. The skill here is placing an angle of five radians on the unit circle without a calculator.
Three pi over two is about 4.71 and two pi is about 6.28, so five radians is in the fourth quadrant, just past the bottom of the circle. There sine is negative and still close to minus one. So six sine five is large and negative, about minus 5.75 inches per second.
Two distractors are worth studying. Minus 1.7 is the position at five seconds, not the velocity, so it comes from forgetting to differentiate. And a calculator left in degree mode would take the sine of five degrees and report a small positive number, which is the radian trap from Part 2 in a real problem.
Comparison
Comparison matrix
| t | v = 2 cos t | a = −2 sin t | the block is |
|---|---|---|---|
| π/6 | √3 > 0 | −1 < 0 | slowing down |
| 5π/6 | −√3 < 0 | −1 < 0 | speeding up |
| 7π/6 | −√3 < 0 | 1 > 0 | slowing down |
| 11π/6 | √3 > 0 | 1 > 0 | speeding up |
Fill in each blank from the two formulas in the header, then apply the sign rule. The four times are spread round the circle so that you meet all four sign combinations.
At pi over six the velocity is positive and the acceleration is minus one, opposite signs, so the block is slowing: it is moving up toward its highest point and about to stop. At five pi over six both are negative, so it is speeding up on the way down. At seven pi over six the velocity is still negative but the acceleration has turned positive, so it is slowing toward the bottom. At eleven pi over six both are positive: speeding up on the way back.
Notice the physical story: the block always slows as it approaches an extreme and speeds up as it heads back toward the centre. That is simple harmonic motion in words.
Trap
In Checkpoint 3.33 the acceleration at five pi over six is minus 1, so:
\[ a = -1 < 0 \]
\[ \Longrightarrow\; \text{slowing down?} \]
Wrong. A negative acceleration alone says nothing about speed.
The velocity there is also negative. Both point the same way, so the block is speeding up, moving downward faster and faster. Always compare the two signs.
\[ \text{same sign} \Rightarrow \text{faster} \]
\[ \text{opposite} \Rightarrow \text{slower} \]
This trap comes straight from everyday language, where accelerating means speeding up and decelerating means slowing down. In calculus a negative acceleration only says the velocity is decreasing, and a velocity that is already negative and decreasing is getting more negative, which means faster.
At five pi over six the block is moving downward with velocity minus root three, and the acceleration also points downward. The push is in the direction of motion, so the block is speeding up.
The protection is a fixed habit: never answer a speeding-up question from one sign. Compute both the velocity and the acceleration, and compare.
Real world
\[ s(t) = -5\cos t \;\text{cm}, \qquad t \ge 0 \]
Discussion prompt
Exercise 202: the edge of a diving board oscillates as above after a diver leaves it. Find the velocity and acceleration, the times in the first period when the edge is momentarily still, and where it is at those times.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 249 — Exercise 202
Work this out before revealing the answer. It is the textbook's diving-board exercise, and it pulls together every idea in this part of the lesson.
The velocity is the derivative of minus five cosine t, which is five sine t, and the acceleration is five cosine t, which is exactly minus the position: simple harmonic motion again. The board is still when sine t is zero, which in the first period happens at zero, pi and two pi.
Now connect those times to positions. At zero and two pi the edge is five centimetres below its rest position, and at pi it is five centimetres above: the board stops only at the extremes of its swing. It moves fastest when it passes through the rest position, where the acceleration is zero. Real diving boards also lose energy and settle down, which a later course models by multiplying the cosine by a decaying exponential.
Section
Part 7
Pattern
Figure (svg): A flow diagram. Start: a function containing trig. If it is a product or quotient, apply that rule first. Then replace each trig derivative from the table of six. For a high-order derivative of sine or cosine, divide the order by 4 and use the remainder. For motion, differentiate position to velocity to acceleration and compare signs.
This is the order to work in. The diagram shows the three kinds of question this lesson prepares you for, and the list says what to do in each.
For an ordinary derivative, look at the structure first. If the function is a product, quotient or sum, apply that rule, and only then fill in each trig derivative from the table. Keep the sign rule at hand: the co-functions carry the minus.
For a high-order derivative of sine or cosine, never differentiate repeatedly; divide by four and use the remainder. For motion, differentiate twice, evaluate both at the same instant, and compare signs. And throughout, radians. A calculator in degree mode silently multiplies every rate by pi over 180.
Ranking
Put in order
Order the lines of the proof that the derivative of sine is cosine.
Why: Definition, identity, regroup so that each fundamental limit appears once, take the limits, simplify. The regrouping is the creative step; everything else is forced.
Drag the lines into order before checking. If you can order these five lines, you can reproduce the proof on an exam.
The proof starts from the definition, because that is the only thing you know about a derivative before you know its formula. The addition formula comes next, because it separates x from h. Then the regrouping, which is the one clever step: it arranges the expression so each fundamental limit appears exactly once.
After that, everything is forced. Take the two limits, zero and one, and simplify. The regrouping step is the one students most often skip, and without it the limits cannot be recognised.
Check
Check your understanding
What is the derivative of f(x) = x² cos x?
Answer: A
Why: Product rule: the derivative of x² is 2x, times cos x, plus x² times the derivative of cos x, which is −sin x. That gives 2x cos x − x² sin x.
This is the product rule with a cosine in it. The derivative of x squared is two x, which multiplies cosine x. Then x squared multiplies the derivative of cosine x, which is minus sine x.
The wrong answers each come from one specific slip. Multiplying the two derivatives together is the classic product-rule error. Losing the minus on the cosine derivative gives the plus version. If you picked one of these, go back to the slide that covers that slip.
Check
Check your understanding
What is the 103rd derivative of cos x?
Answer: D
Why: 103 = 4(25) + 3, so the answer is the third derivative of cosine: cos x → −sin x → −cos x → sin x.
Divide the order by four: one hundred and three is four times twenty-five plus three. So the answer is the third derivative of cosine.
Count along the cosine row of the cycle: minus sine, minus cosine, then sine. The distractors are the answers for remainders zero, one and two, so if you chose one of them, recheck your division or count your steps again.
Check
Check your understanding
An object has position s(t) = 3 cos t. At t = π/3, what is it doing?
Answer: A
Why: v = −3 sin t gives v(π/3) = −3(√3/2) ≈ −2.60, and a = −3 cos t gives a(π/3) = −1.5. Both are negative, so the object is speeding up.
Find both derivatives and evaluate them at the same time. The velocity is minus three sine t, and at pi over three that is about minus 2.60. The acceleration is minus three cosine t, which is minus 1.5.
Both are negative, so velocity and acceleration agree and the object is speeding up. The tempting distractor looks only at the negative acceleration and says slowing down, which is exactly the trap from Part 6. The at-rest option confuses the position with the velocity.
Explain it to yourself
Discussion prompt
Without quoting the formula, explain in two sentences why the derivative of cosine must be negative for x between 0 and pi, and why it is zero at 0 and at pi.
Write your two sentences before revealing. The goal is to be able to justify the minus sign from the graph alone, so that you can never again put it on the wrong formula.
Picture cosine from zero to pi. It starts at its peak, one, and falls steadily to its trough, minus one. Every tangent line along the way slopes downward, so the derivative must be negative throughout that interval. At the two ends the curve is momentarily flat, so the derivative is zero there.
Now test minus sine against that description. Sine is zero at zero and at pi and positive in between, so minus sine is zero at the ends and negative in between. The formula fits the picture exactly. That is what a good explanation of a formula does: it makes the formula something you could have predicted.
Exit ticket
\[ f(x) = \sec x, \qquad x = \frac{\pi}{4} \]
Discussion prompt
Exercise 188: find the equation of the line tangent to the graph of secant at x = π/4.
OpenStax Calculus Volume 1, §3.5 Derivatives of Trigonometric Functions §3.5, p. 248 — Exercise 188
This combines the table with the tangent-line procedure of Example 3.43. Work it through before revealing.
The point comes first: secant of pi over four is one over cosine of pi over four, which is root two. Then the slope: the derivative of secant is secant times tangent, and at pi over four that is root two times one, which is root two.
Point-slope form gives the line, and you can leave it in that form or distribute. If you got the point right but the slope wrong, check whether you used secant squared, which is tangent's derivative, instead of secant tangent.
Recap
| what | result | remember |
|---|---|---|
| sin, cos | (sin x)′ = cos x, (cos x)′ = −sin x | proved from sin h/h → 1 and (cos h − 1)/h → 0 |
| tan, cot | sec² x, −csc² x | quotient rule + Pythagorean identity |
| sec, csc | sec x tan x, −csc x cot x | co-functions carry the minus |
| nth derivative | go round the cycle | only n mod 4 matters |
| motion | v = s′, a = v′ | rest: v = 0; same signs: speeding up |
\[ \frac{d}{dx}\sin x = \cos x \qquad \text{(radians only)} \]
Next, Section 3.6 brings the chain rule, and with it sine of 2x, cosine of x squared and every other composition.
Stewart, Calculus: Early Transcendentals 8e, §3.3 Derivatives of Trigonometric Functions §3.3, pp. 190-196 — the same material in Stewart
Everything in this lesson grows from one proof. The derivative of sine is cosine, established from the definition with the addition formula and the two fundamental limits. The derivative of cosine, minus sine, comes the same way, with its minus sign inherited from the cosine addition formula.
The other four derivatives need nothing new, only the quotient rule and the Pythagorean identity, and the co-function pattern halves the memorising. Higher derivatives of sine and cosine run round a cycle of four, so only the remainder of the order divided by four matters. In motion, the velocity and acceleration come from differentiating the position, and comparing their signs tells you whether the object is speeding up.
All of it holds only in radians. Next, Section 3.6 adds the chain rule, which lets you differentiate sine of two x, cosine of x squared, and every other composition, and it also explains why the co-functions carry a minus sign.
Want this taught 1-on-1? Alexander tutors Calculus I — $55/session, free consultation.