Differentiation of trigonometric functions
In Year 12 Mathematical Methods (Queensland, QCAA), differentiating trigonometric functions (in radians) uses the standard rules \(\dfrac{d}{dx}\sin x=\cos x\), \(\dfrac{d}{dx}\cos x=-\sin x\) and \(\dfrac{d}{dx}\tan x=\sec^{2}x\). For a composite such as \(\sin(3x)\) use the chain rule, and combine with the product and quotient rules when a trig function multiplies a polynomial or \(e^{x}\).
The derivative of a trigonometric function gives the gradient of its curve. In radians, the three standard results are \(\dfrac{d}{dx}\sin x=\cos x\), \(\dfrac{d}{dx}\cos x=-\sin x\) and \(\dfrac{d}{dx}\tan x=\sec^{2}x=\dfrac{1}{\cos^{2}x}\). The minus sign belongs to the derivative of cosine; the \(\tan\) result follows from the quotient rule on \(\tan x=\dfrac{\sin x}{\cos x}\).
For a composite function, the chain rule applies: \(\dfrac{d}{dx}\sin\!\big(f(x)\big)=f'(x)\cos\!\big(f(x)\big)\) and \(\dfrac{d}{dx}\cos\!\big(f(x)\big)=-f'(x)\sin\!\big(f(x)\big)\). You differentiate the outer trig function and multiply by the derivative of the inside — never dropping that inner factor.
When a trig function is multiplied by (or divided by) another function — a polynomial or \(e^{x}\) — use the product rule \((uv)'=u'v+uv'\) or the quotient rule. Evaluating a derivative at an exact-value angle (\(\tfrac{\pi}{6},\tfrac{\pi}{4},\tfrac{\pi}{3}\)) gives an exact gradient, used to find tangents and stationary points.
The three standard derivatives (radians):
The chain rule for a composite trig function:
The product rule (a trig function times another function):
How to differentiate a trigonometric function
- Check it is in radians. If the angle is in degrees, rewrite it in radians first (\(x^{\circ}=\tfrac{\pi x}{180}\)) before differentiating.
- Apply the standard rule. \(\dfrac{d}{dx}\sin x=\cos x\), \(\dfrac{d}{dx}\cos x=-\sin x\), \(\dfrac{d}{dx}\tan x=\sec^{2}x\). Keep the minus sign on the cosine.
- Composite? Use the chain rule. For \(\sin\!\big(f(x)\big)\) or \(\cos\!\big(f(x)\big)\), multiply by \(f'(x)\); e.g. \(\dfrac{d}{dx}\cos(3x)=-3\sin(3x)\).
- Product or quotient? Combine the rules. When trig multiplies a polynomial or \(e^{x}\), use \((uv)'=u'v+uv'\) (or the quotient rule), then express in simplest and factorised form.
- Need a gradient, tangent or stationary point? Evaluate the derivative at the point for the gradient; set \(y'=0\) and solve to locate stationary points.
Standard rules for (a); chain rule for (b).
| \((a)\ y'\) | \(=\) | \(4\cos x-(-\sin x)\) |
| \(=\) | \(4\cos x+\sin x\) | |
| \((b)\ y'\) | \(=\) | \(2\cos(2x-1)\) |
In (b) the inner \(2x-1\) has derivative \(2\).
Product rule with \(u=e^{x}\), \(v=\sin x\).
| \(y'\) | \(=\) | \(u'v+uv'\) |
| \(=\) | \(e^{x}\sin x+e^{x}\cos x\) | |
| \(=\) | \(e^{x}(\sin x+\cos x)\) |
Point, then gradient \(y'=-\sin x\).
| \(y\!\left(\tfrac{\pi}{2}\right)\) | \(=\) | \(\cos\tfrac{\pi}{2}=0\) |
| \(m\) | \(=\) | \(-\sin\tfrac{\pi}{2}=-1\) |
| \(y\) | \(=\) | \(-x+\tfrac{\pi}{2}\) |
Set the derivative to zero and solve.
| \(y'\) | \(=\) | \(\cos x-\sin x=0\) |
| \(\tan x\) | \(=\) | \(1\) |
| \(x\) | \(=\) | \(\tfrac{\pi}{4},\ \tfrac{5\pi}{4}\) |
Maximum \(\sqrt2\) at \(\tfrac{\pi}{4}\); minimum \(-\sqrt2\) at \(\tfrac{5\pi}{4}\).
Common pitfalls
Frequently asked questions
What is the derivative of sin x and cos x?
In radians, \(\dfrac{d}{dx}\sin x=\cos x\) and \(\dfrac{d}{dx}\cos x=-\sin x\). Also \(\dfrac{d}{dx}\tan x=\sec^{2}x=\dfrac{1}{\cos^{2}x}\).
How do you differentiate sin(f(x)) or cos(f(x))?
Chain rule: \(\dfrac{d}{dx}\sin\!\big(f(x)\big)=f'(x)\cos\!\big(f(x)\big)\) and \(\dfrac{d}{dx}\cos\!\big(f(x)\big)=-f'(x)\sin\!\big(f(x)\big)\). E.g. \(\dfrac{d}{dx}\cos(3x)=-3\sin(3x)\).
Why must the angle be in radians?
The rules only hold in radians. For \(\sin x^{\circ}\), rewrite as \(\sin\dfrac{\pi x}{180}\); then \(\dfrac{d}{dx}\sin x^{\circ}=\dfrac{\pi}{180}\cos x^{\circ}\).
How do you differentiate x sin x or e^x sin x?
Product rule \((uv)'=u'v+uv'\). So \(\dfrac{d}{dx}(x\sin x)=\sin x+x\cos x\) and \(\dfrac{d}{dx}(e^{x}\sin x)=e^{x}(\sin x+\cos x)\).
How do you find the gradient at an exact angle?
Evaluate the derivative there. For \(y=\sin x\), \(y'=\cos x\), so at \(x=\dfrac{\pi}{3}\) the gradient is \(\cos\dfrac{\pi}{3}=\dfrac12\).
How do you find stationary points of a trig function?
Set \(y'=0\) and solve on the domain. For \(y=\sin x+\cos x\), \(y'=\cos x-\sin x=0\Rightarrow\tan x=1\), so \(x=\dfrac{\pi}{4},\dfrac{5\pi}{4}\) on \([0,2\pi]\).