Differentiating Trigonometric Functions

A2 · P3 · 12 min

The six trigonometric functions all have derivatives that are themselves trigonometric, so differentiating them keeps you inside a family you already know: sin⁡\sin becomes cos⁡\cos, tan⁡\tan becomes sec⁡2\sec^2, and so on. Combined with the chain, product and quotient rules and the identities from the trigonometry unit, these give the stationary-point and tangent questions that appear on almost every P3 paper, usually with exact answers in terms of π\pi and surds.

Why the derivative of sin x is cos x

Look at the graph of y=sin⁡xy = \sin x with xx in radians. At x=0x = 0 it climbs most steeply. At x=π2x = \tfrac{\pi}{2} it is momentarily flat. At x=πx = \pi it is falling as steeply as it ever falls. Plot those gradients against xx and you get 1,0,−11, 0, -1 at 0,π2,π0, \tfrac{\pi}{2}, \pi, which is exactly the graph of cos⁡x\cos x.

y = sin(x) y = cos(x)

y=sin⁡xy = \sin x (solid) and its gradient function y=cos⁡xy = \cos x (dashed). Where sin⁡x\sin x peaks, cos⁡x\cos x crosses zero.

The precise argument uses the small-angle fact sin⁡hh→1\dfrac{\sin h}{h} \to 1 as h→0h \to 0, which is true only in radians. In degrees, sin⁡h∘h→π180\dfrac{\sin h^\circ}{h} \to \dfrac{\pi}{180}, so every derivative would carry an ugly factor of π180\dfrac{\pi}{180}. Radians are the units in which trigonometric calculus is clean, and that is why P3 calculus always uses them.

Derivatives of sin, cos and tan
ddxsin⁡x=cos⁡xddxcos⁡x=−sin⁡xddxtan⁡x=sec⁡2x\frac{d}{dx}\sin x = \cos x \qquad \frac{d}{dx}\cos x = -\sin x \qquad \frac{d}{dx}\tan x = \sec^2 x

With a linear inside:

ddxsin⁡(ax+b)=acos⁡(ax+b)ddxcos⁡(ax+b)=−asin⁡(ax+b)ddxtan⁡(ax+b)=asec⁡2(ax+b)\frac{d}{dx}\sin(ax + b) = a\cos(ax+b) \qquad \frac{d}{dx}\cos(ax + b) = -a\sin(ax+b) \qquad \frac{d}{dx}\tan(ax + b) = a\sec^2(ax+b)

xx must be in radians.

The sign pattern is worth fixing in memory: differentiating sin⁡→cos⁡→−sin⁡→−cos⁡→sin⁡\sin \to \cos \to -\sin \to -\cos \to \sin cycles every four steps. The functions starting with "co" (cos⁡\cos, cosec⁡\operatorname{cosec}, cot⁡\cot) all have a minus sign in their derivative.

The reciprocal functions

sec⁡x=1cos⁡x\sec x = \dfrac{1}{\cos x}, cosec⁡x=1sin⁡x\operatorname{cosec} x = \dfrac{1}{\sin x} and cot⁡x=cos⁡xsin⁡x\cot x = \dfrac{\cos x}{\sin x}, as in reciprocal trigonometric functions. Their derivatives follow from the chain rule or the quotient rule.

Derivative of sec x

Write sec⁡x=(cos⁡x)−1\sec x = (\cos x)^{-1} and use the chain rule:

ddx(cos⁡x)−1=−(cos⁡x)−2⋅(−sin⁡x)=sin⁡xcos⁡2x=1cos⁡x⋅sin⁡xcos⁡x=sec⁡xtan⁡x\frac{d}{dx}(\cos x)^{-1} = -(\cos x)^{-2} \cdot (-\sin x) = \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \sec x\tan x
Derivative of tan x
ddxsin⁡xcos⁡x=cos⁡xcos⁡x−sin⁡x(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x\frac{d}{dx}\frac{\sin x}{\cos x} = \frac{\cos x\cos x - \sin x(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x

The same methods give cosec⁡x\operatorname{cosec} x and cot⁡x\cot x (see the practice questions).

Derivatives of the reciprocal functions
ddxsec⁡x=sec⁡xtan⁡xddxcosec⁡x=−cosec⁡xcot⁡xddxcot⁡x=−cosec⁡2x\frac{d}{dx}\sec x = \sec x\tan x \qquad \frac{d}{dx}\operatorname{cosec} x = -\operatorname{cosec} x\cot x \qquad \frac{d}{dx}\cot x = -\operatorname{cosec}^2 x

These are in the list of formulae, but you may be asked to prove any of them, and proofs of tan⁡x\tan x and sec⁡x\sec x are common opening parts.

Composites: powers and functions of trig functions

Read the notation carefully, because it decides the layers.

ExpressionMeansDerivative
sin⁡3x\sin 3xsin⁡(3x)\sin(3x)3cos⁡3x3\cos 3x
sin⁡3x\sin^3 x(sin⁡x)3(\sin x)^33sin⁡2xcos⁡x3\sin^2 x\cos x
sin⁡x3\sin x^3sin⁡(x3)\sin(x^3)3x2cos⁡(x3)3x^2\cos(x^3)
tan⁡2x\tan^2 x(tan⁡x)2(\tan x)^22tan⁡xsec⁡2x2\tan x\sec^2 x
sec⁡3x\sec 3xsec⁡(3x)\sec(3x)3sec⁡3xtan⁡3x3\sec 3x\tan 3x
ln⁡(sin⁡x)\ln(\sin x)ln⁡\ln of sin⁡x\sin xcos⁡xsin⁡x=cot⁡x\dfrac{\cos x}{\sin x} = \cot x
ln⁡(sec⁡x)\ln(\sec x)ln⁡\ln of sec⁡x\sec xsec⁡xtan⁡xsec⁡x=tan⁡x\dfrac{\sec x\tan x}{\sec x} = \tan x
ecos⁡xe^{\cos x}ee to the cos⁡x\cos x−sin⁡x ecos⁡x-\sin x\, e^{\cos x}

Note that tan⁡−1x\tan^{-1} x is the inverse function, not (tan⁡x)−1=cot⁡x(\tan x)^{-1} = \cot x. It has its own note: differentiating the inverse tangent.

Use identities before or after differentiating

Trigonometric identities often make a derivative simpler or make dydx=0\dfrac{dy}{dx} = 0 solvable.

Before: 2sin⁡xcos⁡x=sin⁡2x2\sin x\cos x = \sin 2x, so its derivative is 2cos⁡2x2\cos 2x with no product rule. Similarly cos⁡2x−sin⁡2x=cos⁡2x\cos^2 x - \sin^2 x = \cos 2x.

After: if dydx\dfrac{dy}{dx} contains both cos⁡2x\cos 2x and sin⁡x\sin x, rewrite cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x to get a quadratic in sin⁡x\sin x. If it contains sin⁡2x\sin 2x and cos⁡x\cos x, use sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x and factorise out cos⁡x\cos x.

The standard identities are in double angles and compound angles. In the solving step, a common factor such as cos⁡x\cos x must be factorised out, never cancelled, or you lose the solutions with cos⁡x=0\cos x = 0.

Stationary points of a trigonometric function
  1. Differentiate, using the chain rule on every sin⁡(ax)\sin(ax) or cos⁡(ax)\cos(ax).
  2. Set dydx=0\dfrac{dy}{dx} = 0 and use identities so that a single trig function of a single angle appears, or so that the expression factorises.
  3. Solve over the given interval. List every solution; check the interval endpoints.
  4. Find exact yy-values using exact trig values.
  5. Determine nature with d2ydx2\dfrac{d^2y}{dx^2} or a sign test.

Worked examples

Routine derivatives

Differentiate (a) 3sin⁡4x3\sin 4x (b) cos⁡(2x−π3)\cos\left(2x - \tfrac{\pi}{3}\right) (c) tan⁡2x\tan^2 x (d) sec⁡3x\sec 3x.

Solution

(a) 3×4cos⁡4x=12cos⁡4x3 \times 4\cos 4x = 12\cos 4x.

(b) −2sin⁡(2x−π3)-2\sin\left(2x - \tfrac{\pi}{3}\right).

(c) (tan⁡x)2(\tan x)^2:  2tan⁡x⋅sec⁡2x=2tan⁡xsec⁡2x\ 2\tan x \cdot \sec^2 x = 2\tan x\sec^2 x.

(d) 3sec⁡3xtan⁡3x3\sec 3x\tan 3x.

An exact tangent

Find the equation of the tangent to y=tan⁡2xy = \tan 2x at the point where x=π8x = \tfrac{\pi}{8}.

Solution

At x=π8x = \tfrac{\pi}{8}: y=tan⁡π4=1y = \tan\tfrac{\pi}{4} = 1.

dydx=2sec⁡22x\dfrac{dy}{dx} = 2\sec^2 2x. At x=π8x = \tfrac{\pi}{8}: 2sec⁡2π4=2×(2)2=42\sec^2\tfrac{\pi}{4} = 2 \times \left(\sqrt{2}\right)^2 = 4.

Tangent: y−1=4(x−π8)y - 1 = 4\left(x - \tfrac{\pi}{8}\right), i.e. y=4x+1−π2y = 4x + 1 - \tfrac{\pi}{2}.

Stationary points using a double-angle identity

Find the coordinates of the stationary points of y=2sin⁡x+cos⁡2xy = 2\sin x + \cos 2x for 0≤x≤π0 \le x \le \pi, and determine their nature.

Solutiondydx=2cos⁡x−2sin⁡2x=2cos⁡x−4sin⁡xcos⁡x=2cos⁡x(1−2sin⁡x)\frac{dy}{dx} = 2\cos x - 2\sin 2x = 2\cos x - 4\sin x\cos x = 2\cos x(1 - 2\sin x)

Zero when cos⁡x=0\cos x = 0, giving x=π2x = \tfrac{\pi}{2}, or sin⁡x=12\sin x = \tfrac{1}{2}, giving x=π6x = \tfrac{\pi}{6} or 5π6\tfrac{5\pi}{6}.

yy-values: at π6\tfrac{\pi}{6}, 2⋅12+cos⁡π3=322 \cdot \tfrac{1}{2} + \cos\tfrac{\pi}{3} = \tfrac{3}{2}; at π2\tfrac{\pi}{2}, 2+cos⁡π=12 + \cos\pi = 1; at 5π6\tfrac{5\pi}{6}, 1+cos⁡5π3=321 + \cos\tfrac{5\pi}{3} = \tfrac{3}{2}.

d2ydx2=−2sin⁡x−4cos⁡2x\dfrac{d^2y}{dx^2} = -2\sin x - 4\cos 2x:

  • at π6\tfrac{\pi}{6}: −1−2=−3<0-1 - 2 = -3 < 0, maximum (π6,32)\left(\tfrac{\pi}{6}, \tfrac{3}{2}\right);
  • at π2\tfrac{\pi}{2}: −2+4=2>0-2 + 4 = 2 > 0, minimum (π2,1)\left(\tfrac{\pi}{2}, 1\right);
  • at 5π6\tfrac{5\pi}{6}: −1−2=−3<0-1 - 2 = -3 < 0, maximum (5π6,32)\left(\tfrac{5\pi}{6}, \tfrac{3}{2}\right).
y = 2 sin(x) + cos(2x)

y=2sin⁡x+cos⁡2xy = 2\sin x + \cos 2x on 0≤x≤π0 \le x \le \pi: two equal maxima and a minimum between them.

A stationary point you must find numerically

The curve y=xcos⁡xy = x\cos x has a stationary point PP with 0<x<π20 < x < \tfrac{\pi}{2}.

(a) Show that the xx-coordinate of PP satisfies x=tan⁡−1(1x)x = \tan^{-1}\left(\dfrac{1}{x}\right).

(b) Use the iteration xn+1=tan⁡−1(1xn)x_{n+1} = \tan^{-1}\left(\dfrac{1}{x_n}\right) with x1=0.8x_1 = 0.8 to find the xx-coordinate of PP correct to 2 decimal places.

Solution

(a) Product rule: dydx=cos⁡x−xsin⁡x\dfrac{dy}{dx} = \cos x - x\sin x. At PP, cos⁡x=xsin⁡x\cos x = x\sin x. Divide by xcos⁡xx\cos x (both non-zero in this interval): 1x=tan⁡x\dfrac{1}{x} = \tan x, so x=tan⁡−1(1x)x = \tan^{-1}\left(\dfrac{1}{x}\right).

(b) With the calculator in radians: x1=0.8x_1 = 0.8, x2=0.8961x_2 = 0.8961, x3=0.8402x_3 = 0.8402, x4=0.8720x_4 = 0.8720, x5=0.8536x_5 = 0.8536, x6=0.8642x_6 = 0.8642, x7=0.8581x_7 = 0.8581, x8=0.8616x_8 = 0.8616, x9=0.8596x_9 = 0.8596, x10=0.8608x_{10} = 0.8608, x11=0.8601x_{11} = 0.8601.

The iterates oscillate either side of the root and settle at 0.860.86 (2 d.p.). (The root is 0.86030.8603.)

A point of inflexion among stationary points

Find the xx-coordinates of the stationary points of y=sin⁡2x−2cos⁡xy = \sin 2x - 2\cos x for 0<x<2π0 < x < 2\pi. Show that one of them is a stationary point of inflexion.

Solutiondydx=2cos⁡2x+2sin⁡x=2(1−2sin⁡2x)+2sin⁡x=−2(2sin⁡2x−sin⁡x−1)=−2(2sin⁡x+1)(sin⁡x−1)\frac{dy}{dx} = 2\cos 2x + 2\sin x = 2(1 - 2\sin^2 x) + 2\sin x = -2(2\sin^2 x - \sin x - 1) = -2(2\sin x + 1)(\sin x - 1)

Zero when sin⁡x=1\sin x = 1, x=π2x = \tfrac{\pi}{2}; or sin⁡x=−12\sin x = -\tfrac{1}{2}, x=7π6x = \tfrac{7\pi}{6} or 11π6\tfrac{11\pi}{6}.

At x=π2x = \tfrac{\pi}{2}: the second derivative −4sin⁡2x+2cos⁡x-4\sin 2x + 2\cos x is 00, so test the sign of dydx\dfrac{dy}{dx}. Near π2\tfrac{\pi}{2}, sin⁡x\sin x is slightly less than 11 on both sides, so sin⁡x−1<0\sin x - 1 < 0 and 2sin⁡x+1>02\sin x + 1 > 0, making dydx=−2(+)(−)>0\dfrac{dy}{dx} = -2(+)(-) > 0 on both sides. The gradient does not change sign: a stationary point of inflexion at (π2,0)\left(\tfrac{\pi}{2}, 0\right).

(The other two: at 7π6\tfrac{7\pi}{6}, y=332y = \tfrac{3\sqrt{3}}{2}, a maximum; at 11π6\tfrac{11\pi}{6}, y=−332y = -\tfrac{3\sqrt{3}}{2}, a minimum.)

Exam-hard: exponential times tangent

The curve y=e−3xtan⁡xy = e^{-3x}\tan x, for 0≤x<π20 \le x < \tfrac{\pi}{2}, has two stationary points. Find their xx-coordinates correct to 3 decimal places.

Solutiondydx=e−3xsec⁡2x−3e−3xtan⁡x=e−3x(sec⁡2x−3tan⁡x)\frac{dy}{dx} = e^{-3x}\sec^2 x - 3e^{-3x}\tan x = e^{-3x}\left(\sec^2 x - 3\tan x\right)

e−3x>0e^{-3x} > 0, so sec⁡2x−3tan⁡x=0\sec^2 x - 3\tan x = 0. Use sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x:

tan⁡2x−3tan⁡x+1=0⇒tan⁡x=3±52\tan^2 x - 3\tan x + 1 = 0 \quad\Rightarrow\quad \tan x = \frac{3 \pm \sqrt{5}}{2}

Both values are positive, so both give solutions in the interval:

x=tan⁡−13−52=0.365,x=tan⁡−13+52=1.206x = \tan^{-1}\frac{3 - \sqrt{5}}{2} = 0.365, \qquad x = \tan^{-1}\frac{3 + \sqrt{5}}{2} = 1.206
Common mistakes
  • Sign of cos. ddxcos⁡x=−sin⁡x\dfrac{d}{dx}\cos x = -\sin x. Dropping the minus is the most common slip in P3 calculus.
  • Inner derivative. ddxcos⁡3x=−3sin⁡3x\dfrac{d}{dx}\cos 3x = -3\sin 3x, not −sin⁡3x-\sin 3x and not −13sin⁡3x-\tfrac{1}{3}\sin 3x (that is integration).
  • Degrees. Calculator in degree mode gives wrong numerical values for tan⁡−1\tan^{-1}, cos⁡0.8\cos 0.8, and so on.
  • Cancelling a trig factor. From 2cos⁡x(1−2sin⁡x)=02\cos x(1 - 2\sin x) = 0, dividing by cos⁡x\cos x loses x=π2x = \tfrac{\pi}{2}.
  • Confusing tan⁡−1x\tan^{-1} x with cot⁡x\cot x.
  • Missing solutions in the interval. sin⁡x=12\sin x = \tfrac{1}{2} has two solutions in [0,π][0, \pi]; tan⁡x=k\tan x = k has two in [0,2π)[0, 2\pi).
Exam tip
  • Exact values are expected: cos⁡π6=32\cos\tfrac{\pi}{6} = \tfrac{\sqrt{3}}{2}, sec⁡π4=2\sec\tfrac{\pi}{4} = \sqrt{2}, tan⁡π3=3\tan\tfrac{\pi}{3} = \sqrt{3}. Know the table cold.
  • A question that says "show that dydx\dfrac{dy}{dx} can be written as 2cos⁡x(1−2sin⁡x)2\cos x(1 - 2\sin x)" is telling you which identity to use. Show the identity substitution as a separate line.
  • For iteration questions involving tan⁡−1\tan^{-1} or cos⁡\cos, write "radians" in your working or at least make sure the iterates look sensible (a root in 0<x<π20 < x < \tfrac{\pi}{2} must be between 00 and 1.5711.571).
  • When asked for the nature of a stationary point where d2ydx2=0\dfrac{d^2y}{dx^2} = 0, a sign test of dydx\dfrac{dy}{dx} on both sides is required. Saying "d2ydx2=0\dfrac{d^2y}{dx^2} = 0 so it is an inflexion" is not valid reasoning.
Summary
  • sin⁡x→cos⁡x\sin x \to \cos x, cos⁡x→−sin⁡x\cos x \to -\sin x, tan⁡x→sec⁡2x\tan x \to \sec^2 x, in radians only.
  • sec⁡x→sec⁡xtan⁡x\sec x \to \sec x\tan x, cosec⁡x→−cosec⁡xcot⁡x\operatorname{cosec} x \to -\operatorname{cosec} x\cot x, cot⁡x→−cosec⁡2x\cot x \to -\operatorname{cosec}^2 x. The "co" functions have minus signs.
  • Linear insides multiply by aa: ddxsin⁡(ax+b)=acos⁡(ax+b)\dfrac{d}{dx}\sin(ax+b) = a\cos(ax+b).
  • sin⁡nx=(sin⁡x)n\sin^n x = (\sin x)^n needs the chain rule: nsin⁡n−1xcos⁡xn\sin^{n-1}x\cos x.
  • ddxln⁡(sin⁡x)=cot⁡x\dfrac{d}{dx}\ln(\sin x) = \cot x and ddxln⁡(sec⁡x)=tan⁡x\dfrac{d}{dx}\ln(\sec x) = \tan x.
  • Use double-angle identities to simplify dydx\dfrac{dy}{dx} into a solvable equation; factorise, never cancel.
  • Know how to prove the derivatives of tan⁡x\tan x and sec⁡x\sec x.

Practice

Question
  1. Differentiate (a) 5cos⁡(3x−1)5\cos(3x - 1) (b) sin⁡4x\sin^4 x (c) cosec⁡2x\operatorname{cosec} 2x (d) tan⁡(x2)\tan(x^2).
  2. Differentiate (a) ln⁡(sec⁡x)\ln(\sec x) (b) ln⁡(sin⁡2x)\ln(\sin 2x), simplifying each answer.
  3. Prove that ddx(cosec⁡x)=−cosec⁡xcot⁡x\dfrac{d}{dx}(\operatorname{cosec} x) = -\operatorname{cosec} x\cot x.
  4. Find the exact gradient of y=xsin⁡xy = x\sin x at x=π3x = \tfrac{\pi}{3}.
  5. Find the equation of the tangent to y=sec⁡xy = \sec x at the point where x=π3x = \tfrac{\pi}{3}.
  6. Given y=excos⁡xy = e^x\cos x, show that d2ydx2=−2exsin⁡x\dfrac{d^2y}{dx^2} = -2e^x\sin x.
  7. Given y=tan⁡x+cot⁡xy = \tan x + \cot x, show that dydx=−4cos⁡2xsin⁡22x\dfrac{dy}{dx} = -\dfrac{4\cos 2x}{\sin^2 2x}, and hence find the coordinates of the stationary point for 0<x<π20 < x < \tfrac{\pi}{2}.
  8. Find the exact coordinates of the stationary point of y=sin⁡x(1+cos⁡x)y = \sin x(1 + \cos x) for 0<x<π0 < x < \pi, and show that it is a maximum.
  9. The curve y=cos⁡x1+sin⁡2xy = \dfrac{\cos x}{1 + \sin^2 x} is defined for 0≤x≤2π0 \le x \le 2\pi. Show that dydx=sin⁡x(sin⁡2x−3)(1+sin⁡2x)2\dfrac{dy}{dx} = \dfrac{\sin x(\sin^2 x - 3)}{(1 + \sin^2 x)^2}, and find the xx-coordinates of all the stationary points in the interval.
Answers
  1. (a) −15sin⁡(3x−1)-15\sin(3x - 1). (b) 4sin⁡3xcos⁡x4\sin^3 x\cos x. (c) −2cosec⁡2xcot⁡2x-2\operatorname{cosec} 2x\cot 2x. (d) 2xsec⁡2(x2)2x\sec^2(x^2).

  2. (a) sec⁡xtan⁡xsec⁡x=tan⁡x\dfrac{\sec x\tan x}{\sec x} = \tan x. (b) 2cos⁡2xsin⁡2x=2cot⁡2x\dfrac{2\cos 2x}{\sin 2x} = 2\cot 2x.

  3. cosec⁡x=(sin⁡x)−1\operatorname{cosec} x = (\sin x)^{-1}, so the derivative is −(sin⁡x)−2cos⁡x=−1sin⁡x⋅cos⁡xsin⁡x=−cosec⁡xcot⁡x-(\sin x)^{-2}\cos x = -\dfrac{1}{\sin x}\cdot\dfrac{\cos x}{\sin x} = -\operatorname{cosec} x\cot x.

  4. dydx=sin⁡x+xcos⁡x\dfrac{dy}{dx} = \sin x + x\cos x. At π3\tfrac{\pi}{3}: 32+π3⋅12=32+π6\dfrac{\sqrt{3}}{2} + \dfrac{\pi}{3}\cdot\dfrac{1}{2} = \dfrac{\sqrt{3}}{2} + \dfrac{\pi}{6}.

  5. y=sec⁡π3=2y = \sec\tfrac{\pi}{3} = 2. Gradient sec⁡π3tan⁡π3=23\sec\tfrac{\pi}{3}\tan\tfrac{\pi}{3} = 2\sqrt{3}. Tangent: y−2=23(x−π3)y - 2 = 2\sqrt{3}\left(x - \tfrac{\pi}{3}\right).

  6. dydx=excos⁡x−exsin⁡x=ex(cos⁡x−sin⁡x)\dfrac{dy}{dx} = e^x\cos x - e^x\sin x = e^x(\cos x - \sin x). Then d2ydx2=ex(cos⁡x−sin⁡x)+ex(−sin⁡x−cos⁡x)=−2exsin⁡x\dfrac{d^2y}{dx^2} = e^x(\cos x - \sin x) + e^x(-\sin x - \cos x) = -2e^x\sin x.

  7. dydx=sec⁡2x−cosec⁡2x=sin⁡2x−cos⁡2xsin⁡2xcos⁡2x=−cos⁡2x14sin⁡22x=−4cos⁡2xsin⁡22x\dfrac{dy}{dx} = \sec^2 x - \operatorname{cosec}^2 x = \dfrac{\sin^2 x - \cos^2 x}{\sin^2 x\cos^2 x} = \dfrac{-\cos 2x}{\tfrac{1}{4}\sin^2 2x} = -\dfrac{4\cos 2x}{\sin^2 2x}, using sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \tfrac{1}{2}\sin 2x. Stationary when cos⁡2x=0\cos 2x = 0: 2x=π22x = \tfrac{\pi}{2}, x=π4x = \tfrac{\pi}{4}, where y=1+1=2y = 1 + 1 = 2. Point (π4,2)\left(\tfrac{\pi}{4}, 2\right).

  8. dydx=cos⁡x(1+cos⁡x)+sin⁡x(−sin⁡x)=cos⁡x+cos⁡2x−sin⁡2x=2cos⁡2x+cos⁡x−1=(2cos⁡x−1)(cos⁡x+1)\dfrac{dy}{dx} = \cos x(1 + \cos x) + \sin x(-\sin x) = \cos x + \cos^2 x - \sin^2 x = 2\cos^2 x + \cos x - 1 = (2\cos x - 1)(\cos x + 1). In 0<x<π0 < x < \pi, cos⁡x≠−1\cos x \ne -1, so cos⁡x=12\cos x = \tfrac{1}{2}, x=π3x = \tfrac{\pi}{3}, y=32⋅32=334y = \tfrac{\sqrt{3}}{2}\cdot\tfrac{3}{2} = \tfrac{3\sqrt{3}}{4}. Sign test: at x=π6x = \tfrac{\pi}{6}, (2cos⁡x−1)>0(2\cos x - 1) > 0; at x=π2x = \tfrac{\pi}{2}, 2cos⁡x−1=−1<02\cos x - 1 = -1 < 0; and cos⁡x+1>0\cos x + 1 > 0 throughout. The gradient goes from positive to negative: a maximum at (π3,334)\left(\tfrac{\pi}{3}, \tfrac{3\sqrt{3}}{4}\right).

  9. Quotient rule: dydx=(1+sin⁡2x)(−sin⁡x)−cos⁡x(2sin⁡xcos⁡x)(1+sin⁡2x)2=−sin⁡x(1+sin⁡2x+2cos⁡2x)(1+sin⁡2x)2\dfrac{dy}{dx} = \dfrac{(1 + \sin^2 x)(-\sin x) - \cos x(2\sin x\cos x)}{(1 + \sin^2 x)^2} = \dfrac{-\sin x\left(1 + \sin^2 x + 2\cos^2 x\right)}{(1 + \sin^2 x)^2}. Since 2cos⁡2x=2−2sin⁡2x2\cos^2 x = 2 - 2\sin^2 x, the bracket is 3−sin⁡2x3 - \sin^2 x, giving sin⁡x(sin⁡2x−3)(1+sin⁡2x)2\dfrac{\sin x(\sin^2 x - 3)}{(1 + \sin^2 x)^2}. Now sin⁡2x−3≤1−3<0\sin^2 x - 3 \le 1 - 3 < 0, never zero, so stationary points need sin⁡x=0\sin x = 0: x=0,π,2πx = 0, \pi, 2\pi.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action