MATH 140 Calculus 1 • McGill University, Montreal

Corrected exercises: derivatives of trigonometric functions (MATH 140)

This is the corrected exercise set for the derivatives of trigonometric functions in MATH 140, Calculus 1, at McGill University, section 3.3 of Stewart. The chapter adds six functions to the rules already known, and every later chapter of the course uses them: the chain rule, implicit differentiation, related rates with an angle, and the curve sketching of a trigonometric function. Every number is exact and chosen to be done by hand, as on the midterm and the final, and each solution names the rule it applies.

The thread running through the whole set: every trigonometric derivative is borrowed from ONE limit, lim⁡θ→0sin⁡θθ=1\lim_{\theta\to 0}\frac{\sin\theta}{\theta} = 1, and inherits its three conditions. The angle is in radians, the variable goes to 00 exactly, and the SAME quantity sits under the sine and in the denominator. Beyond that, the chapter is the product and quotient rules applied honestly, sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 to simplify, and the minus sign that every co-function carries.

The traps named in the solutions: forgetting to square the box of 1−cos⁡4xx2\frac{1 - \cos 4x}{x^2}, answering 11 to 1−cos⁡xx\frac{1 - \cos x}{x} or to sin⁡xx\frac{\sin x}{x} at infinity, replacing tan⁡x\tan x and sin⁡x\sin x by xx inside a difference, differentiating in degrees, dropping the minus of (cos⁡x)′(\cos x)', (cot⁡x)′(\cot x)' or (csc⁡x)′(\csc x)', taking the derivative of a product or a quotient as the product or quotient of derivatives, reasoning on parity instead of the remainder modulo 44, dividing by sin⁡x\sin x and losing solutions, taking the starting position of a spring for its amplitude, and deciding speeding up from the sign of the acceleration alone.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 140 chapter →

Self-checking set Type your answers under each question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points.

Course recap

  • • lim⁡θ→0sin⁡θθ=1\lim_{\theta\to 0}\frac{\sin\theta}{\theta} = 1 and lim⁡θ→01−cos⁡θθ=0\lim_{\theta\to 0}\frac{1 - \cos\theta}{\theta} = 0, with θ\theta in radians; lim⁡θ→01−cos⁡θθ2=12\lim_{\theta\to 0}\frac{1 - \cos\theta}{\theta^2} = \frac{1}{2}.
  • • The box rule: sin⁡□□→1\frac{\sin\square}{\square} \to 1 when the SAME expression □\square tends to 00; so sin⁡axx→a\frac{\sin ax}{x} \to a.
  • • (sin⁡x)′=cos⁡x(\sin x)' = \cos x, (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x, (tan⁡x)′=sec⁡2x=1+tan⁡2x(\tan x)' = \sec^2 x = 1 + \tan^2 x.
  • • (sec⁡x)′=sec⁡xtan⁡x(\sec x)' = \sec x\tan x, (csc⁡x)′=−csc⁡xcot⁡x(\csc x)' = -\csc x\cot x, (cot⁡x)′=−csc⁡2x(\cot x)' = -\csc^2 x: the co-functions take a minus.
  • • The derivatives of sin⁡x\sin x and cos⁡x\cos x repeat every 44: only the remainder of nn divided by 44 matters.
  • • Horizontal tangent: solve f′(x)=0f'(x) = 0 by FACTORING; divide by sin⁡x\sin x or cos⁡x\cos x only after checking it cannot vanish at a solution.

Part A: the basics (/50)

Exercise 1: Where the derivative of sine comes from: the limit of sin t over t

Every derivative of this chapter rests on one limit, lim⁡θ→0sin⁡θθ=1\lim_{\theta\to 0}\frac{\sin\theta}{\theta} = 1. Direct substitution gives 00\frac{0}{0}, so the limit has to be PROVED, and the proof is geometric. This exercise builds it, then draws its first consequences.

The figure shows the unit circle, an angle θ\theta measured in radians with 0<θ<π20 < \theta < \frac{\pi}{2}, the points O(0,0)O(0, 0), A(1,0)A(1, 0), P(cos⁡θ,sin⁡θ)P(\cos\theta, \sin\theta), its projection Q(cos⁡θ,0)Q(\cos\theta, 0), and the point TT where the line OPOP meets the tangent to the circle at AA, so that AT=tan⁡θAT = \tan\theta.

OAPTQθAT = tan θ
  • a) Compare the areas of the triangle OAPOAP, of the circular sector OAPOAP and of the triangle OATOAT, and deduce that sin⁡θ<θ<tan⁡θ\sin\theta < \theta < \tan\theta for 0<θ<π20 < \theta < \frac{\pi}{2}. Where exactly do radians enter?
  • b) Deduce that cos⁡θ<sin⁡θθ<1\cos\theta < \frac{\sin\theta}{\theta} < 1 on (0,π2)\left(0, \frac{\pi}{2}\right), then prove that lim⁡θ→0sin⁡θθ=1\lim_{\theta\to 0}\frac{\sin\theta}{\theta} = 1, from both sides.
  • c) Prove that lim⁡θ→01−cos⁡θθ=0\lim_{\theta\to 0}\frac{1 - \cos\theta}{\theta} = 0 and that lim⁡θ→01−cos⁡θθ2=12\lim_{\theta\to 0}\frac{1 - \cos\theta}{\theta^2} = \frac{1}{2}.
  • d) If xx is measured in degrees, sin⁡(x∘)=sin⁡(πx180)\sin(x^\circ) = \sin\left(\frac{\pi x}{180}\right). Find lim⁡x→0sin⁡(x∘)x\lim_{x\to 0}\frac{\sin(x^\circ)}{x}, and explain why calculus measures angles in radians.
  • e) Find lim⁡θ→0tan⁡θθ\lim_{\theta\to 0}\frac{\tan\theta}{\theta} and lim⁡θ→0θsin⁡θ\lim_{\theta\to 0}\frac{\theta}{\sin\theta}, and say what the three lengths PQPQ, arc APAP and ATAT of the figure do as θ→0+\theta \to 0^+.

Type your answers, the page tells you right or wrong 0/3

d)
e)
Show the solution

Answers

  • a) 12sin⁡θ<12θ<12tan⁡θ\frac{1}{2}\sin\theta < \frac{1}{2}\theta < \frac{1}{2}\tan\theta; radians enter through the sector area θ2\frac{\theta}{2}.
  • b) Squeeze between cos⁡θ→1\cos\theta \to 1 and 11; the quotient is even, so both sides give 11.
  • c) 1−cos⁡θθ=sin⁡θθ⋅sin⁡θ1+cos⁡θ→0\frac{1 - \cos\theta}{\theta} = \frac{\sin\theta}{\theta}\cdot\frac{\sin\theta}{1 + \cos\theta} \to 0; 1−cos⁡θθ2→12\frac{1 - \cos\theta}{\theta^2} \to \frac{1}{2}
  • d) π180\frac{\pi}{180}, not 11
  • e) 11 and 11: the three lengths have ratios tending to 11.

a) The triangle OAPOAP has base OA=1OA = 1 and height PQ=sin⁡θPQ = \sin\theta, so its area is 12sin⁡θ\frac{1}{2}\sin\theta. The sector OAPOAP is the fraction θ2π\frac{\theta}{2\pi} of the disc of area π\pi, so its area is θ2\frac{\theta}{2}. The triangle OATOAT is right-angled at AA with legs OA=1OA = 1 and AT=tan⁡θAT = \tan\theta, so its area is 12tan⁡θ\frac{1}{2}\tan\theta. The first region lies strictly inside the second, which lies strictly inside the third, as the figure shows: 12sin⁡θ<θ2<12tan⁡θ\frac{1}{2}\sin\theta < \frac{\theta}{2} < \frac{1}{2}\tan\theta, and multiplying by 22 gives sin⁡θ<θ<tan⁡θ\sin\theta < \theta < \tan\theta. Radians enter in ONE place, the sector area θ2\frac{\theta}{2}: with an angle of dd degrees the sector has area πd360\frac{\pi d}{360}, and the whole chain of the chapter would carry that factor.

b) Dividing sin⁡θ<θ\sin\theta < \theta by θ>0\theta > 0 gives sin⁡θθ<1\frac{\sin\theta}{\theta} < 1. From θ<tan⁡θ=sin⁡θcos⁡θ\theta < \tan\theta = \frac{\sin\theta}{\cos\theta}, multiplying by cos⁡θ>0\cos\theta > 0 and dividing by θ>0\theta > 0 gives cos⁡θ<sin⁡θθ\cos\theta < \frac{\sin\theta}{\theta}. So cos⁡θ<sin⁡θθ<1\cos\theta < \frac{\sin\theta}{\theta} < 1 on (0,π2)\left(0, \frac{\pi}{2}\right). As θ→0+\theta \to 0^+, cos⁡θ→cos⁡0=1\cos\theta \to \cos 0 = 1 because cosine is continuous, and the right bound is the constant 11: by the squeeze theorem, lim⁡θ→0+sin⁡θθ=1\lim_{\theta\to 0^+}\frac{\sin\theta}{\theta} = 1. For θ<0\theta < 0, sin⁡(−θ)−θ=−sin⁡θ−θ=sin⁡θθ\frac{\sin(-\theta)}{-\theta} = \frac{-\sin\theta}{-\theta} = \frac{\sin\theta}{\theta}: the quotient is even, so the limit from the left equals the limit from the right. The two one-sided limits exist and are equal, hence the limit is 11. The quotient has no value at 00; the limit never looks at that point.

c) Multiply by the conjugate 1+cos⁡θ1 + \cos\theta, which is close to 22 near 00: 1−cos⁡θθ=1−cos⁡2θθ(1+cos⁡θ)=sin⁡2θθ(1+cos⁡θ)=sin⁡θθ⋅sin⁡θ1+cos⁡θ\frac{1 - \cos\theta}{\theta} = \frac{1 - \cos^2\theta}{\theta(1 + \cos\theta)} = \frac{\sin^2\theta}{\theta(1 + \cos\theta)} = \frac{\sin\theta}{\theta}\cdot\frac{\sin\theta}{1 + \cos\theta}. The first factor tends to 11 by b), the second to 02=0\frac{0}{2} = 0, so the product tends to 00. With θ2\theta^2 in the denominator: 1−cos⁡θθ2=(sin⁡θθ)2⋅11+cos⁡θ→1⋅12=12\frac{1 - \cos\theta}{\theta^2} = \left(\frac{\sin\theta}{\theta}\right)^2\cdot\frac{1}{1 + \cos\theta} \to 1 \cdot \frac{1}{2} = \frac{1}{2}. The two answers differ because 1−cos⁡θ1 - \cos\theta shrinks like θ22\frac{\theta^2}{2}, much faster than θ\theta: writing 11 for the first limit, by analogy with sine, is the classic error.

d) Put u=πx180u = \frac{\pi x}{180}, which tends to 00 with xx. Then sin⁡(x∘)x=sin⁡ux=π180⋅sin⁡uu→π180⋅1=π180\frac{\sin(x^\circ)}{x} = \frac{\sin u}{x} = \frac{\pi}{180}\cdot\frac{\sin u}{u} \to \frac{\pi}{180}\cdot 1 = \frac{\pi}{180}. In degrees the fundamental limit is π180\frac{\pi}{180}, a little under 0.020.02, and every derivative of the chapter would be multiplied by it: the derivative of sin⁡(x∘)\sin(x^\circ) would be π180cos⁡(x∘)\frac{\pi}{180}\cos(x^\circ). Radians are precisely the unit in which the limit equals 11, which is why every formula of calculus assumes them.

e) tan⁡θθ=sin⁡θθ⋅1cos⁡θ→1⋅11=1\frac{\tan\theta}{\theta} = \frac{\sin\theta}{\theta}\cdot\frac{1}{\cos\theta} \to 1 \cdot \frac{1}{1} = 1, by the product law and the continuity of cosine at 00. And θsin⁡θ=1sin⁡θ/θ→11=1\frac{\theta}{\sin\theta} = \frac{1}{\sin\theta/\theta} \to \frac{1}{1} = 1, by the quotient law, legitimate because the limit of the denominator is 1≠01 \ne 0. On the figure, PQ=sin⁡θPQ = \sin\theta, arc AP=θAP = \theta and AT=tan⁡θAT = \tan\theta: all three tend to 00, but their RATIOS tend to 11. For a small angle, the half-chord, the arc and the tangent segment are practically the same length, and this is the geometric content of the limit.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks from one visit to the next and tells you which chapter to tackle next. Create your space, an email is enough.

Exercise 2: Limits built on sin(u)/u and 1 - cos(u): match the box before you cancel

The two limits of Exercise 1 are used in the forms lim⁡□→0sin⁡□□=1\lim_{\square\to 0}\frac{\sin\square}{\square} = 1 and lim⁡□→01−cos⁡□□2=12\lim_{\square\to 0}\frac{1 - \cos\square}{\square^2} = \frac{1}{2}, where □\square is ANY expression that tends to 00, on the condition that the SAME expression sits in the numerator and in the denominator. Most of the work is to make the right box appear, by multiplying and dividing by a constant, by the conjugate or by factoring, before any limit law is used.

The figure shows y=sin⁡xxy = \frac{\sin x}{x}, with no value at x=0x = 0, between the dashed curves y=1xy = \frac{1}{x} and y=−1xy = -\frac{1}{x}.

-12-10-8-6-4-224681012-0.5-0.250.250.50.751y = sin(x)/xy = 1/x and y = -1/xno value at x = 0x
  • a) Find lim⁡x→01−cos⁡4xx2\lim_{x\to 0}\frac{1 - \cos 4x}{x^2} and lim⁡x→01−cos⁡3x1−cos⁡x\lim_{x\to 0}\frac{1 - \cos 3x}{1 - \cos x}.
  • b) Find lim⁡x→0tan⁡4xx\lim_{x\to 0}\frac{\tan 4x}{x} and lim⁡x→0xcot⁡2x\lim_{x\to 0} x\cot 2x.
  • c) Find lim⁡x→01−cos⁡xxsin⁡x\lim_{x\to 0}\frac{1 - \cos x}{x\sin x} and lim⁡x→0tan⁡x−sin⁡xx3\lim_{x\to 0}\frac{\tan x - \sin x}{x^3}. For the second, a student replaces tan⁡x\tan x and sin⁡x\sin x by xx and answers 00: explain the error.
  • d) Recognize each limit as a derivative and compute it: lim⁡x→π/6sin⁡x−12x−π6\lim_{x\to\pi/6}\frac{\sin x - \frac{1}{2}}{x - \frac{\pi}{6}} and lim⁡h→0cos⁡(π3+h)−12h\lim_{h\to 0}\frac{\cos\left(\frac{\pi}{3} + h\right) - \frac{1}{2}}{h}.
  • e) Find lim⁡x→∞sin⁡xx\lim_{x\to\infty}\frac{\sin x}{x} and lim⁡x→∞xsin⁡1x\lim_{x\to\infty} x\sin\frac{1}{x}. A student answers 11 to both: which one is right, and why?

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 88 and 99
  • b) 44 and 12\frac{1}{2}
  • c) 12\frac{1}{2} and 12\frac{1}{2} (not 00)
  • d) cos⁡π6=32\cos\frac{\pi}{6} = \frac{\sqrt 3}{2} and −sin⁡π3=−32-\sin\frac{\pi}{3} = -\frac{\sqrt 3}{2}
  • e) 00 and 11: only the second has a box 1x\frac{1}{x} that tends to 00.

a) The box of 1−cos⁡4x1 - \cos 4x is 4x4x, so (4x)2=16x2(4x)^2 = 16x^2 must appear below: 1−cos⁡4xx2=16⋅1−cos⁡4x(4x)2→16⋅12=8\frac{1 - \cos 4x}{x^2} = 16\cdot\frac{1 - \cos 4x}{(4x)^2} \to 16 \cdot \frac{1}{2} = 8. Answering 12\frac{1}{2}, or 4⋅12=24 \cdot \frac{1}{2} = 2, forgets that the box is SQUARED in the denominator. For the quotient of two cosines, divide top and bottom by x2x^2: 1−cos⁡3x1−cos⁡x=9⋅1−cos⁡3x(3x)21−cos⁡xx2→9⋅1212=9\frac{1 - \cos 3x}{1 - \cos x} = \frac{9\cdot\frac{1 - \cos 3x}{(3x)^2}}{\frac{1 - \cos x}{x^2}} \to \frac{9 \cdot \frac{1}{2}}{\frac{1}{2}} = 9, the quotient law being legitimate because the limit of the denominator is 12≠0\frac{1}{2} \ne 0. The answer is 323^2, not 33: near 00, 1−cos⁡u1 - \cos u behaves like u22\frac{u^2}{2}.

b) A tangent is a sine over a cosine: tan⁡4xx=sin⁡4xx⋅1cos⁡4x=4⋅sin⁡4x4x⋅1cos⁡4x→4⋅1⋅11=4\frac{\tan 4x}{x} = \frac{\sin 4x}{x}\cdot\frac{1}{\cos 4x} = 4\cdot\frac{\sin 4x}{4x}\cdot\frac{1}{\cos 4x} \to 4 \cdot 1 \cdot \frac{1}{1} = 4. For the cotangent, xcot⁡2x=xcos⁡2xsin⁡2x=12⋅2xsin⁡2x⋅cos⁡2x→12⋅1⋅1=12x\cot 2x = \frac{x\cos 2x}{\sin 2x} = \frac{1}{2}\cdot\frac{2x}{\sin 2x}\cdot\cos 2x \to \frac{1}{2}\cdot 1 \cdot 1 = \frac{1}{2}. The factor 2xsin⁡2x\frac{2x}{\sin 2x} is the reciprocal of the standard quotient, and its limit is 11=1\frac{1}{1} = 1 by the quotient law. In both cases the cos⁡\cos that appears tends to 11 and does no harm.

c) Direct substitution gives 00\frac{0}{0}. The numerator 1−cos⁡x1 - \cos x calls for the conjugate: 1−cos⁡xxsin⁡x=1−cos⁡2xxsin⁡x (1+cos⁡x)=sin⁡xx⋅11+cos⁡x→12\frac{1 - \cos x}{x\sin x} = \frac{1 - \cos^2 x}{x\sin x\,(1 + \cos x)} = \frac{\sin x}{x}\cdot\frac{1}{1 + \cos x} \to \frac{1}{2}, cancelling one sin⁡x\sin x, which is legitimate because sin⁡x≠0\sin x \ne 0 for 0<∣x∣<π0 < |x| < \pi. For the second, factor instead of approximating: tan⁡x−sin⁡x=sin⁡xcos⁡x−sin⁡x=sin⁡x(1−cos⁡x)cos⁡x\tan x - \sin x = \frac{\sin x}{\cos x} - \sin x = \frac{\sin x(1 - \cos x)}{\cos x}, so tan⁡x−sin⁡xx3=sin⁡xx⋅1−cos⁡xx2⋅1cos⁡x→1⋅12⋅1=12\frac{\tan x - \sin x}{x^3} = \frac{\sin x}{x}\cdot\frac{1 - \cos x}{x^2}\cdot\frac{1}{\cos x} \to 1 \cdot \frac{1}{2}\cdot 1 = \frac{1}{2}. The student's 00 comes from replacing two terms of a DIFFERENCE by their first approximation xx: the approximations cancel exactly, and what is left, of order x3x^3, is precisely what the question measures. Limit laws act on factors of a product, never on pieces of a difference.

d) By definition, f′(a)=lim⁡x→af(x)−f(a)x−a=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{x\to a}\frac{f(x) - f(a)}{x - a} = \lim_{h\to 0}\frac{f(a + h) - f(a)}{h}. The first limit has the first form with f=sin⁡f = \sin and a=π6a = \frac{\pi}{6}, since sin⁡π6=12\sin\frac{\pi}{6} = \frac{1}{2}: it is cos⁡π6=32\cos\frac{\pi}{6} = \frac{\sqrt 3}{2}. The second has the second form with f=cos⁡f = \cos and a=π3a = \frac{\pi}{3}, since cos⁡π3=12\cos\frac{\pi}{3} = \frac{1}{2}: it is −sin⁡π3=−32-\sin\frac{\pi}{3} = -\frac{\sqrt 3}{2}. Recognizing ff AND aa is the whole question; the only trap is the sign of (cos⁡x)′(\cos x)'. Computing these limits directly would mean redoing the proof of Exercise 3 at a particular point: the derivative is the shortcut that the proof has earned.

e) In sin⁡xx\frac{\sin x}{x} the box xx does NOT tend to 00, and the standard limit says nothing. Use the squeeze theorem instead: for x>0x > 0, −1x≤sin⁡xx≤1x-\frac{1}{x} \le \frac{\sin x}{x} \le \frac{1}{x} because ∣sin⁡x∣≤1|\sin x| \le 1, and both bounds tend to 00, so the limit is 00; the figure shows the curve pinned between the dashed envelopes. In xsin⁡1xx\sin\frac{1}{x}, on the contrary, write u=1xu = \frac{1}{x}, which tends to 0+0^+ as x→∞x \to \infty: xsin⁡1x=sin⁡uu→1x\sin\frac{1}{x} = \frac{\sin u}{u} \to 1. Same variable, same destination, two different answers: what decides is whether the quantity under the sine tends to 00, never the look of the expression. The student is right about the second only.

Exercise 3: The six derivatives: two proved from the definition, four by the quotient rule

By definition f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h\to 0}\frac{f(x + h) - f(x)}{h}. For sine and cosine the difference f(x+h)−f(x)f(x + h) - f(x) is opened with the addition formulas sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x + h) = \sin x\cos h + \cos x\sin h and cos⁡(x+h)=cos⁡xcos⁡h−sin⁡xsin⁡h\cos(x + h) = \cos x\cos h - \sin x\sin h; the two limits of Exercise 1 then do the rest. The four other functions are quotients of these two.

The figure shows y=sin⁡xy = \sin x and three of its tangent lines, at x=0x = 0, x=π2x = \frac{\pi}{2} and x=πx = \pi.

π/2π1-1y = sin xtangent at 0tangent at π/2tangent at π
  • a) Prove from the definition that (sin⁡x)′=cos⁡x(\sin x)' = \cos x, naming each limit used.
  • b) Prove from the definition that (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x.
  • c) Give the slopes and the equations of the three tangent lines of the figure, and check that the drawing agrees.
  • d) Using the quotient rule, prove that (tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x and (sec⁡x)′=sec⁡xtan⁡x(\sec x)' = \sec x\tan x, and say where these formulas hold.
  • e) Prove that (cot⁡x)′=−csc⁡2x(\cot x)' = -\csc^2 x and (csc⁡x)′=−csc⁡xcot⁡x(\csc x)' = -\csc x\cot x. State the rule that gives the signs of all six derivatives.

Type your answers, the page tells you right or wrong 0/3

c)
Show the solution

Answers

  • a) sin⁡(x+h)−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh→cos⁡x\frac{\sin(x + h) - \sin x}{h} = \sin x\cdot\frac{\cos h - 1}{h} + \cos x\cdot\frac{\sin h}{h} \to \cos x
  • b) cos⁡(x+h)−cos⁡xh=cos⁡x⋅cos⁡h−1h−sin⁡x⋅sin⁡hh→−sin⁡x\frac{\cos(x + h) - \cos x}{h} = \cos x\cdot\frac{\cos h - 1}{h} - \sin x\cdot\frac{\sin h}{h} \to -\sin x
  • c) Slopes 11, 00, −1-1: y=xy = x, y=1y = 1, y=π−xy = \pi - x
  • d) (tan⁡x)′=cos⁡2x+sin⁡2xcos⁡2x=sec⁡2x(\tan x)' = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \sec^2 x, (sec⁡x)′=sin⁡xcos⁡2x=sec⁡xtan⁡x(\sec x)' = \frac{\sin x}{\cos^2 x} = \sec x\tan x, for cos⁡x≠0\cos x \ne 0
  • e) (cot⁡x)′=−csc⁡2x(\cot x)' = -\csc^2 x, (csc⁡x)′=−csc⁡xcot⁡x(\csc x)' = -\csc x\cot x, for sin⁡x≠0\sin x \ne 0; the three co-functions take a minus sign.

a) With f(x)=sin⁡xf(x) = \sin x and the addition formula, sin⁡(x+h)−sin⁡xh=sin⁡xcos⁡h+cos⁡xsin⁡h−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh\frac{\sin(x + h) - \sin x}{h} = \frac{\sin x\cos h + \cos x\sin h - \sin x}{h} = \sin x\cdot\frac{\cos h - 1}{h} + \cos x\cdot\frac{\sin h}{h}. Here xx is FIXED and only hh moves, so sin⁡x\sin x and cos⁡x\cos x are constants for the limit. By Exercise 1, cos⁡h−1h→0\frac{\cos h - 1}{h} \to 0 and sin⁡hh→1\frac{\sin h}{h} \to 1 as h→0h \to 0, with hh in radians. By the sum and product laws, the limit is sin⁡x⋅0+cos⁡x⋅1=cos⁡x\sin x \cdot 0 + \cos x \cdot 1 = \cos x. The regrouping by sin⁡x\sin x and cos⁡x\cos x is the whole trick: it turns one unknown limit into two known ones.

b) cos⁡(x+h)−cos⁡xh=cos⁡xcos⁡h−sin⁡xsin⁡h−cos⁡xh=cos⁡x⋅cos⁡h−1h−sin⁡x⋅sin⁡hh→cos⁡x⋅0−sin⁡x⋅1=−sin⁡x\frac{\cos(x + h) - \cos x}{h} = \frac{\cos x\cos h - \sin x\sin h - \cos x}{h} = \cos x\cdot\frac{\cos h - 1}{h} - \sin x\cdot\frac{\sin h}{h} \to \cos x\cdot 0 - \sin x\cdot 1 = -\sin x. The minus sign comes from the addition formula of cosine, and nowhere else: a student who remembers the formula remembers the sign.

c) The slope of the tangent to y=sin⁡xy = \sin x at aa is cos⁡a\cos a. At 00: cos⁡0=1\cos 0 = 1, through (0,0)(0, 0), so y=xy = x. At π2\frac{\pi}{2}: cos⁡π2=0\cos\frac{\pi}{2} = 0, through (π2,1)\left(\frac{\pi}{2}, 1\right), so the horizontal line y=1y = 1. At π\pi: cos⁡π=−1\cos\pi = -1, through (π,0)(\pi, 0), so y=−(x−π)=π−xy = -(x - \pi) = \pi - x. The figure agrees: the first tangent passes through (1,1)(1, 1), one unit up for one unit across; the second is flat on the top of the arch; the third crosses the axis at π\pi and passes through (π−1,1)(\pi - 1, 1). Reading slopes off a graph is the fastest way to catch a sign error in (cos⁡x)′(\cos x)'.

d) Wherever cos⁡x≠0\cos x \ne 0, tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}, and the quotient rule gives (tan⁡x)′=cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x(\tan x)' = \frac{\cos x\cdot\cos x - \sin x\cdot(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x, using sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1; equivalently 1+tan⁡2x1 + \tan^2 x. Next, sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}: (sec⁡x)′=0⋅cos⁡x−1⋅(−sin⁡x)cos⁡2x=sin⁡xcos⁡2x=1cos⁡x⋅sin⁡xcos⁡x=sec⁡xtan⁡x(\sec x)' = \frac{0\cdot\cos x - 1\cdot(-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \sec x\tan x. Both hold exactly where the functions are defined, x≠π2+kπx \ne \frac{\pi}{2} + k\pi for every integer kk. The minus of (cos⁡x)′(\cos x)' meets the minus of the quotient rule, and the two cancel: that is why these two derivatives are positive-looking.

e) Wherever sin⁡x≠0\sin x \ne 0: (cot⁡x)′=(cos⁡xsin⁡x)′=(−sin⁡x)sin⁡x−cos⁡xcos⁡xsin⁡2x=−(sin⁡2x+cos⁡2x)sin⁡2x=−csc⁡2x(\cot x)' = \left(\frac{\cos x}{\sin x}\right)' = \frac{(-\sin x)\sin x - \cos x\cos x}{\sin^2 x} = \frac{-(\sin^2 x + \cos^2 x)}{\sin^2 x} = -\csc^2 x, and (csc⁡x)′=(1sin⁡x)′=0−cos⁡xsin⁡2x=−1sin⁡x⋅cos⁡xsin⁡x=−csc⁡xcot⁡x(\csc x)' = \left(\frac{1}{\sin x}\right)' = \frac{0 - \cos x}{\sin^2 x} = -\frac{1}{\sin x}\cdot\frac{\cos x}{\sin x} = -\csc x\cot x, for x≠kπx \ne k\pi. The rule of signs: the three CO-functions, cos⁡\cos, cot⁡\cot and csc⁡\csc, have a minus sign in their derivatives, and each co-derivative is obtained from its partner by swapping every function with its co-function and adding the minus: tan⁡→sec⁡2\tan \to \sec^2 becomes cot⁡→−csc⁡2\cot \to -\csc^2, and sec⁡→sec⁡tan⁡\sec \to \sec\tan becomes csc⁡→−csc⁡cot⁡\csc \to -\csc\cot.

Exercise 4: Product and quotient rules with trigonometric functions, then simplify

Once the six derivatives are known, a trigonometric expression is differentiated with the rules of the previous chapter: sum, product (uv)′=u′v+uv′(uv)' = u'v + uv', quotient (uv)′=u′v−uv′v2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}. The derivative of a product is NOT the product of the derivatives, and the derivative of a quotient is NOT the quotient of the derivatives.

A trigonometric derivative is rarely finished when the rule has been applied: the identities sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 and sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x usually collapse the numerator, and the exam expects the simplified form. The chain rule is the next chapter: it is not used here.

  • a) Differentiate f(x)=x2sin⁡xf(x) = x^2\sin x and g(x)=excos⁡xg(x) = e^x\cos x.
  • b) Differentiate h(x)=sin⁡x1+cos⁡xh(x) = \frac{\sin x}{1 + \cos x} and simplify the result to a single short fraction.
  • c) Differentiate k(x)=sec⁡x1+tan⁡xk(x) = \frac{\sec x}{1 + \tan x}, simplify, and find k′(π4)k'\left(\frac{\pi}{4}\right).
  • d) Differentiate y=sin⁡xcos⁡xy = \sin x\cos x. Deduce the derivative of sin⁡2x\sin 2x WITHOUT the chain rule, using sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x and cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2 x - \sin^2 x.
  • e) Differentiate p(x)=tan⁡xcos⁡xp(x) = \tan x\cos x in two ways: by the product rule, then after simplifying pp. Compare, and state the domain of pp and of p′p'.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f′(x)=2xsin⁡x+x2cos⁡xf'(x) = 2x\sin x + x^2\cos x; g′(x)=ex(cos⁡x−sin⁡x)g'(x) = e^x(\cos x - \sin x)
  • b) h′(x)=11+cos⁡xh'(x) = \frac{1}{1 + \cos x}
  • c) k′(x)=sec⁡x(tan⁡x−1)(1+tan⁡x)2k'(x) = \frac{\sec x(\tan x - 1)}{(1 + \tan x)^2}; k′(π4)=0k'\left(\frac{\pi}{4}\right) = 0
  • d) y′=cos⁡2x−sin⁡2xy' = \cos^2 x - \sin^2 x; (sin⁡2x)′=2cos⁡2x(\sin 2x)' = 2\cos 2x
  • e) Both give p′(x)=cos⁡xp'(x) = \cos x, but only for cos⁡x≠0\cos x \ne 0: pp and p′p' are undefined at π2+kπ\frac{\pi}{2} + k\pi.

a) Product rule with u=x2u = x^2, v=sin⁡xv = \sin x, u′=2xu' = 2x, v′=cos⁡xv' = \cos x: f′(x)=2xsin⁡x+x2cos⁡xf'(x) = 2x\sin x + x^2\cos x. Product rule with u=exu = e^x, v=cos⁡xv = \cos x, u′=exu' = e^x, v′=−sin⁡xv' = -\sin x: g′(x)=excos⁡x−exsin⁡x=ex(cos⁡x−sin⁡x)g'(x) = e^x\cos x - e^x\sin x = e^x(\cos x - \sin x). Naming uu, vv, u′u' and v′v' on the copy before assembling is what makes the minus of (cos⁡x)′(\cos x)' impossible to lose. Writing (x2sin⁡x)′=2xcos⁡x(x^2\sin x)' = 2x\cos x, the product of the derivatives, is worth zero.

b) Quotient rule with u=sin⁡xu = \sin x, v=1+cos⁡xv = 1 + \cos x, u′=cos⁡xu' = \cos x, v′=−sin⁡xv' = -\sin x: h′(x)=cos⁡x(1+cos⁡x)−sin⁡x(−sin⁡x)(1+cos⁡x)2=cos⁡x+cos⁡2x+sin⁡2x(1+cos⁡x)2=1+cos⁡x(1+cos⁡x)2=11+cos⁡xh'(x) = \frac{\cos x(1 + \cos x) - \sin x(-\sin x)}{(1 + \cos x)^2} = \frac{\cos x + \cos^2 x + \sin^2 x}{(1 + \cos x)^2} = \frac{1 + \cos x}{(1 + \cos x)^2} = \frac{1}{1 + \cos x}, wherever cos⁡x≠−1\cos x \ne -1. The two minus signs, from v′v' and from the quotient rule, combine into a plus, and then cos⁡2x+sin⁡2x=1\cos^2 x + \sin^2 x = 1 produces the factor 1+cos⁡x1 + \cos x that cancels. Stopping at the unsimplified fraction usually costs a mark on a question that says simplify.

c) Here u=sec⁡xu = \sec x, u′=sec⁡xtan⁡xu' = \sec x\tan x, v=1+tan⁡xv = 1 + \tan x, v′=sec⁡2xv' = \sec^2 x. So k′(x)=sec⁡xtan⁡x(1+tan⁡x)−sec⁡x⋅sec⁡2x(1+tan⁡x)2=sec⁡x(tan⁡x+tan⁡2x−sec⁡2x)(1+tan⁡x)2k'(x) = \frac{\sec x\tan x(1 + \tan x) - \sec x\cdot\sec^2 x}{(1 + \tan x)^2} = \frac{\sec x\left(\tan x + \tan^2 x - \sec^2 x\right)}{(1 + \tan x)^2}. With sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x the bracket becomes tan⁡x−1\tan x - 1: k′(x)=sec⁡x(tan⁡x−1)(1+tan⁡x)2k'(x) = \frac{\sec x(\tan x - 1)}{(1 + \tan x)^2}, valid where cos⁡x≠0\cos x \ne 0 and tan⁡x≠−1\tan x \ne -1. At π4\frac{\pi}{4}, tan⁡π4=1\tan\frac{\pi}{4} = 1, so k′(π4)=0k'\left(\frac{\pi}{4}\right) = 0: the graph of kk has a horizontal tangent there. Factoring sec⁡x\sec x out first is what lets the identity act.

d) Product rule: y′=(sin⁡x)′cos⁡x+sin⁡x(cos⁡x)′=cos⁡xcos⁡x+sin⁡x(−sin⁡x)=cos⁡2x−sin⁡2xy' = (\sin x)'\cos x + \sin x(\cos x)' = \cos x\cos x + \sin x(-\sin x) = \cos^2 x - \sin^2 x. Since sin⁡2x=2sin⁡xcos⁡x=2y\sin 2x = 2\sin x\cos x = 2y, the constant multiple rule gives (sin⁡2x)′=2(cos⁡2x−sin⁡2x)=2cos⁡2x(\sin 2x)' = 2(\cos^2 x - \sin^2 x) = 2\cos 2x. The factor 22 is the one students drop when they write (sin⁡2x)′=cos⁡2x(\sin 2x)' = \cos 2x by analogy with (sin⁡x)′=cos⁡x(\sin x)' = \cos x: the formula (sin⁡x)′=cos⁡x(\sin x)' = \cos x is about the argument xx alone. Next chapter, the chain rule will produce the same 22 mechanically; here the identity gives it for free, and checks it.

e) Product rule with u=tan⁡xu = \tan x, v=cos⁡xv = \cos x: p′(x)=sec⁡2xcos⁡x+tan⁡x(−sin⁡x)=1cos⁡x−sin⁡2xcos⁡x=1−sin⁡2xcos⁡x=cos⁡2xcos⁡x=cos⁡xp'(x) = \sec^2 x\cos x + \tan x(-\sin x) = \frac{1}{\cos x} - \frac{\sin^2 x}{\cos x} = \frac{1 - \sin^2 x}{\cos x} = \frac{\cos^2 x}{\cos x} = \cos x. After simplifying first, p(x)=sin⁡xcos⁡xcos⁡x=sin⁡xp(x) = \frac{\sin x}{\cos x}\cos x = \sin x wherever cos⁡x≠0\cos x \ne 0, so p′(x)=cos⁡xp'(x) = \cos x at once. Same answer, far less work: simplify BEFORE differentiating whenever you can. But the domain does not simplify: pp is undefined at x=π2+kπx = \frac{\pi}{2} + k\pi, its graph is the sine curve with holes there, and p′p' does not exist at those points either, although the formula cos⁡x\cos x has a value there. The correct answer is p′(x)=cos⁡xp'(x) = \cos x for cos⁡x≠0\cos x \ne 0.

Exercise 5: Derivatives of high order: the cycle of four

Differentiating sine four times brings it back: the derivatives of sin⁡x\sin x and cos⁡x\cos x repeat with period 44. A derivative of order 9999 is therefore read off from a remainder, never computed ninety-nine times. The figure shows y=sin⁡xy = \sin x and y=cos⁡xy = \cos x: each derivative shifts the graph of sine to the LEFT by a quarter period, π2\frac{\pi}{2}.

-π/2π3π/22πshift π/2y = cos xy = sin x
  • a) Write the first four derivatives of sin⁡x\sin x and of cos⁡x\cos x, and state how dndxnsin⁡x\frac{d^n}{dx^n}\sin x depends on nn.
  • b) Find d99dx99sin⁡x\frac{d^{99}}{dx^{99}}\sin x and d50dx50cos⁡x\frac{d^{50}}{dx^{50}}\cos x.
  • c) Let y=xcos⁡xy = x\cos x. Compute y′y', y′′y'', y′′′y''' and y(4)y^{(4)}, then prove by induction that y(n)=x c(n)(x)+n c(n−1)(x)y^{(n)} = x\,c^{(n)}(x) + n\,c^{(n-1)}(x) for n≥1n \ge 1, where c=cos⁡c = \cos. Deduce y(42)y^{(42)}.
  • d) Find (tan⁡x)′′(\tan x)'' and (sec⁡x)′′(\sec x)'', writing sec⁡2x\sec^2 x as the PRODUCT sec⁡x⋅sec⁡x\sec x\cdot\sec x. Show that (sec⁡x)′′=2sec⁡3x−sec⁡x(\sec x)'' = 2\sec^3 x - \sec x.
  • e) Let f(x)=sin⁡x+cos⁡xf(x) = \sin x + \cos x. Find f(n)(0)f^{(n)}(0) for every n≥0n \ge 0, and count the nn between 11 and 100100 for which f(n)(0)=−1f^{(n)}(0) = -1.

Type your answers, the page tells you right or wrong 0/6

b)
c)
d)
e)
Show the solution

Answers

  • a) sin⁡→cos⁡→−sin⁡→−cos⁡→sin⁡\sin \to \cos \to -\sin \to -\cos \to \sin; the nn-th derivative depends only on the remainder of nn divided by 44.
  • b) −cos⁡x-\cos x and −cos⁡x-\cos x
  • c) y(42)=−xcos⁡x−42sin⁡xy^{(42)} = -x\cos x - 42\sin x
  • d) (tan⁡x)′′=2sec⁡2xtan⁡x(\tan x)'' = 2\sec^2 x\tan x; (sec⁡x)′′=sec⁡xtan⁡2x+sec⁡3x=2sec⁡3x−sec⁡x(\sec x)'' = \sec x\tan^2 x + \sec^3 x = 2\sec^3 x - \sec x
  • e) 1,1,−1,−11, 1, -1, -1 repeating; f(n)(0)=−1f^{(n)}(0) = -1 for 5050 values of nn.

a) (sin⁡x)′=cos⁡x(\sin x)' = \cos x, (sin⁡x)′′=−sin⁡x(\sin x)'' = -\sin x, (sin⁡x)′′′=−cos⁡x(\sin x)''' = -\cos x, (sin⁡x)(4)=sin⁡x(\sin x)^{(4)} = \sin x. And (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x, (cos⁡x)′′=−cos⁡x(\cos x)'' = -\cos x, (cos⁡x)′′′=sin⁡x(\cos x)''' = \sin x, (cos⁡x)(4)=cos⁡x(\cos x)^{(4)} = \cos x. Since the fourth derivative is the function itself, d4k+rdx4k+rsin⁡x=drdxrsin⁡x\frac{d^{4k + r}}{dx^{4k + r}}\sin x = \frac{d^r}{dx^r}\sin x for r=0,1,2,3r = 0, 1, 2, 3: only the remainder rr of nn divided by 44 matters. On the figure, the peak of cos⁡x\cos x at 00 is the peak of sin⁡x\sin x at π2\frac{\pi}{2} moved left by π2\frac{\pi}{2}, and indeed cos⁡x=sin⁡(x+π2)\cos x = \sin\left(x + \frac{\pi}{2}\right): four quarter-shifts make a full period.

b) 99=4×24+399 = 4 \times 24 + 3, so d99dx99sin⁡x=(sin⁡x)′′′=−cos⁡x\frac{d^{99}}{dx^{99}}\sin x = (\sin x)''' = -\cos x. 50=4×12+250 = 4 \times 12 + 2, so d50dx50cos⁡x=(cos⁡x)′′=−cos⁡x\frac{d^{50}}{dx^{50}}\cos x = (\cos x)'' = -\cos x. The common error is to reason on parity alone, 99 is odd so the answer is cos⁡x\cos x: parity decides between sine and cosine, but the SIGN needs the remainder modulo 44. Check the remainder by multiplying back: 4×24=964 \times 24 = 96 and 96+3=9996 + 3 = 99.

c) y′=cos⁡x−xsin⁡xy' = \cos x - x\sin x (product rule). y′′=−sin⁡x−sin⁡x−xcos⁡x=−2sin⁡x−xcos⁡xy'' = -\sin x - \sin x - x\cos x = -2\sin x - x\cos x. y′′′=−2cos⁡x−cos⁡x+xsin⁡x=−3cos⁡x+xsin⁡xy''' = -2\cos x - \cos x + x\sin x = -3\cos x + x\sin x. y(4)=3sin⁡x+sin⁡x+xcos⁡x=4sin⁡x+xcos⁡xy^{(4)} = 3\sin x + \sin x + x\cos x = 4\sin x + x\cos x. Each line matches x c(n)(x)+n c(n−1)(x)x\,c^{(n)}(x) + n\,c^{(n-1)}(x), since c′=−sin⁡c' = -\sin, c′′=−cos⁡c'' = -\cos, c′′′=sin⁡c''' = \sin, c(4)=cos⁡c^{(4)} = \cos. Induction: the formula holds for n=1n = 1; if y(n)=x c(n)+n c(n−1)y^{(n)} = x\,c^{(n)} + n\,c^{(n-1)}, the product rule gives y(n+1)=c(n)+x c(n+1)+n c(n)=x c(n+1)+(n+1) c(n)y^{(n+1)} = c^{(n)} + x\,c^{(n+1)} + n\,c^{(n)} = x\,c^{(n+1)} + (n + 1)\,c^{(n)}, the formula for n+1n + 1. For n=42n = 42: 42=4×10+242 = 4 \times 10 + 2 gives c(42)=−cos⁡xc^{(42)} = -\cos x, and 41=4×10+141 = 4 \times 10 + 1 gives c(41)=−sin⁡xc^{(41)} = -\sin x. So y(42)=−xcos⁡x−42sin⁡xy^{(42)} = -x\cos x - 42\sin x. The coefficient 4242 counts how many times the factor xx has been differentiated away, once in each of the 4242 steps.

d) (tan⁡x)′=sec⁡2x=sec⁡x⋅sec⁡x(\tan x)' = \sec^2 x = \sec x\cdot\sec x, and the product rule gives (tan⁡x)′′=sec⁡xtan⁡x⋅sec⁡x+sec⁡x⋅sec⁡xtan⁡x=2sec⁡2xtan⁡x(\tan x)'' = \sec x\tan x\cdot\sec x + \sec x\cdot\sec x\tan x = 2\sec^2 x\tan x. Writing sec⁡2x\sec^2 x as a product is what makes this possible before the chain rule. Next, (sec⁡x)′′=(sec⁡xtan⁡x)′=sec⁡xtan⁡x⋅tan⁡x+sec⁡x⋅sec⁡2x=sec⁡xtan⁡2x+sec⁡3x(\sec x)'' = (\sec x\tan x)' = \sec x\tan x\cdot\tan x + \sec x\cdot\sec^2 x = \sec x\tan^2 x + \sec^3 x. With tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1: sec⁡x(sec⁡2x−1)+sec⁡3x=2sec⁡3x−sec⁡x\sec x(\sec^2 x - 1) + \sec^3 x = 2\sec^3 x - \sec x. Check at x=0x = 0: the first form gives sec⁡0tan⁡20+sec⁡30=0+1=1\sec 0\tan^2 0 + \sec^3 0 = 0 + 1 = 1 and the second 2−1=12 - 1 = 1. Two forms that disagree at one convenient point cannot both be right.

e) f(0)=1f(0) = 1. f′=cos⁡x−sin⁡xf' = \cos x - \sin x, so f′(0)=1f'(0) = 1. f′′=−sin⁡x−cos⁡xf'' = -\sin x - \cos x, so f′′(0)=−1f''(0) = -1. f′′′=−cos⁡x+sin⁡xf''' = -\cos x + \sin x, so f′′′(0)=−1f'''(0) = -1. f(4)=ff^{(4)} = f, so the values repeat: 1,1,−1,−1,1,1,−1,−1,…1, 1, -1, -1, 1, 1, -1, -1, \dots Hence f(n)(0)=1f^{(n)}(0) = 1 when nn leaves remainder 00 or 11 on division by 44, and −1-1 when it leaves 22 or 33. Between 11 and 100100 there are 2525 complete blocks of four consecutive integers, each containing exactly two values with remainder 22 or 33: 5050 values of nn.

Part B: problems and reasoning (/50)

Exercise 6: Horizontal tangents on an interval: factor, never divide

A curve y=f(x)y = f(x) has a horizontal tangent at aa when f′(a)=0f'(a) = 0. For a trigonometric function the equation f′(x)=0f'(x) = 0 is a trigonometric equation, solved on the interval asked, with EXACT solutions. Its classic trap: dividing both sides by sin⁡x\sin x or cos⁡x\cos x silently throws away the solutions where that factor vanishes. Factor, then set each factor to zero.

The figure shows g(x)=cos⁡x+sin⁡2xg(x) = \cos x + \sin^2 x on [0,2π][0, 2\pi], the function of question b).

π/2π3π/22π1-1y = cos x + sin²x
  • a) Find the points of f(x)=x+2sin⁡xf(x) = x + 2\sin x, 0≤x≤2π0 \le x \le 2\pi, where the tangent is horizontal.
  • b) Same question for g(x)=cos⁡x+sin⁡2xg(x) = \cos x + \sin^2 x, writing sin⁡2x=sin⁡x⋅sin⁡x\sin^2 x = \sin x\cdot\sin x. How many points does the figure show, and how many does a student find who divides by sin⁡x\sin x?
  • c) Same question for h(x)=exsin⁡xh(x) = e^x\sin x on [0,2π][0, 2\pi]. Here dividing by cos⁡x\cos x is legitimate: prove it.
  • d) Find the horizontal tangents of y=sec⁡xy = \sec x on (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right) and of y=csc⁡xy = \csc x on (0,π)(0, \pi). Does y=tan⁡xy = \tan x have any?
  • e) For which real constants cc does y=x+csin⁡xy = x + c\sin x have at least one horizontal tangent? Give the points when c=1c = 1.

Type your answers, the page tells you right or wrong 0/12

a)
b)
c)
d)
e)
Values of cc: first interval ,
Values of cc: second interval ,
Show the solution

Answers

  • a) (2π3,2π3+3)\left(\frac{2\pi}{3}, \frac{2\pi}{3} + \sqrt 3\right) and (4π3,4π3−3)\left(\frac{4\pi}{3}, \frac{4\pi}{3} - \sqrt 3\right)
  • b) Five points: (0,1)(0, 1), (π3,54)\left(\frac{\pi}{3}, \frac{5}{4}\right), (π,−1)(\pi, -1), (5π3,54)\left(\frac{5\pi}{3}, \frac{5}{4}\right), (2π,1)(2\pi, 1); dividing keeps only two.
  • c) x=3π4x = \frac{3\pi}{4} and x=7π4x = \frac{7\pi}{4}: (3π4,22e3π/4)\left(\frac{3\pi}{4}, \frac{\sqrt 2}{2}e^{3\pi/4}\right), (7π4,−22e7π/4)\left(\frac{7\pi}{4}, -\frac{\sqrt 2}{2}e^{7\pi/4}\right)
  • d) sec⁡\sec: (0,1)(0, 1); csc⁡\csc: (π2,1)\left(\frac{\pi}{2}, 1\right); tan⁡\tan: none, since sec⁡2x≥1\sec^2 x \ge 1.
  • e) ∣c∣≥1|c| \ge 1; for c=1c = 1, the points (π+2kπ,π+2kπ)(\pi + 2k\pi, \pi + 2k\pi), kk an integer.

a) f′(x)=1+2cos⁡xf'(x) = 1 + 2\cos x, by the sum rule and (sin⁡x)′=cos⁡x(\sin x)' = \cos x. Then f′(x)=0  ⟺  cos⁡x=−12f'(x) = 0 \iff \cos x = -\frac{1}{2}. On [0,2π][0, 2\pi], cosine equals −12-\frac{1}{2} at x=2π3x = \frac{2\pi}{3} (second quadrant) and x=4π3x = \frac{4\pi}{3} (third quadrant), and nowhere else. The heights: f(2π3)=2π3+2⋅32=2π3+3f\left(\frac{2\pi}{3}\right) = \frac{2\pi}{3} + 2\cdot\frac{\sqrt 3}{2} = \frac{2\pi}{3} + \sqrt 3 and f(4π3)=4π3−3f\left(\frac{4\pi}{3}\right) = \frac{4\pi}{3} - \sqrt 3. A point is two coordinates: giving only the xx values answers half the question.

b) g′(x)=−sin⁡x+(sin⁡x⋅sin⁡x)′=−sin⁡x+2sin⁡xcos⁡xg'(x) = -\sin x + (\sin x\cdot\sin x)' = -\sin x + 2\sin x\cos x, the product rule giving cos⁡xsin⁡x+sin⁡xcos⁡x\cos x\sin x + \sin x\cos x. Factor: g′(x)=sin⁡x (2cos⁡x−1)g'(x) = \sin x\,(2\cos x - 1). A product is zero when one of its factors is: sin⁡x=0\sin x = 0 gives x=0,π,2πx = 0, \pi, 2\pi; cos⁡x=12\cos x = \frac{1}{2} gives x=π3,5π3x = \frac{\pi}{3}, \frac{5\pi}{3}. Heights: g(0)=1g(0) = 1, g(π3)=12+34=54g\left(\frac{\pi}{3}\right) = \frac{1}{2} + \frac{3}{4} = \frac{5}{4}, g(π)=−1+0=−1g(\pi) = -1 + 0 = -1, g(5π3)=54g\left(\frac{5\pi}{3}\right) = \frac{5}{4}, g(2π)=1g(2\pi) = 1. The figure shows exactly these five flat spots: the two bumps, the bottom of the valley at π\pi, and the two ends. The student who writes −sin⁡x+2sin⁡xcos⁡x=0⇒2cos⁡x=1-\sin x + 2\sin x\cos x = 0 \Rightarrow 2\cos x = 1 divided by sin⁡x\sin x, which is legitimate only where sin⁡x≠0\sin x \ne 0, and lost three of the five points without noticing.

c) h′(x)=exsin⁡x+excos⁡x=ex(sin⁡x+cos⁡x)h'(x) = e^x\sin x + e^x\cos x = e^x(\sin x + \cos x) by the product rule. Since ex>0e^x > 0, h′(x)=0  ⟺  sin⁡x+cos⁡x=0h'(x) = 0 \iff \sin x + \cos x = 0. Before dividing by cos⁡x\cos x, check that no solution is lost: if cos⁡x=0\cos x = 0 then sin⁡x=±1\sin x = \pm 1 and sin⁡x+cos⁡x=±1≠0\sin x + \cos x = \pm 1 \ne 0, so every solution has cos⁡x≠0\cos x \ne 0. Dividing is now safe: tan⁡x=−1\tan x = -1, so x=3π4x = \frac{3\pi}{4} or x=7π4x = \frac{7\pi}{4} on [0,2π][0, 2\pi]. Heights: h(3π4)=e3π/4⋅22h\left(\frac{3\pi}{4}\right) = e^{3\pi/4}\cdot\frac{\sqrt 2}{2} and h(7π4)=−e7π/4⋅22h\left(\frac{7\pi}{4}\right) = -e^{7\pi/4}\cdot\frac{\sqrt 2}{2}, exact values, no decimal needed. The one-line check is the difference between a division that is a proof and a division that is a gamble.

d) (sec⁡x)′=sec⁡xtan⁡x(\sec x)' = \sec x\tan x. The factor sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x} is never 00, so (sec⁡x)′=0  ⟺  tan⁡x=0  ⟺  x=0(\sec x)' = 0 \iff \tan x = 0 \iff x = 0 on (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right): the point (0,1)(0, 1). (csc⁡x)′=−csc⁡xcot⁡x(\csc x)' = -\csc x\cot x, and csc⁡x\csc x is never 00, so cot⁡x=0\cot x = 0, that is cos⁡x=0\cos x = 0 with sin⁡x≠0\sin x \ne 0: x=π2x = \frac{\pi}{2}, the point (π2,1)\left(\frac{\pi}{2}, 1\right). For the tangent function, (tan⁡x)′=sec⁡2x=1cos⁡2x≥1(\tan x)' = \sec^2 x = \frac{1}{\cos^2 x} \ge 1 wherever it is defined: the slope is never 00, it is never even below 11, so y=tan⁡xy = \tan x has no horizontal tangent at all.

e) y′=1+ccos⁡xy' = 1 + c\cos x. If c=0c = 0, y′=1y' = 1 and there is no horizontal tangent. Otherwise y′=0  ⟺  cos⁡x=−1cy' = 0 \iff \cos x = -\frac{1}{c}, which has a solution exactly when ∣−1c∣≤1\left|-\frac{1}{c}\right| \le 1, that is ∣c∣≥1|c| \ge 1. Conversely, when ∣c∣<1|c| < 1, ∣ccos⁡x∣≤∣c∣<1|c\cos x| \le |c| < 1, so y′=1+ccos⁡x>0y' = 1 + c\cos x > 0 for every xx. Answer: ∣c∣≥1|c| \ge 1, and c=2c = 2 was question a). For c=1c = 1: cos⁡x=−1\cos x = -1, so x=π+2kπx = \pi + 2k\pi with kk an integer, where sin⁡x=0\sin x = 0 and y=xy = x: the points (π+2kπ,π+2kπ)(\pi + 2k\pi, \pi + 2k\pi), infinitely many, all on the line y=xy = x.

π/2π3π/22π1-1green: cos x = 1/2red: sin x = 0

Exercise 7: Tangent and normal lines to trigonometric curves

The tangent to y=f(x)y = f(x) at aa is y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a); the normal is the line through the same point perpendicular to it, with slope −1f′(a)-\frac{1}{f'(a)} when f′(a)≠0f'(a) \ne 0. Every value is exact: sec⁡π3=2\sec\frac{\pi}{3} = 2, tan⁡π4=1\tan\frac{\pi}{4} = 1, and π\pi stays π\pi in the final equation.

The figure, drawn with EQUAL scales on both axes so that angles are true, shows y=sin⁡xy = \sin x and y=cos⁡xy = \cos x crossing at the point PP of abscissa π4\frac{\pi}{4}.

π/4π/21Py = sin xy = cos x
  • a) Find the tangent to y=tan⁡xy = \tan x at x=π4x = \frac{\pi}{4}.
  • b) Find the tangent and the normal to y=xcos⁡xy = x\cos x at x=πx = \pi.
  • c) Find the tangent to y=2sec⁡x−cos⁡xy = 2\sec x - \cos x at x=π3x = \frac{\pi}{3}.
  • d) A student claims that the curves y=sin⁡xy = \sin x and y=cos⁡xy = \cos x cross at right angles at PP. Decide, and give the angle between their tangent lines at PP in exact form.
  • e) Find every xx in [0,2π][0, 2\pi] where the tangent to y=sin⁡xy = \sin x is parallel to the line y=x2y = \frac{x}{2}, and write each tangent.

Type your answers, the page tells you right or wrong 0/13

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) y=2x+1−π2y = 2x + 1 - \frac{\pi}{2}
  • b) Tangent y=−xy = -x; normal y=x−2πy = x - 2\pi
  • c) y=72+932(x−π3)y = \frac{7}{2} + \frac{9\sqrt 3}{2}\left(x - \frac{\pi}{3}\right)
  • d) False: slopes 22\frac{\sqrt 2}{2} and −22-\frac{\sqrt 2}{2}, product −12≠−1-\frac{1}{2} \ne -1; angle arctan⁡(22)\arctan(2\sqrt 2).
  • e) x=π3x = \frac{\pi}{3}: y=32+12(x−π3)y = \frac{\sqrt 3}{2} + \frac{1}{2}\left(x - \frac{\pi}{3}\right); x=5π3x = \frac{5\pi}{3}: y=−32+12(x−5π3)y = -\frac{\sqrt 3}{2} + \frac{1}{2}\left(x - \frac{5\pi}{3}\right)

a) Point: tan⁡π4=1\tan\frac{\pi}{4} = 1. Slope: (tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x and sec⁡π4=1cos⁡(π/4)=22=2\sec\frac{\pi}{4} = \frac{1}{\cos(\pi/4)} = \frac{2}{\sqrt 2} = \sqrt 2, so the slope is (2)2=2(\sqrt 2)^2 = 2. Tangent: y=1+2(x−π4)=2x+1−π2y = 1 + 2\left(x - \frac{\pi}{4}\right) = 2x + 1 - \frac{\pi}{2}. Leaving π2\frac{\pi}{2} exact is the expected form; replacing it by 1.571.57 turns an exact answer into an approximate one on an exam without calculators.

b) y′=cos⁡x−xsin⁡xy' = \cos x - x\sin x by the product rule. At π\pi: y(π)=πcos⁡π=−πy(\pi) = \pi\cos\pi = -\pi and y′(π)=cos⁡π−πsin⁡π=−1−0=−1y'(\pi) = \cos\pi - \pi\sin\pi = -1 - 0 = -1. Tangent: y=−π−(x−π)=−xy = -\pi - (x - \pi) = -x, which passes through the origin. The normal has slope −1−1=1-\frac{1}{-1} = 1: y=−π+(x−π)=x−2πy = -\pi + (x - \pi) = x - 2\pi. The slope of the normal is the NEGATIVE reciprocal; the reciprocal alone gives −1-1 again, a line parallel to the tangent.

c) At π3\frac{\pi}{3}: cos⁡π3=12\cos\frac{\pi}{3} = \frac{1}{2}, sec⁡π3=2\sec\frac{\pi}{3} = 2, sin⁡π3=32\sin\frac{\pi}{3} = \frac{\sqrt 3}{2}, tan⁡π3=3\tan\frac{\pi}{3} = \sqrt 3. Point: y=2⋅2−12=72y = 2 \cdot 2 - \frac{1}{2} = \frac{7}{2}. Derivative: y′=2sec⁡xtan⁡x−(−sin⁡x)=2sec⁡xtan⁡x+sin⁡xy' = 2\sec x\tan x - (-\sin x) = 2\sec x\tan x + \sin x, and the minus of (cos⁡x)′(\cos x)' meets the minus in front of cos⁡x\cos x. Slope: 2⋅2⋅3+32=43+32=9322 \cdot 2 \cdot \sqrt 3 + \frac{\sqrt 3}{2} = 4\sqrt 3 + \frac{\sqrt 3}{2} = \frac{9\sqrt 3}{2}. Tangent: y=72+932(x−π3)y = \frac{7}{2} + \frac{9\sqrt 3}{2}\left(x - \frac{\pi}{3}\right). Writing y′=2sec⁡xtan⁡x−sin⁡xy' = 2\sec x\tan x - \sin x is the single most frequent sign slip of the chapter.

d) At x=π4x = \frac{\pi}{4}, sin⁡x=cos⁡x=22\sin x = \cos x = \frac{\sqrt 2}{2}, so P(π4,22)P\left(\frac{\pi}{4}, \frac{\sqrt 2}{2}\right) is on both curves. Slopes: m1=cos⁡π4=22m_1 = \cos\frac{\pi}{4} = \frac{\sqrt 2}{2} for sine, m2=−sin⁡π4=−22m_2 = -\sin\frac{\pi}{4} = -\frac{\sqrt 2}{2} for cosine. Two lines are perpendicular exactly when m1m2=−1m_1 m_2 = -1; here m1m2=−24=−12m_1 m_2 = -\frac{2}{4} = -\frac{1}{2}. The claim is FALSE: the curves cross at an angle smaller than a right angle, as the figure, drawn at equal scales, shows. The angle φ\varphi between the tangents satisfies tan⁡φ=∣m1−m21+m1m2∣=21/2=22\tan\varphi = \left|\frac{m_1 - m_2}{1 + m_1 m_2}\right| = \frac{\sqrt 2}{1/2} = 2\sqrt 2, so φ=arctan⁡(22)\varphi = \arctan(2\sqrt 2). Equivalently each tangent makes the angle arctan⁡22\arctan\frac{\sqrt 2}{2} with the horizontal, on opposite sides, and tan⁡(2arctan⁡22)=21−12=22\tan\left(2\arctan\frac{\sqrt 2}{2}\right) = \frac{\sqrt 2}{1 - \frac{1}{2}} = 2\sqrt 2 confirms it. The symmetry of the picture suggests a right angle; the slopes refute it.

e) Parallel means equal slopes: cos⁡x=12\cos x = \frac{1}{2}, so x=π3x = \frac{\pi}{3} or x=5π3x = \frac{5\pi}{3} on [0,2π][0, 2\pi]. At π3\frac{\pi}{3} the point is (π3,32)\left(\frac{\pi}{3}, \frac{\sqrt 3}{2}\right) and the tangent is y=32+12(x−π3)y = \frac{\sqrt 3}{2} + \frac{1}{2}\left(x - \frac{\pi}{3}\right). At 5π3\frac{5\pi}{3}, sin⁡5π3=−32\sin\frac{5\pi}{3} = -\frac{\sqrt 3}{2} and the tangent is y=−32+12(x−5π3)y = -\frac{\sqrt 3}{2} + \frac{1}{2}\left(x - \frac{5\pi}{3}\right). The two tangents are parallel to each other and distinct: at x=0x = 0 they give 32−π6\frac{\sqrt 3}{2} - \frac{\pi}{6} and −32−5π6-\frac{\sqrt 3}{2} - \frac{5\pi}{6}.

Exercise 8: Five statements to correct

Each statement below was written by a student on a MATH 140 assignment, and each is false. Say what is wrong, support the correction with a counterexample or a computation, and write the correct statement.

  • a) The formula (sin⁡x)′=cos⁡x(\sin x)' = \cos x holds whether xx is measured in radians or in degrees.
  • b) lim⁡x→01−cos⁡2xx2=12\lim_{x\to 0}\frac{1 - \cos 2x}{x^2} = \frac{1}{2}, because 1−cos⁡□□2→12\frac{1 - \cos\square}{\square^2} \to \frac{1}{2}.
  • c) (csc⁡x)′=csc⁡xcot⁡x(\csc x)' = \csc x\cot x, just as (sec⁡x)′=sec⁡xtan⁡x(\sec x)' = \sec x\tan x.
  • d) lim⁡x→01−cos⁡xx=1\lim_{x\to 0}\frac{1 - \cos x}{x} = 1, just as lim⁡x→0sin⁡xx=1\lim_{x\to 0}\frac{\sin x}{x} = 1.
  • e) (tan⁡x)′=(sin⁡x)′(cos⁡x)′=cos⁡x−sin⁡x=−cot⁡x(\tan x)' = \frac{(\sin x)'}{(\cos x)'} = \frac{\cos x}{-\sin x} = -\cot x.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) False: in degrees, ddxsin⁡(x∘)=π180cos⁡(x∘)\frac{d}{dx}\sin(x^\circ) = \frac{\pi}{180}\cos(x^\circ).
  • b) False: the box is 2x2x, squared below; the limit is 22.
  • c) False: (csc⁡x)′=−csc⁡xcot⁡x(\csc x)' = -\csc x\cot x.
  • d) False: the limit is 00; it is 1−cos⁡xx2\frac{1 - \cos x}{x^2} that tends to 12\frac{1}{2}.
  • e) False: the quotient rule gives (tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x.

a) FALSE. The proof of (sin⁡x)′=cos⁡x(\sin x)' = \cos x uses sin⁡hh→1\frac{\sin h}{h} \to 1, true in radians only. With S(x)=sin⁡(x∘)S(x) = \sin(x^\circ), the addition formula gives S(x+h)−S(x)h=sin⁡(x∘)⋅cos⁡(h∘)−1h+cos⁡(x∘)⋅sin⁡(h∘)h\frac{S(x + h) - S(x)}{h} = \sin(x^\circ)\cdot\frac{\cos(h^\circ) - 1}{h} + \cos(x^\circ)\cdot\frac{\sin(h^\circ)}{h}. By Exercise 1 d), sin⁡(h∘)h→π180\frac{\sin(h^\circ)}{h} \to \frac{\pi}{180}, and the same substitution u=πh180u = \frac{\pi h}{180} gives cos⁡(h∘)−1h→0\frac{\cos(h^\circ) - 1}{h} \to 0. So S′(x)=π180cos⁡(x∘)S'(x) = \frac{\pi}{180}\cos(x^\circ). At x=0x = 0 the slope is π180\frac{\pi}{180}, not 11: the graph of sin⁡(x∘)\sin(x^\circ) is the graph of sin⁡x\sin x stretched horizontally by the factor 180π\frac{180}{\pi}, period 360360 instead of 2π2\pi, and correspondingly flatter. Correct statement: (sin⁡x)′=cos⁡x(\sin x)' = \cos x with xx in RADIANS.

b) FALSE. The standard limit needs the same box in the numerator and, squared, in the denominator. Here the box is 2x2x, so 1−cos⁡2xx2=4⋅1−cos⁡2x(2x)2→4⋅12=2\frac{1 - \cos 2x}{x^2} = 4\cdot\frac{1 - \cos 2x}{(2x)^2} \to 4 \cdot \frac{1}{2} = 2. Second road, by the double angle identity 1−cos⁡2x=2sin⁡2x1 - \cos 2x = 2\sin^2 x: 2sin⁡2xx2=2(sin⁡xx)2→2\frac{2\sin^2 x}{x^2} = 2\left(\frac{\sin x}{x}\right)^2 \to 2. Plausibility: near 00, 1−cos⁡u1 - \cos u is about u22\frac{u^2}{2}, so 1−cos⁡2x1 - \cos 2x is about 2x22x^2 and the quotient about 22. Correct statement: lim⁡x→01−cos⁡axx2=a22\lim_{x\to 0}\frac{1 - \cos ax}{x^2} = \frac{a^2}{2} for every constant aa.

c) FALSE. (csc⁡x)′=(1sin⁡x)′=−cos⁡xsin⁡2x=−csc⁡xcot⁡x(\csc x)' = \left(\frac{1}{\sin x}\right)' = \frac{-\cos x}{\sin^2 x} = -\csc x\cot x. A sign test settles it without any formula: on (0,π2)\left(0, \frac{\pi}{2}\right), csc⁡x=1sin⁡x\csc x = \frac{1}{\sin x} decreases from very large values down to 11 as sin⁡x\sin x grows to 11, so its slope must be negative, while csc⁡xcot⁡x>0\csc x\cot x > 0 there. At π4\frac{\pi}{4} the true slope is −2⋅1=−2-\sqrt 2\cdot 1 = -\sqrt 2. Correct statement: (csc⁡x)′=−csc⁡xcot⁡x(\csc x)' = -\csc x\cot x; every co-function takes a minus sign.

d) FALSE. Multiplying by the conjugate, 1−cos⁡xx=sin⁡xx⋅sin⁡x1+cos⁡x→1⋅0=0\frac{1 - \cos x}{x} = \frac{\sin x}{x}\cdot\frac{\sin x}{1 + \cos x} \to 1 \cdot 0 = 0. The numerator 1−cos⁡x1 - \cos x shrinks like x22\frac{x^2}{2}, much faster than xx, while sin⁡x\sin x shrinks like xx itself. Correct statement: lim⁡x→01−cos⁡xx=0\lim_{x\to 0}\frac{1 - \cos x}{x} = 0 and lim⁡x→01−cos⁡xx2=12\lim_{x\to 0}\frac{1 - \cos x}{x^2} = \frac{1}{2}. The limit 00 is exactly what makes the term sin⁡x⋅cos⁡h−1h\sin x\cdot\frac{\cos h - 1}{h} disappear in the proof of (sin⁡x)′=cos⁡x(\sin x)' = \cos x: a 11 there would give the wrong derivative.

e) FALSE. There is no quotient-of-derivatives rule, any more than a product-of-derivatives rule. The quotient rule gives (tan⁡x)′=cos⁡xcos⁡x−sin⁡x(−sin⁡x)cos⁡2x=1cos⁡2x=sec⁡2x(\tan x)' = \frac{\cos x\cos x - \sin x(-\sin x)}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x. Counterexamples to the student's answer: at x=0x = 0, −cot⁡x-\cot x is not even defined, while the tangent to y=tan⁡xy = \tan x at the origin is y=xy = x, slope 11; at π4\frac{\pi}{4} the student gets −1-1, the truth is 22. Correct statement: (tan⁡x)′=sec⁡2x=1+tan⁡2x(\tan x)' = \sec^2 x = 1 + \tan^2 x.

Exercise 9: A mass on a spring: velocity, acceleration and the true amplitude

A mass hangs at the end of a spring. Its position, measured in centimetres from the equilibrium position and positive in the direction that stretches the spring, is x(t)=3cos⁡t+4sin⁡tx(t) = 3\cos t + 4\sin t, with tt in seconds and t≥0t \ge 0. The mass was pulled to x=3x = 3 and, instead of being released from rest, was given a push at t=0t = 0.

The figure shows x(t)x(t) for the first seven seconds, the dot marking the start. No calculator: every time and every position must be exact.

1234567-6-5-4-3-2-1123456x(t) = 3 cos t + 4 sin tt (s)x (cm)
  • a) Find x(0)x(0), the velocity v(t)=x′(t)v(t) = x'(t) and v(0)v(0). Describe in words how the motion starts.
  • b) Find the acceleration a(t)=v′(t)a(t) = v'(t) and show that a(t)=−x(t)a(t) = -x(t) for every tt. What does this say about the direction of the acceleration?
  • c) Find the first time t1>0t_1 > 0 at which the mass is momentarily at rest, and its position then. A student reads the amplitude as 33 cm, the starting position: correct him.
  • d) Prove that x(t)2+v(t)2=25x(t)^2 + v(t)^2 = 25 for every tt. Deduce the largest distance from equilibrium and the largest speed, and say where the mass is when each occurs.
  • e) At t=π2t = \frac{\pi}{2}, is the mass moving toward or away from equilibrium? Is it speeding up or slowing down?

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) x(0)=3x(0) = 3 cm; v(t)=−3sin⁡t+4cos⁡tv(t) = -3\sin t + 4\cos t; v(0)=4v(0) = 4 cm/s, moving away from equilibrium.
  • b) a(t)=−3cos⁡t−4sin⁡t=−x(t)a(t) = -3\cos t - 4\sin t = -x(t): always directed toward equilibrium.
  • c) t1=arctan⁡43t_1 = \arctan\frac{4}{3} s, where x(t1)=5x(t_1) = 5 cm: the amplitude is 55 cm.
  • d) ∣x∣≤5|x| \le 5 cm, reached where v=0v = 0; ∣v∣≤5|v| \le 5 cm/s, reached at equilibrium x=0x = 0.
  • e) x=4x = 4, v=−3v = -3, a=−4a = -4: toward equilibrium, speeding up.

a) x(0)=3cos⁡0+4sin⁡0=3x(0) = 3\cos 0 + 4\sin 0 = 3 cm. By the sum and constant multiple rules, v(t)=x′(t)=−3sin⁡t+4cos⁡tv(t) = x'(t) = -3\sin t + 4\cos t, in centimetres per second, and v(0)=0+4=4v(0) = 0 + 4 = 4 cm/s. At the start the mass is 33 cm on the stretched side and moves at 44 cm/s AWAY from equilibrium, in the positive direction: the push was outward, and the mass will go beyond 33 cm before turning back. The figure shows the curve rising from the dot.

b) a(t)=v′(t)=−3cos⁡t−4sin⁡t=−(3cos⁡t+4sin⁡t)=−x(t)a(t) = v'(t) = -3\cos t - 4\sin t = -(3\cos t + 4\sin t) = -x(t). The acceleration always has the sign opposite to the position: on the stretched side (x>0x > 0) it points back toward equilibrium, on the compressed side it points back as well, and it is proportional to the distance, zero exactly at equilibrium. This is the signature of the motion of a mass on a spring, verified here from the formula by two differentiations; nothing is solved, the relation is checked.

c) At rest means v(t)=0v(t) = 0: 4cos⁡t=3sin⁡t4\cos t = 3\sin t. If cos⁡t=0\cos t = 0 then sin⁡t=±1\sin t = \pm 1 and the equation fails, so cos⁡t≠0\cos t \ne 0 and dividing is safe: tan⁡t=43\tan t = \frac{4}{3}. The solutions are t=arctan⁡43+kπt = \arctan\frac{4}{3} + k\pi, and the first positive one is t1=arctan⁡43t_1 = \arctan\frac{4}{3}, in (0,π2)\left(0, \frac{\pi}{2}\right). In that quadrant, a right triangle with opposite side 44 and adjacent side 33 has hypotenuse 55, so sin⁡t1=45\sin t_1 = \frac{4}{5} and cos⁡t1=35\cos t_1 = \frac{3}{5}. Then x(t1)=3⋅35+4⋅45=9+165=5x(t_1) = 3\cdot\frac{3}{5} + 4\cdot\frac{4}{5} = \frac{9 + 16}{5} = 5 cm. The student's 33 cm is where the mass STARTED, not where it turns: the push carried it 22 cm further. The amplitude is found where the velocity vanishes, which is what the derivative is for.

d) Expand: x2=9cos⁡2t+24sin⁡tcos⁡t+16sin⁡2tx^2 = 9\cos^2 t + 24\sin t\cos t + 16\sin^2 t and v2=16cos⁡2t−24sin⁡tcos⁡t+9sin⁡2tv^2 = 16\cos^2 t - 24\sin t\cos t + 9\sin^2 t. The cross terms cancel and x2+v2=25(cos⁡2t+sin⁡2t)=25x^2 + v^2 = 25(\cos^2 t + \sin^2 t) = 25. Consequences: x2=25−v2≤25x^2 = 25 - v^2 \le 25, so ∣x∣≤5|x| \le 5, with equality exactly when v=0v = 0, at the turning points; and v2=25−x2≤25v^2 = 25 - x^2 \le 25, so ∣v∣≤5|v| \le 5, with equality exactly when x=0x = 0, as the mass passes through equilibrium. Largest distance 55 cm, largest speed 55 cm/s. The identity is the conservation of energy in disguise: position and speed trade off along a circle of radius 55.

e) x(π2)=3⋅0+4⋅1=4x\left(\frac{\pi}{2}\right) = 3 \cdot 0 + 4 \cdot 1 = 4, v(π2)=−3⋅1+4⋅0=−3v\left(\frac{\pi}{2}\right) = -3 \cdot 1 + 4 \cdot 0 = -3, a(π2)=−4a\left(\frac{\pi}{2}\right) = -4. The mass is on the positive side and its velocity is negative: it moves TOWARD equilibrium. Velocity and acceleration are both negative, so they have the same sign: the speed ∣v∣|v| is increasing, the mass speeds up. Both answers agree with d): it is heading for x=0x = 0, where its speed will reach its largest value 55 cm/s. Check: 42+(−3)2=254^2 + (-3)^2 = 25. Speeding up is decided by the signs of vv and aa TOGETHER, never by the sign of aa alone.

Exercise 10: A final exam question: the function sin x over (2 + cos x)

Let f(x)=sin⁡x2+cos⁡xf(x) = \frac{\sin x}{2 + \cos x}, whose graph on [0,2π][0, 2\pi] is shown in the figure. This is the shape of a long final exam question: domain and symmetries, a limit, a derivative simplified by an identity, horizontal tangents, then tangent lines, every step justified and every value exact.

π/2π3π/22π0.5-0.5y = sin x / (2 + cos x)
  • a) Show that ff is defined on all of R\mathbb{R}, that it is 2π2\pi-periodic and that it is odd.
  • b) Find lim⁡x→0f(x)x\lim_{x\to 0}\frac{f(x)}{x} in two ways: with the limit of sin⁡xx\frac{\sin x}{x}, then by recognizing a derivative.
  • c) Compute f′(x)f'(x) and simplify it to 2cos⁡x+1(2+cos⁡x)2\frac{2\cos x + 1}{(2 + \cos x)^2}.
  • d) Find the points of the graph on [0,2π][0, 2\pi] where the tangent is horizontal, with exact coordinates, and check them against the symmetries of a).
  • e) Find the tangent lines at x=0x = 0 and at x=πx = \pi, and the point where they meet.

Type your answers, the page tells you right or wrong 0/8

b)
c)
d)
e)
Show the solution

Answers

  • a) 2+cos⁡x≥1>02 + \cos x \ge 1 > 0; f(x+2π)=f(x)f(x + 2\pi) = f(x); f(−x)=−f(x)f(-x) = -f(x)
  • b) 13\frac{1}{3}, which is f′(0)f'(0)
  • c) f′(x)=2cos⁡x+1(2+cos⁡x)2f'(x) = \frac{2\cos x + 1}{(2 + \cos x)^2}
  • d) (2π3,33)\left(\frac{2\pi}{3}, \frac{\sqrt 3}{3}\right) and (4π3,−33)\left(\frac{4\pi}{3}, -\frac{\sqrt 3}{3}\right)
  • e) y=x3y = \frac{x}{3} and y=π−xy = \pi - x, meeting at (3π4,π4)\left(\frac{3\pi}{4}, \frac{\pi}{4}\right)

a) Since cos⁡x≥−1\cos x \ge -1, the denominator satisfies 2+cos⁡x≥1>02 + \cos x \ge 1 > 0: it never vanishes, and ff, a quotient of continuous functions, is defined for every real xx. Sine and cosine have period 2π2\pi, so f(x+2π)=sin⁡x2+cos⁡x=f(x)f(x + 2\pi) = \frac{\sin x}{2 + \cos x} = f(x). And f(−x)=sin⁡(−x)2+cos⁡(−x)=−sin⁡x2+cos⁡x=−f(x)f(-x) = \frac{\sin(-x)}{2 + \cos(-x)} = \frac{-\sin x}{2 + \cos x} = -f(x), because sine is odd and cosine is even: ff is odd, its graph symmetric about the origin.

b) First way: f(x)x=sin⁡xx⋅12+cos⁡x→1⋅12+1=13\frac{f(x)}{x} = \frac{\sin x}{x}\cdot\frac{1}{2 + \cos x} \to 1 \cdot \frac{1}{2 + 1} = \frac{1}{3}, by the product law and the continuity of cosine. Second way: f(0)=0f(0) = 0, so f(x)x=f(x)−f(0)x−0\frac{f(x)}{x} = \frac{f(x) - f(0)}{x - 0}, the difference quotient of ff at 00, whose limit is by definition f′(0)f'(0). With c), f′(0)=2+1(2+1)2=13f'(0) = \frac{2 + 1}{(2 + 1)^2} = \frac{1}{3}. The two answers agree, which is a check on c) before it is even written.

c) Quotient rule with u=sin⁡xu = \sin x, v=2+cos⁡xv = 2 + \cos x, u′=cos⁡xu' = \cos x, v′=−sin⁡xv' = -\sin x: f′(x)=cos⁡x(2+cos⁡x)−sin⁡x(−sin⁡x)(2+cos⁡x)2=2cos⁡x+cos⁡2x+sin⁡2x(2+cos⁡x)2=2cos⁡x+1(2+cos⁡x)2f'(x) = \frac{\cos x(2 + \cos x) - \sin x(-\sin x)}{(2 + \cos x)^2} = \frac{2\cos x + \cos^2 x + \sin^2 x}{(2 + \cos x)^2} = \frac{2\cos x + 1}{(2 + \cos x)^2}, by cos⁡2x+sin⁡2x=1\cos^2 x + \sin^2 x = 1. The mark for this question is in the middle line: the two minus signs made a plus, and the identity was applied.

d) The denominator of f′f' is at least 11, so f′(x)=0  ⟺  2cos⁡x+1=0  ⟺  cos⁡x=−12f'(x) = 0 \iff 2\cos x + 1 = 0 \iff \cos x = -\frac{1}{2}, that is x=2π3x = \frac{2\pi}{3} or x=4π3x = \frac{4\pi}{3} on [0,2π][0, 2\pi]. Heights: f(2π3)=3/22−1/2=3/23/2=33f\left(\frac{2\pi}{3}\right) = \frac{\sqrt 3/2}{2 - 1/2} = \frac{\sqrt 3/2}{3/2} = \frac{\sqrt 3}{3}, and f(4π3)=−3/23/2=−33f\left(\frac{4\pi}{3}\right) = \frac{-\sqrt 3/2}{3/2} = -\frac{\sqrt 3}{3}. Check with a): 4π3=2π−2π3\frac{4\pi}{3} = 2\pi - \frac{2\pi}{3}, so by periodicity and oddness f(4π3)=f(−2π3)=−f(2π3)f\left(\frac{4\pi}{3}\right) = f\left(-\frac{2\pi}{3}\right) = -f\left(\frac{2\pi}{3}\right), as found. The figure agrees: a crest a little after π2\frac{\pi}{2} and a trough a little before 3π2\frac{3\pi}{2}, at the same distance from the axis.

e) At 00: f(0)=0f(0) = 0 and f′(0)=13f'(0) = \frac{1}{3}, so the tangent is y=x3y = \frac{x}{3}. At π\pi: f(π)=02−1=0f(\pi) = \frac{0}{2 - 1} = 0 and f′(π)=2(−1)+1(2−1)2=−1f'(\pi) = \frac{2(-1) + 1}{(2 - 1)^2} = -1, so the tangent is y=−(x−π)=π−xy = -(x - \pi) = \pi - x. They meet where x3=π−x\frac{x}{3} = \pi - x, that is 4x3=π\frac{4x}{3} = \pi, so x=3π4x = \frac{3\pi}{4} and y=π4y = \frac{\pi}{4}. The meeting point (3π4,π4)\left(\frac{3\pi}{4}, \frac{\pi}{4}\right) lies ABOVE the graph: the height of the graph at 3π4\frac{3\pi}{4} is 2/22−2/2=24−2\frac{\sqrt 2/2}{2 - \sqrt 2/2} = \frac{\sqrt 2}{4 - \sqrt 2}, which is less than 34\frac{3}{4} because 42<12−324\sqrt 2 < 12 - 3\sqrt 2, that is 72<127\sqrt 2 < 12, or 98<14498 < 144 after squaring, while π4>34\frac{\pi}{4} > \frac{3}{4}. The solution figure shows the two tangents and their meeting point.

π/2π3π/22π0.5-0.5y = sin x / (2 + cos x)y = x/3y = π - x

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/math140-trigonometric-derivatives. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Struggling with MATH 140?

I tutor first-year calculus at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli