Skip to main content
Mathematics LibreTexts

2.1: Derivatives

  • Page ID
    155800
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    We are now ready to explain what is meant by the slope of a curve or the velocity of a moving point. Consider a real function \(f\) and a real number \(a\) in the domain of \(f\). When \(x\) has value \(a\), \(f(x)\) has value \(f(a)\). Now suppose the value of \(x\) is changed from \(a\) to a hyperreal number \(a + \Delta x\) which is infinitely close to but not equal to \(a\). Then the new value of \(f(x)\) will be \(f(a + \Delta x)\). In this process the value of \(x\) will be changed by a nonzero infinitesimal amount \(x\),  while the value of \(f(x)\) will be changed by the amount \[f(a + \Delta x) - f(a). \nonumber\]

    The ratio of the change in the value of \(f(x)\) to the change in the value of \(x\) is \[\frac{f(a + \Delta x) - f(a)}{\Delta x}. \nonumber\]

    This ratio is used in the definition of the slope of \(f\) which we now give.

    Definition:

    \(S\) is said to be the slope of \(f\) at \(a\) if \[S = st \left(\frac{f(a + \Delta x) - f(a)}{\Delta x}\right) \nonumber\]for every nonzero infinitesimal \(\Delta x\).

    The slope, when it exists, is infinitely close to the ratio of the change in \(f(x)\) to an infinitely small change in \(x\). Given a curve \(y = f(x)\), the slope of \(f\) at \(a\) is also
    called the slope of the curve \(y = f(x)\) at \(x = a\). Figure \(\PageIndex{1}\) shows a nonzero infinitesimal \(\Delta x\) and a hyperreal straight line through the two points on the curve at \(a\) and \(a + \Delta x\). The quantity \[\frac{f(a + \Delta x) - f(a)}{\Delta x} \nonumber\] is the slope of this line, and its standard part is the slope of the curve.

    Curve of a function f(x) with a hyperreal straight line passing through the curve points of a and a + Delta x.
    Figure \(\PageIndex{1}\): Hyperreal straight line through a curve.

    The slope of \(f\) at \(a\) does not always exist. Here is a list of all the possibilities.

    1. The slope of \(f\) at \(a\) exists if the ratio \[\frac{f(a + \Delta x) - f(a)}{\Delta x} \nonumber\] is finite and has the same standard part for all infinitesimal \(\Delta x \neq 0\). It has the value \[S = st \left(\frac{f(a + \Delta x) - f(a)}{\Delta x}\right). \nonumber\]
    2. The slope of \(f\) at \(a\) can fail to exist in any of four ways:
      1. \(f(a)\) is undefined.
      2. \(f(a + \Delta x)\) is undefined for some infinitesimal \(\Delta x \neq 0\).
      3. The term \(\dfrac{f(a + \Delta x) - f(a)}{\Delta x}\) is infinite for some infinitesimal \(\Delta x \neq 0\).
      4. The term \(\dfrac{f(a + \Delta x) - f(a)}{\Delta x}\) has different standard parts for different infinitesimals \(\Delta x \neq 0\).

    We can consider the slope of \(f\) at any point \(x\), which gives us a new function of \(x\).

    Definition:

    Let \(f\) be a real function of one variable. The derivative of \(f\) is the new function \(f'\) whose value at \(x\) is the slope of \(f\) at \(x\). In symbols, \[f'(x) = st \left(\frac{f(x + \Delta x) - f(x)}{\Delta x}\right) \nonumber\]whenever the slope exists.

    The derivative \(f'(x)\) is undefined if the slope of \(f\) does not exist at \(x\).

    For a given point \(a\), the slope of \(f\) at \(a\) and the derivative of \(f\) at \(a\) are the same thing. We usually use the word "slope" to emphasize the geometric picture and
    "derivative" to emphasize the fact that \(f'\) is a function.

    The process of finding the derivative of \(f\) is called differentiation. We say that \(f\) is differentiable at \(a\) if \(f'(a)\) is defined; i.e., the slope of \(f\) at \(a\) exists.

    Independent and dependent variables are useful in the study of derivatives. Let us briefly review what they are. A system of formulas is a finite set of equations and inequalities. If we are given a system of formulas which has the same graph as a simple equation \(y = f(x)\), we say that \(y\) is a function of \(x\), or that \(y\) depends on \(x\), and we call \(x\) the independent variable and \(y\) the dependent variable.

    When \(y = f(x)\), we introduce a new independent variable \(\Delta x\) and a new dependent variable \(\Delta y\), with the equation \[\Delta y = f(x + \Delta x) - f(x).\]

    This equation determines \(\Delta y\) as a real function of the two variables \(x\) and \(\Delta x\), when \(x\) and \(\Delta x\) vary over the real numbers. We shall usually want to use the Equation \((\PageIndex{1})\) for \(\Delta y\) when \(x\) is a real number and \(\Delta x\) is a nonzero infinitesimal. The Transfer Principle implies that Equation \((\PageIndex{1})\) also determines \(\Delta y\) as a hyperreal function of two variables when \(x\) and \(\Delta x\) are allowed to vary over the hyperreal numbers.

    \(\Delta y\) is called the increment of \(y\). Geometrically, the increment \(\Delta y\) is the change in \(y\) along the curve corresponding to the change \(\Delta x\) in \(x\). The symbol \(y'\) is sometimes used for the derivative, \(y' = f'(x)\). Thus the hyperreal equation \[f'(x) = st \left(\frac{f(x + \Delta x) - f(x)}{\Delta x}\right) \nonumber\]now takes the short form \[y' = st \left(\frac{\Delta y}{\Delta x}\right) \nonumber\]

    The infinitesimal \(\Delta x\) may be either positive or negative, but not zero. The various possibilities are illustrated in Figure \(\PageIndex{2}\) using an infinitesimal microscope. The signs of \(\Delta x\) and \(\Delta y\) are indicated in the captions.

    Infinitesimal microscopic views of hyperreal straight lines through different points on a single curve. Six views show the different possibilities of positive or negative infinitesimal changes in x and positive, negative or zero changes in y.
    Figure \(\PageIndex{2}\): The possibilities of \(\Delta x\) and \(\Delta y\) combinations.

    Our rules for standard parts can be used in many cases to find the derivative of a function. There are two parts to the problem of finding the derivative \(f'\) of a function \(f\):

    1. Find the domain of \(f'\).
    2. Find the value of \(f'(x)\) when it is defined.
    Example \(\PageIndex{1}\)

    Find the derivative of the function \[f(x) = x^{3}. \nonumber\]

    Solution

    In this and the following examples we let \(x\) vary over the real numbers and \(\Delta x\) vary over the nonzero infinitesimals. Let us introduce the new variable \(y\) with the equation \(y = x^{3}\). We first find \(\Delta y/\Delta x\).

    \[\begin{align*} y &= x^{3}, \\ y + \Delta y &= (x + \Delta x)^{3}, \\ \Delta y &= (x + \Delta x)^{3} - x^{3}, \\ \frac{\Delta y}{\Delta x} &= \frac{(x + \Delta x)^{3} - x^{3}}{\Delta x}. \end{align*}\]

    Next we simplify the expression for \(\Delta y/\Delta x\).

    \[\begin{align*} \frac{\Delta y}{\Delta x} &= \frac{\left(x^{3} + 3x^{2} \Delta x + 3x (\Delta x)^{2} + (\Delta x)^{3}\right) - x^{3}}{\Delta x} \\ &= \frac{3x^{2} \Delta x + 3x(\Delta x)^{2} + (\Delta x)^{3}}{\Delta x} \\ &= 3x^{2} + 3x \Delta x + (\Delta x)^{2}. \end{align*}\]

    Then we take the standard part, \[\begin{align*} st \left(\frac{\Delta y}{\Delta x}\right) &= st \left(3x^{2} + 3x \Delta x + (\Delta x)^{2}\right) \\ &= st(3x^{2}) + st(3x \Delta x) + st((\Delta x)^{2}) \\ &= 3x^{2} + 0 + 0. \end{align*}\]

    Therefore, \[f'(x) = st \left(\frac{\Delta y}{\Delta x}\right) = 3x^{2}. \nonumber\]

    We have shown that the derivative of the function \[f(x) = x^{3} \nonumber\]is the function \[f'(x) = 3x^{2} \nonumber\] with the whole real line as domain. \(f(x)\) and \(f'(x)\) are shown in Figure \(\PageIndex{3}\).

    Graphs of the cube function and its derivative.
    Figure \(\PageIndex{3}\): Graphs of \(y = x^{3}\) and \(y' = 3x^{2}\).
    Example \(\PageIndex{2}\)

    Find \(f'(x)\) given \(f(x) = \sqrt{x}\).

    Solution

    Case 1: \(x < 0\)

    Since \(\sqrt{x}\) is not defined, \(f'(x)\) does not exist.

    Case 2: \(x = 0\)

    When \(\Delta x\) is a negative infinitesimal, the term \[\frac{\sqrt{x + \Delta x} - \sqrt{x}}{\Delta x} = \frac{\sqrt{0 + \Delta x} - \sqrt{0}}{\Delta x} \nonumber\] is not defined because \(\sqrt{\Delta x}\) is undefined. When \(\Delta x\) is a positive infinitesimal, the term \[\frac{\sqrt{x + \Delta x} - \sqrt{x}}{\Delta x} = \frac{\sqrt{\Delta x}}{\Delta x} = \frac{1}{\sqrt{\Delta x}} \nonumber\]is defined but its value is infinite. Thus for two reasons, \(f'(x)\) does not exist.

    Case 3: \(x > 0\)

    Let \(y = \sqrt{x}\). Then \[\begin{align*} y + \Delta y &= \sqrt{x + \Delta x}, \\ \Delta y &= \sqrt{x + \Delta x} - \sqrt{x}, \\ \frac{\Delta y}{\Delta x} &= \frac{\sqrt{x + \Delta x} - \sqrt{x}}{\Delta x}. \end{align*}\]

    We then make the computation \[\begin{align*} \frac{\Delta y}{\Delta x} &= \frac{\left(\sqrt{x + \Delta x} - \sqrt{x}\right)}{\Delta x} \cdot \frac{\left(\sqrt{x + \Delta x} + \sqrt{x}\right)}{\left(\sqrt{x + \Delta x} + \sqrt{x}\right)} \\ &= \frac{(x + \Delta x) - x}{\Delta x \left(\sqrt{x + \Delta x} + \Delta x\right)} \\ &= \frac{\Delta x}{\Delta x \left(\sqrt{x + \Delta x} + \sqrt{x}\right)} = \frac{1}{\sqrt{x + \Delta x} + \sqrt{x}}. \end{align*}\]

    Taking standard parts, \[\begin{align*} st \left(\frac{\Delta y}{\Delta x}\right) &= st \left(\frac{1}{\sqrt{x + \Delta x} + \sqrt{x}}\right) \\ &= \frac{1}{st \left(\sqrt{x + \Delta x} + \sqrt{x}\right)} \\ &= \frac{1}{st \left(\sqrt{x + \Delta x}\right) + st \left(\sqrt{x}\right)} \\ &= \frac{1}{\sqrt{x} + \sqrt{x}} = \frac{1}{2 \sqrt{x}} \end{align*}.\]

    Therefore, when \(x > 0\), \(f'(x) = \dfrac{1}{2 \sqrt{x}}\).

    So, the derivative of \(f(x) = \sqrt{x}\) is the function \(f'(x) = \dfrac{1}{2 \sqrt{x}}\), and the set of all \(x > 0\) is its domain (see Figure \(\PageIndex{4}\).

    Graphs of the square root function and its derivative.
    Figure \(\PageIndex{4}\): Graphs of \(y = \sqrt{x}\) and \(y' = \frac{1}{2 \sqrt{x}}\).

     

     


    2.1: Derivatives is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?