Cos Differentiated: A-Level Maths Revision Guide
Learn how cos differentiated works in A-level Maths. Covers radians, first principles, chain rule examples, common mistakes, and exam-style practice questions.

When cosx\cos xcosx is differentiated with respect to xxx, the result is −sinx-\sin x−sinx, provided that xxx is measured in radians. Written in standard notation, this fundamental A-level rule is:
ddx(cosx)=−sinx \frac{d}{dx}(\cos x) = -\sin x dxd(cosx)=−sinxThis result is a core building block of Year 13 Pure Mathematics across Edexcel, AQA, and OCR specifications. It appears in curve sketching, stationary point problems, differential equations, and mechanics questions involving simple harmonic motion. In this guide, you will learn why cos differentiated produces a negative sine function, how to prove it from first principles, how to apply it with the chain, product, and quotient rules, and how to avoid the most common exam mistakes.
Why cosx\cos xcosx Differentiates to −sinx-\sin x−sinx
Before memorising the rule, it helps to visualise the gradient of the graph y=cosxy = \cos xy=cosx over one full period from 000 to 2π2\pi2π radians. Imagine tracing the curve from left to right and recording the steepness of the tangent at key points:
- At x=0x = 0x=0, the curve y=cosxy = \cos xy=cosx is at a maximum turning point (0,1)(0, 1)(0,1), so the tangent is horizontal and the gradient is 000. This matches −sin(0)=0-\sin(0) = 0−sin(0)=0.
- Between x=0x = 0x=0 and x=πx = \pix=π, the curve falls continuously, meaning the gradient is negative. The steepest downward slope occurs as the curve crosses the xxx-axis at x=π2x = \frac{\pi}{2}x=2π, where the gradient is −1-1−1. This matches −sin(π2)=−1-\sin\left(\frac{\pi}{2}\right) = -1−sin(2π)=−1.
- At x=πx = \pix=π, the curve reaches a minimum turning point (π,−1)(\pi, -1)(π,−1), so the gradient returns to 000. This matches −sin(π)=0-\sin(\pi) = 0−sin(π)=0.
- Between x=πx = \pix=π and x=2πx = 2\pix=2π, the curve rises back to 111, so the gradient is positive. The steepest upward slope occurs at x=3π2x = \frac{3\pi}{2}x=23π, where the gradient is +1+1+1. This matches −sin(3π2)=−(−1)=1-\sin\left(\frac{3\pi}{2}\right) = -(-1) = 1−sin(23π)=−(−1)=1.
If you plot these gradient values against xxx, you trace out a sine wave reflected in the xxx-axis, which is the graph of y=−sinxy = -\sin xy=−sinx.
Why Radians Are Essential
The rule ddx(cosx)=−sinx\frac{d}{dx}(\cos x) = -\sin xdxd(cosx)=−sinx holds only in radians. If xxx is measured in degrees, the graph of y=cosxy = \cos xy=cosx is stretched horizontally by a factor of 180π\frac{180}{\pi}π180, which makes the curve much flatter. Its derivative in degrees would be −π180sinx-\frac{\pi}{180}\sin x−180πsinx. This difference arises from the definition of a radian itself. On a unit circle, an angle of hhh radians subtends an arc of length hhh, which leads directly to the small-angle approximations sinh≈h\sin h \approx hsinh≈h and cosh≈1−h22\cos h \approx 1 - \frac{h^2}{2}cosh≈1−2h2 for small hhh. These approximations are only true when hhh is in radians, and they are the exact reason the derivative of cosx\cos xcosx has a clean coefficient of −1-1−1 rather than an awkward factor of π180\frac{\pi}{180}180π. In A-level Maths exams, whenever you differentiate or integrate trigonometric functions, you must always work in radians and ensure your calculator is in radian mode.
Differentiating cosx\cos xcosx from First Principles
UK A-level Maths specifications require students to know how to prove the derivatives of sinx\sin xsinx and cosx\cos xcosx using differentiation from first principles. You will typically be given the compound angle formula and the two small-angle limits in the question, but you must show every algebraic step clearly.
Start with the definition of the derivative:
ddx(cosx)=limh→0cos(x+h)−cosxh \frac{d}{dx}(\cos x) = \lim_{h \to 0} \frac{\cos(x + h) - \cos x}{h} dxd(cosx)=h→0limhcos(x+h)−cosxApply the compound angle identity cos(A+B)=cosAcosB−sinAsinB\cos(A + B) = \cos A \cos B - \sin A \sin Bcos(A+B)=cosAcosB−sinAsinB:
ddx(cosx)=limh→0cosxcosh−sinxsinh−cosxh \frac{d}{dx}(\cos x) = \lim_{h \to 0} \frac{\cos x \cos h - \sin x \sin h - \cos x}{h} dxd(cosx)=h→0limhcosxcosh−sinxsinh−cosxGroup the terms containing cosx\cos xcosx and split the fraction:
ddx(cosx)=limh→0(cosx(cosh−1h)−sinx(sinhh)) \frac{d}{dx}(\cos x) = \lim_{h \to 0} \left( \cos x \left(\frac{\cos h - 1}{h}\right) - \sin x \left(\frac{\sin h}{h}\right) \right) dxd(cosx)=h→0lim(cosx(hcosh−1)−sinx(hsinh))As h→0h \to 0h→0 (with hhh in radians), the standard limits are:
limh→0cosh−1h=0andlimh→0sinhh=1 \lim_{h \to 0} \frac{\cos h - 1}{h} = 0 \quad \text{and} \quad \lim_{h \to 0} \frac{\sin h}{h} = 1 h→0limhcosh−1=0andh→0limhsinh=1Substituting these limits gives:
ddx(cosx)=cosx(0)−sinx(1)=−sinx \frac{d}{dx}(\cos x) = \cos x (0) - \sin x (1) = -\sin x dxd(cosx)=cosx(0)−sinx(1)=−sinxExaminers award marks for explicitly stating the limit notation limh→0\lim_{h \to 0}limh→0 until the final substitution, so do not drop it early in your working.
Standard Trigonometric Derivatives Summary
In A-level Pure Mathematics, cosx\cos xcosx rarely appears in isolation. You will frequently combine it with sinx\sin xsinx, cos(kx)\cos(kx)cos(kx), and higher-order derivatives. The table below summarises the standard forms you should recognise immediately.
| Function f(x)f(x)f(x) | Derivative f′(x)f'(x)f′(x) | Key Rule Applied |
|---|---|---|
| cosx\cos xcosx | −sinx-\sin x−sinx | Standard derivative |
| sinx\sin xsinx | cosx\cos xcosx | Standard derivative |
| cos(kx)\cos(kx)cos(kx) | −ksin(kx)-k\sin(kx)−ksin(kx) | Chain rule (linear argument) |
| cos(ax+b)\cos(ax + b)cos(ax+b) | −asin(ax+b)-a\sin(ax + b)−asin(ax+b) | Chain rule (linear argument) |
| cos(g(x))\cos(g(x))cos(g(x)) | −g′(x)sin(g(x))-g'(x)\sin(g(x))−g′(x)sin(g(x)) | General chain rule |
| cosnx\cos^n xcosnx | −nsinxcosn−1x-n\sin x \cos^{n-1} x−nsinxcosn−1x | Chain rule (power of cosine) |
You can revise all standard trigonometric derivatives and test your recall using the Edexcel A-level Differentiating Trigonometric Functions topic page or the OCR Differentiating Trigonometric Functions flashcards.
Higher-Order Derivatives of cosx\cos xcosx
Differentiating cosx\cos xcosx repeatedly produces a four-step cyclic pattern that is useful for classifying stationary points and solving second-order differential equations:
- First derivative: dydx=−sinx\frac{dy}{dx} = -\sin xdxdy=−sinx
- Second derivative: d2ydx2=−cosx\frac{d^2y}{dx^2} = -\cos xdx2d2y=−cosx
- Third derivative: d3ydx3=sinx\frac{d^3y}{dx^3} = \sin xdx3d3y=sinx
- Fourth derivative: d4ydx4=cosx\frac{d^4y}{dx^4} = \cos xdx4d4y=cosx
After four differentiations, you return to the original function cosx\cos xcosx. Notice in particular that the second derivative of y=cosxy = \cos xy=cosx satisfies the equation d2ydx2=−y\frac{d^2y}{dx^2} = -ydx2d2y=−y. More generally, for y=cos(ωx)y = \cos(\omega x)y=cos(ωx), applying the chain rule twice gives d2ydx2=−ω2cos(ωx)=−ω2y\frac{d^2y}{dx^2} = -\omega^2 \cos(\omega x) = -\omega^2 ydx2d2y=−ω2cos(ωx)=−ω2y. This relationship is the mathematical foundation of simple harmonic motion in physics and further mechanics, and it also makes the second derivative test straightforward when determining whether a stationary point on a trigonometric curve is a local maximum or minimum.
Worked Examples
Exam questions almost always combine cos differentiated with the chain rule, product rule, or quotient rule. The four worked examples below cover the most common structures tested in Years 12-13.
Example 1: Differentiating cos(ax+b)\cos(ax + b)cos(ax+b) Using the Chain Rule
Differentiate y=cos(3x−π4)y = \cos\left(3x - \frac{\pi}{4}\right)y=cos(3x−4π) with respect to xxx.
Let u=3x−π4u = 3x - \frac{\pi}{4}u=3x−4π, so y=cosuy = \cos uy=cosu.
Differentiate each part separately:
dudx=3anddydu=−sinu \frac{du}{dx} = 3 \quad \text{and} \quad \frac{dy}{du} = -\sin u dxdu=3anddudy=−sinuMultiply them using the chain rule dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}dxdy=dudy×dxdu:
dydx=−3sin(3x−π4) \frac{dy}{dx} = -3\sin\left(3x - \frac{\pi}{4}\right) dxdy=−3sin(3x−4π)Notice that the constant −π4-\frac{\pi}{4}−4π inside the bracket disappears when you differentiate the inner function, but it remains inside the sine function in the final answer.
Example 2: Differentiating Powers of cosx\cos xcosx
Differentiate y=cos3(2x)y = \cos^3(2x)y=cos3(2x) with respect to xxx.
Rewrite the function clearly so the outer power is visible:
y=(cos(2x))3 y = (\cos(2x))^3 y=(cos(2x))3Differentiate from the outside inwards. First, differentiate the cube; next, differentiate cos(2x)\cos(2x)cos(2x); finally, multiply by the derivative of 2x2x2x:
dydx=3(cos(2x))2×(−sin(2x))×2 \frac{dy}{dx} = 3(\cos(2x))^2 \times (-\sin(2x)) \times 2 dxdy=3(cos(2x))2×(−sin(2x))×2Simplify the constants and signs:
dydx=−6sin(2x)cos2(2x) \frac{dy}{dx} = -6\sin(2x)\cos^2(2x) dxdy=−6sin(2x)cos2(2x)If you find multi-step chain rule questions difficult, practise the fundamentals on the Edexcel A-level Chain Rule revision page.
Example 3: Combining cosx\cos xcosx with the Product Rule
Differentiate y=x2cosxy = x^2 \cos xy=x2cosx with respect to xxx.
Here, two functions of xxx are multiplied together, so apply the product rule dydx=udvdx+vdudx\frac{dy}{dx} = u\frac{dv}{dx} + v\frac{du}{dx}dxdy=udxdv+vdxdu.
Set u=x2u = x^2u=x2 and v=cosxv = \cos xv=cosx. Then:
dudx=2xanddvdx=−sinx \frac{du}{dx} = 2x \quad \text{and} \quad \frac{dv}{dx} = -\sin x dxdu=2xanddxdv=−sinxSubstitute into the product rule:
dydx=x2(−sinx)+(cosx)(2x) \frac{dy}{dx} = x^2(-\sin x) + (\cos x)(2x) dxdy=x2(−sinx)+(cosx)(2x)Write the final answer neatly:
dydx=2xcosx−x2sinx \frac{dy}{dx} = 2x\cos x - x^2\sin x dxdy=2xcosx−x2sinxExample 4: Combining cosx\cos xcosx with the Quotient Rule
Differentiate y=cosxxy = \frac{\cos x}{x}y=xcosx with respect to xxx, where x≠0x \neq 0x=0.
Because one function of xxx is divided by another, apply the quotient rule dydx=vdudx−udvdxv2\frac{dy}{dx} = \frac{v\frac{du}{dx} - u\frac{dv}{dx}}{v^2}dxdy=v2vdxdu−udxdv.
Set u=cosxu = \cos xu=cosx and v=xv = xv=x. Then:
dudx=−sinxanddvdx=1 \frac{du}{dx} = -\sin x \quad \text{and} \quad \frac{dv}{dx} = 1 dxdu=−sinxanddxdv=1Substitute these into the quotient rule:
dydx=x(−sinx)−(cosx)(1)x2 \frac{dy}{dx} = \frac{x(-\sin x) - (\cos x)(1)}{x^2} dxdy=x2x(−sinx)−(cosx)(1)Simplify the numerator to give the final answer:
dydx=−xsinx−cosxx2 \frac{dy}{dx} = \frac{-x\sin x - \cos x}{x^2} dxdy=x2−xsinx−cosxBe careful with the minus sign in the quotient rule formula. Because ddx(cosx)\frac{d}{dx}(\cos x)dxd(cosx) is already negative, it is easy to drop a sign if you rush the substitution.
Common Mistakes to Avoid
Even confident A-level students lose method and accuracy marks on trigonometric differentiation because of small slips. Watch out for these four errors:
- Confusing the signs of differentiation and integration. When you differentiate cosx\cos xcosx, you get −sinx-\sin x−sinx. When you integrate cosx\cos xcosx, you get +sinx+c+\sin x + c+sinx+c. A quick way to check is to recall the graph of y=cosxy = \cos xy=cosx starting at (0,1)(0, 1)(0,1) and immediately going downhill, which confirms the derivative must be negative for small positive xxx.
- Leaving the calculator in degrees. When finding the gradient of a curve at a specific value of xxx, your calculator must be in radians. Evaluating −sin(π6)-\sin\left(\frac{\pi}{6}\right)−sin(6π) in degree mode gives an incorrect decimal instead of −0.5-0.5−0.5.
- Forgetting to multiply by the derivative of the inner function. Differentiating cos(4x)\cos(4x)cos(4x) gives −4sin(4x)-4\sin(4x)−4sin(4x), not −sin(4x)-\sin(4x)−sin(4x). Always check whether the angle is just xxx or a function of xxx.
- Misreading cos2x\cos^2 xcos2x as cos(x2)\cos(x^2)cos(x2). The expression cos2x\cos^2 xcos2x means (cosx)2(\cos x)^2(cosx)2, whose derivative is −2sinxcosx-2\sin x \cos x−2sinxcosx. In contrast, cos(x2)\cos(x^2)cos(x2) has x2x^2x2 as the angle, so its derivative is −2xsin(x2)-2x\sin(x^2)−2xsin(x2).
For more advice on avoiding common pitfalls under timed conditions, read our guide on differentiation questions in A-level Maths mocks.
Exam-Style Practice Questions
Attempt these three questions without looking at the solutions first. Keep your calculator in radian mode and give exact answers where appropriate.
Question 1
Find the exact gradient of the curve y=4cos(2x)y = 4\cos(2x)y=4cos(2x) at the point where x=π6x = \frac{\pi}{6}x=6π.
Answer: Differentiate using the chain rule:
dydx=4×(−2sin(2x))=−8sin(2x) \frac{dy}{dx} = 4 \times (-2\sin(2x)) = -8\sin(2x) dxdy=4×(−2sin(2x))=−8sin(2x)Substitute x=π6x = \frac{\pi}{6}x=6π:
dydx=−8sin(π3)=−8(32)=−43 \frac{dy}{dx} = -8\sin\left(\frac{\pi}{3}\right) = -8 \left(\frac{\sqrt{3}}{2}\right) = -4\sqrt{3} dxdy=−8sin(3π)=−8(23)=−43Question 2
Differentiate y=e3xcos(2x)y = e^{3x}\cos(2x)y=e3xcos(2x) with respect to xxx, writing your answer in fully factorised form.
Answer: Use the product rule with u=e3xu = e^{3x}u=e3x and v=cos(2x)v = \cos(2x)v=cos(2x):
dudx=3e3xanddvdx=−2sin(2x) \frac{du}{dx} = 3e^{3x} \quad \text{and} \quad \frac{dv}{dx} = -2\sin(2x) dxdu=3e3xanddxdv=−2sin(2x)Combine the terms:
dydx=3e3xcos(2x)−2e3xsin(2x) \frac{dy}{dx} = 3e^{3x}\cos(2x) - 2e^{3x}\sin(2x) dxdy=3e3xcos(2x)−2e3xsin(2x)Factor out e3xe^{3x}e3x:
dydx=e3x(3cos(2x)−2sin(2x)) \frac{dy}{dx} = e^{3x}\big(3\cos(2x) - 2\sin(2x)\big) dxdy=e3x(3cos(2x)−2sin(2x))Question 3
Find the xxx-coordinates of the stationary points of the curve y=x+2cosxy = x + 2\cos xy=x+2cosx in the interval 0≤x≤2π0 \le x \le 2\pi0≤x≤2π, and determine the nature of each stationary point.
Answer: Differentiate with respect to xxx:
dydx=1−2sinx \frac{dy}{dx} = 1 - 2\sin x dxdy=1−2sinxAt a stationary point, dydx=0\frac{dy}{dx} = 0dxdy=0:
1−2sinx=0 ⟹ sinx=12 1 - 2\sin x = 0 \implies \sin x = \frac{1}{2} 1−2sinx=0⟹sinx=21Solve for 0≤x≤2π0 \le x \le 2\pi0≤x≤2π:
x=π6andx=π−π6=5π6 x = \frac{\pi}{6} \quad \text{and} \quad x = \pi - \frac{\pi}{6} = \frac{5\pi}{6} x=6πandx=π−6π=65πTo classify each stationary point, find the second derivative:
d2ydx2=−2cosx \frac{d^2y}{dx^2} = -2\cos x dx2d2y=−2cosxAt x=π6x = \frac{\pi}{6}x=6π, d2ydx2=−2cos(π6)=−3<0\frac{d^2y}{dx^2} = -2\cos\left(\frac{\pi}{6}\right) = -\sqrt{3} < 0dx2d2y=−2cos(6π)=−3<0, so this is a local maximum.
At x=5π6x = \frac{5\pi}{6}x=65π, d2ydx2=−2cos(5π6)=3>0\frac{d^2y}{dx^2} = -2\cos\left(\frac{5\pi}{6}\right) = \sqrt{3} > 0dx2d2y=−2cos(65π)=3>0, so this is a local minimum.
To test yourself further, work through the exam-style questions on Differentiating Trigonometric Functions with full mark schemes and worked solutions.
Conclusion
Mastering how cos differentiated works is straightforward once you anchor the rule ddx(cosx)=−sinx\frac{d}{dx}(\cos x) = -\sin xdxd(cosx)=−sinx to the shape of the cosine graph and remember that all calculus with trigonometric functions requires radians. From there, exam success depends on combining this derivative accurately with the chain rule, product rule, and quotient rule while keeping careful track of negative signs.
When you are ready to consolidate your revision, use the full A-level Maths revision hub on MathsGenie, including Edexcel A-level Maths past papers, Edexcel A-level Maths revision, and AQA A-level Maths revision resources to practise under exam conditions.
Sources and referenced URLs
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-6-differentiating-trigonometric-functions
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-6-differentiating-trigonometric-functions/questions/q1
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-3-the-chain-rule
- https://mathsgenie.co.uk/a-level/maths/ocr/differentiating-trigonometric-functions/flashcards
- https://mathsgenie.co.uk/blog/differentiation-questions-a-level-maths-mocks
- https://mathsgenie.co.uk/a-level/maths/edexcel/papers
- https://mathsgenie.co.uk/a-level/maths/edexcel
- https://mathsgenie.co.uk/a-level/maths/aqa
- https://mathsgenie.co.uk/a-level/maths



