2.4, 3.4 - Differentiating trigonometric functions

2.4, 3.4 - Differentiating trigonometric functions

A sine curve is steepest where it crosses its centre line and flat at its peaks. You will connect that picture to the derivatives of sine, cosine and tangent, then differentiate composite functions and locate stationary points within a stated interval. All calculus angles in this lesson are in radians.

Radian derivatives

Why is a sine wave flat at its highest points? Its gradient follows a cosine wave: where sine reaches 11, cosine is 00. Where sine crosses upwards through 00, cosine is 11.

Near the origin, a radian angle hh gives sin⁡h≈h\sin h\approx h. For example, sin⁡(0.001)/0.001≈0.9999998\sin(0.001)/0.001\approx0.9999998. This is why the limiting gradient of sin⁡x\sin x at 00 is 11. Measuring the same numerical input in degrees would stretch the horizontal scale and change the gradient.

Trigonometric derivatives in radians

ddxsin⁡x=cos⁡x,ddxcos⁡x=−sin⁡x,ddxtan⁡x=sec⁡2x.\frac{\mathrm d}{\mathrm dx}\sin x=\cos x, \qquad \frac{\mathrm d}{\mathrm dx}\cos x=-\sin x, \qquad \frac{\mathrm d}{\mathrm dx}\tan x=\sec^2x.

The angle xx is in radians. The tangent formula applies where cos⁡x≠0\cos x\ne0. These derivatives are in the formula booklet.

Sine and cosine are defined and differentiable for every real radian input. Tangent is undefined at x=π/2+kπx=\pi/2+k\pi, where kk is an integer; a derivative cannot supply a gradient at one of those missing points.

[DIAGRAM: asset_name: A wave and its gradient; asset_slug: sine-and-gradient; caption: Sine has zero gradient at its peaks and troughs, and its gradient is cosine; description: Aligned coordinate panels from zero to two pi show y equals sin x above and its gradient cos x below. Vertical dotted guides at pi over two and three pi over two connect the turning points of sine to zeros of cosine.]
Sine has zero gradient at its peaks and troughs, and its gradient is cosine

Worked example 1: differentiating a sine sum

Question. Differentiate y=3sin⁡x+2xy=3\sin x+2x and find its gradient at x=π/6x=\pi/6.

Plan. Differentiate term by term, then use the exact radian value of cosine.

dydx=3cos⁡x+2m=3cos⁡π6+2=332+2\begin{aligned} \frac{\mathrm dy}{\mathrm dx}&=3\cos x+2\\ m&=3\cos\frac\pi6+2=\frac{3\sqrt3}{2}+2 \end{aligned}

Answer. dy/dx=3cos⁡x+2\mathrm dy/\mathrm dx=3\cos x+2; the requested gradient is 2+33/22+3\sqrt3/2.

Check. At π/6\pi/6, sine is increasing. Its contribution to the gradient is positive, so the answer should exceed the straight-line contribution 22; it does.

Replace sine with cosine, keeping the multiplier, linear term and input. The negative sign now matters.

Worked example 2: differentiating a cosine sum

Question. Differentiate y=3cos⁡x+2xy=3\cos x+2x and find its gradient at x=π/6x=\pi/6.

Plan. Use the negative sine derivative of cosine, then substitute.

dydx=−3sin⁡x+2m=−3sin⁡π6+2=−32+2=12\begin{aligned} \frac{\mathrm dy}{\mathrm dx}&=-3\sin x+2\\ m&=-3\sin\frac\pi6+2=-\frac32+2=\frac12 \end{aligned}

Answer. dy/dx=−3sin⁡x+2\mathrm dy/\mathrm dx=-3\sin x+2; the requested gradient is 1/21/2.

Check. Near x=π/6x=\pi/6, a central difference with step 0.0010.001 gives approximately 0.50000030.5000003, agreeing with 1/21/2.

Tangent follows the same constant-multiple rule: for y=2tan⁡x−3xy=2\tan x-3x, the derivative is 2sec⁡2x−32\sec^2x-3. At x=π/4x=\pi/4, sec⁡2x=2\sec^2x=2, giving gradient 11.

Watch out

(cos⁡x)′=−sin⁡x(\cos x)'=-\sin x, not sin⁡x\sin x. Also use radian mode when evaluating a calculus expression numerically. For a degree input dd, sin⁡(d∘)=sin⁡(πd/180)\sin(d^\circ)=\sin(\pi d/180), so its derivative with respect to dd includes π/180\pi/180.

Use all three basic derivatives in this short check.

Composite trigonometric functions

Changing sin⁡x\sin x to sin⁡(3x)\sin(3x) compresses its wave horizontally. The function now moves through the same heights three times as quickly, so the derivative needs a factor of 33.

The chain rule with trigonometric functions

For a differentiable radian angle u=u(x)u=u(x),

(sin⁡u)′=u′cos⁡u,(cos⁡u)′=−u′sin⁡u,(tan⁡u)′=u′sec⁡2u.(\sin u)'=u'\cos u, \qquad (\cos u)'=-u'\sin u, \qquad (\tan u)'=u'\sec^2u.

The last result requires cos⁡u≠0\cos u\ne0. The basic derivatives are in the formula booklet; these forms follow by the chain rule.

The inside angle need not be linear: d[cos⁡(x2)]/dx=−2xsin⁡(x2)\mathrm d[\cos(x^2)]/\mathrm dx=-2x\sin(x^2). Keep x2x^2 inside the sine and multiply by its derivative 2x2x.

Worked example 3: a linear angle

Question. Differentiate y=sin⁡(3x+1)y=\sin(3x+1).

Plan. Differentiate sine, keep its angle, then multiply by the angle's derivative.

u=3x+1,u′=3dydx=cos⁡u×3=3cos⁡(3x+1)\begin{aligned} u&=3x+1,& u'&=3\\ \frac{\mathrm dy}{\mathrm dx}&=\cos u\times3=3\cos(3x+1) \end{aligned}

Answer. 3cos⁡(3x+1)3\cos(3x+1).

Check. At x=−1/3x=-1/3, the angle is zero. A small change hh in xx gives sin⁡(3h)≈3h\sin(3h)\approx3h, so the gradient is 33, agreeing with the derivative.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account