Skip to main content
Mathematics LibreTexts

4.1: Elementary Derivatives

  • Page ID
    83931
  • \( \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}}} \)

    We start by recalling the formal definition, with a slight adjustment in notation to match the standard conventions:

    Definition \(4.1.1\).

    For a function \(f(x)\text{,}\) the instantaneous rate of change of \(f(x)\text{,}\) or the derivative of \(f(x)\), denoted as \(f'(x)\text{,}\) is defined as

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

    We also want to recall some alternate notations we may use.

    Notation: Let \(y=f(x)\text{.}\)

    The derivative of \(f(x)\) is denoted as \(f'(x)\) or \(\frac{d}{dx} f(x) \)or \(dy/dx\text{.}\)

    The derivative at \(x=x_0\) is denoted as \(f'(x_0 )\) or \(\frac{dy}{dx}|_{x=x_0}\text{.}\)

    As is typical in mathematics, when there are several forms, we use the one that makes the most sense in the case on which we are working.

    Derivatives of monomials

    Our first rule for symbolic differentiation gives the derivative of a monomial

    Claim \(4.1.2\). Monomial Rule.

    If \(f(x)=a x^n\text{,}\) then \(f'(x)=n*a*x^{n-1}\text{.}\)

    This rule is a generalization of the rule we found in section 3.2 using trendlines. There we noticed that the derivative is linear whenever the function is quadratic. The rule is valid for all values of n, not just for positive whole numbers. We can now find derivatives for expressions that can be converted into this form.

    Example \(4.1.3.\) Derivatives of Monomials.

    Using our first rule of symbolic differentiation, find the derivatives of the following functions:

    1. \(\displaystyle f(x)=3 x\)
    2. \(\displaystyle g(x)=5 x^2\)
    3. \(\displaystyle h(x)=7x^{25}\)
    4. \(\displaystyle j(x)=6 \sqrt{x}\)
    5. \(\displaystyle k(x)=\frac{4}{x^3} \)

    Solution

    Using our rule:

    1. \(\displaystyle \frac{d}{dx} f(x)= \frac{d}{dx} (3 x^1)=1*3 x^0=3.\)
    2. \(\displaystyle \frac{d}{dx} g(x)=\frac{d}{dx} (5 x^2 )=2*5 x^1=10 x.\)
    3. \(\displaystyle \frac{d}{dx} h(x)=\frac{d}{dx} (7x^{25})=25*7 x^24=175x^{24}.\)
    4. \(\displaystyle \frac{d}{dx} j(x)=\frac{d}{dx} (6 \sqrt{x})=\frac{d}{dx} (6x^{1/2} )=1/2*6x^{-1/2}=3x^{-1/2}\)
    5. \(\displaystyle \frac{d}{dx} k(x)=\frac{d}{dx} \frac{4 }{x^3 }=d/dx (4 x^{(-3)} )=-3*4 x^{-4}=-12 x^{-4}\)

    For parts (d) and (e), we converted roots and fractions so they looked like monomials with negative or fractional exponents and applied our rule.

    Probably the most convincing demonstration of the truth of this rule is for us to use Excel and the techniques of the last chapter to find a function, its numeric and symbolic derivatives and see that the symbolic and numeric derivatives are the same up to round off error. We would also like to see how the symbolic derivative can be derived from the formal definition of derivative in simple cases.

    Example 4.1.4: Derivatives of Linear Functions.

    From the formal definition of derivative, if \(f(x)=a x+b\text{,}\) then show \(f'(x)=a\text{.}\)

    Solution

    Using our definition:

    \begin{gather*} f'(x)=lim_{h\to0}\frac{f(x+h)-f(x)}{h} =lim_{h\to0}\frac{(a (x+h)+b)-(a x+b)}{h}\\ =lim_{h\to0}\frac{(a x+a h+b)-(a x+b)}{h}\\ =lim_{h\to0}\frac{ah}{h} =lim_{h\to0}a=a. \end{gather*}

    The last step is justified by noting that as h gets very small the value of a simply stays a.

    We want to look at a quadratic function, since we will need to take a limit in that case.

    Example 4.1.5: A Quadratic Derivative.

    From the formal definition of derivative, if \(f(x)=a x^2\text{,}\) then show \(f'(x)=2 a x\text{.}\)

    Solution

    Using our definition:

    \begin{gather*} f'(x)=lim_{h\to0}\frac{f(x+h)-f(x)}{h} =lim_{h\to0}\frac{(a (x+h)^2)-(a x^2)}{h}\\ =lim_{h\to0}\frac{(a x^2+2 a h x +a h^2)-(a x^2)}{h}\\ =lim_{h\to0}\frac{2 a h x +a h^2}{h} =lim_{h\to0}(2ax+h)=2ax. \end{gather*}

    The last step is justified by noting that as h gets very small the value of a h also gets very small.

    We can modify this last example to find a formula for the derivative of \(f(x)=x^n\) for any positive integer \(n\text{.}\) We recall that

    \((x+h)^n=x^n+n x^{(n-1)}h+terms\ involving\ h^2.\)

    We are ready to generalize.

    Example 4.1.6: Derivative of Power Function.

    From the formal definition of derivative, if \(f(x)=a x^n\text{,}\) then show \(f'(x)=n a x^{(n-1)}\text{.}\)

    Solution

    Using our definition:

    \begin{gather*} f'(x)=lim_{h\to0}\frac{f(x+h)-f(x)}{h} =lim_{h\to0}\frac{(a (x+h)^n)-(a x^n)}{h}\\ =lim_{h\to0}\frac{(a (x^n+n x^{n-1}h +terms\ involving \ h^2)-(a x^n)}{h}\\ =lim_{h\to0}\frac{(a (n x^{n-1}h +terms\ involving \ h^2)}{h}\\ =lim_{h\to0}(a (n x^{n-1} +terms\ involving \ h)=anx^{n-1}. \end{gather*}

    The last step is justified by noting that as h gets very small the value of h times a polynomial in h also gets very small.

    Derivatives of Exponential Functions

    Claim \(4.1.7\). Exponential Rule.

    If \(f(x)=a*e^x\text{,}\) then \(f'(x)=a*e^x\text{.}\)

    The elegance of this rule is part of the reason why mathematicians and math books like base \(e\) for exponential functions. However we more typically want to use exponential functions based on a rate of growth or decay.

    Claim \(4.1.8\). General Exponential Rule.

    If \(f(x)=b*a^x\text{,}\) then \(f'(x)=b*\ln(a)*a^x\text{.}\)

    Example 4.1.9: General Exponential Rule.

    Using the exponential rules of symbolic differentiation, find the derivatives of the following functions:

    1. \(\displaystyle f(x)=2 e^x\)
    2. \(\displaystyle g(x)=\pi e^x\)
    3. \(\displaystyle h(x)=7*2^x\)
    4. \(\displaystyle j(x)=5*(1.06)^x\)
    5. \(\displaystyle k(x)=9*(0.97)^x\)

    Solution

    Using our rule:

    1. \(\displaystyle \frac{d}{dx} f(x)= \frac{d}{dx} (2 e^x)=2 e^x.\)
    2. \(\displaystyle \frac{d}{dx} g(x)=\frac{d}{dx} (\pi e^x )=\pi e^x.\)
    3. \(\displaystyle \frac{d}{dx} h(x)=\frac{d}{dx} (7*2^x )=7*\ln(2)*2^x\)
    4. \(\displaystyle \frac{d}{dx} j(x)=\frac{d}{dx} (5*(1.06)^x) =5*\ln(1.06)*(1.06)^x \)
    5. \(\displaystyle \frac{d}{dx} k(x)=\frac{d}{dx} (9*(0.97)^x) =9*\ln(0.97)*(0.97)^x \)

    In some ways, the most convincing argument for these rules is to use Excel to plot the function, its numeric derivative and its symbolic derivative for a variety of values and see that the numeric and symbolic derivatives are the same up to rounding error. We would also like to make an argument from the formal definition of the derivative.

    Example 4.1.10: Justification of First Exponential Rule.

    From the formal definition of derivative show that if \(f(x)=e^x\text{,}\) then \(f'(x)=e^x\text{.}\)

    Solution

    Using our definition:

    \begin{gather*} f'(x)=lim_{h\to0}\frac{f(x+h)-f(x)}{h} =lim_{h\to0}\frac{e^{(x+h)}-e^x}{h}\\ =lim_{h\to0}\frac{e^x(e^h-1)}{h} =e^x\left(lim_{h\to0}\frac{e^h-1}{h}\right) \end{gather*}

    .

    It suffices to show that \(\left(lim_{h\to0}\frac{e^h-1}{h}\right) =1\text{.}\) This can be done by starting with a formal definition of \(e\text{.}\) For this class it can also be done by using Excel to evaluate the expression for smaller and smaller values of h.

    clipboard_e176ab5e91910650f666b3ea188ec96c6.png

    It seems clear that \(\left(lim_{h\to0}\frac{e^h-1}{h}\right) =1\text{.}\)

    Example \(4.1.11.\) Justification of Second Exponential Rule.

    From the formal definition of derivative, if \(f(x)=a^x\text{,}\) then show \(f'(x)=\ln(a)*a^x\text{.}\)

    Solution

    We start by mimicking the last problem. At a key step we will recall that \(a^x=e^{x \ln(a)}\text{.}\) We also want to note that \(\left(lim_{h\ln(a) \to0}\frac{e^{h\ln(a)}-1}{h\ln(a)}\right) = \left(lim_{h\to0}\frac{e^h-1}{h}\right) =1\text{.}\)

    Using our definition:

    \begin{gather*} f'(x)=lim_{h\to0}\frac{f(x+h)-f(x)}{h} =lim_{h\to0}\frac{a^{(x+h)}-a^x}{h}\\ =lim_{h\to0}\frac{a^x(a^h-1)}{h} =(a^x)\left(lim_{h\to0}\frac{a^h-1}{h}\right)\\ =(a^x)\left(lim_{h\to0}(\ln(a))\frac{e^{h\ln(a)}-1}{h\ln(a)}\right)\\ =(a^x\ln(a))\left(lim_{h\ln(a)\to0}\frac{e^{h\ln(a)}-1}{h\ln(a)}\right)\\ =(a^x\ln(a))\left(lim_{h\to0}\frac{e^{h}-1}{h}\right) =a^x\ln(a) \end{gather*}

    .

    We are most likely to see exponential functions in the context of continuously compounding interest.

    Example 4.1.12: Computing Future Rate of Change.

    If I have a dollar in the bank at an effective annual interest rate of 6%, compounded continuously, at what rate is the principal increasing after to years,

    Solution

    We know \(f(x)=(1.06)^x\text{.}\) Thus \(f'(x)=\ln(1.06)(1.06)^x\text{.}\) We evaluate this at 10 years and get \(f'(10)=\ln(1.06)(1.06)^{10}=.10435074\text{.}\) Thus after 10 years, I am earning a little more than 10 cents a year.

    Derivatives of Logarithmic Functions

    For a last rule for this section we want to find the derivative of \(f(x)=a \ln(x)\)

    Claim \(4.1.13\). Logarithmic Rule.

    If \(f(x)=a \ln(x)\text{,}\) then \(f'(x)=a/x\text{.}\)

    Example 4.1.14: Derivatives of Logarithmic Functions.

    Using the logarithmic rule of symbolic differentiation, find the derivatives of the following functions:

    1. \(\displaystyle f(x)=2 \ln(x)\)
    2. \(\displaystyle g(x)=3 \ln(x^2)\)
    3. \(\displaystyle h(x)=5 \ln(1/x)\)

    Solution

    Using our rule:

    1. \(\displaystyle \frac{d}{dx} f(x)= \frac{d}{dx} (2 \ln(x))=2/x.\)
    2. \(\displaystyle \frac{d}{dx} g(x)=\frac{d}{dx} (3 \ln(x^2))= \frac{d}{dx} (3*2\ln(x))=6/x.\)
    3. \(\displaystyle \frac{d}{dx} h(x)=\frac{d}{dx} (5 \ln(1/x))= \frac{d}{dx} (-1*5\ln(x))=-5/x.\)

    Our argument for this derivative rule will be more geometric.

    Example 4.1.15: Justification of Logarithmic Rule.

    If \(f(x)=\ln(x)\text{,}\) then show \(f'(x)=1/x\text{.}\)

    Solution

    We start by noticing that \(y=e^x\) and \(y=\ln(x)\) are inverse functions. That means their graphs can be obtained by reflecting across the line \(y=x\text{.}\)

    clipboard_ed44bc11581f7b13f12c6f89c5279e08e.png

    The slope of the tangent line at \((a,e^a)\) is \(e^a\) by the exponential rule. Symmetry tells us the slope of the line tangent to \(y=\ln(x)\) at \((e^a,a)\) is \(1⁄e^a\text{.}\) Letting \(b=e^a\text{,}\) the slope of the line tangent to \(y=\ln(x)\) at \((b,\ln(b))\) is \(1⁄b\text{.}\) Thus \(\frac{d}{dx}(\ln(x))=1/x\text{.}\)

    Example 4.1.16: Slope of a Tangent Line.

    Find the slope of the line tangent to \(y=\ln(x)\) at \(x=10\text{.}\) Compare your answer to the estimate given by the approximation techniques of the last chapter.

    Solution

    Since \(f(x)=\ln(x)\text{,}\) \(f'(10) =1/10=.1\text{.}\) When I use Excel to compute \((f(10.001)-f(9.999))/.002\) I get \(0.1000000003\text{.}\)

    Exercises: Elementary Derivatives Problems

    class="

    For exercises 1-12, use the symbolic rules to find the derivative of the function.

    Exercise 1:

    \(f(x)=x^5\text{.}\)

    Answer

    \[ f(x)=5x^4 \nonumber \]

    Exercise 2:

    \(g(x)=7/x^3\text{.}\)

    Exercise 3:

    \(h(x)=3\sqrt{(x^7)}\text{.}\)

    Answer

    Rewrite \(h(x)=3x^{7/2}\text{.}\)

    \[ h'(x)=\frac{21}{2}(x^{5/2}) \nonumber \]

    Exercise 4:

    \(f(x)=2x^{\pi}\text{.}\)

    Exercise 5:

    \(k(x)=17\text{.}\)

    Answer

    \[ k'(x)=0 \nonumber \]

    Exercise 6:

    \(m(x)=9x^{-5}\text{.}\)

    Exercise 7:

    \(f(x)=x^2 \sqrt{x}\text{.}\)

    Answer

    Rewrite \(f(x)=x^{5/2}\text{.}\)

    \[ f'(x)=\frac{5}{2}x^{3/2} \text{.} \nonumber \]

    Exercise 8:

    \(g(x)=\ln(x)\text{.}\)

    Exercise 9:

    \(h(x)=e^x\text{.}\)

    Answer

    \[ h'(x)=e^x \nonumber \]

    Exercise 10:

    \(k(x)=5^x\text{.}\)

    Exercise 11:

    \(m(x)=1.03^x\text{.}\)

    Answer

    \[ m'(x)=1.03^x\ln(1.03) \nonumber \]

    Exercise 12:

    \(n(x)=(0.9)^x\text{.}\)

    For exercises 13-18, use the symbolic rules to find the derivative at the specified point. Use Excel to find the numeric approximation using the “calculator formula.” To how many digits do the two methods agree?

    Exercise 13:

    \(f(x)=x^2\text{.}\) Evaluate at \(x=2\text{.}\)

    Answer

    \(f'(x)=2x\text{,}\) so \(f'(2)=4\text{.}\) The numeric derivative agrees to 12 decimal digits.

    Exercise 14:

    \(g(x)=5x\text{.}\) Evaluate at \(x=7\text{.}\)

    Exercise 15:

    \(h(x)=1.06^x\text{.}\) Evaluate at \(x=10\text{.}\)

    Answer

    \(h'(x)=\ln(1.06)(1.06)^x\text{.}\) So \(h'(10)=\ln(1.06)(1.06)^{10}\ (\approx 0.104)\text{.}\) The numeric derivative agrees to 10 decimal digits.

    Exercise 16:

    \(f(x)=e^x\text{.}\) Evaluate at \(x=5\text{.}\)

    Exercise 17:

    \(k(x)=\ln(x)\text{.}\) Evaluate at \(x=100\text{.}\)

    Answer

    \(k'(x)=1/x\text{.}\) So \(k'(100)=0.01\text{.}\) The numeric derivative agrees to 13 decimal digits.

    Exercise 18:

    \(m(x)=3/x\text{.}\) Evaluate at \(x=\pi\text{.}\)

    Find tangent lines to the given curves at the indicated points.

    Exercise 19:

    \(f(x)=3x^4\text{.}\) At \(x=1\text{.}\)

    Answer

    We need a point: if \(x =1\) then \(y=f(1)=3\text{.}\)

    We need a slope: \(f'(x)=12 x^3\text{.}\) Hence \(m=f'(1)=12\text{.}\)

    Find the line: \(y-y_0=m(x-x_0 )\text{,}\) so \(y-3=12(x-1)\text{,}\)

    Comments

    • We can rewrite the tangent line as \(y=12x-9\)
    • We could have used the slope intercept version of the line to solve the problem as well. Then \(y=mx-b\text{.}\) We know \(m = 12\text{,}\) and we can solve for \(b\) by letting \(x = 1\) and \(y = 3\text{.}\)
    Exercise 20:

    \(g(x)=a x\text{.}\) At \(x=b\text{.}\)

    Exercise 21:

    \(h(x)=1.05^x\text{.}\) At \(x=20\text{.}\)

    Answer

    We need a point: if \(x =20\) then \(y=h(20)=(1.05)^20\approx 2.6533\text{.}\)

    We need a slope: \(h'(x)=\ln(1.05) (1.05)^x\text{.}\)

    Hence \(m=\ln(1.05) (1.05)^{20}=0.12945\)

    Find the line: \(y-y_0=m(x-x_0 )\text{,}\) so \(y-2.6533=0.12945(x-20)\text{.}\)

    Exercise 22:

    \(f(x)=e^x\text{.}\) At \(x=1\text{.}\)


    This page titled 4.1: Elementary Derivatives is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Mike May, S.J. & Anneke Bart via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.