Derivative of Polynomials and Trigonometric Functions
The power of differentiation becomes truly useful when we apply it to the two most common families of functions: polynomials and trigonometric functions. Once you understand the derivative of xn and the basic trig functions, you can differentiate almost any combination of them using the rules you have already learned.
Theorem 7 — Derivative of a General Polynomial
A polynomial function is any function of the form
f(x)=anxn+an−1xn−1+⋯+a1x+a0
where each ai is a real number and an=0. The derivative of this polynomial is obtained by differentiating term by term:
dxdf=nanxn−1+(n−1)an−1xn−2+⋯+2a2x+a1
Notice what happens to the constant term a0 — its derivative is zero, so it disappears entirely. The coefficient a1 (the one multiplying x) becomes just a1 after differentiation, since the derivative of x is 1.
›Proof
This theorem follows directly from two results you already know. Part (i) of Theorem 5 tells us that the derivative of a sum is the sum of the derivatives. Theorem 6 gives us dxd(xn)=nxn−1. Putting them together:
dxd(anxn+an−1xn−1+⋯+a1x+a0)
=andxd(xn)+an−1dxd(xn−1)+⋯+a1dxd(x)+dxd(a0)
=an(nxn−1)+an−1((n−1)xn−2)+⋯+a1(1)+0
=nanxn−1+(n−1)an−1xn−2+⋯+a1
Derivative of sin x
Example 16: Compute the derivative of sinx from first principles.
Let f(x)=sinx. By the definition of the derivative:
f′(x)=limh→0hsin(x+h)−sinx
Use the identity sinA−sinB=2cos(2A+B)sin(2A−B) with A=x+h and B=x:
sin(x+h)−sinx=2cos(22x+h)sin(2h)=2cos(x+2h)sin(2h)
Substitute this back:
f′(x)=limh→0h2cos(x+2h)sin(2h)
Rewrite as a product of two limits:
f′(x)=limh→0cos(x+2h)⋅limh→02hsin(2h)
As h→0, cos(x+2h)→cosx. And using the standard limit limθ→0θsinθ=1 with θ=2h, the second limit equals 1. Therefore
dxd(sinx)=cosx
The derivative of sinx is cosx. This is a fundamental result that you must memorize — it appears constantly in calculus.
Derivative of tan x
Example 17: Compute the derivative of tanx.
Let f(x)=tanx=cosxsinx. Using the definition:
f′(x)=limh→0htan(x+h)−tanx
Write each tan as cossin:
f′(x)=limh→0h1[cos(x+h)sin(x+h)−cosxsinx]
Combine the fractions:
f′(x)=limh→0hcos(x+h)cosxsin(x+h)cosx−sinxcos(x+h)
The numerator is sin(x+h)cosx−sinxcos(x+h)=sin[(x+h)−x]=sinh, using the identity sin(A−B)=sinAcosB−cosAsinB.
f′(x)=limh→0hcos(x+h)cosxsinh
Separate into two limits:
f′(x)=limh→0hsinh⋅limh→0cos(x+h)cosx1
The first limit is 1. As h→0, cos(x+h)→cosx, so the second limit becomes cos2x1=sec2x. Therefore
dxd(tanx)=sec2x
Derivative of sin² x Using the Product Rule
Example 18: Compute the derivative of f(x)=sin2x.
Write sin2x as (sinx)(sinx) and apply the product rule:
f′(x)=(sinx)′(sinx)+(sinx)(sinx)′
=(cosx)(sinx)+(sinx)(cosx)
=2sinxcosx
Using the double-angle identity sin2x=2sinxcosx, we can also write
f′(x)=sin2x
This example shows how the product rule can be used even when the function is a power of a simpler function. The same approach works for cos2x, tan2x, and so on.
Derivatives of Other Trigonometric Functions
Example 21(i): Derivative of sin2x.
Use the identity sin2x=2sinxcosx, then apply the product rule:
dxd(sin2x)=2dxd(sinxcosx)
=2[(sinx)′cosx+sinx(cosx)′]
=2[cosx⋅cosx+sinx⋅(−sinx)]
=2(cos2x−sin2x)
Using cos2x−sin2x=cos2x, we get dxd(sin2x)=2cos2x.
Example 21(ii): Derivative of cotx — two methods.
Method 1 (quotient rule): Write cotx=sinxcosx.
dxd(cotx)=sin2x(cosx)′sinx−cosx(sinx)′
=sin2x(−sinx)(sinx)−(cosx)(cosx)
=sin2x−sin2x−cos2x=−sin2x1=−csc2x
Method 2 (using cotx=tanx1):
dxd(cotx)=dxd(tanx1)=tan2x(1)′tanx−1⋅(tanx)′
=tan2x0−sec2x=−tan2xsec2x=−cos2x1⋅sin2xcos2x=−sin2x1=−csc2x
Both methods give the same result: dxd(cotx)=−csc2x.
Derivatives from First Principles — More Examples
Example 19(i): Derivative of f(x)=x−22x+3 from first principles.
The function is not defined at x=2. Using the definition:
f′(x)=limh→0h(x+h)−22(x+h)+3−x−22x+3
Combine the fractions in the numerator:
=limh→0h1⋅(x+h−2)(x−2)(2x+2h+3)(x−2)−(2x+3)(x+h−2)
Expand the numerator carefully. The (2x+3)(x−2) terms cancel, leaving −7h. So
f′(x)=limh→0h(x+h−2)(x−2)−7h=limh→0(x+h−2)(x−2)−7=−(x−2)27
Note that f′(x) is also not defined at x=2.
Example 19(ii): Derivative of f(x)=x+x1 from first principles.
The function is not defined at x=0.
f′(x)=limh→0h(x+h)+x+h1−(x+x1)
=limh→0hh+x+h1−x1=limh→0[1+h1(x+h1−x1)]
=limh→0[1+h1⋅x(x+h)x−(x+h)]=limh→0[1−x(x+h)1]
=1−x21
Again, f′(x) is not defined at x=0.
Example 20(i): Derivative of f(x)=sinx+cosx from first principles.
f′(x)=limh→0hsin(x+h)+cos(x+h)−sinx−cosx
Group the sine terms and cosine terms:
=limh→0hsin(x+h)−sinx+limh→0hcos(x+h)−cosx
The first limit is cosx (as shown in Example 16). For the second, use cos(A+B)=cosAcosB−sinAsinB:
cos(x+h)−cosx=cosxcosh−sinxsinh−cosx
=cosx(cosh−1)−sinxsinh
So
limh→0hcos(x+h)−cosx=cosx⋅limh→0hcosh−1−sinx⋅limh→0hsinh
Using limh→0hcosh−1=0 and limh→0hsinh=1, this becomes −sinx. Therefore
f′(x)=cosx−sinx
Example 20(ii): Derivative of f(x)=xsinx from first principles.
f′(x)=limh→0h(x+h)sin(x+h)−xsinx
Expand the numerator:
=limh→0hxsin(x+h)+hsin(x+h)−xsinx …