Mathematical Methods · Units 3 & 4

Derivatives of Circular Functions

Learn how to differentiate sine, cosine and tangent the easy way, with plain English intuition, the chain rule for sin(kx), worked examples and an auto marked practice test. VCE Maths Methods Units 3 and 4.

Learn

Waves are everywhere. Sound, light, tides, the swing of a pendulum and the bob of a spring all rise and fall in the smooth shape of a sine curve. Differentiating a circular function is how you find the rate at which a wave is rising or falling at any instant. The wonderful surprise is that the slope of a wave is just another wave, shifted along a little. Learn three short results and a single rule, and you can find the steepness of any sine, cosine or tangent in seconds.

The three results to memorise

A circular function is just a fancy name for sin⁡\sin, cos⁡\cos and tan⁡\tan. The whole topic rests on three facts about their gradients. In radians (and circular function calculus only works in radians, never degrees) the rules are beautifully neat.

ddx(sin⁡x)=cos⁡x\frac{d}{dx}\big(\sin x\big) = \cos x ddx(cos⁡x)=−sin⁡x\frac{d}{dx}\big(\cos x\big) = -\sin x ddx(tan⁡x)=sec⁡2x=1cos⁡2x\frac{d}{dx}\big(\tan x\big) = \sec^2 x = \frac{1}{\cos^2 x}

Notice the pattern. The slope of sin⁡\sin is cos⁡\cos. The slope of cos⁡\cos is sin⁡\sin but flipped negative. That minus sign is the most forgotten thing in the whole topic, so say it out loud every time. Cosine picks up a minus.

-6-4-2246 -1.5-1-0.50.511.5
The blue curve y = sin(x) and its derivative y = cos(x) (red, dashed): where sin is steepest (at x = 0) cos peaks at 1, and where sin levels off at its crests cos crosses zero, showing the slope of a wave is just another wave shifted along.

Why these only work in radians

The neat rules above are a gift, but the gift only arrives if your angle is measured in radians. If you ever set your calculator to degrees, the slope of sin⁡x\sin x is no longer simply cos⁡x\cos x, because the units of the input change how fast the output moves. This is exactly why every VCAA exam, and every question on this page, uses radians and exact values like π3\dfrac{\pi}{3} rather than 6060 degrees. Train yourself to think in π\pi from the start.

Stretching the wave: sin(kx) and the chain rule

Real waves rarely come as a plain sin⁡x\sin x. They get squashed or stretched, written as sin⁡(kx)\sin(kx) where kk controls how many cycles fit in. To differentiate these you bolt the chain rule onto the three results above. The inside function is whatever sits in the brackets, and its derivative gets multiplied out the front.

If y=sin⁡(kx)y = \sin(kx), treat kxkx as the inside. Differentiate the outside to get cos⁡(kx)\cos(kx), then multiply by the derivative of the inside, which is kk:

ddx(sin⁡(kx))=kcos⁡(kx)\frac{d}{dx}\big(\sin(kx)\big) = k\cos(kx)

The same idea gives the matching cosine and tangent rules. The factor kk always lands out the front, and the bracket is copied down completely unchanged.

ddx(cos⁡(kx))=−ksin⁡(kx),ddx(tan⁡(kx))=ksec⁡2(kx)\frac{d}{dx}\big(\cos(kx)\big) = -k\sin(kx), \qquad \frac{d}{dx}\big(\tan(kx)\big) = k\sec^2(kx)

This works for any inside, not just kxkx. For y=sin⁡(2x+π6)y = \sin(2x + \tfrac{\pi}{6}) the inside is 2x+π62x + \tfrac{\pi}{6}, whose derivative is still just 22, so the answer is 2cos⁡(2x+π6)2\cos(2x + \tfrac{\pi}{6}). The phase shift π6\tfrac{\pi}{6} is a constant, so it adds nothing to the inside derivative and stays sitting inside the bracket.

The method, step by step

Every circular derivative in the course follows the same short recipe. The skill is doing it cleanly without dropping a factor or a sign.

  1. Identify the inside function, which is everything inside the bracket.
  2. Differentiate the outside, using sin⁡→cos⁡\sin \to \cos, cos⁡→−sin⁡\cos \to -\sin, or tan⁡→sec⁡2\tan \to \sec^2, copying the inside down unchanged.
  3. Multiply by the derivative of the inside.
  4. Multiply by any constant sitting out the front, and tidy the signs.

The examiner reports flag the same handful of errors year after year. Many students omit the inside derivative, turning sin⁡(4x)\sin(4x) into cos⁡(4x)\cos(4x) instead of 4cos⁡(4x)4\cos(4x). Many lose the minus sign when differentiating cosine. And some alter the argument, wrongly shrinking cos⁡(3x)\cos(3x) back to cos⁡(x)\cos(x). The inside of the bracket never changes when you differentiate. Bring the factor out, keep the bracket the same, fix the sign.

Lock it in with active recall

Cover the answer and say each one out loud before you flip. Rate yourself honestly — the cards you find hard come back sooner, the ones you know are spaced further out.

Active recall

Answer from memory first, then flip. Rate yourself and each card returns on a spaced schedule (1 → 3 → 7 → 16 days).

What is ddxsin⁡x\dfrac{d}{dx}\sin x, and ddxcos⁡x\dfrac{d}{dx}\cos x?
What is ddxtan⁡x\dfrac{d}{dx}\tan x?
Why must the angle be in radians?
Using the chain rule, what is ddxsin⁡(kx)\dfrac{d}{dx}\sin(kx)?
For f(x)=tan⁡(5x)f(x) = \tan(5x), what is f′(x)f'(x)?
Recall · Chain Rule
State the chain rule for dydx\dfrac{dy}{dx} when y=f(u)y = f(u) and u=g(x)u = g(x).
Recall · Antidifferentiation
What is ∫cos⁡x dx\displaystyle\int \cos x \,dx?

See this recipe in action in the Worked Examples tab, then test yourself in Try It.

Worked examples

Worked Example 1An online sales model, from a real exam

Online monthly sales are modelled by f:(0,36]→Rf : (0, 36] \to R, f(t)=3000+30t+700cos⁡(πt6)+400cos⁡(πt3)f(t) = 3000 + 30t + 700\cos\left(\dfrac{\pi t}{6}\right) + 400\cos\left(\dfrac{\pi t}{3}\right). (i) The model predicts that every 12 months monthly sales increase by nn million dollars; find nn. (ii) Find f′(t)f'(t). (iii) Hence find the maximum instantaneous rate of change of ff, to the nearest million dollars per month, and the values of tt in (0,36](0, 36] at which it occurs, to one decimal place.

  1. 1

    Both cosine terms have period 12, so over 12 months only the linear term changes. The increase is 30×1230 \times 12.

    n=30×12=360n = 30 \times 12 = 360
  2. 2

    Differentiate term by term. Each cosine brings down its inside derivative, π6\frac{\pi}{6} or π3\frac{\pi}{3}, and turns into a negative sine.

    f′(t)=30−350π3sin⁡(πt6)−400π3sin⁡(πt3)f'(t) = 30 - \frac{350\pi}{3}\sin\left(\frac{\pi t}{6}\right) - \frac{400\pi}{3}\sin\left(\frac{\pi t}{3}\right)
  3. 3

    Maximise f′f' with technology. Since f′f' has period 12, the maximum recurs three times across (0,36](0, 36].

    max≈725,t≈10.2, 22.2, 34.2\text{max} \approx 725,\quad t \approx 10.2,\ 22.2,\ 34.2
Answer
n=360; f′(t)=30−350π3sin⁡(πt6)−400π3sin⁡(πt3); max rate≈725 at t≈10.2,22.2,34.2n = 360;\ f'(t) = 30 - \dfrac{350\pi}{3}\sin\left(\dfrac{\pi t}{6}\right) - \dfrac{400\pi}{3}\sin\left(\dfrac{\pi t}{3}\right);\ \text{max rate} \approx 725 \text{ at } t \approx 10.2, 22.2, 34.2

VCAA 2024 Mathematical Methods Exam 2, Section B Q3b

Worked Example 2The range of a derivative on an interval, from a real exam

For f′(x)=sin⁡(x)+xcos⁡(x)f'(x) = \sin(x) + x\cos(x), determine the range of f′(x)f'(x) over the interval [π2,2π3]\left[\dfrac{\pi}{2}, \dfrac{2\pi}{3}\right].

  1. 1

    Evaluate f′f' at the left endpoint. Here cos⁡π2=0\cos\frac{\pi}{2} = 0, so the second term vanishes.

    f′(π2)=sin⁡π2+π2cos⁡π2=1f'\left(\tfrac{\pi}{2}\right) = \sin\tfrac{\pi}{2} + \tfrac{\pi}{2}\cos\tfrac{\pi}{2} = 1
  2. 2

    Evaluate f′f' at the right endpoint, using sin⁡2π3=32\sin\frac{2\pi}{3} = \frac{\sqrt3}{2} and cos⁡2π3=−12\cos\frac{2\pi}{3} = -\frac12.

    f′(2π3)=32+2π3(−12)=32−π3f'\left(\tfrac{2\pi}{3}\right) = \frac{\sqrt3}{2} + \frac{2\pi}{3}\left(-\tfrac12\right) = \frac{\sqrt3}{2} - \frac{\pi}{3}
  3. 3

    f′f' is decreasing across this interval, so the range runs from the smaller right-endpoint value up to 11. Use square brackets, smaller value first.

    Range=[32−π3, 1]\text{Range} = \left[\frac{\sqrt3}{2} - \frac{\pi}{3},\ 1\right]
Answer
Range=[32−π3, 1]\text{Range} = \left[\dfrac{\sqrt3}{2} - \dfrac{\pi}{3},\ 1\right]

VCAA 2024 Mathematical Methods Exam 1, Q7b.ii

Worked Example 3A scaled sine wave

Differentiate y=sin⁡(3x)y = \sin(3x).

  1. 1

    Spot the inside function. Here the inside is 3x3x, so use the chain rule.

    y=sin⁡(u),u=3xy = \sin(u), \quad u = 3x
  2. 2

    Differentiate the outside. The derivative of sin⁡\sin is cos⁡\cos, with the inside left alone.

    dydu=cos⁡(u)=cos⁡(3x)\frac{dy}{du} = \cos(u) = \cos(3x)
  3. 3

    Differentiate the inside and multiply. The derivative of 3x3x is 33.

    dudx=3\frac{du}{dx} = 3
Answer
dydx=3cos⁡(3x)\frac{dy}{dx} = 3\cos(3x)
Worked Example 4Cosine with a coefficient and a phase

Differentiate y=4cos⁡(2x−π3)y = 4\cos\left(2x - \dfrac{\pi}{3}\right).

  1. 1

    The front number 44 just rides along. The inside is 2x−π32x - \frac{\pi}{3}, whose derivative is 22.

    ddxcos⁡(2x−π3)=−sin⁡(2x−π3)×2\frac{d}{dx}\cos(2x - \tfrac{\pi}{3}) = -\sin\left(2x - \tfrac{\pi}{3}\right) \times 2
  2. 2

    Multiply by the front 44 and the inside derivative 22. Watch the sign: cos⁡\cos differentiates to −sin⁡-\sin.

    dydx=4×(−sin⁡(2x−π3))×2\frac{dy}{dx} = 4 \times (-\sin(2x - \tfrac{\pi}{3})) \times 2
Answer
dydx=−8sin⁡(2x−π3)\frac{dy}{dx} = -8\sin\left(2x - \dfrac{\pi}{3}\right)
Worked Example 5A tangent, then evaluate

For f(x)=tan⁡(5x)f(x) = \tan(5x), find f′(π20)f'\left(\dfrac{\pi}{20}\right).

  1. 1

    The derivative of tan⁡(u)\tan(u) is sec⁡2(u)\sec^2(u), so the chain rule gives the inside derivative 55 out the front.

    f′(x)=5sec⁡2(5x)=5cos⁡2(5x)f'(x) = 5\sec^2(5x) = \frac{5}{\cos^2(5x)}
  2. 2

    Substitute x=π20x = \frac{\pi}{20}, so the inside becomes 5×π20=π45 \times \frac{\pi}{20} = \frac{\pi}{4}.

    f′(π20)=5cos⁡2(π4)f'\left(\tfrac{\pi}{20}\right) = \frac{5}{\cos^2(\frac{\pi}{4})}
  3. 3

    Use the exact value cos⁡π4=12\cos\frac{\pi}{4} = \frac{1}{\sqrt{2}}, so cos⁡2π4=12\cos^2\frac{\pi}{4} = \frac{1}{2}.

    f′(π20)=512=10f'\left(\tfrac{\pi}{20}\right) = \frac{5}{\frac{1}{2}} = 10
Answer
f′(π20)=10f'\left(\dfrac{\pi}{20}\right) = 10

Practice questions

Practice test

Try it yourself

7 questions, 9 marks

Choose your answers, then submit to see your score and the full worked solutions. Multiple choice is marked for you, just like Exam 2 Section A.

Q1.The function ff is given by f(x)=tan⁡(x2)f(x) = \tan\left(\dfrac{x}{2}\right) for 4≤x<2π4 \le x < 2\pi and f(x)=sin⁡(ax)f(x) = \sin(ax) for 2π≤x≤82\pi \le x \le 8. The value of aa for which ff is continuous and smooth at x=2πx = 2\pi is:

1mark
Need a hint?
Continuity forces sin⁡(2πa)=0\sin(2\pi a) = 0. Smoothness forces the two derivatives to match at x=2πx = 2\pi; the gradient of tan⁡(x/2)\tan(x/2) there is 12\frac12.

VCAA 2023 Mathematical Methods Exam 2, Section A Q9

Q2.The derivative of y=sin⁡(4x)y = \sin(4x) is:

1mark
Need a hint?
Differentiate the outside (sin⁡→cos⁡\sin \to \cos), then multiply by the derivative of the inside 4x4x.

Q3.If f(x)=cos⁡(2x)f(x) = \cos(2x), then f′(x)f'(x) equals:

1mark
Need a hint?
Cosine picks up a minus sign when you differentiate it, and the inside 2x2x still contributes a factor.

Q4.The gradient of y=3sin⁡(2x+π6)y = 3\sin\left(2x + \dfrac{\pi}{6}\right) at any point is given by dydx=\dfrac{dy}{dx} =

1mark
Need a hint?
The front 33 rides along and the phase π6\frac{\pi}{6} is a constant, so only 2x2x matters for the inside derivative.

Q5.For f(x)=tan⁡(3x)f(x) = \tan(3x), the value of f′(π12)f'\left(\dfrac{\pi}{12}\right) is:

1mark
Need a hint?
First differentiate tan⁡(3x)\tan(3x) to 3sec⁡2(3x)3\sec^2(3x), then substitute. Note 3×π12=π43 \times \frac{\pi}{12} = \frac{\pi}{4}.

Q6.The derivative of y=cos⁡(x2)y = \cos\left(\dfrac{x}{2}\right) is:

1mark
Need a hint?
Rewrite the inside as 12x\frac{1}{2}x and ask what its derivative is before multiplying.

Q7.Let f(x)=2sin⁡(3x)f(x) = 2\sin(3x). Find the gradient of the graph of ff at the point where x=π9x = \dfrac{\pi}{9}. Give the exact value and show all working.

3marks

Work this on paper. The worked solution appears once you submit.

Frequently asked questions

What is the derivative of sin, cos and tan?
The derivative of sine is cosine, the derivative of cosine is negative sine, and the derivative of tangent is secant squared, which equals one over cosine squared. These three results only hold when the angle is measured in radians.
Why do circular function derivatives only work in radians, not degrees?
The neat rules depend on the angle being in radians. If your calculator is set to degrees the slope of sine is no longer simply cosine, because changing the units of the input changes how fast the output rises and falls. Every VCAA exam uses radians, so always work in radians and exact values like pi over three.
How do I differentiate sin(kx) or cos of something with a number in front?
Use the chain rule. Differentiate the outside, copying the bracket down unchanged, then multiply by the derivative of the inside. For sin(kx) that gives k cos(kx). Any constant sitting out the front just rides along and multiplies the answer, and a phase shift inside the bracket adds nothing to the inside derivative.