9A - Differentiating sine, cosine and exponentials

9A - Differentiating sine, cosine and exponentials

The sine curve rises through the origin, flattens at its peak and then falls. Which function records those changing gradients? You will differentiate sine, cosine and the exponential function with constant multiples of the input, then combine these rules with powers and evaluate exact gradients.

Trigonometric derivatives

At x=0x=0, the graph of y=sin⁡xy=\sin x is rising; at x=π/2x=\pi/2 it is horizontal; at x=πx=\pi it is falling. With xx measured in radians, these gradients are 1,0,−11,0,-1, exactly the corresponding values of cos⁡x\cos x.

[DIAGRAM: asset_name: Sine and its gradient function; asset_slug: sine-and-derivative; caption: The cosine graph records the gradient of the sine graph when angles are in radians; description: Aligned sine and cosine graphs from minus pi over two to two pi. Vertical guides at zero, pi over two and pi link sine points to derivative values one, zero and minus one. Short tangents on the sine graph show positive, horizontal and negative directions at these positions.]
The cosine graph records the gradient of the sine graph when angles are in radians

Sine and cosine derivatives

For a constant aa, with angles in radians,

ddxsin⁡(ax)=acos⁡(ax),ddxcos⁡(ax)=−asin⁡(ax).\frac{d}{dx}\sin(ax)=a\cos(ax), \qquad \frac{d}{dx}\cos(ax)=-a\sin(ax).

The factor aa stays outside; the whole angle axax stays inside the trig function. These standard derivatives must be learnt; they are not on the provided formulae sheet.

The unit matters. Near zero, sin⁡h/h\sin h/h approaches 11 when hh is in radians, but about 0.017450.01745 when hh is a number of degrees. Thus the displayed rules cannot be applied unchanged to degree inputs. Use radian mode for numerical checks in this lesson.

The factor aa reflects how quickly the angle changes: sin⁡(3x)\sin(3x) completes its oscillation three times as quickly as sin⁡x\sin x. It therefore has a compressed graph and steeper corresponding gradients. The cosine derivative also has a minus sign; it falls immediately to the right of its maximum at zero.

Worked example 1: a sine with a multiple angle

Question. Find the first two derivatives of y=sin⁡(3x)y=\sin(3x).

Plan. Use the sine derivative with a=3a=3, then the cosine derivative on the result.

dydx=3cos⁡(3x),d2ydx2=3[−3sin⁡(3x)]=−9sin⁡(3x).\frac{dy}{dx}=3\cos(3x), \qquad \frac{d^2y}{dx^2}=3[-3\sin(3x)]=-9\sin(3x).

Answer. dy/dx=3cos⁡(3x)dy/dx=3\cos(3x), d2y/dx2=−9sin⁡(3x)d^2y/dx^2=-9\sin(3x).

Check. At zero the first derivative is 33. The secant from 00 to 0.0010.001 has gradient sin⁡(0.003)/0.001≈2.999996\sin(0.003)/0.001\approx2.999996. At x=π/6x=\pi/6, the sine is at its maximum and the derivative is 3cos⁡(π/2)=03\cos(\pi/2)=0.

Change sine to cosine while keeping the same angle. This isolates the negative sign and the switch of function.

Worked example 2: a cosine with the same angle

Question. Find the first two derivatives of y=cos⁡(3x)y=\cos(3x).

Plan. Apply the cosine derivative, then differentiate its sine term.

dydx=−3sin⁡(3x),d2ydx2=−3[3cos⁡(3x)]=−9cos⁡(3x).\frac{dy}{dx}=-3\sin(3x), \qquad \frac{d^2y}{dx^2}=-3[3\cos(3x)]=-9\cos(3x).

Answer. dy/dx=−3sin⁡(3x)dy/dx=-3\sin(3x), d2y/dx2=−9cos⁡(3x)d^2y/dx^2=-9\cos(3x).

Check. At x=π/6x=\pi/6, cosine crosses down through zero and the derivative is −3-3. A central secant using inputs π/6±0.001\pi/6\pm0.001 gives approximately −2.999996-2.999996. The sign agrees with the graph's downward crossing.

A constant outside a trig function is a multiplier: for example, d[5sin⁡(2x)]/dx=10cos⁡(2x)d[5\sin(2x)]/dx=10\cos(2x). Do not multiply the angle by that outside constant.

Exponential derivatives

The exponential function exe^x, with e≈2.71828e\approx2.71828, has a special property: at every input its gradient equals its height. Thus its derivative is again exe^x. This property singles out the base ee; it does not mean that every exponential function differentiates to itself.

Exponential derivative

For a constant aa,

ddxeax=aeax.\frac{d}{dx}e^{ax}=ae^{ax}.

The exponent remains axax, and differentiation introduces a multiplier aa. The function and derivative are defined for every real xx. This standard derivative must also be learnt.

Continue this lesson.

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

Create free account