A derivative measures the instant rate of change of a function. It is the limit of the slope of a secant line as the gap h shrinks to 0: f′(x) = limh→0 [f(x + h) − f(x)] / h.
Example: f(x) = x², so f′(x) = lim (2xh + h²)/h = 2x
Reviewed by the Helping with Math Team · Updated October 23, 2026
Related: For every rule with proofs, see derivative rules.
Related: To reverse the product rule, see integration by parts.
Definition
Let f ( x ) be a real valued function defined on an open interval ( a, b ) and let c ∈ ( a, b ). Then, f ( x ) is said to be differentiable or derivative at x = c if and only if
$\lim_{x\rightarrow c} \frac{f (x) -f ( c )}{x-c}$ exists finitely.
This limit is called the derivative or differentiation of f ( x ) at x = c and is denoted by f ‘ ( c ) or D f ( c ) or { $\frac{d}{dx}$ f ( x ) } x = c
This means that
f ‘ ( c ) = $\lim_{x\rightarrow c} \frac{f (x) -f ( c )}{x-c}$ provided that the limit exists
Let us understand it through an example
Example
Find the derivative of f ( x ) = k at x = 0 and x = 5
Solution
We are required to find the derivative of f ( x ) = k at x = 0 and x = 5
Now,
f ‘ ( 0 ) = $\lim_{h\rightarrow0} \frac{f (0 + h) -f ( 0 )}{h} = \frac{k-k}{h} = \frac{0}{h} = 0$
Similarly,
f ‘ ( 5 ) = $\lim_{h\rightarrow0} \frac{f (5 + h) -f ( 5 )}{h} = \frac{k-k}{h} = \frac{0}{h} = 0$
Try it: shrink h and watch the secant become the tangent
Pick a function, move the point and make the gap h smaller. The secant slope settles on the derivative at that point.
Derivative of a Function
Let f ( x ) be a function differentiable at every point in its domain. Then corresponding to every point c in the domain, we obtain a unique real number equal to the derivative f ‘ ( c ) of f ( x ) at x = c.
This implies that there is a one-to-one correspondence between points in the domain of the function and the derivative at these points. This correspondence induces a function such that the image of any point x in the domain is the value of the derivative of f at x, i.e. f ‘ ( x ) of $\frac{d}{dx}$ f ( x ) . This function is called the derivate of differentiation of f ( x ) and is given by
f ‘ ( x ) = $\lim_{h\rightarrow0} \frac{f (x + h) -f ( x )}{h}$ or
$\frac{d}{dx} f ( x ) = \lim_{h\rightarrow0} \frac{f (x + h) -f ( x )}{h}$
The above process of finding the derivative of a function is known as the differentiation or derivative from the first principles. Let us learn more about it.
Differentiation from the First Principles
We have learned that the derivative of a function f ( x ) is given by
$\frac{d}{dx} f ( x ) = \lim_{h\rightarrow0} \frac{f (x + h) -f ( x )}{h}$
Let us now look at the derivatives of some important functions
- The Power Rule −If f ( x ) = x n, where n ∈ R, the differentiation of x n with respect to x is n x n − 1 therefore,
$\frac{d}{dx}$ ( x n ) = n x n − 1
Let us understand it through an example
Example
Find the value of $\frac{d}{dx}$( x 5 )
Solution
We have been asked to find the value of $\frac{d}{dx}$( x 5 )
We have,
$\frac{d}{dx}$( x 5 ) = 5 x 5 − 1 = 5 x 4
Hence, $\frac{d}{dx}$( x 5 ) = 5 x 4
- If f ( x ) = x n, where n ∈ R, the differentiation of x n with respect to x is n x n − 1 therefore,
- If f ( x ) = e x, then the differentiation of e x with respect to x is e x.
- If f ( x ) = x , where x > 0 then the differentiation of x with respect to x is $\frac{1}{x}$.
- If f ( x ) = sin x, then the differentiation of sin x with respect to x is cos x.
- If f ( x ) = cos x, then the differentiation of cos x with respect to x is − sin x.
- If f ( x ) = tan x, then the differentiation of tan x with respect to x is sec 2 x.
- If f ( x ) = cot x, then the differentiation of cot x with respect to x is − cosec 2 x.
- If f ( x ) = sec x, then the differentiation of sec x with respect to x is sec x tan x.
- If f ( x ) = cosec x, then the differentiation of cosec x with respect to x is − cosec x cot x.
Fundamental Rules of Differentiation
Now, that we have learned the basic of derivatives, let us move to understanding some fundamental rules of differentiation.
Below are some fundamental rules of differentiation
- The Constant RuleDifferentiation of constant function is zero, i.e. $\frac{d}{dx}$ ( c ) = 0. For example, if we have a function f (x) = 5, we can see that it is a horizontal line with a slope of zero, and thus its derivative is also zero.
- The Constant Multiple ruleLet f ( x ) be a differentiable function and let c be a constant. The, c f ( x ) is also differentiable such that $\frac{d}{dx}$ [ c f ( x ) ] = c $\frac{d}{dx}$( f ( x ) ).
- The Sum Rule If f ( x ) and g ( x ) are differentiable functions, then f ( x ) + g ( x ) is also differentiable such that $\frac{d}{dx}$[ f ( x ) + g ( x ) ] = $\frac{d}{dx}$[ f ( x ) ] + $\frac{d}{dx}$[ g ( x ) ]
- The Difference RuleIf f ( x ) and g ( x ) are differentiable functions, then f ( x ) − g ( x ) is also differentiable such that $\frac{d}{dx}$[ f ( x ) − g ( x ) } = $\frac{d}{dx}$[ f ( x ) ]$\frac{d}{dx}$[ g ( x ) ]
- The Product RuleIf f ( x ) and g ( x ) are differentiable functions, then f ( x ) g ( x ) is also differentiable such that $\frac{d}{dx}$[ f ( x ) g ( x ) ] = f ( x ) $\frac{d}{dx}$[ g ( x ) ] + g ( x ) $\frac{d}{dx}$[ f ( x ) ].
- The Quotient RuleIf f ( x ) and g ( x ) are differentiable functions and g ( x ) ≠ 0, then
$\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}$
Examples
Example 1 Find the derivative of the function f ( x ) = 6 x 2 − 4 x.
Solution We have been given the function. We can clearly see that the function is of the form f ( x ) = u ( x ) − v ( x )
Now, we shall recall the difference rule that states that If f ( x ) and g ( x ) are differentiable functions, then f ( x ) − g ( x ) is also differentiable such that
$\frac{d}{dx} [ f ( x ) – g ( x ) ] = \frac{d}{dx}[ f ( x ) ] – \frac{d}{dx} [ g ( x ) ]$
Using this rule in the given function, we will get
$\frac{d}{dx} [ 6 x^2 – 4 x ] = \frac{d}{dx}( 6 x^2) – \frac{d}{dx}( 4 x )$
$\frac{d}{dx}$[ 6 x 2 − 4 x ] = 6 ( 2 x ) − 4
$\frac{d}{dx}$[ 6 x 2 − 4 x ] = 12 x − 4
Hence, the derivative of the function f ( x ) = 6 x 2 − 4 x will be 12 x − 4
Example 2 Differentiate f ( x ) = ( x + 2 ) 3/ √x
Solution We have been given the function f ( x ) = ( x + 2 ) 3 / √x
⇒ f ( x ) = ( x + 2 ) ( x 2 + 4 x + 4 ) / √x
⇒ f ( x ) = [ x 3 + 6 x 2 + 12 x + 8 ] / x ½
⇒ f ( x ) = x -1/2 ( x 3 + 6 x 2 + 12 x + 8 )
⇒ f ( x ) = x 5 / 2 + 6 x 3 / 2 + 12 x 1 / 2 +8 x − ½
Now, we can see that the given function is of the form where we can apply the sum rule.
Now, we shall recall that if f ( x ) and g ( x ) are differentiable functions, then f ( x ) + g ( x ) is also differentiable such that $\frac{d}{dx}$[ f ( x ) + g ( x ) ] = $\frac{d}{dx}[ f ( x ) ] + \frac{d}{dx}[ g ( x ) ]$
Therefore, differentiating the given equation using sum rule, we get;
$\frac{d}{dx}$(x 5 / 2 + 6 x 3 / 2 + 12 x 1 / 2 +8 x − ½ )
= 5 / 2 x 3 / 2 + 6 ( 3 / 2 x 1 / 2 ) + 12 ( 1 /2 x − 1 / 2 ) + 8 ( − 1 / 2 x − 3 / 2 )
= 5 / 2 x 3 / 2 + 9x 1 / 2 + 6 x − ½ − 4 x− 3 / 2
Hence, $\frac{d}{dx}$( x + 2 ) 3/ √x = 5 / 2 x 3 / 2 + 9x 1 / 2 + 6 x − ½ − 4 x− 3 / 2
Example 3 Find the derivative of x 2 ( x + 3 )
Solution We have been given the function f ( x ) = x 2 ( x + 3 )
Now, we can see that the given function is of the form where we can apply the product rule.
Now, we shall recall that if f ( x ) and g ( x ) are differentiable functions, then f ( x ) g ( x ) is also differentiable such that $\frac{d}{dx}$[ f ( x ) g ( x ) ] = f ( x ) $\frac{d}{dx}$ [ g ( x ) ] + g ( x ) $\frac{d}{dx}$ [ f ( x ) ].
Here,
f ( x ) = x 2 and g ( x ) = x+3
Therefore, differentiating the given equation using product rule, we get;
$\frac{d}{dx}$[ x 2 ( x + 3 ) ] = x 2 $\frac{d}{dx}$( x + 3 ) + ( x + 3 ) $\frac{d}{dx}$ x 2
$\frac{d}{dx}$[ x 2 ( x + 3 ) ] = x 2 ( 1 ) + 2 x ( x + 3 )
$\frac{d}{dx}$[ x 2 ( x + 3 ) ] = 2 x 2 + 6 x + x 2
$\frac{d}{dx}$[ x 2 ( x + 3 ) ] = 3 x 2 + 6 x
$\frac{d}{dx}$[ x 2 ( x + 3 ) ] = 3 x ( x + 2 )
Hence, $\frac{d}{dx}$[ x 2 ( x + 3 ) ] = 3 x ( x + 2 )
Key Facts and Summary
- Let f ( x ) be a real valued function defined on an open interval ( a, b ) and let c ∈ ( a, b ). Then, f ( x ) is said to be differentiable or derivative at x = c if and only if
$\frac{f( x ) – f( c )}{x-c}$ exists finitely. - If f ( x ) = e x, then the differentiation of e x with respect to x is e x.
- If f ( x ) = x , where x > 0 then the differentiation of x with respect to x is $\frac{1}{x}$.
- If f ( x ) = sin x, then the differentiation of sin x with respect to x is cos x.
- If f ( x ) = cos x, then the differentiation of cos x with respect to x is − sin x.
- If f ( x ) = tan x, then the differentiation of tan x with respect to x is sec 2 x.
- If f ( x ) = cot x, then the differentiation of cot x with respect to x is − cosec 2 x.
- If f ( x ) = sec x, then the differentiation of sec x with respect to x is sec x tan x.
- If f ( x ) = cosec x, then the differentiation of cosec x with respect to x is − cosec x cot.
- The Constant Rule, Differentiation of constant function is zero, i.e. $\frac{d}{dx}$( c ) = 0. For example, if we have a function f (x) = 5, we can see that it is a horizontal line with a slope of zero, and thus its derivative is also zero.
- The Constant Multiple rule, Let f ( x ) be a differentiable function and let c be a constant. The, c f ( x ) is also differentiable such that $\frac{d}{dx}$[ c f ( x ) ] = c $\frac{d}{dx}$( f ( x ) ).
- The Sum Rule − If f ( x ) and g ( x ) are differentiable functions, then f ( x ) + g ( x ) is also differentiable such that $\frac{d}{dx}$[ f ( x ) + g ( x ) ] = $\frac{d}{dx}$[ f ( x ) ] + $\frac{d}{dx}$[ g ( x ) ]
- The Difference Rule, If f ( x ) and g ( x ) are differentiable functions, then f ( x ) − g ( x ) is also differentiable such that $\frac{d}{dx}$[ f ( x ) − g ( x ) } = $\frac{d}{dx}$[ f ( x ) ]- $\frac{d}{dx}$[ g ( x ) ]
- The Product Rule, If f ( x ) and g ( x ) are differentiable functions, then f ( x ) g ( x ) is also differentiable such that $\frac{d}{dx}$[ f ( x ) g ( x ) ] = f ( x ) $\frac{d}{dx}$[ g ( x ) ] + g ( x ) $\frac{d}{dx}$[ f ( x ) ].
- The Quotient RuleIf f ( x ) and g ( x ) are differentiable functions and g ( x ) ≠ 0, then
$\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}$
Worked examples
Example 1
First principles. Use the limit definition to find f′(x) for f(x) = 3x.
Solution
[3(x + h) − 3x]/h = 3h/h = 3, so f′(x) = 3.
Example 2
Power rule. Differentiate f(x) = 4x³ − 5x.
Solution
f′(x) = 12x² − 5. At x = 1 the slope is 7.
Example 3
Slope at a point. Find the slope of y = x² at x = 3.
Solution
y′ = 2x, so the slope at x = 3 is 6.
Common mistakes
- Mistake: Dropping the limit and writing f′(x) = [f(x + h) − f(x)]/h. Fix: Without lim h → 0 that is only a secant slope.
- Mistake: Writing (x⁵)′ = 5x⁵. Fix: Lower the power by 1: 5x⁴.
- Mistake: Saying the derivative of 7 is 7. Fix: A constant does not change, so its derivative is 0.
- Mistake: Treating (fg)′ as f′g′. Fix: Use the product rule: f′g + fg′.
Practice generator
Every question is made at random. Get several right in a row to build your streak.
Type your answer and press Check.
Cheat sheet
| Idea | What to remember |
|---|---|
| Definition | f′(x) = lim (h → 0) [f(x + h) − f(x)]/h |
| Constant | (c)′ = 0 |
| Power | (xⁿ)′ = nxⁿ⁻¹ |
| Sum or difference | (f ± g)′ = f′ ± g′ |
| Product | (fg)′ = f′g + fg′ |
| Quotient | (f/g)′ = (f′g − fg′)/g² |
Quick quiz
Check yourself: derivatives in math
5 quick questions. Tap an answer to see if you are right.
The derivative of x⁴ is:
Power rule.
The derivative of 9 is:
Constants do not change.
If f(x) = x², f′(5) is:
f′(x) = 2x.
The derivative is the limit of the slope of:
As h → 0 the secant becomes the tangent.
d/dx (eˣ) is:
eˣ is its own derivative.
Answered 0 of 5.
Derivatives in math FAQs
What is a derivative in math?
A derivative gives the instant rate of change of a function, which is the slope of its tangent line at a point. It is written f′(x) or dy/dx.
How do you find a derivative from first principles?
Use f′(x) = lim as h → 0 of [f(x + h) − f(x)]/h. For f(x) = x² this gives (2xh + h²)/h = 2x + h, which tends to 2x.
What is the power rule?
For f(x) = xⁿ, f′(x) = nxⁿ⁻¹. For example, the derivative of x⁵ is 5x⁴.
What does a derivative of zero mean?
The function is not changing at that point. The tangent line is horizontal, as at the top of a hill or at a constant function.
Where are derivatives used?
They describe speed from position, marginal cost in business, growth rates in biology and the steepness of curves in physics and engineering.
Recommended Worksheets
More practice: Measures of Skewness (Business Themed) Worksheets, Subtraction of Functions (Tropical Themed) Worksheets and Addition of Functions (Ages 12-14) Worksheets (Festival themed).









