Open In App

Derivatives of Trigonometric Functions

Improve
Improve
Like Article
Like
Save
Share
Report

Derivative of a function f(x), is the rate at which the value of the function changes when the input is changed. In this context, x is called the independent variable, and f(x) is called the dependent variable. Derivatives have applications in almost every aspect of our lives. From the rocket launches to our water tank design, derivatives are used by professionals to measure the rate of change and sometimes analyze physical phenomena from a mathematical perspective. Calculating the derivatives of polynomials are pretty simple, trigonometric functions and their derivatives require some extra attention. Let’s see how to calculate them in detail. 

Derivatives

The formal and most basic definition of the derivatives involves limits. Geometrically, for a function f(x), derivative at point x represents the slope of a line that is tangent to the curve at that particular point. Using this intuition, the formal definition of the derivatives using the limits was developed. The figure below shows the geometric intuition of the derivatives. 

In this figure, notice that the line joining the points (x, f(x)) and (x, f(x + h)) is secant to the figure. But the assumption is that h approaches to zero. So, in this way as the point (x + h) moves closer and closer to the point x, the secant slowly starts becoming a tangent. That’s why it is said that the derivatives are nothing but the slope of the tangents on the curve. Using this logic, first definition of the derivatives is given. 

For a function f(x), at a point x = a. The derivative is defined as, 

\lim_{x \to a}\frac{f(x) - f(a) }{x - a}

It can also be written as, 

\lim_{h \to 0}\frac{f(x + h) - f(x) }{h}

This is the definition of the derivatives. We also denote the derivatives by \frac{df}{dx}or f'(x). 

Power rule of Derivatives

This is the most commonly used rule in derivatives. It says, 

\frac{dx^n}{dx} = nx^{n - 1}

This can be derived through the limit definition of the derivatives. 

\frac{d(x^n)}{dx} = \lim_{h \to 0}\frac{(x + h)^n - x^n}{h}

(x + h)n can be opened through binomial expansion, 

(x + h)^n  = x^n + \frac{n!}{(n-1)!}x^{n-1}h + \frac{n!}{(n-2)!2!}h^2 + ....

⇒\frac{d(x^n)}{dx} = \lim_{h \to 0}\frac{(x^n + \frac{n!}{(n-1)!}x^{n-1}h + \frac{n!}{(n-2)!2!}h^2 + .... - x^n)}{h}

⇒\frac{d(x^n)}{dx} = \lim_{h \to 0}\frac{\frac{n!}{(n-1)!}x^{n-1}h + \frac{n!}{(n-2)!2!}h^2 + ....)}{h}

⇒\frac{d(x^n)}{dx} =\frac{n!}{(n-1)!}x^{n-1} +  \lim_{h \to 0}\frac{( \frac{n!}{(n-2)!2!}h^2 + ....)}{h}

⇒\frac{d(x^n)}{dx} =nx^{n-1}

Question 1: Find the derivative of f(x) = √x. 

Solution: 

\frac{d(\sqrt{x})}{dx} = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}

⇒\frac{d(\sqrt{x})}{dx} = \lim_{h \to 0}\frac{\sqrt{x + h} - \sqrt{x}}{h}

This is indeterminate form, using rationalization 

⇒\frac{d(\sqrt{x})}{dx} = \lim_{h \to 0}\frac{(\sqrt{x + h} - \sqrt{x})(\sqrt{x + h} + \sqrt{x})}{h(\sqrt{x + h} + \sqrt{x})}

⇒\frac{d(\sqrt{x})}{dx} = \lim_{h \to 0} \frac{(x + h) -x}{h(\sqrt{x + h} + \sqrt{x})}

⇒\frac{d(\sqrt{x})}{dx} = \lim_{h \to 0} \frac{h}{h(\sqrt{x + h} + \sqrt{x})}

⇒\frac{d(\sqrt{x})}{dx} = \lim_{h \to 0} \frac{1}{(\sqrt{x + h} + \sqrt{x})}

⇒\frac{d(\sqrt{x})}{dx} = \frac{1}{2\sqrt{x}}

Derivatives of Trigonometric Functions

Derivatives of the trigonometric are first calculated through the limit definition. Before calculating these derivatives and looking at their proofs, it is necessary to revisit some identities of limit related to trigonometric functions. 

\lim_{x \to 0}\frac{sin(x)}{x}

 and 

\lim_{x \to 0}\frac{cos(x) - 1}{x}

Let’s calculate the derivatives for three most important trigonometric function. 

  1. \frac{d(sin(x))}{dx} = cos(x)
  2. \frac{d(cos(x))}{dx} = -sin(x)
  3. \frac{d(tan(x))}{dx} = sec^2(x)

Proving the derivative for sine function 

\frac{d(sin(x))}{dx} = cos(x)

Using the previously mentioned definition of the derivatives 

\frac{df(x)}{dx} = \lim_{h \to 0}\frac{f(x + h) - f(x) }{h} \\ = \frac{dsin(x)}{dx} = \lim_{h \to 0}\frac{sin(x + h) - sin(x) }{h}

⇒\frac{dsin(x)}{dx} = \lim_{h \to 0}\frac{sin(x)cos(h) + sin(h)cos(x) - sin(x) }{h}

⇒\frac{dsin(x)}{dx} = \lim_{h \to 0}\frac{sin(x)(cos(h)-1) + sin(h)cos(x)}{h} \\ = \frac{dsin(x)}{dx} = \lim_{h \to 0}\frac{sin(x)(cos(h)-1)}{h}+ \lim_{h \to 0}\frac{sin(h)cos(x)}{h} \\ = \frac{dsin(x)}{dx} = sin(x)\lim_{h \to 0}\frac{(cos(h)-1)}{h}+ cos(x)\lim_{h \to 0}\frac{sin(h)}{h} \\

Using the limit identities described above, 

⇒\frac{d(sin(x))}{dx} = cos(x)

Proving the derivative for cosine function 

\frac{d(cos(x))}{dx} = -sin(x)

Using the previously mentioned definition of the derivatives 

\frac{df(x)}{dx} = \lim_{h \to 0}\frac{f(x + h) - f(x) }{h}

⇒\frac{df(x)}{dx} = \lim_{h \to 0}\frac{cos(x + h) - cos(x) }{h}

⇒\frac{df(x)}{dx} = \lim_{h \to 0}\frac{cos(x)cos(h) - sin(x)sin(h) -  cos(x) }{h}

⇒\frac{df(x)}{dx} = \lim_{h \to 0}\frac{cos(x)(cos(h) -1)  -sin(x)sin(h)}{h}

⇒\frac{df(x)}{dx} = cos(x)\lim_{h \to 0}\frac{(cos(h) -1)}{h} -sin(x)\lim_{h \to 0}\frac{sin(h)}{h}

Using the limit identities described above, 

⇒\frac{d(sin(x))}{dx} = -sin(x)

Proving the derivative for tangent function 

\frac{d(tan(x))}{dx} = sec^2(x)

Now that we have the derivatives for the sine and cosine functions. Derivatives of other functions can be calculated simply through Quotient and product rules. 

Quotient rule says, for a function f(x) = \frac{h(x)}{g(x)}, the derivative of this function is given by, 

f'(x) = \frac{h(x)g'(x) - g(x)h'(x)}{(g(x))^2}

In this case tan(x) = \frac{sin(x)}{cos(x)}

Thus, h(x) = sin(x) and g(x) = cos(x). 

f'(x) = \frac{cos(x)\frac{dsin(x)}{dx} - sin(x)\frac{dcos(x)}{dx} }{(cos(x))^2}

⇒f'(x) = \frac{cos(x)cos(x) + sin(x)sin(x) }{(cos(x))^2}

⇒f'(x) = \frac{1 }{(cos(x))^2}

⇒\frac{d(tan(x))}{dx} = sec^2(x)

Proving the derivative for secant function 

\frac{d(sec(x))}{dx} = sec(x)tan(x)

This can be proved easily through chain rule, 

\frac{d(sec(x))}{dx} = \frac{d(\frac{1}{cos(x)})}{dx}

⇒\frac{d(sec(x))}{dx} = \frac{-1}{cos^2(x)}\frac{d(cos(x))}{dx}

⇒\frac{d(sec(x))}{dx} = \frac{1}{cos^2(x)}sin(x)

⇒\frac{d(sec(x))}{dx} = sec(x)tan(x)

Proving the derivative for co-secant function 

\frac{d(cosec(x))}{dx} = -cosec(x)cot(x)

This can be proved easily through chain rule, 

\frac{d(cosec(x))}{dx} = \frac{d(\frac{1}{sin(x)})}{dx}

⇒\frac{d(cosec(x))}{dx} = \frac{-1}{sin^2(x)}\frac{d(sin(x))}{dx}

⇒\frac{d(cosec(x))}{dx} = \frac{-1}{sin^2(x)}cos(x)

⇒\frac{d(cosec(x))}{dx} = -cosec(x)cot(x)

Proof of Product Rule

There are different ways to prove the product rule which includes definition of the derivative and logarithmic differentiation, lets look at the latter way,

y= (f(x)g(x))’ = f'(x)g(x)+ f(x)g'(x)

This can easily be proved by taking the natural log,

ln y’= ln{(f(x)g(x))’} = lnf'(x) + lng'(x)

y’/y= f'(x)/f(x)+ g'(x)/g(x)

y'=y[\frac{f'(x)g(x)+ g'(x)f(x)}{f(x)g(x)}]\\ y'=f(x)g(x)[\frac{f'(x)g(x)+ g'(x)f(x)}{f(x)g(x)}]\\ y'= f'(x)g(x)+ g'(x)f(x)

Hence, proved.

Let’s look at some sample problems 

Sample Problems

Question 1: Find the derivative for the function f(x) at x = 0. 

f(x) = sin2(x)

Solution: 

This derivative is the combination of power rule and chain rule. 

f'(x) = \frac{dsin^2x}{dx}

⇒f'(x) = 2sin(x)\frac{dsinx}{dx}

Using the previous results for the derivative of sin(x). 

⇒f'(x) = 2sin(x)cos(x)

At x = 0 

f'(x) = 0

Question 2: Find the derivative for the function f(x) at x = 0. 

f(x) = 5sec(x) + 2cos(x)

Solution: 

This derivative is simple

f'(x) = \frac{d(5sec(x) + 2cos(x))}{dx}

⇒f'(x) = \frac{d(5sec(x))}{dx} + \frac{d(2cos(x))}{dx}

Using the previous results for the derivative of sin(x). 

⇒f'(x) = 5sec(x)tan(x) – 2sin(x). 

at x = 0 

f'(x) = 0

Question 3: Find the derivative for the function f(x) at x = 1. 

f(x) = x2 + x4

Solution: 

This derivative is simple application of power rule 

f'(x) = \frac{d(x^2  + x^4)}{dx}

⇒f'(x) = \frac{d(x^2)}{dx} + \frac{d(x^4)}{dx}

Using the previous results for the derivative of sin(x). 

⇒f'(x) = 2x + 4x3

At x = 1 

f'(x) = 6

Question 4: Find the derivative for the function f(x). 

f(x) = \frac{e^x + 1}{x}

Solution: 

This derivative is simple application of quotient rule.

Quotient rule says, for a function f(x) = \frac{h(x)}{g(x)}, the derivative of this function is given by, 

f'(x) = \frac{h(x)g'(x) - g(x)h'(x)}{(g(x))^2}

Here h(x) = ex + 1 and g(x) = x

f'(x) = \frac{x\frac{d(e^x + 1)}{dx} - (e^x + 1)\frac{dx}{dx}}{x^2}

⇒f'(x) = \frac{xe^x - (e^x + 1)}{x^2}

Question 5: Use the Product rule to differentiate the given function,

y = 5xsinx + 4x2cosx

Solution:

Differentiating using Product Rule,

y’= 5sinx + 5xcosx + 8xcosx – 4x2sinx

y’= 5sinx + 13xcosx – 4x2sinx



Last Updated : 16 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads