Derivatives of Trigonometric Functions
Derivative rules for sine and cosine
The derivatives of sine and cosine form a tight pair: each one's derivative leads to the other (with a sign change for cosine). These two rules are the foundation for differentiating all six trig functions.
- dxdโsin(x)=cos(x)
- At x=0, the sine curve has slope cos(0)=1. At x=2ฯโ, the slope is cos(2ฯโ)=0, which matches the peak of the sine wave.
- dxdโcos(x)=โsin(x)
- The negative sign matters. At x=0, the cosine curve is at its maximum, so its slope is โsin(0)=0, exactly what you'd expect at a peak.
With the chain rule: When the argument is something other than plain x, you multiply by the derivative of the inner function.
- If the argument is a constant multiple ax:
- dxdโsin(ax)=acos(ax)
- dxdโcos(ax)=โasin(ax)
- If the argument is a general function u(x):
- dxdโsin(u)=cos(u)โ
dxduโ
- dxdโcos(u)=โsin(u)โ
dxduโ
For example, to differentiate sin(x2), treat u=x2 so dxduโ=2x. The result is 2xcos(x2).
Derivatives of the other four trig functions
Each of these can be derived from sine and cosine using the quotient rule, but you should memorize the results. Notice the pattern: the "co-" functions (cosine, cotangent, cosecant) all pick up a negative sign.
- dxdโtan(x)=sec2(x)
- dxdโcot(x)=โcsc2(x)
- dxdโsec(x)=sec(x)tan(x)
- dxdโcsc(x)=โcsc(x)cot(x)
With the chain rule: The same logic applies. Multiply by dxduโ.
- dxdโtan(u)=sec2(u)โ
dxduโ
- dxdโcot(u)=โcsc2(u)โ
dxduโ
- dxdโsec(u)=sec(u)tan(u)โ
dxduโ
- dxdโcsc(u)=โcsc(u)cot(u)โ
dxduโ
For example, dxdโsec(3x)=3sec(3x)tan(3x).
Higher-order derivatives of sine and cosine
Taking repeated derivatives of sine and cosine produces a four-step cycle. This is worth memorizing because it shows up in differential equations and Taylor series later on.
For sin(x):
- First derivative: cos(x)
- Second derivative: โsin(x)
- Third derivative: โcos(x)
- Fourth derivative: sin(x) (back to the start)
For cos(x):
- First derivative: โsin(x)
- Second derivative: โcos(x)
- Third derivative: sin(x)
- Fourth derivative: cos(x) (back to the start)
To find the nth derivative without computing every step, divide n by 4 and use the remainder. For sin(x): remainder 0 gives sin(x), remainder 1 gives cos(x), remainder 2 gives โsin(x), remainder 3 gives โcos(x).
The second derivative is also useful for concavity. Since dx2d2โsin(x)=โsin(x), the sine curve is concave down wherever sin(x)>0 and concave up wherever sin(x)<0, with inflection points at every integer multiple of ฯ.
Characteristics of Trigonometric Functions
These terms come up constantly when you're working with trig derivatives, so make sure they're solid:
- Period: The length of one full cycle. For sin(x) and cos(x), the period is 2ฯ. For sin(bx), the period is b2ฯโ.
- Amplitude: The maximum displacement from the midline. For Asin(x), the amplitude is โฃAโฃ.
- Frequency: The number of cycles per unit interval, which is the reciprocal of the period.
- Radian: The standard angle unit in calculus. All the derivative formulas above assume the input is in radians. If you use degrees, the formulas break.