Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Derivatives

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

We encounter a lot of situations in real life where we encounter some variable for which we want to know its rate of change. For example, we see a car running on the road, we are interested in its position and the rate at which its position is changing. The rate of change of position is also called velocity. In another scenario of water flowing through the water tank, we might be interested in measuring the rate at which water is flowing out of the tank. Our goal is to measure the rate at which all these variables are changing. Derivatives help in measuring the rate of the change of quantities. Let’s see how to formulate them and use them, 

Definition of Derivatives

Let’s say we have a function f(x), which we want to observe. The derivative of this function will tell us the rate at which this function is changing with respect to its input. The derivative of a function f(x) is denoted by f'(x) or \frac{d(f(x))}{dx}. Derivatives are defined using the concept of limits. 

Let’s say f is a real-valued function and ‘a’ is a point in its domain of definition. The derivative of f at a is defined as, 

f'(a) =\lim_{h \to 0} \frac{f(a + h) -f(a)}{h}

Given that it’s limits exist. 

This is also referred as [\frac{df}{dx}]_{x = a}

The diagram given above, represents the geometric interpretation of the derivative. Lets we have two points P(a, f(a)) and Q(a + h, f(a + h)) which are close to each other on the graph. We know that according to the definition, 

f'(a) =\lim_{h \to 0} \frac{f(a + h) -f(a)}{h}

From the triangle PQR, it is clear that the ratio whose limit we are taking is precisely equal to tan(QPR) which is the slope of the chord PQ. In the limiting process, as h tends to 0, the point Q tends to P, and we have, 

\lim_{h \to 0} \frac{f(a + h) -f(a)}{h} = lim_{Q \to P}\frac{QP}{QR}

We can see that the chord PQ tends to be a tangent to the curve f(x). The limit is equal to the slope of the tangent to the curve at the particular point. 

Example: Find the derivative of f(x) = 3x at x = 2. 

Solution: 

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

f'(2) = \lim_{h \to 0}\frac{3(x + h) - 3x}{h}

⇒ f'(2) = \lim_{h \to 0}\frac{3h}{h}

⇒ f'(2) = 3

Algebra of Derivatives

Since derivatives involve limits, it is expected that they should follow the properties of the limits. Let’s say we have two functions “f” and “g”.  Let’s see the properties of their derivatives. 

  • Derivative of the sum of two functions is equal to sum of derivatives of the two functions. 

\frac{d}{dx}[f(x) + g(x)] = \frac{d}{dx}f(x) + \frac{d}{dx}g(x)

  • Derivatives of difference between two functions is difference of the derivatives of the two functions. 

\frac{d}{dx}[f(x) - g(x)] = \frac{d}{dx}f(x) - \frac{d}{dx}g(x)

  • Derivatives of product of two functions is given by the product rules of the derivatives. 

\frac{d}{dx}[f(x).g(x)] = g(x)\frac{d}{dx}f(x) + f(x)\frac{d}{dx}g(x)

  • Derivatives of the division of the two functions is given the quotient rule of the derivatives. 

\frac{d}{dx}[\frac{f(x)}{g(x)}] = \frac{g(x)\frac{d}{dx}f(x) - f(x)\frac{d}{dx}g(x)}{g(x)^2}

Finding the equation of Tangents using derivatives

Let’s say we have a function y = f(x). We need to find the equation of tangent to this curve at x = a. We already know that the derivative at a particular point gives us the slope of the tangent. So, then we have the points (a, f(a)) and the slope of the tangent. We can form the equation of the line as given below, 

Let’s say the derivative of the function at x = a, \frac{dy}{dx} = f'(x). We know that the equation of line is 

y = mx + b, 

where m = \frac{dy}{dx} = f'(x)

y = \frac{dy}{dx}x + b

Now substituting the point (a,f(a)) in place of (x,y) in the above equation. 

f(a) = \frac{dy}{dx}a+ b

⇒ b = f(a) – \frac{dy}{dx}a

Thus, the equation of the line becomes, 

y = \frac{dy}{dx}x + f(a) – \frac{dy}{dx} a

Let’s see some sample problems on these concepts. 

Sample Problems

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

Solution:

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

f'(x) = \lim_{h \to 0}\frac{(x + h)^2 - x^2}{h}

⇒ f'(x) = \lim_{h \to 0}\frac{(x^2 + h^2 + 2hx - x^2)}{h}

⇒ f'(x) = \lim_{h \to 0}h + 2x

⇒ f'(x) = 2x

f'(0) = 0

Question 2: Find the derivative of the function f(x) = x2 at x = 2. 

Solution:

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

f'(x) = \lim_{h \to 0}\frac{(x + h)^2 - x^2}{h}

⇒ f'(x) = \lim_{h \to 0}\frac{(x^2 + h^2 + 2hx - x^2)}{h}

⇒ f'(x) = \lim_{h \to 0}h + 2x

⇒ f'(x) = 2x

f'(2) = 4

Question 3: Find the derivative of the function f(x) = x2 + x +1 at x = 0. 

Solution:

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

f'(x) = \lim_{h \to 0}\frac{((x + h)^2 + (x +h) + 1) - (x^2 + x + 1)}{h}

⇒ f'(x) = \lim_{h \to 0}\frac{((x^2 + h^2 + 2hx + (x +h) + 1) - (x^2 + x + 1)}{h}

⇒ f'(x) = \lim_{h \to 0}\frac{(h^2 + 2hx +h)}{h}

⇒ f'(x) = \lim_{h \to 0}(h + 2x +1)

⇒f'(x) = 2x + 1

f'(0) = 1 

Question 4: Find the derivative of the function f(x) = ex at x = 0. 

Solution: 

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

f'(x) = \lim_{h \to 0}\frac{e^{(x + h)} - e^x}{h}

⇒ f'(x) = \lim_{h \to 0}\frac{e^xe^h - e^x}{h}

⇒ f'(x) = e^x\lim_{h \to 0}\frac{(e^h - 1)}{h}

This is 0/0 form of the limit. We know that \lim_{h \to 0}\frac{(e^h - 1)}{h} = 1

⇒ f'(x) = e^x\lim_{h \to 0}\frac{e^h }{1}

⇒ f'(x) = e^x (1)

⇒f'(x) =ex

f'(0) = 1 

Notice that the derivative of exponential function is exponential itself. 

Question 5: Find the equation of tangent at the point x = 0 for the given function f(x) = x2 + 1. 

Solution:

We know that, f(x) = x2 + 1

f(1) = 2

So, the tangent passes through (0,2). Now to find the slope of the tangent, let’s calculate the derivative of this function. 

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

f'(x) = \lim_{h \to 0}\frac{(x+h)^2 + 1 - x^2 -1}{h}

⇒ f'(x) = \lim_{h \to 0}\frac{x^2 +h^2 + 2hx + 1 - x^2 -1}{h}

⇒ f'(x) = \lim_{h \to 0}\frac{h^2 + 2hx}{h}

⇒ f'(x) = \lim_{h \to 0}h + 2x

⇒ f'(x) = 2x

f'(1) = 2

So, the slope of the tangent = 2. 

General equation of line 

y = mx + b 

where m = 2, we still don’t know b 

y = 2x + b 

We know that this line passes through (0,2) 

2 = 2(0) + b

⇒ 2 = b 

Thus, equation of tangent is 

y = 2x + 2

Question 6: Find the derivative of f(x) = x2 + ex

Answer:

f(x) = x2 + ex

We know that this function is made up of two terms, from the previous questions we know the derivatives of these two terms individually. 

So, using the properties mentioned above, 

\frac{d}{dx}[f(x) + g(x)] = \frac{d}{dx}f(x) + \frac{d}{dx}g(x)

We can break this function into different functions, calculate their derivatives and add them. 

Let’s say f(x) = g(x) + h(x) 

Where g(x) = x2 and h(x) = ex. The derivatives of these functions have been calculated already in the previous questions, 

g'(x) = 2x and h'(x) = ex

f'(x) = g'(x) + h'(x) 

f'(x) = 2x + ex


My Personal Notes arrow_drop_up
Last Updated : 16 May, 2021
Like Article
Save Article
Similar Reads
Related Tutorials