Derivative of Trig Functions

Derivative of Trigonometric Functions
The derivative of the function f(x)=sinx is f′(x)=cosx
(i.e. dxd(sinx)=cosx)
The derivative of the function f(x)=cosx is f′(x)=−sinx
(i.e. dxd(cosx)=−sinx)
The derivative of the function f(x)=tanx is f′(x)=sec2x
(i.e. dxd(tanx)=sec2x)
Example
Find the derivatives of the following functions.
a) y=sinx−xcosx
Using product rule on the second term:
y′=(sinx)′−[(x)′(cosx)+(x)(cosx)′]
y′=cosx−[(1(cosx)+(x)(−sinx))]
y′=cosx−cosx−xsinx
y′=−xsinx
b) y=sinxcosx
Using product rule:
y′=(sinx)′(cosx)+(sinx)(cosx)′
y′=(cosx)(cosx)+(sinx)(−sinx)
y′=cos2x−sin2x
c) y=cos(x3)
Using chain rule:
y′=(cos...)′×(x3)′
y′=−sin(x3)×3x2
y′=−3x2sin(x3)
d) y=cos3x (i.e. y=(cosx)3)
Using chain rule:
y′=[(...)3]′×(cosx)′
y′=3(cosx)2×(−sinx)
y′=−3sinxcos2x
e) y=tan(sinx)
Using chain rule:
y′=[tan(...)]′×(sinx)′
y′=sec2(sinx)×cosx

Example: Equation of Tangent Line
Find the equation of the tangent line to the curve y=cosx2x at the point (0,1).
1. We have a point on the tangent -- (0,1)
2. The slope of the tangent line at that point is the derivative of the curve at that point:
y′=(2nd)2(derivative of 1st)(2nd)−(derivative of 2nd)(1st)
y′=cos2x(2x⋅ln2)(cosx)+(−sinx)(2x)
Now we sub in the value x=0:
y′(0)=cos20(20⋅ln2)(cos0)+(−sin0)(20)
y′(0)=1ln2−0
y′(0)=ln2
So, the slope of the tangent line at that point is ln2
3. Substitute all this into the line equation:
y−y1=m(x−x1)
y−1=ln2(x−0)
y−1=(ln2)(x)
If this was a multiple choice question, we would check the answer options at this point, we might have to rearrange to get the equation of the tangent line y=(ln2)x+1
Practice: Equation of Tangent Line
Find the equation of the tangent line to the graph y=sinx+3x2cosx at the point where x=2π.

Example: Higher Order Derivative
Find f′(π)+f′′(π) if f(x)=x cosx−sinx.
First Derivative
There's not much we can simplify with this expression, and since we have a product of functions, we need to use product rule.
f′(x)=(1)(cosx)+(−sinx)(x)−cosx
f′(x)=cosx−x sinx−cosx
f′(x)=−x sinx
Second Derivative
Since we have a produce of funcions, we need the product rule again.
f′′(x)=(−1)(sinx)+(cosx)(−x)
f′′(x)=−sinx−xcosx
Substituting the value for x:
f′(π)+f′′(π)
=−πsinπ+(−sinπ−πcosπ)
=0+(0−π(−1))
=π
Practice: Higher Order Derivative
If f(x)=sin(2x), find f(21)(2π).
(i.e. find the 21st derivative at the point 2π)
Practice: Derivative of Trig Functions
A differential equation is an equation that has some derivatives in it (i.e. it may contain y, y′, y′′, etc.)
If y=sinkx+coskx, determine the value(s) of the constant k such that y′′+y′+(k+k2)y=0 is true for all values of x.