Navigation

The Derivative & Its Rules · Topic 08 of 23

Derivatives of Trigonometric Functions

In radians, (sinx)=cosx(\sin x)'=\cos x and (cosx)=sinx(\cos x)'=-\sin x; the quotient rule then gives (tanx)=sec2x(\tan x)'=\sec^2x, (cotx)=csc2x(\cot x)'=-\csc^2x, (secx)=secxtanx(\sec x)'=\sec x\tan x and (cscx)=cscxcotx(\csc x)'=-\csc x\cot x. The three co-functions carry the minus sign, each formula holds only where the function is defined, and anything but a bare xx inside needs the chain rule.

4 min readCore — on every final8 formulas6 quick checks
01

Key ideas

5 things to remember
  1. 1

    Sine and cosine trade places

    (sinx)=cosx(\sin x)'=\cos x and (cosx)=sinx(\cos x)'=-\sin x. Both come from the definition: expand sin(x+h)\sin(x+h) with the addition formula, then use sinhh1\frac{\sin h}{h}\to1 and cosh1h0\frac{\cos h-1}{h}\to0. Where sin\sin peaks, its slope is cosx=0\cos x=0.

  2. 2

    Co-functions carry the minus sign

    Co-functions cos\cos, cot\cot and csc\csc carry the minus sign in their derivatives; sin\sin, tan\tan and sec\sec do not. Swap each function for its co-function and flip the sign to turn one row of the table into its partner.

  3. 3

    Quotient rule builds the other four

    Write tanx=sinxcosx\tan x=\frac{\sin x}{\cos x} and secx=1cosx\sec x=\frac{1}{\cos x}, apply the quotient rule, and sin2x+cos2x=1\sin^2x+\cos^2x=1 finishes the algebra. Each result holds exactly where its denominator is nonzero — never at a vertical asymptote.

  4. 4

    Radians, or nothing works

    Every formula rests on limx0sinxx=1\lim_{x\to0}\frac{\sin x}{x}=1, which is only true in radians. In degrees each differentiation brings in a factor π180\frac{\pi}{180}. Keep the calculator in radians whenever a derivative is involved.

  5. 5

    Higher derivatives cycle in fours

    sinxcosxsinxcosxsinx\sin x\to\cos x\to-\sin x\to-\cos x\to\sin x, so the nnth derivative depends only on the remainder of nn on division by 44. In particular y=sinxy=\sin x and y=cosxy=\cos x both satisfy y+y=0y''+y=0.

π/2π3π/2-1.0-0.50.51.0xytangent, slope 0cos(π/2) = 0cos(3π/2) = 0f(x) = sin xf′(x) = cos x
f(x)=sinxf(x)=\sin x (blue) with its derivative f(x)=cosxf'(x)=\cos x (amber, dashed). Where sin\sin has a maximum or minimum the tangent is flat, and the derivative crosses zero at exactly those xx: cosπ2=cos3π2=0\cos\frac{\pi}{2}=\cos\frac{3\pi}{2}=0. Between them sin\sin decreases and cos\cos is negative.
OAPT1θsin θtan θareas: ½ sin θ ≤ ½ θ ≤ ½ tan θso cos θ ≤ sin θ / θ ≤ 1
The squeeze behind limθ0sinθθ=1\lim_{\theta\to0}\frac{\sin\theta}{\theta}=1, with P=(cosθ,sinθ)P=(\cos\theta,\sin\theta) on the unit circle. Triangle OAPOAP (area 12sinθ\frac12\sin\theta) fits inside the shaded sector (area 12θ\frac12\theta), which fits inside triangle OATOAT (area 12tanθ\frac12\tan\theta); divide by 12sinθ\frac12\sin\theta and invert to get cosθsinθθ1\cos\theta\le\frac{\sin\theta}{\theta}\le1. The sector area is 12θ\frac12\theta only in radians — that is where the whole table gets its unit.
02

Formulas

What to have memorised
  • Sine and cosine

    ddxsinx=cosxddxcosx=sinx\frac{d}{dx}\sin x=\cos x\qquad \frac{d}{dx}\cos x=-\sin x

    All real xx, measured in radians.

  • Tangent and cotangent

    ddxtanx=sec2xddxcotx=csc2x\frac{d}{dx}\tan x=\sec^2 x\qquad \frac{d}{dx}\cot x=-\csc^2 x

    Valid for xπ2+kπx\neq\frac{\pi}{2}+k\pi and xkπx\neq k\pi respectively.

  • Secant and cosecant

    ddxsecx=secxtanxddxcscx=cscxcotx\frac{d}{dx}\sec x=\sec x\tan x\qquad \frac{d}{dx}\csc x=-\csc x\cot x

    Each derivative starts with the function itself; only csc\csc takes the minus.

  • The two limits behind the table

    limh0sinhh=1limh0cosh1h=0\lim_{h\to0}\frac{\sin h}{h}=1\qquad \lim_{h\to0}\frac{\cos h-1}{h}=0

    Radians only. Prove the first by squeezing, not by l'Hôpital — that is circular.

  • Angle addition

    sin(x+h)=sinxcosh+cosxsinh\sin(x+h)=\sin x\cos h+\cos x\sin h

    For the definition proof; cos(x+h)=cosxcoshsinxsinh\cos(x+h)=\cos x\cos h-\sin x\sin h.

  • Identities that finish the algebra

    sin2x+cos2x=11+tan2x=sec2x1+cot2x=csc2x\sin^2x+\cos^2x=1\qquad 1+\tan^2x=\sec^2x\qquad 1+\cot^2x=\csc^2x

    Divide the first by cos2x\cos^2x or sin2x\sin^2x to get the other two.

  • nnth derivative of sine

    dndxnsinx=sin(x+nπ2)\frac{d^n}{dx^n}\sin x=\sin\left(x+\frac{n\pi}{2}\right)

    Period four: n=1,2,3,4n=1,2,3,4 gives cosx,sinx,cosx,sinx\cos x,\,-\sin x,\,-\cos x,\,\sin x.

  • Inside function? Chain rule

    ddxsin(u(x))=cos(u(x))u(x)\frac{d}{dx}\sin\bigl(u(x)\bigr)=\cos\bigl(u(x)\bigr)\,u'(x)

    The table is for a bare xx; sin3x\sin 3x and sin(x2)\sin(x^2) need the inside derivative.

03

Differentiate a trig expression

The steps, in order
  1. 1

    Look at the argument first: a bare xx means the table applies directly, while sin3x\sin 3x or cos(x2)\cos(x^2) also needs the chain rule.

  2. 2

    Name the structure — sum, product or quotient — and write uu, vv, uu', vv' before combining anything.

  3. 3

    Apply the rule with its signs: uv+uvu'v+uv' for a product, uvuvv2\frac{u'v-uv'}{v^2} for a quotient, and sinx-\sin x, csc2x-\csc^2x, cscxcotx-\csc x\cot x for the co-functions.

  4. 4

    Simplify with sin2x+cos2x=1\sin^2x+\cos^2x=1 or 1+tan2x=sec2x1+\tan^2x=\sec^2x and cancel common factors — most exam answers collapse.

  5. 5

    For a tangent line, evaluate f(a)f(a) and f(a)f'(a) with exact values (sinπ3=32\sin\frac{\pi}{3}=\frac{\sqrt3}{2}, not 0.8660.866), then write y=f(a)+f(a)(xa)y=f(a)+f'(a)(x-a).

  6. 6

    State validity by excluding every xx that makes a denominator zero, including the ones hidden inside tan\tan, sec\sec, cot\cot and csc\csc.

04

Watch out

The mistakes that cost marks
  • ✗ Wrong

    ddxcosx=sinx\frac{d}{dx}\cos x=\sin x

    ✓ Right

    ddxcosx=sinx\frac{d}{dx}\cos x=-\sin x

    Why: The three co-functions (cos\cos, cot\cot, csc\csc) carry the minus sign.

  • ✗ Wrong

    ddxsecx=secxtanx\frac{d}{dx}\sec x=-\sec x\tan x

    ✓ Right

    ddxsecx=+secxtanx\frac{d}{dx}\sec x=+\sec x\tan x; it is csc\csc that gets the minus.

    Why: sec\sec is not a co-function.

  • ✗ Wrong

    ddx(sinxcosx)=(cosx)(sinx)\frac{d}{dx}(\sin x\cos x)=(\cos x)(-\sin x)

    ✓ Right

    Product rule: cosxcosx+sinx(sinx)=cos2xsin2x\cos x\cdot\cos x+\sin x\cdot(-\sin x)=\cos^2x-\sin^2x.

    Why: The derivative of a product is not the product of the derivatives.

  • ✗ Wrong

    ddxsin(x2)=cos(x2)\frac{d}{dx}\sin(x^2)=\cos(x^2)

    ✓ Right

    2xcos(x2)2x\cos(x^2) — the table is for sin\sin of xx itself; anything else needs the chain rule.

  • ✗ Wrong

    (uv)=uvuvv2\left(\frac{u}{v}\right)'=\frac{uv'-u'v}{v^2}

    ✓ Right

    (uv)=uvuvv2\left(\frac{u}{v}\right)'=\frac{u'v-uv'}{v^2}: derivative of the top first.

    Why: Reversing the order negates the whole answer.

  • ✗ Wrong

    ddθsinθ=cosθ\frac{d}{d\theta}\sin\theta=\cos\theta with θ\theta in degrees

    ✓ Right

    Convert first: sin(πθ180)\sin\left(\frac{\pi\theta}{180}\right) has derivative π180cos(πθ180)\frac{\pi}{180}\cos\left(\frac{\pi\theta}{180}\right).

    Why: sinxx1\frac{\sin x}{x}\to1 only in radians.

05

Quick check

Commit to an answer before you reveal one
  1. Q1easy

    Differentiate g(x)=x2cosxg(x)=x^2\cos x and evaluate g(π)g'(\pi).

    Hint

    A product of two functions of xx — the table alone is not enough.

    Show answer

    Answer

    g(x)=2xcosxx2sinxg'(x)=2x\cos x-x^2\sin x; g(π)=2πg'(\pi)=-2\pi.

    Steps

    Product rule with u=x2u=x^2, v=cosxv=\cos x:

    g(x)=(2x)(cosx)+(x2)(sinx)=2xcosxx2sinx.g'(x)=(2x)(\cos x)+(x^2)(-\sin x)=2x\cos x-x^2\sin x.

    At x=πx=\pi: cosπ=1\cos\pi=-1 and sinπ=0\sin\pi=0, so g(π)=2π(1)π2(0)=2πg'(\pi)=2\pi(-1)-\pi^2(0)=-2\pi.

  2. Q2easy

    Starting from cscx=1sinx\csc x=\dfrac{1}{\sin x}, use the quotient rule to show that ddxcscx=cscxcotx\dfrac{d}{dx}\csc x=-\csc x\cot x, and state exactly where the formula is valid.

    Hint

    Numerator 11, denominator sinx\sin x; then split cosxsin2x\frac{\cos x}{\sin^2x} into two familiar ratios.

    Show answer

    Answer

    ddxcscx=cscxcotx\dfrac{d}{dx}\csc x=-\csc x\cot x for all xkπx\neq k\pi, kk an integer.

    Steps

    With u=1u=1, v=sinxv=\sin x: u=0u'=0, v=cosxv'=\cos x.

    ddxcscx=(0)(sinx)(1)(cosx)sin2x=cosxsin2x=1sinxcosxsinx=cscxcotx.\frac{d}{dx}\csc x=\frac{(0)(\sin x)-(1)(\cos x)}{\sin^2x}=-\frac{\cos x}{\sin^2x}=-\frac{1}{\sin x}\cdot\frac{\cos x}{\sin x}=-\csc x\cot x.

    The quotient rule needs v=sinx0v=\sin x\neq0, so the formula holds exactly for xkπx\neq k\pi. At x=kπx=k\pi the function cscx\csc x is undefined — there is no derivative to speak of.

  3. Q3medium

    Find an equation of the tangent line to y=secxy=\sec x at x=π3x=\dfrac{\pi}{3}.

    Hint

    Point first, then slope from (secx)=secxtanx(\sec x)'=\sec x\tan x, all in exact values.

    Show answer

    Answer

    y=2+23(xπ3)y=2+2\sqrt{3}\left(x-\dfrac{\pi}{3}\right).

    Steps

    Point: secπ3=1cos(π/3)=11/2=2\sec\frac{\pi}{3}=\dfrac{1}{\cos(\pi/3)}=\dfrac{1}{1/2}=2, so the curve passes through (π3,2)\left(\frac{\pi}{3},2\right).

    Slope: y=secxtanxy'=\sec x\tan x, so m=secπ3tanπ3=23=23m=\sec\frac{\pi}{3}\tan\frac{\pi}{3}=2\cdot\sqrt3=2\sqrt3.

    y2=23(xπ3)ory=23x+223π3y-2=2\sqrt3\left(x-\frac{\pi}{3}\right)\qquad\text{or}\qquad y=2\sqrt3\,x+2-\frac{2\sqrt3\,\pi}{3}

    Either form is a full-marks answer; do not round 232\sqrt3 or π3\frac{\pi}{3}.

  4. Q4medium

    Let y=sinx+cosxy=\sin x+\cos x on [0,2π)[0,2\pi).

    (a) Find every xx where the tangent line is horizontal, and give the corresponding points. (b) Find every xx where the tangent line has slope 11.

    Hint

    Both parts are equations in y=cosxsinxy'=\cos x-\sin x. In (b), squaring creates extra roots — check every candidate in the original equation.

    Show answer

    Answer

    (a) x=π4x=\frac{\pi}{4} and x=5π4x=\frac{5\pi}{4}, at (π4,2)\left(\frac{\pi}{4},\sqrt2\right) and (5π4,2)\left(\frac{5\pi}{4},-\sqrt2\right). (b) x=0x=0 and x=3π2x=\frac{3\pi}{2}.

    Steps

    y=cosxsinxy'=\cos x-\sin x.

    (a) y=0y'=0 means sinx=cosx\sin x=\cos x. Since cosx=0\cos x=0 would force sinx=0\sin x=0 too, divide: tanx=1\tan x=1, so x=π4,5π4x=\frac{\pi}{4},\frac{5\pi}{4}. There y=22+22=2y=\frac{\sqrt2}{2}+\frac{\sqrt2}{2}=\sqrt2 and y=2222=2y=-\frac{\sqrt2}{2}-\frac{\sqrt2}{2}=-\sqrt2.

    (b) cosxsinx=1\cos x-\sin x=1. Squaring: 12sinxcosx=11-2\sin x\cos x=1, so sinxcosx=0\sin x\cos x=0, candidates 0,π2,π,3π20,\frac{\pi}{2},\pi,\frac{3\pi}{2}. Check each in the original: x=0x=0 gives 10=11-0=1 ✓; x=π2x=\frac{\pi}{2} gives 01=10-1=-1 ✗; x=πx=\pi gives 10=1-1-0=-1 ✗; x=3π2x=\frac{3\pi}{2} gives 0(1)=10-(-1)=1 ✓.

  5. Q5medium

    Let y=sinxy=\sin x. (a) Show that y+y=0y''+y=0. (b) Find d2026dx2026sinx\dfrac{d^{2026}}{dx^{2026}}\sin x, with justification.

    Hint

    Differentiate four times and watch what comes back.

    Show answer

    Answer

    (a) y=sinxy''=-\sin x, so y+y=0y''+y=0. (b) sinx-\sin x.

    Steps

    (a) y=cosxy'=\cos x and y=sinxy''=-\sin x, so y+y=sinx+sinx=0y''+y=-\sin x+\sin x=0 for every xx.

    (b) y(1)=cosxy^{(1)}=\cos x, y(2)=sinxy^{(2)}=-\sin x, y(3)=cosxy^{(3)}=-\cos x, y(4)=sinxy^{(4)}=\sin x: the derivatives repeat with period 44, so only the remainder of nn on division by 44 matters. 2026=4(506)+22026=4(506)+2, remainder 22:

    d2026dx2026sinx=y(2)=sinx.\frac{d^{2026}}{dx^{2026}}\sin x=y^{(2)}=-\sin x.

    Check with the closed form: sin(x+2026π2)=sin(x+1013π)=sinx\sin\left(x+\frac{2026\pi}{2}\right)=\sin(x+1013\pi)=-\sin x, since 10131013 is odd.

  6. Q6hard

    Differentiate f(x)=xsinx1+cosxf(x)=\dfrac{x\sin x}{1+\cos x} and simplify to a single fraction with no products of trig functions. State where the result is valid.

    Hint

    Product rule on the numerator first, then the quotient rule; the expanded top has a common factor of 1+cosx1+\cos x.

    Show answer

    Answer

    f(x)=x+sinx1+cosxf'(x)=\dfrac{x+\sin x}{1+\cos x} for xπ+2kπx\neq\pi+2k\pi.

    Steps

    u=xsinxu=x\sin x, u=sinx+xcosxu'=\sin x+x\cos x; v=1+cosxv=1+\cos x, v=sinxv'=-\sin x.

    f(x)=(sinx+xcosx)(1+cosx)(xsinx)(sinx)(1+cosx)2f'(x)=\frac{(\sin x+x\cos x)(1+\cos x)-(x\sin x)(-\sin x)}{(1+\cos x)^2}

    Numerator: sinx+sinxcosx+xcosx+xcos2x+xsin2x=sinx(1+cosx)+x(1+cosx)=(1+cosx)(x+sinx)\sin x+\sin x\cos x+x\cos x+x\cos^2x+x\sin^2x=\sin x(1+\cos x)+x(1+\cos x)=(1+\cos x)(x+\sin x), using cos2x+sin2x=1\cos^2x+\sin^2x=1.

    Cancel one factor of 1+cosx1+\cos x:

    f(x)=x+sinx1+cosx,xπ+2kπ.f'(x)=\frac{x+\sin x}{1+\cos x},\qquad x\neq\pi+2k\pi.

    Check at x=π2x=\frac{\pi}{2}: the formula gives 1+π21+\frac{\pi}{2}; since f(x)=xtanx2f(x)=x\tan\frac{x}{2}, direct differentiation gives tanπ4+π4sec2π4=1+π2\tan\frac{\pi}{4}+\frac{\pi}{4}\sec^2\frac{\pi}{4}=1+\frac{\pi}{2}. ✓

06

On the exam

How this topic is marked
  • Check every sign before moving on: the minus belongs to cos\cos, cot\cot and csc\csc, and a quotient rule written with uvuvuv'-u'v on top loses the whole question.

  • A limit like limh0sin(a+h)sinah\lim_{h\to0}\frac{\sin(a+h)-\sin a}{h} is cosa\cos a in disguise — name ff and aa and answer in one line instead of expanding.

  • Simplify with sin2x+cos2x=1\sin^2x+\cos^2x=1 only after the rule is applied correctly, give exact values (32\frac{\sqrt3}{2}, not 0.8660.866), and keep the calculator in radians.

Keep going