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θ→0θsinθ=1, and inherits its three conditions. The angle is in radians, the variable goes to 0 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, sin2x+cos2x=1 to simplify, and the minus sign that every co-function carries.
The traps named in the solutions: forgetting to square the box of x21−cos4x, answering 1 to x1−cosx or to xsinx at infinity, replacing tanx and sinx by x inside a difference, differentiating in degrees, dropping the minus of (cosx)′, (cotx)′ or (cscx)′, taking the derivative of a product or a quotient as the product or quotient of derivatives, reasoning on parity instead of the remainder modulo 4, dividing by sinx and losing solutions, taking the starting position of a spring for its amplitude, and deciding speeding up from the sign of the acceleration alone.
Self-checking setType your answers and check them question by 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, and your right answers stay filled in when you come back.
•(secx)′=secxtanx, (cscx)′=−cscxcotx, (cotx)′=−csc2x: the co-functions take a minus.
•The derivatives of sinx and cosx repeat every 4: only the remainder of n divided by 4 matters.
•Horizontal tangent: solve f′(x)=0 by FACTORING; divide by sinx or cosx 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θ→0θsinθ=1. Direct substitution gives 00, 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 θ measured in radians with 0<θ<2π, the points O(0,0), A(1,0), P(cosθ,sinθ), its projection Q(cosθ,0), and the point T where the line OP meets the tangent to the circle at A, so that AT=tanθ.
a) Compare the areas of the triangle OAP, of the circular sector OAP and of the triangle OAT, and deduce that sinθ<θ<tanθ for 0<θ<2π. Where exactly do radians enter?
b) Deduce that cosθ<θsinθ<1 on (0,2π), then prove that limθ→0θsinθ=1, from both sides.
c) Prove that limθ→0θ1−cosθ=0 and that limθ→0θ21−cosθ=21.
d) If x is measured in degrees, sin(x∘)=sin(180πx). Find limx→0xsin(x∘), and explain why calculus measures angles in radians.
e) Find limθ→0θtanθ and limθ→0sinθθ, and say what the three lengths PQ, arc AP and AT of the figure do as θ→0+.
Show the solution
Answers
a)21sinθ<21θ<21tanθ; radians enter through the sector area 2θ.
b)Squeeze between cosθ→1 and 1; the quotient is even, so both sides give 1.
c)θ1−cosθ=θsinθ⋅1+cosθsinθ→0; θ21−cosθ→21
d)180π, not 1
e)1 and 1: the three lengths have ratios tending to 1.
a)
The triangle OAP has base OA=1 and height PQ=sinθ, so its area is 21sinθ. The sector OAP is the fraction 2πθ of the disc of area π, so its area is 2θ. The triangle OAT is right-angled at A with legs OA=1 and AT=tanθ, so its area is 21tanθ. The first region lies strictly inside the second, which lies strictly inside the third, as the figure shows: 21sinθ<2θ<21tanθ, and multiplying by 2 gives sinθ<θ<tanθ. Radians enter in ONE place, the sector area 2θ: with an angle of d degrees the sector has area 360πd, and the whole chain of the chapter would carry that factor.
b)
Dividing sinθ<θ by θ>0 gives θsinθ<1. From θ<tanθ=cosθsinθ, multiplying by cosθ>0 and dividing by θ>0 gives cosθ<θsinθ. So cosθ<θsinθ<1 on (0,2π). As θ→0+, cosθ→cos0=1 because cosine is continuous, and the right bound is the constant 1: by the squeeze theorem, limθ→0+θsinθ=1. For θ<0, −θsin(−θ)=−θ−sinθ=θsinθ: 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 1. The quotient has no value at 0; the limit never looks at that point.
c)
Multiply by the conjugate 1+cosθ, which is close to 2 near 0: θ1−cosθ=θ(1+cosθ)1−cos2θ=θ(1+cosθ)sin2θ=θsinθ⋅1+cosθsinθ. The first factor tends to 1 by b), the second to 20=0, so the product tends to 0. With θ2 in the denominator: θ21−cosθ=(θsinθ)2⋅1+cosθ1→1⋅21=21. The two answers differ because 1−cosθ shrinks like 2θ2, much faster than θ: writing 1 for the first limit, by analogy with sine, is the classic error.
d)
Put u=180πx, which tends to 0 with x. Then xsin(x∘)=xsinu=180π⋅usinu→180π⋅1=180π. In degrees the fundamental limit is 180π, a little under 0.02, and every derivative of the chapter would be multiplied by it: the derivative of sin(x∘) would be 180πcos(x∘). Radians are precisely the unit in which the limit equals 1, which is why every formula of calculus assumes them.
e)
θtanθ=θsinθ⋅cosθ1→1⋅11=1, by the product law and the continuity of cosine at 0. And sinθθ=sinθ/θ1→11=1, by the quotient law, legitimate because the limit of the denominator is 1=0. On the figure, PQ=sinθ, arc AP=θ and AT=tanθ: all three tend to 0, but their RATIOS tend to 1. 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 and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. 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□→0□sin□=1 and lim□→0□21−cos□=21, where □ is ANY expression that tends to 0, 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=xsinx, with no value at x=0, between the dashed curves y=x1 and y=−x1.
a) Find limx→0x21−cos4x and limx→01−cosx1−cos3x.
b) Find limx→0xtan4x and limx→0xcot2x.
c) Find limx→0xsinx1−cosx and limx→0x3tanx−sinx. For the second, a student replaces tanx and sinx by x and answers 0: explain the error.
d) Recognize each limit as a derivative and compute it: limx→π/6x−6πsinx−21 and limh→0hcos(3π+h)−21.
e) Find limx→∞xsinx and limx→∞xsinx1. A student answers 1 to both: which one is right, and why?
Show the solution
Answers
a)8 and 9
b)4 and 21
c)21 and 21 (not 0)
d)cos6π=23 and −sin3π=−23
e)0 and 1: only the second has a box x1 that tends to 0.
a)
The box of 1−cos4x is 4x, so (4x)2=16x2 must appear below: x21−cos4x=16⋅(4x)21−cos4x→16⋅21=8. Answering 21, or 4⋅21=2, forgets that the box is SQUARED in the denominator. For the quotient of two cosines, divide top and bottom by x2: 1−cosx1−cos3x=x21−cosx9⋅(3x)21−cos3x→219⋅21=9, the quotient law being legitimate because the limit of the denominator is 21=0. The answer is 32, not 3: near 0, 1−cosu behaves like 2u2.
b)
A tangent is a sine over a cosine: xtan4x=xsin4x⋅cos4x1=4⋅4xsin4x⋅cos4x1→4⋅1⋅11=4. For the cotangent, xcot2x=sin2xxcos2x=21⋅sin2x2x⋅cos2x→21⋅1⋅1=21. The factor sin2x2x is the reciprocal of the standard quotient, and its limit is 11=1 by the quotient law. In both cases the cos that appears tends to 1 and does no harm.
c)
Direct substitution gives 00. The numerator 1−cosx calls for the conjugate: xsinx1−cosx=xsinx(1+cosx)1−cos2x=xsinx⋅1+cosx1→21, cancelling one sinx, which is legitimate because sinx=0 for 0<∣x∣<π. For the second, factor instead of approximating: tanx−sinx=cosxsinx−sinx=cosxsinx(1−cosx), so x3tanx−sinx=xsinx⋅x21−cosx⋅cosx1→1⋅21⋅1=21. The student's 0 comes from replacing two terms of a DIFFERENCE by their first approximation x: the approximations cancel exactly, and what is left, of order x3, 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)=limx→ax−af(x)−f(a)=limh→0hf(a+h)−f(a). The first limit has the first form with f=sin and a=6π, since sin6π=21: it is cos6π=23. The second has the second form with f=cos and a=3π, since cos3π=21: it is −sin3π=−23. Recognizing f AND a is the whole question; the only trap is the sign of (cosx)′. 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 xsinx the box x does NOT tend to 0, and the standard limit says nothing. Use the squeeze theorem instead: for x>0, −x1≤xsinx≤x1 because ∣sinx∣≤1, and both bounds tend to 0, so the limit is 0; the figure shows the curve pinned between the dashed envelopes. In xsinx1, on the contrary, write u=x1, which tends to 0+ as x→∞: xsinx1=usinu→1. Same variable, same destination, two different answers: what decides is whether the quantity under the sine tends to 0, 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)=limh→0hf(x+h)−f(x). For sine and cosine the difference f(x+h)−f(x) is opened with the addition formulas sin(x+h)=sinxcosh+cosxsinh and cos(x+h)=cosxcosh−sinxsinh; the two limits of Exercise 1 then do the rest. The four other functions are quotients of these two.
The figure shows y=sinx and three of its tangent lines, at x=0, x=2π and x=π.
a) Prove from the definition that (sinx)′=cosx, naming each limit used.
b) Prove from the definition that (cosx)′=−sinx.
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 (tanx)′=sec2x and (secx)′=secxtanx, and say where these formulas hold.
e) Prove that (cotx)′=−csc2x and (cscx)′=−cscxcotx. State the rule that gives the signs of all six derivatives.
Show the solution
Answers
a)hsin(x+h)−sinx=sinx⋅hcosh−1+cosx⋅hsinh→cosx
b)hcos(x+h)−cosx=cosx⋅hcosh−1−sinx⋅hsinh→−sinx
c)Slopes 1, 0, −1: y=x, y=1, y=π−x
d)(tanx)′=cos2xcos2x+sin2x=sec2x, (secx)′=cos2xsinx=secxtanx, for cosx=0
e)(cotx)′=−csc2x, (cscx)′=−cscxcotx, for sinx=0; the three co-functions take a minus sign.
a)
With f(x)=sinx and the addition formula, hsin(x+h)−sinx=hsinxcosh+cosxsinh−sinx=sinx⋅hcosh−1+cosx⋅hsinh. Here x is FIXED and only h moves, so sinx and cosx are constants for the limit. By Exercise 1, hcosh−1→0 and hsinh→1 as h→0, with h in radians. By the sum and product laws, the limit is sinx⋅0+cosx⋅1=cosx. The regrouping by sinx and cosx is the whole trick: it turns one unknown limit into two known ones.
b)
hcos(x+h)−cosx=hcosxcosh−sinxsinh−cosx=cosx⋅hcosh−1−sinx⋅hsinh→cosx⋅0−sinx⋅1=−sinx. 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=sinx at a is cosa. At 0: cos0=1, through (0,0), so y=x. At 2π: cos2π=0, through (2π,1), so the horizontal line y=1. At π: cosπ=−1, through (π,0), so y=−(x−π)=π−x. The figure agrees: the first tangent passes through (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 π and passes through (π−1,1). Reading slopes off a graph is the fastest way to catch a sign error in (cosx)′.
d)
Wherever cosx=0, tanx=cosxsinx, and the quotient rule gives (tanx)′=cos2xcosx⋅cosx−sinx⋅(−sinx)=cos2xcos2x+sin2x=cos2x1=sec2x, using sin2x+cos2x=1; equivalently 1+tan2x. Next, secx=cosx1: (secx)′=cos2x0⋅cosx−1⋅(−sinx)=cos2xsinx=cosx1⋅cosxsinx=secxtanx. Both hold exactly where the functions are defined, x=2π+kπ for every integer k. The minus of (cosx)′ meets the minus of the quotient rule, and the two cancel: that is why these two derivatives are positive-looking.
e)
Wherever sinx=0: (cotx)′=(sinxcosx)′=sin2x(−sinx)sinx−cosxcosx=sin2x−(sin2x+cos2x)=−csc2x, and (cscx)′=(sinx1)′=sin2x0−cosx=−sinx1⋅sinxcosx=−cscxcotx, for x=kπ. The rule of signs: the three CO-functions, cos, cot and 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→sec2 becomes cot→−csc2, and sec→sectan becomes csc→−csccot.
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′, quotient (vu)′=v2u′v−uv′. 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 sin2x+cos2x=1 and sec2x=1+tan2x 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)=x2sinx and g(x)=excosx.
b) Differentiate h(x)=1+cosxsinx and simplify the result to a single short fraction.
c) Differentiate k(x)=1+tanxsecx, simplify, and find k′(4π).
d) Differentiate y=sinxcosx. Deduce the derivative of sin2x WITHOUT the chain rule, using sin2x=2sinxcosx and cos2x=cos2x−sin2x.
e) Differentiate p(x)=tanxcosx in two ways: by the product rule, then after simplifying p. Compare, and state the domain of p and of p′.
Show the solution
Answers
a)f′(x)=2xsinx+x2cosx; g′(x)=ex(cosx−sinx)
b)h′(x)=1+cosx1
c)k′(x)=(1+tanx)2secx(tanx−1); k′(4π)=0
d)y′=cos2x−sin2x; (sin2x)′=2cos2x
e)Both give p′(x)=cosx, but only for cosx=0: p and p′ are undefined at 2π+kπ.
a)
Product rule with u=x2, v=sinx, u′=2x, v′=cosx: f′(x)=2xsinx+x2cosx. Product rule with u=ex, v=cosx, u′=ex, v′=−sinx: g′(x)=excosx−exsinx=ex(cosx−sinx). Naming u, v, u′ and v′ on the copy before assembling is what makes the minus of (cosx)′ impossible to lose. Writing (x2sinx)′=2xcosx, the product of the derivatives, is worth zero.
b)
Quotient rule with u=sinx, v=1+cosx, u′=cosx, v′=−sinx: h′(x)=(1+cosx)2cosx(1+cosx)−sinx(−sinx)=(1+cosx)2cosx+cos2x+sin2x=(1+cosx)21+cosx=1+cosx1, wherever cosx=−1. The two minus signs, from v′ and from the quotient rule, combine into a plus, and then cos2x+sin2x=1 produces the factor 1+cosx that cancels. Stopping at the unsimplified fraction usually costs a mark on a question that says simplify.
c)
Here u=secx, u′=secxtanx, v=1+tanx, v′=sec2x. So k′(x)=(1+tanx)2secxtanx(1+tanx)−secx⋅sec2x=(1+tanx)2secx(tanx+tan2x−sec2x). With sec2x=1+tan2x the bracket becomes tanx−1: k′(x)=(1+tanx)2secx(tanx−1), valid where cosx=0 and tanx=−1. At 4π, tan4π=1, so k′(4π)=0: the graph of k has a horizontal tangent there. Factoring secx out first is what lets the identity act.
d)
Product rule: y′=(sinx)′cosx+sinx(cosx)′=cosxcosx+sinx(−sinx)=cos2x−sin2x. Since sin2x=2sinxcosx=2y, the constant multiple rule gives (sin2x)′=2(cos2x−sin2x)=2cos2x. The factor 2 is the one students drop when they write (sin2x)′=cos2x by analogy with (sinx)′=cosx: the formula (sinx)′=cosx is about the argument x alone. Next chapter, the chain rule will produce the same 2 mechanically; here the identity gives it for free, and checks it.
e)
Product rule with u=tanx, v=cosx: p′(x)=sec2xcosx+tanx(−sinx)=cosx1−cosxsin2x=cosx1−sin2x=cosxcos2x=cosx. After simplifying first, p(x)=cosxsinxcosx=sinx wherever cosx=0, so p′(x)=cosx at once. Same answer, far less work: simplify BEFORE differentiating whenever you can. But the domain does not simplify: p is undefined at x=2π+kπ, its graph is the sine curve with holes there, and p′ does not exist at those points either, although the formula cosx has a value there. The correct answer is p′(x)=cosx for cosx=0.
Exercise 5: Derivatives of high order: the cycle of four
Differentiating sine four times brings it back: the derivatives of sinx and cosx repeat with period 4. A derivative of order 99 is therefore read off from a remainder, never computed ninety-nine times. The figure shows y=sinx and y=cosx: each derivative shifts the graph of sine to the LEFT by a quarter period, 2π.
a) Write the first four derivatives of sinx and of cosx, and state how dxndnsinx depends on n.
b) Find dx99d99sinx and dx50d50cosx.
c) Let y=xcosx. Compute y′, y′′, y′′′ and y(4), then prove by induction that y(n)=xc(n)(x)+nc(n−1)(x) for n≥1, where c=cos. Deduce y(42).
d) Find (tanx)′′ and (secx)′′, writing sec2x as the PRODUCT secx⋅secx. Show that (secx)′′=2sec3x−secx.
e) Let f(x)=sinx+cosx. Find f(n)(0) for every n≥0, and count the n between 1 and 100 for which f(n)(0)=−1.
Show the solution
Answers
a)sin→cos→−sin→−cos→sin; the n-th derivative depends only on the remainder of n divided by 4.
e)1,1,−1,−1 repeating; f(n)(0)=−1 for 50 values of n.
a)
(sinx)′=cosx, (sinx)′′=−sinx, (sinx)′′′=−cosx, (sinx)(4)=sinx. And (cosx)′=−sinx, (cosx)′′=−cosx, (cosx)′′′=sinx, (cosx)(4)=cosx. Since the fourth derivative is the function itself, dx4k+rd4k+rsinx=dxrdrsinx for r=0,1,2,3: only the remainder r of n divided by 4 matters. On the figure, the peak of cosx at 0 is the peak of sinx at 2π moved left by 2π, and indeed cosx=sin(x+2π): four quarter-shifts make a full period.
b)
99=4×24+3, so dx99d99sinx=(sinx)′′′=−cosx. 50=4×12+2, so dx50d50cosx=(cosx)′′=−cosx. The common error is to reason on parity alone, 99 is odd so the answer is cosx: parity decides between sine and cosine, but the SIGN needs the remainder modulo 4. Check the remainder by multiplying back: 4×24=96 and 96+3=99.
c)
y′=cosx−xsinx (product rule). y′′=−sinx−sinx−xcosx=−2sinx−xcosx. y′′′=−2cosx−cosx+xsinx=−3cosx+xsinx. y(4)=3sinx+sinx+xcosx=4sinx+xcosx. Each line matches xc(n)(x)+nc(n−1)(x), since c′=−sin, c′′=−cos, c′′′=sin, c(4)=cos. Induction: the formula holds for n=1; if y(n)=xc(n)+nc(n−1), the product rule gives y(n+1)=c(n)+xc(n+1)+nc(n)=xc(n+1)+(n+1)c(n), the formula for n+1. For n=42: 42=4×10+2 gives c(42)=−cosx, and 41=4×10+1 gives c(41)=−sinx. So y(42)=−xcosx−42sinx. The coefficient 42 counts how many times the factor x has been differentiated away, once in each of the 42 steps.
d)
(tanx)′=sec2x=secx⋅secx, and the product rule gives (tanx)′′=secxtanx⋅secx+secx⋅secxtanx=2sec2xtanx. Writing sec2x as a product is what makes this possible before the chain rule. Next, (secx)′′=(secxtanx)′=secxtanx⋅tanx+secx⋅sec2x=secxtan2x+sec3x. With tan2x=sec2x−1: secx(sec2x−1)+sec3x=2sec3x−secx. Check at x=0: the first form gives sec0tan20+sec30=0+1=1 and the second 2−1=1. Two forms that disagree at one convenient point cannot both be right.
e)
f(0)=1. f′=cosx−sinx, so f′(0)=1. f′′=−sinx−cosx, so f′′(0)=−1. f′′′=−cosx+sinx, so f′′′(0)=−1. f(4)=f, so the values repeat: 1,1,−1,−1,1,1,−1,−1,… Hence f(n)(0)=1 when n leaves remainder 0 or 1 on division by 4, and −1 when it leaves 2 or 3. Between 1 and 100 there are 25 complete blocks of four consecutive integers, each containing exactly two values with remainder 2 or 3: 50 values of n.
Part B: problems and reasoning (/50)
Exercise 6: Horizontal tangents on an interval: factor, never divide
A curve y=f(x) has a horizontal tangent at a when f′(a)=0. For a trigonometric function the equation f′(x)=0 is a trigonometric equation, solved on the interval asked, with EXACT solutions. Its classic trap: dividing both sides by sinx or cosx silently throws away the solutions where that factor vanishes. Factor, then set each factor to zero.
The figure shows g(x)=cosx+sin2x on [0,2π], the function of question b).
a) Find the points of f(x)=x+2sinx, 0≤x≤2π, where the tangent is horizontal.
b) Same question for g(x)=cosx+sin2x, writing sin2x=sinx⋅sinx. How many points does the figure show, and how many does a student find who divides by sinx?
c) Same question for h(x)=exsinx on [0,2π]. Here dividing by cosx is legitimate: prove it.
d) Find the horizontal tangents of y=secx on (−2π,2π) and of y=cscx on (0,π). Does y=tanx have any?
e) For which real constants c does y=x+csinx have at least one horizontal tangent? Give the points when c=1.
c)x=43π and x=47π: (43π,22e3π/4), (47π,−22e7π/4)
d)sec: (0,1); csc: (2π,1); tan: none, since sec2x≥1.
e)∣c∣≥1; for c=1, the points (π+2kπ,π+2kπ), k an integer.
a)
f′(x)=1+2cosx, by the sum rule and (sinx)′=cosx. Then f′(x)=0⟺cosx=−21. On [0,2π], cosine equals −21 at x=32π (second quadrant) and x=34π (third quadrant), and nowhere else. The heights: f(32π)=32π+2⋅23=32π+3 and f(34π)=34π−3. A point is two coordinates: giving only the x values answers half the question.
b)
g′(x)=−sinx+(sinx⋅sinx)′=−sinx+2sinxcosx, the product rule giving cosxsinx+sinxcosx. Factor: g′(x)=sinx(2cosx−1). A product is zero when one of its factors is: sinx=0 gives x=0,π,2π; cosx=21 gives x=3π,35π. Heights: g(0)=1, g(3π)=21+43=45, g(π)=−1+0=−1, g(35π)=45, g(2π)=1. The figure shows exactly these five flat spots: the two bumps, the bottom of the valley at π, and the two ends. The student who writes −sinx+2sinxcosx=0⇒2cosx=1 divided by sinx, which is legitimate only where sinx=0, and lost three of the five points without noticing.
c)
h′(x)=exsinx+excosx=ex(sinx+cosx) by the product rule. Since ex>0, h′(x)=0⟺sinx+cosx=0. Before dividing by cosx, check that no solution is lost: if cosx=0 then sinx=±1 and sinx+cosx=±1=0, so every solution has cosx=0. Dividing is now safe: tanx=−1, so x=43π or x=47π on [0,2π]. Heights: h(43π)=e3π/4⋅22 and h(47π)=−e7π/4⋅22, 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)
(secx)′=secxtanx. The factor secx=cosx1 is never 0, so (secx)′=0⟺tanx=0⟺x=0 on (−2π,2π): the point (0,1). (cscx)′=−cscxcotx, and cscx is never 0, so cotx=0, that is cosx=0 with sinx=0: x=2π, the point (2π,1). For the tangent function, (tanx)′=sec2x=cos2x1≥1 wherever it is defined: the slope is never 0, it is never even below 1, so y=tanx has no horizontal tangent at all.
e)
y′=1+ccosx. If c=0, y′=1 and there is no horizontal tangent. Otherwise y′=0⟺cosx=−c1, which has a solution exactly when −c1≤1, that is ∣c∣≥1. Conversely, when ∣c∣<1, ∣ccosx∣≤∣c∣<1, so y′=1+ccosx>0 for every x. Answer: ∣c∣≥1, and c=2 was question a). For c=1: cosx=−1, so x=π+2kπ with k an integer, where sinx=0 and y=x: the points (π+2kπ,π+2kπ), infinitely many, all on the line y=x.
Exercise 7: Tangent and normal lines to trigonometric curves
The tangent to y=f(x) at a is y=f(a)+f′(a)(x−a); the normal is the line through the same point perpendicular to it, with slope −f′(a)1 when f′(a)=0. Every value is exact: sec3π=2, tan4π=1, and π stays π in the final equation.
The figure, drawn with EQUAL scales on both axes so that angles are true, shows y=sinx and y=cosx crossing at the point P of abscissa 4π.
a) Find the tangent to y=tanx at x=4π.
b) Find the tangent and the normal to y=xcosx at x=π.
c) Find the tangent to y=2secx−cosx at x=3π.
d) A student claims that the curves y=sinx and y=cosx cross at right angles at P. Decide, and give the angle between their tangent lines at P in exact form.
e) Find every x in [0,2π] where the tangent to y=sinx is parallel to the line y=2x, and write each tangent.
Show the solution
Answers
a)y=2x+1−2π
b)Tangent y=−x; normal y=x−2π
c)y=27+293(x−3π)
d)False: slopes 22 and −22, product −21=−1; angle arctan(22).
Point: tan4π=1. Slope: (tanx)′=sec2x and sec4π=cos(π/4)1=22=2, so the slope is (2)2=2. Tangent: y=1+2(x−4π)=2x+1−2π. Leaving 2π exact is the expected form; replacing it by 1.57 turns an exact answer into an approximate one on an exam without calculators.
b)
y′=cosx−xsinx by the product rule. At π: y(π)=πcosπ=−π and y′(π)=cosπ−πsinπ=−1−0=−1. Tangent: y=−π−(x−π)=−x, which passes through the origin. The normal has slope −−11=1: y=−π+(x−π)=x−2π. The slope of the normal is the NEGATIVE reciprocal; the reciprocal alone gives −1 again, a line parallel to the tangent.
c)
At 3π: cos3π=21, sec3π=2, sin3π=23, tan3π=3. Point: y=2⋅2−21=27. Derivative: y′=2secxtanx−(−sinx)=2secxtanx+sinx, and the minus of (cosx)′ meets the minus in front of cosx. Slope: 2⋅2⋅3+23=43+23=293. Tangent: y=27+293(x−3π). Writing y′=2secxtanx−sinx is the single most frequent sign slip of the chapter.
d)
At x=4π, sinx=cosx=22, so P(4π,22) is on both curves. Slopes: m1=cos4π=22 for sine, m2=−sin4π=−22 for cosine. Two lines are perpendicular exactly when m1m2=−1; here m1m2=−42=−21. 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 φ between the tangents satisfies tanφ=1+m1m2m1−m2=1/22=22, so φ=arctan(22). Equivalently each tangent makes the angle arctan22 with the horizontal, on opposite sides, and tan(2arctan22)=1−212=22 confirms it. The symmetry of the picture suggests a right angle; the slopes refute it.
e)
Parallel means equal slopes: cosx=21, so x=3π or x=35π on [0,2π]. At 3π the point is (3π,23) and the tangent is y=23+21(x−3π). At 35π, sin35π=−23 and the tangent is y=−23+21(x−35π). The two tangents are parallel to each other and distinct: at x=0 they give 23−6π and −23−65π.
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 (sinx)′=cosx holds whether x is measured in radians or in degrees.
b) limx→0x21−cos2x=21, because □21−cos□→21.
c) (cscx)′=cscxcotx, just as (secx)′=secxtanx.
d) limx→0x1−cosx=1, just as limx→0xsinx=1.
e) (tanx)′=(cosx)′(sinx)′=−sinxcosx=−cotx.
Show the solution
Answers
a)False: in degrees, dxdsin(x∘)=180πcos(x∘).
b)False: the box is 2x, squared below; the limit is 2.
c)False: (cscx)′=−cscxcotx.
d)False: the limit is 0; it is x21−cosx that tends to 21.
e)False: the quotient rule gives (tanx)′=sec2x.
a)
FALSE. The proof of (sinx)′=cosx uses hsinh→1, true in radians only. With S(x)=sin(x∘), the addition formula gives hS(x+h)−S(x)=sin(x∘)⋅hcos(h∘)−1+cos(x∘)⋅hsin(h∘). By Exercise 1 d), hsin(h∘)→180π, and the same substitution u=180πh gives hcos(h∘)−1→0. So S′(x)=180πcos(x∘). At x=0 the slope is 180π, not 1: the graph of sin(x∘) is the graph of sinx stretched horizontally by the factor π180, period 360 instead of 2π, and correspondingly flatter. Correct statement: (sinx)′=cosx with x in RADIANS.
b)
FALSE. The standard limit needs the same box in the numerator and, squared, in the denominator. Here the box is 2x, so x21−cos2x=4⋅(2x)21−cos2x→4⋅21=2. Second road, by the double angle identity 1−cos2x=2sin2x: x22sin2x=2(xsinx)2→2. Plausibility: near 0, 1−cosu is about 2u2, so 1−cos2x is about 2x2 and the quotient about 2. Correct statement: limx→0x21−cosax=2a2 for every constant a.
c)
FALSE. (cscx)′=(sinx1)′=sin2x−cosx=−cscxcotx. A sign test settles it without any formula: on (0,2π), cscx=sinx1 decreases from very large values down to 1 as sinx grows to 1, so its slope must be negative, while cscxcotx>0 there. At 4π the true slope is −2⋅1=−2. Correct statement: (cscx)′=−cscxcotx; every co-function takes a minus sign.
d)
FALSE. Multiplying by the conjugate, x1−cosx=xsinx⋅1+cosxsinx→1⋅0=0. The numerator 1−cosx shrinks like 2x2, much faster than x, while sinx shrinks like x itself. Correct statement: limx→0x1−cosx=0 and limx→0x21−cosx=21. The limit 0 is exactly what makes the term sinx⋅hcosh−1 disappear in the proof of (sinx)′=cosx: a 1 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 (tanx)′=cos2xcosxcosx−sinx(−sinx)=cos2x1=sec2x. Counterexamples to the student's answer: at x=0, −cotx is not even defined, while the tangent to y=tanx at the origin is y=x, slope 1; at 4π the student gets −1, the truth is 2. Correct statement: (tanx)′=sec2x=1+tan2x.
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)=3cost+4sint, with t in seconds and t≥0. The mass was pulled to x=3 and, instead of being released from rest, was given a push at t=0.
The figure shows x(t) for the first seven seconds, the dot marking the start. No calculator: every time and every position must be exact.
a) Find x(0), the velocity v(t)=x′(t) and v(0). Describe in words how the motion starts.
b) Find the acceleration a(t)=v′(t) and show that a(t)=−x(t) for every t. What does this say about the direction of the acceleration?
c) Find the first time t1>0 at which the mass is momentarily at rest, and its position then. A student reads the amplitude as 3 cm, the starting position: correct him.
d) Prove that x(t)2+v(t)2=25 for every t. Deduce the largest distance from equilibrium and the largest speed, and say where the mass is when each occurs.
e) At t=2π, is the mass moving toward or away from equilibrium? Is it speeding up or slowing down?
Show the solution
Answers
a)x(0)=3 cm; v(t)=−3sint+4cost; v(0)=4 cm/s, moving away from equilibrium.
x(0)=3cos0+4sin0=3 cm. By the sum and constant multiple rules, v(t)=x′(t)=−3sint+4cost, in centimetres per second, and v(0)=0+4=4 cm/s. At the start the mass is 3 cm on the stretched side and moves at 4 cm/s AWAY from equilibrium, in the positive direction: the push was outward, and the mass will go beyond 3 cm before turning back. The figure shows the curve rising from the dot.
b)
a(t)=v′(t)=−3cost−4sint=−(3cost+4sint)=−x(t). The acceleration always has the sign opposite to the position: on the stretched side (x>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)=0: 4cost=3sint. If cost=0 then sint=±1 and the equation fails, so cost=0 and dividing is safe: tant=34. The solutions are t=arctan34+kπ, and the first positive one is t1=arctan34, in (0,2π). In that quadrant, a right triangle with opposite side 4 and adjacent side 3 has hypotenuse 5, so sint1=54 and cost1=53. Then x(t1)=3⋅53+4⋅54=59+16=5 cm. The student's 3 cm is where the mass STARTED, not where it turns: the push carried it 2 cm further. The amplitude is found where the velocity vanishes, which is what the derivative is for.
d)
Expand: x2=9cos2t+24sintcost+16sin2t and v2=16cos2t−24sintcost+9sin2t. The cross terms cancel and x2+v2=25(cos2t+sin2t)=25. Consequences: x2=25−v2≤25, so ∣x∣≤5, with equality exactly when v=0, at the turning points; and v2=25−x2≤25, so ∣v∣≤5, with equality exactly when x=0, as the mass passes through equilibrium. Largest distance 5 cm, largest speed 5 cm/s. The identity is the conservation of energy in disguise: position and speed trade off along a circle of radius 5.
e)
x(2π)=3⋅0+4⋅1=4, v(2π)=−3⋅1+4⋅0=−3, a(2π)=−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∣ is increasing, the mass speeds up. Both answers agree with d): it is heading for x=0, where its speed will reach its largest value 5 cm/s. Check: 42+(−3)2=25. Speeding up is decided by the signs of v and a TOGETHER, never by the sign of a alone.
Exercise 10: A final exam question: the function sin x over (2 + cos x)
Let f(x)=2+cosxsinx, whose graph on [0,2π] 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.
a) Show that f is defined on all of R, that it is 2π-periodic and that it is odd.
b) Find limx→0xf(x) in two ways: with the limit of xsinx, then by recognizing a derivative.
c) Compute f′(x) and simplify it to (2+cosx)22cosx+1.
d) Find the points of the graph on [0,2π] where the tangent is horizontal, with exact coordinates, and check them against the symmetries of a).
e) Find the tangent lines at x=0 and at x=π, and the point where they meet.
Show the solution
Answers
a)2+cosx≥1>0; f(x+2π)=f(x); f(−x)=−f(x)
b)31, which is f′(0)
c)f′(x)=(2+cosx)22cosx+1
d)(32π,33) and (34π,−33)
e)y=3x and y=π−x, meeting at (43π,4π)
a)
Since cosx≥−1, the denominator satisfies 2+cosx≥1>0: it never vanishes, and f, a quotient of continuous functions, is defined for every real x. Sine and cosine have period 2π, so f(x+2π)=2+cosxsinx=f(x). And f(−x)=2+cos(−x)sin(−x)=2+cosx−sinx=−f(x), because sine is odd and cosine is even: f is odd, its graph symmetric about the origin.
b)
First way: xf(x)=xsinx⋅2+cosx1→1⋅2+11=31, by the product law and the continuity of cosine. Second way: f(0)=0, so xf(x)=x−0f(x)−f(0), the difference quotient of f at 0, whose limit is by definition f′(0). With c), f′(0)=(2+1)22+1=31. The two answers agree, which is a check on c) before it is even written.
c)
Quotient rule with u=sinx, v=2+cosx, u′=cosx, v′=−sinx: f′(x)=(2+cosx)2cosx(2+cosx)−sinx(−sinx)=(2+cosx)22cosx+cos2x+sin2x=(2+cosx)22cosx+1, by cos2x+sin2x=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′ is at least 1, so f′(x)=0⟺2cosx+1=0⟺cosx=−21, that is x=32π or x=34π on [0,2π]. Heights: f(32π)=2−1/23/2=3/23/2=33, and f(34π)=3/2−3/2=−33. Check with a): 34π=2π−32π, so by periodicity and oddness f(34π)=f(−32π)=−f(32π), as found. The figure agrees: a crest a little after 2π and a trough a little before 23π, at the same distance from the axis.
e)
At 0: f(0)=0 and f′(0)=31, so the tangent is y=3x. At π: f(π)=2−10=0 and f′(π)=(2−1)22(−1)+1=−1, so the tangent is y=−(x−π)=π−x. They meet where 3x=π−x, that is 34x=π, so x=43π and y=4π. The meeting point (43π,4π) lies ABOVE the graph: the height of the graph at 43π is 2−2/22/2=4−22, which is less than 43 because 42<12−32, that is 72<12, or 98<144 after squaring, while 4π>43. The solution figure shows the two tangents and their meeting point.
Something missing from this set?A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.
Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space.
Rather not create an account? Write to me directly.