Skip to content

The derivatives of the trigonometric functions

The derivatives of the trigonometric functions

The limit of sin⁡xx\displaystyle \frac{\sin x}{x}

When x\displaystyle x is in radians and approaches 0, the quotient sin⁡xx\displaystyle \frac{\sin x}{x} approaches 1: for a small angle, its sine is almost equal to the angle itself.

x\displaystyle x0.5\displaystyle 0.50.1\displaystyle 0.10.01\displaystyle 0.01
sin⁡xx\displaystyle \frac{\sin x}{x}0.9589\displaystyle 0.95890.99833\displaystyle 0.998330.99998\displaystyle 0.99998

The reason, on the unit circle, when 0<x<π2\displaystyle 0<x<\frac{\pi}{2}:

  • The arc opposite the angle x\displaystyle x is x\displaystyle x long, and the perpendicular from the end of the arc to the x\displaystyle x-axis is sin⁡x\displaystyle \sin x long – shorter than the arc: sin⁡x<x\displaystyle \sin x<x.
  • The tangent to the circle at the point (1,0)\displaystyle (1,0), up to the ray of the angle, is tan⁡x\displaystyle \tan x long, and the triangle it closes has a greater area than the sector: tan⁡x2>x2\displaystyle \frac{\tan x}{2}>\frac{x}{2}, that is x<tan⁡x\displaystyle x<\tan x.
  • From sin⁡x<x<sin⁡xcos⁡x\displaystyle \sin x<x<\frac{\sin x}{\cos x} comes cos⁡x<sin⁡xx<1\displaystyle \cos x<\frac{\sin x}{x}<1. As x→0\displaystyle x\to0, cos⁡x→1\displaystyle \cos x\to1, so the quotient in the middle approaches 1 too.
  • sin⁡xx\displaystyle \frac{\sin x}{x} is even, so the same holds as x\displaystyle x approaches 0 from the negative side.
lim⁡x→0sin⁡xx\displaystyle \lim_{x\to0}\frac{\sin x}{x} =\displaystyle = 1\displaystyle 1
The derivative of sin⁡x\displaystyle \sin x

The proof below works out the derivative of sin⁡x\displaystyle \sin x by the definition, with an identity from the formula sheet:

sin⁡α−sin⁡β\displaystyle \sin\alpha-\sin\beta =\displaystyle = 2cos⁡α+β2⋅sin⁡α−β2\displaystyle 2\cos\frac{\alpha+\beta}{2}\cdot\sin\frac{\alpha-\beta}{2}
  • With α=x+h\displaystyle {\alpha}={x+h} and β=x\displaystyle {\beta}={x}: sin⁡(x+h)−sin⁡x=2cos⁡(x+h2)sin⁡h2\displaystyle {\sin(x+h)-\sin x}={2\cos\left(x+\frac{h}{2}\right)\sin\frac{h}{2}}.
  • Dividing by h\displaystyle h: sin⁡(x+h)−sin⁡xh=cos⁡(x+h2)⋅sin⁡h2h2\displaystyle {\frac{\sin(x+h)-\sin x}{h}}={\cos\left(x+\frac{h}{2}\right)\cdot\frac{\sin\frac{h}{2}}{\frac{h}{2}}}.
  • As h→0\displaystyle h\to0: cos⁡(x+h2)→cos⁡x\displaystyle \cos\left(x+\frac{h}{2}\right)\to\cos x, and sin⁡h2h2→1\displaystyle \frac{\sin\frac{h}{2}}{\frac{h}{2}}\to1 by the limit above.
(sin⁡x)′\displaystyle (\sin x)' =\displaystyle = cos⁡x\displaystyle \cos x

The formula fits the graphs: where sin⁡x\displaystyle \sin x rises fastest (at x=0\displaystyle {x}={0}) cos⁡x\displaystyle \cos x is greatest, and at the extremum points of sin⁡x\displaystyle \sin x (x=π2+πk\displaystyle {x}={\frac{\pi}{2}+\pi k}) cos⁡x=0\displaystyle {\cos x}={0}.

Why radians

The limit sin⁡xx→1\displaystyle \frac{\sin x}{x}\to1 holds only when the angle is in radians: it comes from the length of an arc of the unit circle being equal to the angle.

  • The sine of x\displaystyle x degrees is sin⁡πx180\displaystyle \sin\frac{\pi x}{180}. By the chain rule its derivative is π180cos⁡πx180\displaystyle \frac{\pi}{180}\cos\frac{\pi x}{180} – with an extra factor π180\displaystyle \frac{\pi}{180}.
  • So in calculus x\displaystyle x is always in radians, and (sin⁡x)′=cos⁡x\displaystyle {(\sin x)'}={\cos x} with no coefficient.
The derivatives of cos⁡x\displaystyle \cos x and of tan⁡x\displaystyle \tan x

The other two derivatives follow from the derivative of sin⁡x\displaystyle \sin x:

  • cos⁡x=sin⁡(π2−x)\displaystyle {\cos x}={\sin\left(\frac{\pi}{2}-x\right)}. By the chain rule: (cos⁡x)′=cos⁡(π2−x)⋅(−1)=−sin⁡x\displaystyle {(\cos x)'}={\cos\left(\frac{\pi}{2}-x\right)\cdot(-1)}={-\sin x}.
  • tan⁡x=sin⁡xcos⁡x\displaystyle {\tan x}={\frac{\sin x}{\cos x}}. By the quotient rule: (tan⁡x)′=cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x\displaystyle {(\tan x)'}={\frac{\cos x\cdot\cos x-\sin x\cdot(-\sin x)}{\cos^2x}}={\frac{\cos^2x+\sin^2x}{\cos^2x}}={\frac{1}{\cos^2x}}.
(cos⁡x)′\displaystyle (\cos x)' =\displaystyle = −sin⁡x\displaystyle -\sin x
(tan⁡x)′\displaystyle (\tan x)' =\displaystyle = 1cos⁡2x\displaystyle \frac{1}{\cos^2x}

(tan⁡x)′\displaystyle (\tan x)' is positive throughout the domain: tan⁡x\displaystyle \tan x rises on every interval between two asymptotes.

The chain rule

With the chain rule you differentiate a trigonometric function of an expression, and an expression of a trigonometric function:

  • (sin⁡3x)′=cos⁡3x⋅3=3cos⁡3x\displaystyle {(\sin3x)'}={\cos3x\cdot3}={3\cos3x}.
  • (cos⁡2x)′=2cos⁡x⋅(−sin⁡x)=−2sin⁡xcos⁡x=−sin⁡2x\displaystyle {(\cos^2x)'}={2\cos x\cdot(-\sin x)}={-2\sin x\cos x}={-\sin2x}.
  • (sin⁡x)′=cos⁡x2sin⁡x\displaystyle {\left(\sqrt{\sin x}\right)'}={\frac{\cos x}{2\sqrt{\sin x}}}, where sin⁡x>0\displaystyle \sin x>0.
  • (sin⁡(x2))′=cos⁡(x2)⋅2x\displaystyle {\left(\sin(x^2)\right)'}={\cos(x^2)\cdot2x} – careful: sin⁡(x2)\displaystyle \sin(x^2) is not sin⁡2x=(sin⁡x)2\displaystyle {\sin^2x}={(\sin x)^2}.
Example: tangents to the graph of sin⁡x\displaystyle \sin x

The example below finds the tangents to the graph of f(x)=sin⁡x\displaystyle {f(x)}={\sin x} at the points where x=0\displaystyle {x}={0} and x=π\displaystyle {x}={\pi}:

  • At x=0\displaystyle {x}={0}: f(0)=0\displaystyle {f(0)}={0} and f′(0)=cos⁡0=1\displaystyle {f'(0)}={\cos0}={1}, and the tangent is y=x\displaystyle {y}={x}.
  • At x=π\displaystyle {x}={\pi}: f(π)=0\displaystyle {f(\pi)}={0} and f′(π)=cos⁡π=−1\displaystyle {f'(\pi)}={\cos\pi}={-1}, and the tangent is y−0=−1(x−π)\displaystyle {y-0}={-1(x-\pi)}, that is y=π−x\displaystyle {y}={\pi-x}.
f(x)=sin⁡x\displaystyle f(x)=\sin x
y=x\displaystyle y=x
y=π−x\displaystyle y=\pi-x

Near x=0\displaystyle {x}={0} the graph of sin⁡x\displaystyle \sin x almost coincides with the tangent y=x\displaystyle {y}={x} – the limit sin⁡xx→1\displaystyle \frac{\sin x}{x}\to1 again.

Exercise 1

Differentiate.

a

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      c

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        d

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          e

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            Exercise 2

            The function is f(x)=sin⁡x+cos⁡x\displaystyle {f(x)}={\sin x+\cos x}.

            a

            Work out f′(π4)\displaystyle f'\left(\frac{\pi}{4}\right).
            What can you conclude about the tangent to the graph at this point?

            f(x)=sin⁡x+cos⁡x\displaystyle f(x)=\sin x+\cos x

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              b

              Write on the board the equation of the tangent to the graph of f\displaystyle f at the point where x=0\displaystyle {x}={0}.

              f(x)=sin⁡x+cos⁡x\displaystyle f(x)=\sin x+\cos x

              Exercise 3

              The function is f(x)=tan⁡x\displaystyle {f(x)}={\tan x}, with the point (π4,1)\displaystyle \left(\frac{\pi}{4},1\right) on its graph.

              a

              Work out the slope of the tangent at the point.

              f(x)=tan⁡x\displaystyle f(x)=\tan x

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                b

                Write the equation of the tangent on the board.

                f(x)=tan⁡x\displaystyle f(x)=\tan x
                P=(π4,1)\displaystyle P=(\frac{\pi}{4},1)

                Exercise 4

                The function f(x)=x+2cos⁡x\displaystyle {f(x)}={x+2\cos x} is defined on the interval 0≤x≤2π\displaystyle 0\leq x\leq2\pi.
                You are looking for the points where the tangent to the graph is parallel to the x\displaystyle x-axis.

                a

                Find f′(x)\displaystyle f'(x).

                f(x)=x+2cos⁡x\displaystyle f(x)=x+2\cos x

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                  b

                  Solve the equation f′(x)=0\displaystyle {f'(x)}={0} in the interval.

                    c

                    Mark the points on the graph.

                    f(x)=x+2cos⁡x\displaystyle f(x)=x+2\cos x

                    Exercise 5

                    The function is f(x)=sin⁡2x\displaystyle {f(x)}={\sin2x}.

                    a

                    Find the second derivative f′′(x)\displaystyle f''(x).

                    f(x)=sin⁡2x\displaystyle f(x)=\sin2x

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                      b

                      Show that f′′(x)=−4f(x)\displaystyle {f''(x)}={-4f(x)} for every x\displaystyle x.
                      What can you conclude about the concavity of f\displaystyle f where it is positive?