Derivatives
Introduction to derivatives
Consider a function $y = f ( x )$ defined on an interval $[ a , b ]$. The derivative of $f$ at a point $c \in ( a , b )$, denoted by $f^{‘} ( c )$, is defined, if the limit exists and is finite, as the limit of the difference quotient as $h \rightarrow 0$:
\[f^{'} ( c ) = \underset{h \rightarrow 0}{lim} \frac{f ( c + h ) - f ( c )}{h}\]If this limit exists for every $x$ in an interval, then the derivative defines a new function $f^{‘} ( x )$, called the derivative of $f$. The value $f^{‘} ( x )$ represents the slope of the tangent line to the graph of $f$ at the point $x$.
When $h \rightarrow 0$, the point $B$ approaches the point $A$, and the line $A B$ becomes the tangent line to the curve at point $A$. The slope of the tangent line at $A$ is called the derivative of the function at point $c$.

With reference to the tangent at point $A$ of the function $y = m x + q$, the derivative $f^{‘} ( x )$ represents the value of the slope coefficient $m$.
A function is differentiable at a point $c$ if the derivative $f^{‘} ( c )$ exists. If a function is differentiable:
- The function is defined in a neighborhood of the point $c$.
- The limit of the difference quotient, with respect to $c$, exists and is finite as $h \rightarrow 0$.
- The right-hand and left-hand limits of the difference quotient exist and are equal.
The inverse operation of differentiation is integration. This deep connection between derivatives and integrals is formalized by the Fundamental Theorem of Calculus, which establishes that differentiation and integration are inverse processes.
Derivatives play a fundamental role in physics as well. A classic example is velocity, which is defined as the derivative of position with respect to time. This simple concept forms the basis for understanding motion and change in the physical world.
If a function $f ( x )$ is differentiable at a point $c$, then the function is also continuous at that point. However, not all functions that are continuous at a point $c$ are differentiable. In other words, differentiable functions form a subset of continuous functions.
Example 1
Let’s calculate the derivative of the function $f ( x ) = 2 x^{2} - 3 x$ at $c = 2$ using the definition of the derivative.
\[f^{'} ( 2 ) = \underset{h \rightarrow 0}{lim} \frac{f ( 2 + h ) - f ( 2 )}{h}\]Let’s calculate the value of $f ( 2 + h )$:
\[f ( 2 + h ) & = 2 ( 2 + h )^{2} - 3 ( 2 + h ) \\ & = 2 ( 4 + 4 h + h^{2} ) - 3 ( 2 + h ) \\ & = 8 + 8 h + 2 h^{2} - 6 - 3 h \\ & = 2 + 5 h + 2 h^{2}\]Now, calculate the value of $f ( 2 )$:
\[f ( 2 ) = 2 ( 2^{2} ) - 3 ( 2 ) = 8 - 6 = 2\]Next, calculate the difference $f ( 2 + h ) - f ( 2 )$:
\[f ( 2 + h ) - f ( 2 ) = ( 2 + 5 h + 2 h^{2} ) - 2 = 5 h + 2 h^{2}\]Now, calculate the difference quotient:
\[\frac{f ( 2 + h ) - f ( 2 )}{h} = \frac{5 h + 2 h^{2}}{h} = 5 + 2 h\]Finally, calculate the limit:
\[\underset{h \rightarrow 0}{lim} ( 5 + 2 h ) = 5\]Thus, the derivative of $f ( x ) = 2 x^{2} - 3 x$ at $c = 2$ is: \(f^{'} ( 2 ) = 5\)
Right-hand and left-hand derivatives
Since the derivative is the limit of the difference quotient, as in the case of limits, it is possible to define the right-hand and left-hand derivatives of a function $y = f ( x )$.
The right-hand derivative is: \(f_{+}^{′} ( c ) = \underset{h \rightarrow 0^{+}}{lim} \frac{f ( c + h ) - f ( c )}{h}\)
The left-hand derivative is: \(f_{-}^{′} ( c ) = \underset{h \rightarrow 0^{-}}{lim} \frac{f ( c + h ) - f ( c )}{h}\)
A function is differentiable at a point $c$ if the right-hand derivative and the left-hand derivative at the point exist and are equal to each other. More generally, a function $y = f ( x )$ is differentiable on an interval $[ A , B ]$ if it is differentiable at all interior points of the interval and if the right-hand derivative at point $A$ and the left-hand derivative at point $B$ exist and are finite.
Fundamental derivatives
- \[f ( x ) = c f^{'} ( x ) = 0\]
- \[f ( x ) = x f^{'} ( x ) = 1\]
- \[f ( x ) = x^{a} a \in \mathbb{R} , x > 0 f^{'} ( x ) = a x^{a - 1}\]
- \[f ( x ) = \sqrt{x} x > 0 f^{'} ( x ) = \frac{1}{2 \sqrt{x}}\]
- \[f ( x ) = a^{x} f^{'} ( x ) = a^{x} ln ( a )\]
- \[f ( x ) = log_{a} ( x ) f^{'} ( x ) = \frac{1}{x log ( a )}\]
- \[f ( x ) = ln ( x ) f^{'} ( x ) = \frac{1}{x}\]
- \[f ( x ) = e^{x} f^{'} ( x ) = e^{x}\]
- \[f ( x ) = sin ( x ) f^{'} ( x ) = cos ( x )\]
- \[f ( x ) = cos ( x ) f^{'} ( x ) = - sin ( x )\]
- \[f ( x ) = tan ( x ) f^{'} ( x ) = 1 + tan^{2} ( x )\]
- \[f ( x ) = cot ( x ) f^{'} ( x ) = - ( 1 + cot^{2} ( x ) )\]
- \[f ( x ) = arcsin ( x ) f^{'} ( x ) = \frac{1}{\sqrt{1 - x^{2}}}\]
- \[f ( x ) = arccos ( x ) f^{'} ( x ) = \frac{- 1}{\sqrt{1 - x^{2}}}\]
- \[f ( x ) = arctan ( x ) f^{'} ( x ) = \frac{1}{1 + x^{2}}\]
- \[f ( x ) = \text{arccot} ( x ) f^{'} ( x ) = \frac{- 1}{1 + x^{2}}\]
$f ( x ) = c$; Derivative: $f^{‘} ( x ) = 0$, since a line $y = c$ is parallel to the x-axis, its slope $m$ is equal to 0.
$f ( x ) = x$; Derivative: $f^{‘} ( x ) = 1$. The function $y = x$ is the bisector of the first and third quadrants, and its slope $m$ is equal to 1.
$f ( x ) = x^{a}$, $a \in \mathbb{R} , x > 0$; Derivative: $f^{‘} ( x ) = a x^{a - 1}$
Operations with derivatives
The derivative of the product of a constant $c$ and a differentiable function $f ( x )$ is equal to the product of the constant and the derivative of the function. This is expressed as:
\[D [ c \cdot f ( x ) ] = c \cdot f^{'} ( x )\]For example, if $c = 3$ and $f ( x ) = x^{2}$, then:
\[D [ 3 \cdot x^{2} ] = 3 \cdot f^{'} [ x^{2} ] = 3 \cdot 2 x = 6 x\]The derivative of the sum of two functions $f ( x )$ and $g ( x )$ is equal to the sum of their derivatives. This is expressed as:
\[D [ f ( x ) + g ( x ) ] = f^{'} ( x ) + g^{'} ( x )\]For example, if $f ( x ) = x^{2}$ and $g ( x ) = 3 x$, then:
\[D [ x^{2} + 3 x ] = f^{'} ( x^{2} ) + g^{'} ( 3 x ) = 2 x + 3\]The derivative of the product of two functions $f ( x )$ and $g ( x )$ is given by the product rule. This is expressed as:
\[D [ f ( x ) \cdot g ( x ) ] = f^{'} ( x ) \cdot g ( x ) + f ( x ) \cdot g^{'} ( x )\]For example, if $f ( x ) = x^{2}$ and $g ( x ) = 3 x$, then:
\[D [ x^{2} \cdot 3 x ] & = f^{'} ( x^{2} ) \cdot g ( 3 x ) + f ( x^{2} ) \cdot g^{'} ( 3 x ) \\ & = 2 x \cdot 3 x + x^{2} \cdot 3 \\ & = 6 x^{2} + 3 x^{2} = 9 x^{2}\]The derivative of the quotient of two functions $f ( x )$ and $g ( x )$, where $g ( x ) \neq 0$, is given by the quotient rule. This is expressed as:
\[D [ \frac{f ( x )}{g ( x )} ] = \frac{f^{'} ( x ) \cdot g ( x ) - f ( x ) \cdot g^{'} ( x )}{g^{2} ( x )}\]For example, if $f ( x ) = x^{2}$ and $g ( x ) = 3 x + 1$, then:
\[D [ \frac{x^{2}}{3 x + 1} ] & = \frac{2 x \cdot ( 3 x + 1 ) - x^{2} \cdot 3}{( 3 x + 1 )^{2}} \\ & = \frac{6 x^{2} + 2 x - 3 x^{2}}{( 3 x + 1 )^{2}} \\ & = \frac{3 x^{2} + 2 x}{( 3 x + 1 )^{2}}\]The derivative of the reciprocal of a function $f ( x )$, where $f ( x ) \neq 0$, is given by:
\[D [ \frac{1}{f ( x )} ] = - \frac{f^{'} ( x )}{f^{2} ( x )}\]For example, if $f ( x ) = 3 x + 1$, then:
\[D [ \frac{1}{3 x + 1} ] = - \frac{3}{( 3 x + 1 )^{2}}\]When differentiating a composition of two functions, these rules are not sufficient. In that case, it is necessary to apply the derivative of a composite function, also known as the chain rule.
Higher-order derivatives
In general, the derivatives we have discussed so far are the first derivatives of a function $y = f ( x )$. The differentiation process can be iterated to compute the higher-order derivatives of a first derivative, such as the second derivative and the third derivative.
For example, let the function $y = f ( x ) = 3 x^{3} - 2 x^{2} + 1$.
- The first derivative of the function is: \(f^{'} ( x ) = 9 x^{2} - 4 x\)
- The second derivative is: \(f^{''} ( x ) = 18 x - 4\)
- The third derivative \(f^{′ ′ ′} ( x ) = 18\)
First and second derivatives play a fundamental role in analyzing the local behavior of functions, particularly in identifying minimum and maximum points, as well as inflection points.
Key theorems in differential calculus
Derivatives are also at the foundation of some of the most important theorems in differential calculus.
- Weierstrass’s Theorem guarantees that a continuous function on a closed and bounded interval attains both its maximum and minimum values.
- Fermat’s Theorem establishes a necessary condition for local extrema.
- Rolle’s Theorem and Lagrange’s Theorem, also known as the Mean Value Theorem, describe fundamental properties of differentiable functions on a closed interval.
- Further generalizations are provided by Cauchy’s Theorem and L’Hôpital’s Rule, which extends the use of derivatives to the evaluation of indeterminate forms of limits.
Equation of the tangent line
The slope of the tangent line to the graph of a function $f ( x )$ at a point $x_{0}$ is given by the derivative $f^{‘} ( x_{0} )$. This value represents the instantaneous rate of change of the function at that point and coincides with the limit of the slopes of the secant lines approaching $x_{0}$.
More precisely, if we consider a second point $x_{0} + h$, the slope of the secant line through the points $( x_{0} , f ( x_{0} ) )$ and $( x_{0} + h , f ( x_{0} + h ) )$ is:
\[\frac{f ( x_{0} + h ) - f ( x_{0} )}{h}\]If the limit of this expression exists as $h \rightarrow 0$, the function is differentiable at $x_{0}$, and this limit equals $f^{‘} ( x_{0} )$. The tangent line is therefore understood as the limiting position of the secant lines.
If the derivative exists and is finite, the tangent line is not vertical. In that case, its equation can be written in point–slope form. Since the line passes through the point $( x_{0} , f ( x_{0} ) )$ and has slope $f^{‘} ( x_{0} )$, its equation is:
\[y - f ( x_{0} ) = f^{'} ( x_{0} ) ( x - x_{0} )\]This linear function provides the best linear approximation of $f$ near $x_{0}$. In fact, for values of $x$ close to $x_{0}$, the increment of the function satisfies:
\[f ( x ) \approx f ( x_{0} ) + f^{'} ( x_{0} ) ( x - x_{0} )\]which expresses the idea that, at sufficiently small scales, a differentiable function behaves approximately like its tangent line.
Example 2
Let us consider the parabola defined by the equation $y = 2 x^{2} + 3 x$, and determine the tangent line at the point $P ( 1 , 5 )$.
First, we compute the derivative $f^{‘} ( x )$, and we obtain:
\[2 x + 3\]We compute the slope of the tangent line at $x = 1$:
\[f^{'} ( 1 ) = 2 ( 1 ) + 3 = 5\]Therefore, the slope of the tangent line is $m = 5$. We have:
\[y - f ( 1 ) = f ′ ( 1 ) ( x - 1 ) \rightarrow y - 5 = 5 ( x - 1 )\]Completing the calculations, we obtain the equation of the tangent line:
\[y = 5 x\]Partial derivatives
Derivatives are fundamental in multivariable calculus. When a function depends on multiple variables, the rate of change with respect to a single variable, while keeping all other variables constant, is described by the partial derivative:
\[\frac{\partial f}{\partial x_{i}} ( x_{0} ) = \underset{h \rightarrow 0}{lim} \frac{f ( x_{1}^{0} , \ldots , x_{i}^{0} + h , \ldots , x_{n}^{0} ) - f ( x_{0} )}{h}\]The vector of all partial derivatives forms the gradient $\nabla f$, which indicates the direction of the steepest increase of $f$. For a comprehensive discussion, including higher-order derivatives, Schwarz’s theorem, the Jacobian matrix, and the chain rule for functions of several variables, refer to the entry on partial derivatives.
Selected references
- MIT OpenCourseWare. Single Variable Calculus – Lecture Notes (Derivatives)
- University of British Columbia. Differentiation – Lecture Notes
- University College London (UCL). On Differentiation I
- Simon Fraser University. Calculus III – Partial Derivatives
- Portland State University. Calculus Problems and Exercises
- Northwestern University. Real Analysis – Lecture Notes
- Penn State University. Calculus – Derivatives and Applications