Skip to main content

Lecture 1: Functions and Derivatives

Note: The lecture notes here are from Session 2022/2023.

Download the original PDF →


1.1 Functions and Derivatives​

1.1.1 Limit of a Function​

Why should we learn limits?​

  • Limits are needed to define differential calculus. Every application of differential equation assumes that the limits defining the terms in the equations exist.
  • Limits are needed in integral calculus because an integral is defined over a range of variables, and this form the limits in the integrations.
  • Limits are needed in many real-life calculations, e.g. calculation of continuously compounded interest, margin of error, half-life of drugs, or in any calculation where the rate of change is important. This is because the rate of change is the derivative of a representative function, and the derivative (differentiation) are built on the foundation concept of a limit.

What is limit in calculus?​

  • In mathematics, a limit is the value that a function or sequence "approaches" as the input or index approaches some value. Limits are essential to calculus and mathematical analysis, and are used to define continuity, derivatives, and integrals.

Suppose that the function f(x)f(x) is defined for all values of xx near aa, but not necessarily at aa. As xx approaches aa (without attaining the value aa), f(x)f(x) approaches the number LL. Then we can say that LL is the limit of f(x)f(x) as xx approaches aa, and write

lim⁡x→af(x)=L\lim_{x \to a} f(x) = L

Figure 1: the limit of f(x) as x approaches a

Figure 1

A function ff has limit LL as xx approaches aa if and only if f(x)f(x) has both a left and a right limit as xx approaches aa and these one-sided limits both equal LL. That is:

lim⁡x→af(x)=L  ⟺  lim⁡x→a+f(x)=lim⁡x→a−f(x)=L\lim_{x \to a} f(x) = L \iff \lim_{x \to a^+} f(x) = \lim_{x \to a^-} f(x) = L
  • Note that, using the formal definition, there is no need to evaluate f(a)f(a); indeed, f(a)f(a) may or may not equal LL. The limiting value of ff as x→ax \to a depends only on nearby values!

1.1.2 Limit Laws​

We now look at the limit laws which define the individual properties of limits. Suppose that CC is a constant and the limits lim⁡x→af(x)\lim_{x \to a} f(x) and lim⁡x→ag(x)\lim_{x \to a} g(x) exist. Then

Limit LawLimit Law in symbols
Sum lawlim⁡x→a[f(x)+g(x)]=lim⁡x→af(x)+lim⁡x→ag(x)\displaystyle \lim_{x \to a}[f(x) + g(x)] = \lim_{x \to a} f(x) + \lim_{x \to a} g(x)
Difference lawlim⁡x→a[f(x)−g(x)]=lim⁡x→af(x)−lim⁡x→ag(x)\displaystyle \lim_{x \to a}[f(x) - g(x)] = \lim_{x \to a} f(x) - \lim_{x \to a} g(x)
Constant multiple lawlim⁡x→acf(x)=clim⁡x→af(x)\displaystyle \lim_{x \to a} cf(x) = c\lim_{x \to a} f(x)
Product lawlim⁡x→a[f(x)g(x)]=lim⁡x→af(x)⋅lim⁡x→ag(x)\displaystyle \lim_{x \to a}[f(x)g(x)] = \lim_{x \to a} f(x) \cdot \lim_{x \to a} g(x)
Quotient lawlim⁡x→af(x)g(x)=lim⁡x→af(x)lim⁡x→ag(x)if lim⁡x→ag(x)≠0\displaystyle \lim_{x \to a}\frac{f(x)}{g(x)} = \frac{\lim_{x \to a} f(x)}{\lim_{x \to a} g(x)} \quad \text{if } \lim_{x \to a} g(x) \neq 0
Power lawlim⁡x→a[f(x)]n=[lim⁡x→af(x)]n\displaystyle \lim_{x \to a}[f(x)]^n = \left[\lim_{x \to a} f(x)\right]^n

Questions:

  1. What is limit of a constant function?

    Solution

    lim⁡x→ac=c\lim_{x \to a} c = c

  2. What is the limit of a linear function?

    Solution

    lim⁡x→ax=a\lim_{x \to a} x = a

1.1.3 Evaluate Limit of a Function​

If the function (be it linear, polynomial or rational function) is continuous at x=ax = a, we can use "direct substitution" to evaluate a limit.

Example 1.1.1​

Evaluate lim⁡x→3(2x+5)\displaystyle \lim_{x \to 3}(2x+5).

Solution

lim⁡x→3(2x+5)=lim⁡x→3(2x)+lim⁡x→3(5)=2lim⁡x→3(x)+lim⁡x→3(5)=2(3)+5=11\lim_{x \to 3}(2x+5) = \lim_{x \to 3}(2x) + \lim_{x \to 3}(5) = 2\lim_{x \to 3}(x) + \lim_{x \to 3}(5) = 2(3) + 5 = 11

Example 1.1.2​

Evaluate lim⁡x→3(5x2)\displaystyle \lim_{x \to 3}(5x^2).

Solution

lim⁡x→3(5x2)=5lim⁡x→3(x2)=5(3)2=45\lim_{x \to 3}(5x^2) = 5\lim_{x \to 3}(x^2) = 5(3)^2 = 45

Example 1.1.3​

Evaluate lim⁡x→−2x2+8x−20x−2\displaystyle \lim_{x \to -2}\frac{x^2+8x-20}{x-2}.

Solution
lim⁡x→−2x2+8x−20x−2=(−2)2+8(−2)−20(−2)−2=4−16−20−4=−32−4=8\begin{aligned} \lim_{x \to -2}\frac{x^2+8x-20}{x-2} &= \frac{(-2)^2 + 8(-2) - 20}{(-2) - 2} \\ &= \frac{4-16-20}{-4} = \frac{-32}{-4} = 8 \end{aligned}

As we have seen, we may easily evaluate the limits of polynomials and limits of some (but not all) rational functions by direct substitution. However, it is certainly possible for lim⁡x→af(x)\lim_{x \to a} f(x) to exist when f(a)f(a) is undefined, i.e. ff is discontinuous at aa. For example:

Figure 2

Figure 2

If for all x≠ax \neq a, f(x)=g(x)f(x) = g(x) over some open interval containing aa, then lim⁡x→af(x)=lim⁡x→ag(x)\lim_{x \to a} f(x) = \lim_{x \to a} g(x). Usually, we can evaluate the limit by factoring or by rationalizing.

Example 1.1.4: Evaluate by factoring​

Evaluate lim⁡x→1x2−1x−1\displaystyle \lim_{x \to 1}\frac{x^2-1}{x-1}.

Solution

lim⁡x→1x2−1x−1=lim⁡x→1(x−1)(x+1)x−1=lim⁡x→1(x+1)=1+1=2\lim_{x \to 1}\frac{x^2-1}{x-1} = \lim_{x \to 1}\frac{(x-1)(x+1)}{x-1} = \lim_{x \to 1}(x+1) = 1+1 = 2

Example 1.1.5: Evaluate by rationalizing​

Evaluate lim⁡t→0t2+9−3t2\displaystyle \lim_{t \to 0}\frac{\sqrt{t^2+9}-3}{t^2}.

Solution
lim⁡t→0t2+9−3t2=lim⁡t→0t2+9−3t2×t2+9+3t2+9+3=lim⁡t→0(t2+9)−9t2(t2+9+3)=lim⁡t→01t2+9+3=1(0)2+9+3=16\begin{aligned} \lim_{t \to 0}\frac{\sqrt{t^2+9}-3}{t^2} &= \lim_{t \to 0}\frac{\sqrt{t^2+9}-3}{t^2} \times \frac{\sqrt{t^2+9}+3}{\sqrt{t^2+9}+3} \\ &= \lim_{t \to 0}\frac{(t^2+9)-9}{t^2\left(\sqrt{t^2+9}+3\right)} \\ &= \lim_{t \to 0}\frac{1}{\sqrt{t^2+9}+3} \\ &= \frac{1}{\sqrt{(0)^2+9}+3} = \frac{1}{6} \end{aligned}

Example 1.1.6​

Find lim⁡x→4x−2x−4\displaystyle \lim_{x \to 4}\frac{\sqrt{x}-2}{x-4}.

Solution
lim⁡x→4x−2x−4=lim⁡x→4x−2(x)2−22=lim⁡x→4x−2(x+2)(x−2)=lim⁡x→41x+2=14+2=14\lim_{x \to 4}\frac{\sqrt{x}-2}{x-4} = \lim_{x \to 4}\frac{\sqrt{x}-2}{(\sqrt{x})^2-2^2} = \lim_{x \to 4}\frac{\sqrt{x}-2}{(\sqrt{x}+2)(\sqrt{x}-2)} = \lim_{x \to 4}\frac{1}{\sqrt{x}+2} = \frac{1}{\sqrt{4}+2} = \frac{1}{4}

Note: This problem can also be solved by rationalizing, please try on your own.

Example 1.1.7​

Find lim⁡x→2x+7−3x+2−2\displaystyle \lim_{x \to 2}\frac{\sqrt{x+7}-3}{\sqrt{x+2}-2}.

Solution
lim⁡x→2x+7−3x+2−2=lim⁡x→2x+7−3x+2−2×x+2+2x+2+2×x+7+3x+7+3=lim⁡x→2(x−2)(x+2+2)(x−2)(x+7+3)=2+2+22+7+3=46=23\begin{aligned} \lim_{x \to 2}\frac{\sqrt{x+7}-3}{\sqrt{x+2}-2} &= \lim_{x \to 2}\frac{\sqrt{x+7}-3}{\sqrt{x+2}-2} \times \frac{\sqrt{x+2}+2}{\sqrt{x+2}+2} \times \frac{\sqrt{x+7}+3}{\sqrt{x+7}+3} \\ &= \lim_{x \to 2}\frac{(x-2)\left(\sqrt{x+2}+2\right)}{(x-2)\left(\sqrt{x+7}+3\right)} \\ &= \frac{\sqrt{2+2}+2}{\sqrt{2+7}+3} = \frac{4}{6} = \frac{2}{3} \end{aligned}

1.1.4 Limit for Trigonometric Function​

We can replace a limit problem with another that may be simpler to solve. L'Hospital's Rule tells us that if we have an indeterminate form 0/00/0 or ∞/∞\infty/\infty, all we need to do is differentiate the numerator and differentiate the denominator and then take the limit.

Suppose that we have one of the following cases,

lim⁡x→af(x)g(x)=00orlim⁡x→af(x)g(x)=±∞±∞\lim_{x \to a}\frac{f(x)}{g(x)} = \frac{0}{0} \quad \text{or} \quad \lim_{x \to a}\frac{f(x)}{g(x)} = \frac{\pm\infty}{\pm\infty}

where aa can be any real number, infinity or negative infinity. In these cases, we have

lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)according to L’Hospital’s Rule\lim_{x \to a}\frac{f(x)}{g(x)} = \lim_{x \to a}\frac{f'(x)}{g'(x)} \qquad \text{according to L'Hospital's Rule}

For example, evaluate lim⁡θ→0(sin⁡θθ)\displaystyle \lim_{\theta \to 0}\left(\frac{\sin\theta}{\theta}\right). We can see that this is a 0/00/0 indeterminate form so let's just apply L'Hospital's Rule:

lim⁡θ→0(sin⁡θθ)=lim⁡θ→0(sin⁡θ)′θ′=lim⁡θ→0(cos⁡θ1)=11=1\lim_{\theta \to 0}\left(\frac{\sin\theta}{\theta}\right) = \lim_{\theta \to 0}\frac{(\sin\theta)'}{\theta'} = \lim_{\theta \to 0}\left(\frac{\cos\theta}{1}\right) = \frac{1}{1} = 1

lim⁡θ→0(sin⁡θθ)=1\displaystyle \lim_{\theta \to 0}\left(\frac{\sin\theta}{\theta}\right) = 1 plays an important role in solving for other trigonometric limits.

lim⁡x→0cos⁡x=1andlim⁡θ→0(sin⁡θθ)=1=lim⁡θ→0(θsin⁡θ)\lim_{x \to 0}\cos x = 1 \qquad \text{and} \qquad \lim_{\theta \to 0}\left(\frac{\sin\theta}{\theta}\right) = 1 = \lim_{\theta \to 0}\left(\frac{\theta}{\sin\theta}\right)

Example 1.1.8​

Find lim⁡x→0(sin⁡3x4x)\displaystyle \lim_{x \to 0}\left(\frac{\sin 3x}{4x}\right).

Solution
lim⁡x→0(sin⁡3x4x)=lim⁡x→0(sin⁡3x3x)×3x(sin⁡4x4x)×4x=lim⁡x→034=34\begin{aligned} \lim_{x \to 0}\left(\frac{\sin 3x}{4x}\right) = \lim_{x \to 0}\frac{\left(\frac{\sin 3x}{3x}\right) \times 3x}{\left(\frac{\sin 4x}{4x}\right) \times 4x} = \lim_{x \to 0}\frac{3}{4} = \frac{3}{4} \end{aligned}

Alternatively, use L'Hospital's Rule:

lim⁡x→0(sin⁡3x4x)=lim⁡x→0(sin⁡3x)′(4x)′=lim⁡x→03cos⁡3x4=3cos⁡(0)4=34\lim_{x \to 0}\left(\frac{\sin 3x}{4x}\right) = \lim_{x \to 0}\frac{(\sin 3x)'}{(4x)'} = \lim_{x \to 0}\frac{3\cos 3x}{4} = \frac{3\cos(0)}{4} = \frac{3}{4}

Example 1.1.9​

Find lim⁡x→0xcot⁡(2x)\displaystyle \lim_{x \to 0} x\cot(2x).

Solution
lim⁡x→0xcot⁡(2x)=lim⁡x→0xcos⁡2xsin⁡2x=lim⁡x→0xcos⁡2xsin⁡2x×22=lim⁡x→012cos⁡2x=12cos⁡0=12\begin{aligned} \lim_{x \to 0} x\cot(2x) &= \lim_{x \to 0}\frac{x\cos 2x}{\sin 2x} \\ &= \lim_{x \to 0}\frac{x\cos 2x}{\sin 2x} \times \frac{2}{2} \\ &= \lim_{x \to 0}\frac{1}{2}\cos 2x = \frac{1}{2}\cos 0 = \frac{1}{2} \end{aligned}

1.1.5 Continuity of Functions​

Below shows several continuous functions (Figure 3). These functions are said to be continuous since their graphs have no "breaks", "gaps" or "holes".

Figure 3: Continuous functions

Figure 3: Continuous functions

The graph of discontinuous function has breaks, gaps or points at which the function is undefined. For example, the function below (Figure 4) is undefined at x=2x=2, i.e. the graph has a hole at x=2x=2 and therefore is said to be discontinuous.

Figure 4: Discontinuous function with a gap at x=2

Figure 4: Discontinuous function with a gap at x=2.

A discontinuous function may also have different left- and right-hand limits as shown by Figure 5, therefore the limit at x=3x=3 does not exist.

Figure 5: A discontinuous function with different left- and right-hand limits

Figure 5: A discontinuous function with different left- and right-hand limits.

In other cases (Figure 6), the limits of the function at x=2x=2 exist but is not equal to the value of the function at x=2x=2. This function is also discontinuous.

Figure 6: A discontinuous function where the limit at x=2 exists but is not equal to the value of the function

Figure 6: A discontinuous function where the limit at x=2 exists but is not equal to the value of the function at x=2.

Figure 7 shows a function whereby the limits of the function at x=3x=3 does not exist since the function either increases or decreases indefinitely at both sides of x=3x=3. This is also a discontinuous function.

Figure 7: The limit at x=3 does not exist

Figure 7: The limit at x=3 does not exist, as the function increases or decreases indefinitely on either side of x=3.

Taking into consideration all the information gathered from the examples of continuous and discontinuous functions shown above, we define a continuous function as follows.

Function ff is continuous at a point aa if the following conditions are satisfied:

  1. f(a)f(a) is defined
  2. lim⁡x→af(x)\displaystyle \lim_{x \to a} f(x) exists
  3. lim⁡x→af(x)=f(a)\displaystyle \lim_{x \to a} f(x) = f(a)

1.1.6 Derivatives: Basic Ideas and Definitions​

The computation of the slope of a tangent line, the instantaneous rate of change of a function, and the instantaneous velocity of an object at x=ax = a all required us to compute the following limit:

lim⁡x→af(x)−f(a)x−a(1)\lim_{x \to a}\frac{f(x)-f(a)}{x-a} \qquad (1)

We also saw that with a small change of notation this limit could also be written as,

lim⁡h→0f(a+h)−f(a)h(2)\lim_{h \to 0}\frac{f(a+h)-f(a)}{h} \qquad (2)

This is such an important limit, and it arises in so many places that we give it a name. We call it a derivative, which tells us the slope or rate of change of a function at any point. Here is the official definition of the derivative:

The derivative of f(x)f(x) with respect to xx is the function f′(x)f'(x) and is defined as,

f′(x)=lim⁡h→0f(x+h)−f(x)h(3)f'(x) = \lim_{h \to 0}\frac{f(x+h)-f(x)}{h} \qquad (3)

Note that we replaced all the aa's in (1) with xx's to acknowledge the fact that the derivative is really a function as well. We often "read" f′(x)f'(x) as "f prime of x".

Example 1.1.10​

Find the derivative of the following function using the definition of the derivative.

f(x)=2x2−16x+35f(x) = 2x^2 - 16x + 35

Solution

All we really need to do is to plug this function into the definition of the derivative, (3), and do some algebra.

f′(x)=lim⁡h→0f(x+h)−f(x)h=lim⁡h→02(x+h)2−16(x+h)+35−(2x2−16x+35)h=lim⁡h→02x2+4xh+2h2−16x−16h+35−2x2+16x−35h=lim⁡h→0h(4x+2h−16)h=lim⁡h→0(4x+2h−16)=4x−16\begin{aligned} f'(x) &= \lim_{h \to 0}\frac{f(x+h)-f(x)}{h} \\ &= \lim_{h \to 0}\frac{2(x+h)^2 - 16(x+h) + 35 - (2x^2 - 16x + 35)}{h} \\ &= \lim_{h \to 0}\frac{2x^2 + 4xh + 2h^2 - 16x - 16h + 35 - 2x^2 + 16x - 35}{h} \\ &= \lim_{h \to 0}\frac{h(4x + 2h - 16)}{h} \\ &= \lim_{h \to 0}(4x + 2h - 16) \\ &= 4x - 16 \end{aligned}

1.1.7 Rules of Differentiations​

Here are useful rules to help you work out the derivatives of many functions. Note: the little mark ′' means derivative of, and ff and gg are functions.

Common FunctionsFunctionDerivative
Constantcc00
Linexx11
Lineaxaxaa
Squarex2x^22x2x
Square Rootx\sqrt{x}(12)x−1/2\left(\tfrac{1}{2}\right)x^{-1/2}
Exponentialexe^xexe^x
Exponentialaxa^xln⁡(a) ax\ln(a)\,a^x
Logarithmsln⁡(x)\ln(x)1/x1/x
Logarithmslog⁡a(x)\log_a(x)1/(xln⁡(a))1/(x\ln(a))
Trigonometry (xx is in radians)sin⁡(x)\sin(x)cos⁡(x)\cos(x)
Trigonometry (xx is in radians)cos⁡(x)\cos(x)−sin⁡(x)-\sin(x)
Trigonometry (xx is in radians)tan⁡(x)\tan(x)sec⁡2(x)\sec^2(x)
Inverse Trigonometrysin⁡−1(x)\sin^{-1}(x)1/1−x21/\sqrt{1-x^2}
Inverse Trigonometrycos⁡−1(x)\cos^{-1}(x)−1/1−x2-1/\sqrt{1-x^2}
Inverse Trigonometrytan⁡−1(x)\tan^{-1}(x)1/(1+x2)1/(1+x^2)
RulesFunctionDerivative
Multiplication by constantcfcfcf′cf'
Power Rulexnx^nnxn−1nx^{n-1}
Sum Rulef+gf+gf′+g′f' + g'
Difference Rulef−gf-gf′−g′f' - g'
Product Rulefgfgfg′+f′gfg' + f'g
Quotient Rulef/gf/gf′g−g′fg2\dfrac{f'g - g'f}{g^2}
Reciprocal Rule1/f1/f−f′/f2-f'/f^2

"The derivative of" is also written ddx\dfrac{d}{dx}.

So ddxsin⁡(x)\dfrac{d}{dx}\sin(x) and sin⁡(x)′\sin(x)' both mean "The derivative of sin⁡(x)\sin(x)".

1.1.8 Chain Rule​

A function is composite if you can write it as f(g(x))f(g(x)). In other words, it is a function within a function.

For example, cos⁡(x2)\cos(x^2) is composite, because if we let f(x)=cos⁡(x)f(x) = \cos(x) and g(x)=x2g(x) = x^2, then cos⁡(x2)=f(g(x))\cos(x^2) = f(g(x)). gg is the function within ff, so we call gg the "inner" function and ff the "outer" function.

In calculus, the chain rule is a formula that expresses the derivative of a composite function (consisting of two differentiable functions ff and gg) in terms of the derivatives of ff and gg. In other words, we use chain rule to differentiate a composite function. The chain rule states that if h(x)=f(g(x))h(x) = f(g(x)),

h′(x)=f′(g(x))⋅g′(x)(Lagrange’s notation)h'(x) = f'(g(x)) \cdot g'(x) \qquad \text{(Lagrange's notation)}

Or

dhdx=dfdg⋅dgdx(Leibniz’s notation)\frac{dh}{dx} = \frac{df}{dg} \cdot \frac{dg}{dx} \qquad \text{(Leibniz's notation)}

Let's see how the chain rule is applied by differentiating h(x)=(5−6x)5h(x) = (5-6x)^5. Notice that hh is a composite function:

h(x)=(5−6x⏟inner)5⏞outerh(x) = \overbrace{\left(\underbrace{5-6x}_{\text{inner}}\right)^{5}}^{\text{outer}}

which can be expressed as g(x)=u=5−6xg(x) = u = 5-6x to represent the inner function and f(u)=u5f(u) = u^5 to represent the outer function. Because hh is a composite function, we can differentiate it using the chain rule. Before applying the rule, let's find the derivatives of the inner and outer functions:

g′(x)=−6f′(u)=5u4g'(x) = -6 \qquad f'(u) = 5u^4

Now let's apply chain rule:

h′(x)=f′(u)⋅g′(x)=5(5−6x)4⋅(−6)=−30(5−6x)4\begin{aligned} h'(x) &= f'(u) \cdot g'(x) \\ &= 5(5-6x)^4 \cdot (-6) \\ &= -30(5-6x)^4 \end{aligned}

Example 1.1.11​

Find F′(x)F'(x) if F(x)=x2+1F(x) = \sqrt{x^2+1}.

Solution

We can express FF as

F(x)=x2+1=f(g(x))wheref(u)=u  and  g(x)=u=x2+1F(x) = \sqrt{x^2+1} = f(g(x)) \quad \text{where} \quad f(u) = \sqrt{u} \ \text{ and } \ g(x) = u = x^2+1

Since

f′(u)=12u−1/2=12uandg′(x)=2xf'(u) = \frac{1}{2}u^{-1/2} = \frac{1}{2\sqrt{u}} \quad \text{and} \quad g'(x) = 2x

Therefore,

F′(x)=f′(g(x))⋅g′(x)=12u⋅2x=xx2+1F'(x) = f'(g(x)) \cdot g'(x) = \frac{1}{2\sqrt{u}} \cdot 2x = \frac{x}{\sqrt{x^2+1}}

Example 1.1.12​

Find f′(x)f'(x) if f(x)=1x2+x+13\displaystyle f(x) = \frac{1}{\sqrt[3]{x^2+x+1}}.

Solution
f(x)=(x2+x+1)−1/3f′(x)=−13(x2+x+1)−4/3 ddx(x2+x+1)=−13(x2+x+1)−4/3(2x+1)=−2x−13(x2+x+1)−4/3\begin{aligned} f(x) &= (x^2+x+1)^{-1/3} \\ f'(x) &= -\frac{1}{3}(x^2+x+1)^{-4/3}\,\frac{d}{dx}(x^2+x+1) \\ &= -\frac{1}{3}(x^2+x+1)^{-4/3}(2x+1) \\ &= \frac{-2x-1}{3}(x^2+x+1)^{-4/3} \end{aligned}

Example 1.1.13​

Find the derivative of a function g(t)=(t−22t+1)9\displaystyle g(t) = \left(\frac{t-2}{2t+1}\right)^9.

Solution
g′(t)=9(t−22t+1)8ddt(t−22t+1)=9(t−22t+1)8(1)(2t+1)−(t−2)(2)(2t+1)2=9(t−22t+1)85(2t+1)2=45(t−2)8(2t+1)10\begin{aligned} g'(t) &= 9\left(\frac{t-2}{2t+1}\right)^8 \frac{d}{dt}\left(\frac{t-2}{2t+1}\right) \\ &= 9\left(\frac{t-2}{2t+1}\right)^8 \frac{(1)(2t+1) - (t-2)(2)}{(2t+1)^2} \\ &= 9\left(\frac{t-2}{2t+1}\right)^8 \frac{5}{(2t+1)^2} \\ &= \frac{45(t-2)^8}{(2t+1)^{10}} \end{aligned}

1.1.9 Higher Derivatives​

We take derivatives of functions. Since the derivative of a function is itself a function, we can take the derivative again. A higher-order derivative refers to the repeated process of taking derivatives of derivatives. Higher-order derivatives are applied to sketch curves, motion problems, and other applications.

Notation for higher-order derivatives:

First DerivativeSecond DerivativeThird DerivativeFourth DerivativeFifth Derivative
Leibniz (expanded)dydx\dfrac{dy}{dx}ddx(dydx)\dfrac{d}{dx}\left(\dfrac{dy}{dx}\right)ddx(ddx(dydx))\dfrac{d}{dx}\left(\dfrac{d}{dx}\left(\dfrac{dy}{dx}\right)\right)ddx(ddx(ddx(dydx)))\dfrac{d}{dx}\left(\dfrac{d}{dx}\left(\dfrac{d}{dx}\left(\dfrac{dy}{dx}\right)\right)\right)ddx(ddx(ddx(ddx(dydx))))\dfrac{d}{dx}\left(\dfrac{d}{dx}\left(\dfrac{d}{dx}\left(\dfrac{d}{dx}\left(\dfrac{dy}{dx}\right)\right)\right)\right)
Leibnizdydx\dfrac{dy}{dx}d2ydx2\dfrac{d^2y}{dx^2}d3ydx3\dfrac{d^3y}{dx^3}d4ydx4\dfrac{d^4y}{dx^4}d5ydx5\dfrac{d^5y}{dx^5}
Primef′(x)f'(x)f′′(x)f''(x)f′′′(x)f'''(x)f(4)(x)f^{(4)}(x)f(5)(x)f^{(5)}(x)
EulerDxyD_xyDx2yD_x^2yDx3yD_x^3yDx4yD_x^4yDx5yD_x^5y
Newtony′y'y′′y''y′′′y'''y(4)y^{(4)}y(5)y^{(5)}

Example 1.1.14​

Find the third derivative of f(x)=2π26−x\displaystyle f(x) = \frac{2\pi^2}{6-x}.

Solution

Instead of using the quotient rule, we can simplify the function to

f(x)=2π2(6−x)−1f(x) = 2\pi^2(6-x)^{-1}

f′(x)=−2π2(6−x)−2(−1)=2π2(6−x)−2f′′(x)=−4π2(6−x)−3(−1)=4π2(6−x)−3f′′′(x)=−12π2(6−x)−4(−1)=12π2(6−x)−4\begin{aligned} f'(x) &= -2\pi^2(6-x)^{-2}(-1) = 2\pi^2(6-x)^{-2} \\ f''(x) &= -4\pi^2(6-x)^{-3}(-1) = 4\pi^2(6-x)^{-3} \\ f'''(x) &= -12\pi^2(6-x)^{-4}(-1) = 12\pi^2(6-x)^{-4} \end{aligned}

Example 1.1.15​

Find the first four derivatives of R(t)=3t2+8t1/2+etR(t) = 3t^2 + 8t^{1/2} + e^t.

Solution
R′(t)=6t+4t−1/2+etR′′(t)=6−2t−3/2+etR′′′(t)=3t−5/2+etR(4)(t)=−152t−7/2+et\begin{aligned} R'(t) &= 6t + 4t^{-1/2} + e^t \\ R''(t) &= 6 - 2t^{-3/2} + e^t \\ R'''(t) &= 3t^{-5/2} + e^t \\ R^{(4)}(t) &= -\frac{15}{2}t^{-7/2} + e^t \end{aligned}

Example 1.1.16​

Find f′′′(4)f'''(4) if f(x)=xf(x) = \sqrt{x}.

Solution
f(x)=x1/2f′(x)=12x−1/2f′′(x)=−14x−3/2f′′′(x)=38x−5/2\begin{aligned} f(x) &= x^{1/2} \\ f'(x) &= \frac{1}{2}x^{-1/2} \\ f''(x) &= -\frac{1}{4}x^{-3/2} \\ f'''(x) &= \frac{3}{8}x^{-5/2} \end{aligned}

Hence,

f′′′(4)=38(4)−5/2=38(132)=3256f'''(4) = \frac{3}{8}(4)^{-5/2} = \frac{3}{8}\left(\frac{1}{32}\right) = \frac{3}{256}

1.1.10 Derivatives of Inverse Trigonometric and Hyperbolic Functions​

The Inverse Trigonometric functions are also called arcus functions, cyclometric functions or anti-trigonometric functions. These functions are used to obtain angle for a given trigonometric value. Inverse trigonometric functions have various application in engineering, geometry, navigation etc.

Here are the derivatives of all six inverse trigonometric functions.

FunctionDerivative
sin⁡−1x\sin^{-1}x11−x2\dfrac{1}{\sqrt{1-x^2}}
cos⁡−1x\cos^{-1}x−11−x2-\dfrac{1}{\sqrt{1-x^2}}
tan⁡−1x\tan^{-1}x11+x2\dfrac{1}{1+x^2}
csc⁡−1x\csc^{-1}x−1∣x∣x2−1-\dfrac{1}{\lvert x\rvert\sqrt{x^2-1}}
sec⁡−1x\sec^{-1}x1∣x∣x2−1\dfrac{1}{\lvert x\rvert\sqrt{x^2-1}}
cot⁡−1x\cot^{-1}x−11+x2-\dfrac{1}{1+x^2}

Example 1.1.17​

Differentiate the function f(x)=sin⁡−1(x2−1)f(x) = \sin^{-1}(x^2-1).

Solution
f′(x)=11−(x2−1)2⋅ddx(x2−1)=11−(x4−2x2+1)⋅2x=2x2x2−x4f'(x) = \frac{1}{\sqrt{1-(x^2-1)^2}} \cdot \frac{d}{dx}(x^2-1) = \frac{1}{\sqrt{1-(x^4-2x^2+1)}} \cdot 2x = \frac{2x}{\sqrt{2x^2-x^4}}

Example 1.1.18​

Calculate the derivative of f(x)=tan⁡−1(x22)\displaystyle f(x) = \tan^{-1}\left(\frac{x^2}{2}\right).

Solution
f′(x)=11+(x22)2⋅ddx(x22)=11+(x22)2⋅2x2=x1+(x22)2=x1+x44f'(x) = \frac{1}{1+\left(\frac{x^2}{2}\right)^2} \cdot \frac{d}{dx}\left(\frac{x^2}{2}\right) = \frac{1}{1+\left(\frac{x^2}{2}\right)^2} \cdot \frac{2x}{2} = \frac{x}{1+\left(\frac{x^2}{2}\right)^2} = \frac{x}{1+\frac{x^4}{4}}

Example 1.1.19​

Calculate the derivative of f(x)=xsin⁡−1(3x)f(x) = x\sin^{-1}(3x).

Solution

ddxsin⁡−1(3x)=11−(3x)2⋅ddx(3x)=31−9x2\frac{d}{dx}\sin^{-1}(3x) = \frac{1}{\sqrt{1-(3x)^2}} \cdot \frac{d}{dx}(3x) = \frac{3}{\sqrt{1-9x^2}}

Hence,

f′(x)=ddx[xsin⁡−1(3x)]=x⋅31−9x2+(1)sin⁡−1(3x)=3x1−9x2+sin⁡−1(3x)f'(x) = \frac{d}{dx}\left[x\sin^{-1}(3x)\right] = x \cdot \frac{3}{\sqrt{1-9x^2}} + (1)\sin^{-1}(3x) = \frac{3x}{\sqrt{1-9x^2}} + \sin^{-1}(3x)

The derivatives of the hyperbolic functions are as following:

FunctionDerivative
sinh⁡x\sinh xcosh⁡x\cosh x
cosh⁡x\cosh xsinh⁡x\sinh x
tanh⁡x\tanh xsech⁡2x\operatorname{sech}^2 x
csch⁡x\operatorname{csch} x−csch⁡xcoth⁡x-\operatorname{csch} x \coth x
sech⁡x\operatorname{sech} x−sech⁡xtanh⁡x-\operatorname{sech} x \tanh x
coth⁡x\coth x−csch⁡2x-\operatorname{csch}^2 x

Example 1.1.20​

Differentiate ddxcosh⁡(x)\dfrac{d}{dx}\cosh(\sqrt{x}).

Solution

Any of the differentiation rule for the hyperbolic function can be combined with the chain rule. For instance,

ddxcosh⁡(x)=sinh⁡(x)⋅ddx(x)=sinh⁡(x)⋅12x−1/2=sinh⁡(x)2x\frac{d}{dx}\cosh(\sqrt{x}) = \sinh(\sqrt{x}) \cdot \frac{d}{dx}(\sqrt{x}) = \sinh(\sqrt{x}) \cdot \frac{1}{2}x^{-1/2} = \frac{\sinh(\sqrt{x})}{2\sqrt{x}}

Example 1.1.21​

If y=ecosh⁡3xy = e^{\cosh 3x}, find y′y'.

Solution

y′=ecosh⁡3xddxcosh⁡(3x)=ecosh⁡3x⋅sinh⁡(3x)⋅ddx(3x)=ecosh⁡3x⋅sinh⁡(3x)⋅3=3ecosh⁡3xsinh⁡(3x)y' = e^{\cosh 3x}\frac{d}{dx}\cosh(3x) = e^{\cosh 3x} \cdot \sinh(3x) \cdot \frac{d}{dx}(3x) = e^{\cosh 3x} \cdot \sinh(3x) \cdot 3 = 3e^{\cosh 3x}\sinh(3x)

Example 1.1.22​

If y=sinh⁡(cosh⁡x)y = \sinh(\cosh x), find y′y'.

Solution

y′=cosh⁡(cosh⁡x)⋅ddx(cosh⁡x)=cosh⁡(cosh⁡x)⋅sinh⁡(x)y' = \cosh(\cosh x) \cdot \frac{d}{dx}(\cosh x) = \cosh(\cosh x) \cdot \sinh(x)

The inverse hyperbolic functions are all differentiable because the hyperbolic functions are differentiable.

FunctionDerivative
sinh⁡−1x\sinh^{-1}x1x2+1\dfrac{1}{\sqrt{x^2+1}}
cosh⁡−1x\cosh^{-1}x1x2−1\dfrac{1}{\sqrt{x^2-1}}
tanh⁡−1x\tanh^{-1}x11−x2\dfrac{1}{1-x^2}
csch⁡−1x\operatorname{csch}^{-1}x−1∣x∣x2+1-\dfrac{1}{\lvert x\rvert\sqrt{x^2+1}}
sech⁡−1x\operatorname{sech}^{-1}x−1x1−x2-\dfrac{1}{x\sqrt{1-x^2}}
coth⁡−1x\coth^{-1}x11−x2\dfrac{1}{1-x^2}

Example 1.1.23​

Find the derivative of y=−8coth⁡−1(21x3)y = -8\coth^{-1}(21x^3).

Solution

y′=−8[11−(21x3)2]ddx(21x3)=−81−441x6⋅63x2=−504x21−441x6y' = -8\left[\frac{1}{1-(21x^3)^2}\right]\frac{d}{dx}(21x^3) = \frac{-8}{1-441x^6} \cdot 63x^2 = \frac{-504x^2}{1-441x^6}

1.1.11 Implicit Differentiation​

The functions that we have seen so far can be described by expressing one variable explicitly in terms of another variable, for example y=xy = x or y=xsin⁡xy = x\sin x.

Some functions, however, are defined implicitly by a relation between xx and yy such as

x2+y2=25orx3+y3=6xyx^2 + y^2 = 25 \qquad \text{or} \qquad x^3 + y^3 = 6xy

The function is not written as "y=y =" some expression. This type of function is called implicit function. To differentiate implicit functions, we differentiate each side of an equation with two variables (usually xx and yy) by treating one of the variables as a function of the other. Such differentiation is basically just a special kind of chain rule.

Let's differentiate x2+y2=1x^2 + y^2 = 1 for example. Here, we treat yy as an implicit function of xx.

x2+y2=1ddx(x2+y2)=ddx(1)ddx(x2)+ddx(y2)=02x+2y⋅dydx=0dydx=−xy\begin{aligned} x^2 + y^2 &= 1 \\ \frac{d}{dx}(x^2 + y^2) &= \frac{d}{dx}(1) \\ \frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) &= 0 \\ 2x + 2y \cdot \frac{dy}{dx} &= 0 \\ \frac{dy}{dx} &= -\frac{x}{y} \end{aligned}

Notice that the derivative of y2y^2 is 2y⋅dydx2y \cdot \dfrac{dy}{dx} and not simply 2y2y. This is because we treat yy as a function of xx.

Example 1.1.24​

Find y′y' if x3+y3=6xyx^3 + y^3 = 6xy, then find the tangent line to the curve at the point (3,3)(3,3).

Solution

Find y′y':

ddxx3+ddxy3=ddx6xy3x2+3y2y′=6x⋅1⋅y′+6⋅yx2+y2y′=2xy′+2yy2y′−2xy′=2y−x2(y2−2x)y′=2y−x2y′=2y−x2y2−2x\begin{aligned} \frac{d}{dx}x^3 + \frac{d}{dx}y^3 &= \frac{d}{dx}6xy \\ 3x^2 + 3y^2y' &= 6x \cdot 1 \cdot y' + 6 \cdot y \\ x^2 + y^2y' &= 2xy' + 2y \\ y^2y' - 2xy' &= 2y - x^2 \\ (y^2 - 2x)y' &= 2y - x^2 \\ y' &= \frac{2y - x^2}{y^2 - 2x} \end{aligned}

Find the tangent line to the curve at the point (3,3)(3,3):

y′=2y−x2y2−2x=2(3)−(3)232−2(3)=−33=−1(slope)y=mx+c3=−1(3)+cc=6\begin{aligned} y' &= \frac{2y-x^2}{y^2-2x} = \frac{2(3)-(3)^2}{3^2-2(3)} = -\frac{3}{3} = -1 \quad \text{(slope)} \\ y &= mx + c \\ 3 &= -1(3) + c \\ c &= 6 \end{aligned}

Hence, the tangent line is y=−x+6y = -x + 6.

Example 1.1.25​

Find y′y' if sin⁡(x+y)=y2cos⁡x\sin(x+y) = y^2\cos x.

Solution
ddxsin⁡(x+y)=ddx(y2cos⁡x)cos⁡(x+y)⋅ddx(x+y)=(2y⋅y′)cos⁡x+y2ddxcos⁡xcos⁡(x+y)(1+y′)=2yy′cos⁡x+y2(−sin⁡x)cos⁡(x+y)+cos⁡(x+y)y′=2yy′cos⁡x−y2sin⁡xcos⁡(x+y)y′−2y⋅y′cos⁡x=−y2sin⁡x−cos⁡(x+y)(cos⁡(x+y)−2ycos⁡x)y′=−y2sin⁡x−cos⁡(x+y)y′=−y2sin⁡x−cos⁡(x+y)cos⁡(x+y)−2ycos⁡x\begin{aligned} \frac{d}{dx}\sin(x+y) &= \frac{d}{dx}\left(y^2\cos x\right) \\ \cos(x+y) \cdot \frac{d}{dx}(x+y) &= (2y \cdot y')\cos x + y^2\frac{d}{dx}\cos x \\ \cos(x+y)(1+y') &= 2yy'\cos x + y^2(-\sin x) \\ \cos(x+y) + \cos(x+y)y' &= 2yy'\cos x - y^2\sin x \\ \cos(x+y)y' - 2y \cdot y'\cos x &= -y^2\sin x - \cos(x+y) \\ \left(\cos(x+y) - 2y\cos x\right)y' &= -y^2\sin x - \cos(x+y) \\ y' &= \frac{-y^2\sin x - \cos(x+y)}{\cos(x+y) - 2y\cos x} \end{aligned}

Example 1.1.26​

Find y′′y'' if x4+y4=16x^4 + y^4 = 16.

Solution
ddx(x4+y4)=ddx(16)4x3+4y3⋅y′=0y′=−4x34y3=−x3y3y′′=−3x2y3+3y2x3y′y6y′′=−3x2(y4+x4)y7\begin{aligned} \frac{d}{dx}(x^4 + y^4) &= \frac{d}{dx}(16) \\ 4x^3 + 4y^3 \cdot y' &= 0 \\ y' &= \frac{-4x^3}{4y^3} = -\frac{x^3}{y^3} \\ y'' &= \frac{-3x^2y^3 + 3y^2x^3y'}{y^6} \\ y'' &= \frac{-3x^2(y^4 + x^4)}{y^7} \end{aligned}

Example 1.1.27​

Use implicit differentiation to find an equation of the tangent line to the curve at point (1,1)(1,1).

x2+xy+y2=3x^2 + xy + y^2 = 3

Solution

Use implicit differentiation:

2x+xy′+y+2y⋅y′=0y′=−y−2xx+2y\begin{aligned} 2x + xy' + y + 2y \cdot y' &= 0 \\ y' &= \frac{-y-2x}{x+2y} \end{aligned}

Substitute (1,1)(1,1) into y′y':

y′=−1−2(1)1+2(1)=−1y' = \frac{-1-2(1)}{1+2(1)} = -1

Substitute into line equation:

y=mx+c1=−1(1)+cc=2\begin{aligned} y &= mx + c \\ 1 &= -1(1) + c \\ c &= 2 \end{aligned}

Hence, tangent line is y=−x+2y = -x + 2.

Example 1.1.28​

If xy+y3=1xy + y^3 = 1, find value of y′′y'' at the point where x=0x = 0.

Solution
xy′+y+3y2y′=0(x+3y2)y′=−yy′=−yx+3y2y′′=−y′(x+3y2)−(1+6yy′)(−y)(x+3y2)2=−y′(x+3y2)+y(1+6yy′)(x+3y2)2\begin{aligned} xy' + y + 3y^2y' &= 0 \\ (x + 3y^2)y' &= -y \\ y' &= -\frac{y}{x + 3y^2} \\ y'' &= \frac{-y'(x+3y^2) - (1 + 6yy')(-y)}{(x+3y^2)^2} = \frac{-y'(x+3y^2) + y(1 + 6yy')}{(x+3y^2)^2} \end{aligned}

At x=0x = 0: xy+y3=1  ⟹  (0)y+y3=1  ⟹  y=1xy + y^3 = 1 \implies (0)y + y^3 = 1 \implies y = 1.

y′=−yx+3y2  ⟹  y′=−10+3(1)2=−13y′′=−(−13)(0+3(1)2)+1(1+6(1)(−13))(0+3(1)2)2=0\begin{aligned} y' &= -\frac{y}{x+3y^2} \implies y' = -\frac{1}{0+3(1)^2} = -\frac{1}{3} \\ y'' &= \frac{-\left(-\frac{1}{3}\right)\left(0+3(1)^2\right) + 1\left(1 + 6(1)\left(-\frac{1}{3}\right)\right)}{\left(0+3(1)^2\right)^2} = 0 \end{aligned}

Example 1.1.29​

Assume that yy is a function of xx. Find y′=dy/dxy' = dy/dx for exy=e4x−e5ye^{xy} = e^{4x} - e^{5y}.

Solution
D(exy)=D(e4x−e5y)D(exy)=D(e4x)−D(e5y)exyD(xy)=e4xD(4x)−e5yD(5y)exy(x⋅y′+(1)y)=e4x(4)−e5y(5y′)xexyy′+yexy=4e4x−5y′e5yxexyy′+5y′e5y=4e4x−yexy(xexy+5e5y)y′=4e4x−yexyy′=4e4x−yexyxexy+5e5y\begin{aligned} D(e^{xy}) &= D(e^{4x} - e^{5y}) \\ D(e^{xy}) &= D(e^{4x}) - D(e^{5y}) \\ e^{xy}D(xy) &= e^{4x}D(4x) - e^{5y}D(5y) \\ e^{xy}(x \cdot y' + (1)y) &= e^{4x}(4) - e^{5y}(5y') \\ xe^{xy}y' + ye^{xy} &= 4e^{4x} - 5y'e^{5y} \\ xe^{xy}y' + 5y'e^{5y} &= 4e^{4x} - ye^{xy} \\ (xe^{xy} + 5e^{5y})y' &= 4e^{4x} - ye^{xy} \\ y' &= \frac{4e^{4x} - ye^{xy}}{xe^{xy} + 5e^{5y}} \end{aligned}

1.1.12 Parametric Differentiation​

Some relationships between two quantities or variables are so complicated that we sometimes introduce a third quantity or variable in order to make things easier to handle. In mathematics this third quantity is called a parameter. Instead of one equation relating say, xx and yy, we have two equations, one relating xx with the parameter, and one relating yy with the parameter.

For example, the xx and yy coordinates of points on a curve can be defined in terms of a third variable, tt, the parameter as follows:

x=cos⁡(t)andy=sin⁡(t)for 0≤t≤2πx = \cos(t) \qquad \text{and} \qquad y = \sin(t) \qquad \text{for } 0 \leq t \leq 2\pi

Note how both xx and yy are given in terms of the third variable tt.

It is often necessary to find the rate of change of a function (i.e. the curve) defined parametrically; that is, we want to calculate dy/dxdy/dx. Let's look at one example how this is achieved.

Suppose we wish to find dydx\dfrac{dy}{dx} when x=cos⁡tx = \cos t and y=sin⁡ty = \sin t. We differentiate both xx and yy with respect to the parameter, tt:

dxdt=−sin⁡tdydt=cos⁡t\frac{dx}{dt} = -\sin t \qquad \frac{dy}{dt} = \cos t

From the chain rule, we know that

dydt=dydxdxdt\frac{dy}{dt} = \frac{dy}{dx}\frac{dx}{dt}

so that, by rearrangement

dydx=dydtdxdtprovided dxdt is not equal to 0\frac{dy}{dx} = \frac{\dfrac{dy}{dt}}{\dfrac{dx}{dt}} \qquad \text{provided } \frac{dx}{dt} \text{ is not equal to } 0

So, in this case

dydx=dydtdxdt=cos⁡t−sin⁡t=−cot⁡t\frac{dy}{dx} = \frac{\dfrac{dy}{dt}}{\dfrac{dx}{dt}} = \frac{\cos t}{-\sin t} = -\cot t

Key Point

Parametric differentiation: if x=x(t)x = x(t) and y=y(t)y = y(t), then

dydx=dydtdxdtprovided dxdt≠0\frac{dy}{dx} = \frac{\dfrac{dy}{dt}}{\dfrac{dx}{dt}} \qquad \text{provided } \frac{dx}{dt} \neq 0

Example 1.1.30​

Find dy/dxdy/dx when x=t3−tx = t^3 - t and y=4−t2y = 4 - t^2.

Solution
x=t3−ty=4−t2dxdt=3t2−1dydt=−2t\begin{aligned} x &= t^3 - t & y &= 4 - t^2 \\ \frac{dx}{dt} &= 3t^2 - 1 & \frac{dy}{dt} &= -2t \end{aligned}

From the chain rule we have

dydx=dydtdxdt=−2t3t2−1\frac{dy}{dx} = \frac{\dfrac{dy}{dt}}{\dfrac{dx}{dt}} = \frac{-2t}{3t^2 - 1}

Example 1.1.31​

Find d2ydx2\dfrac{d^2y}{dx^2} when x=t3+3t2x = t^3 + 3t^2 and y=t4−8t2y = t^4 - 8t^2.

Solution

dxdt=3t2+6tdydt=4t3−16t\frac{dx}{dt} = 3t^2 + 6t \qquad \frac{dy}{dt} = 4t^3 - 16t

Using the chain rule

dydx=dydtdxdtprovided dxdt≠0\frac{dy}{dx} = \frac{\dfrac{dy}{dt}}{\dfrac{dx}{dt}} \qquad \text{provided } \frac{dx}{dt} \neq 0

So that

dydx=4t3−16t3t2+6t=4t(t2−4)3t(t+2)=4t(t+2)(t−2)3t(t+2)=4(t−2)3\frac{dy}{dx} = \frac{4t^3 - 16t}{3t^2 + 6t} = \frac{4t(t^2-4)}{3t(t+2)} = \frac{4t(t+2)(t-2)}{3t(t+2)} = \frac{4(t-2)}{3}

We can apply the chain rule a second time in order to find the second derivative, d2ydx2\dfrac{d^2y}{dx^2}:

d2ydx2=ddx(dydx)=ddt(dydx)dxdt=433t2+6t=49t(t+2)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) = \frac{\dfrac{d}{dt}\left(\dfrac{dy}{dx}\right)}{\dfrac{dx}{dt}} = \frac{\dfrac{4}{3}}{3t^2+6t} = \frac{4}{9t(t+2)}


1.2 Engineering Applications of Functions and Derivatives​

1.2.1 Approximating Functions​

We call the linear function

L(x)=f(a)+f′(a)(x−a)(4)L(x) = f(a) + f'(a)(x-a) \qquad (4)

the linear approximation, or tangent line approximation, of ff at x=ax = a. This function LL is also known as the linearization of ff at x=ax = a. To show how useful the linear approximation can be, we look at how to find the linear approximation for f(x)=xf(x) = \sqrt{x} at x=9x = 9.

Example 1.2.1: Linear Approximation​

Find the linear approximation of f(x)=xf(x) = \sqrt{x} at x=9x = 9 and use the approximation to estimate 9.1\sqrt{9.1}.

Solution

Since we are looking for the linear approximation at x=9x = 9, using Equation (4), we know the linear approximation is given by

L(x)=f(9)+f′(9)(x−9)L(x) = f(9) + f'(9)(x-9)

We need to find f(9)f(9) and f′(9)f'(9):

f(x)=x  ⟹  f(9)=9=3f(x) = \sqrt{x} \implies f(9) = \sqrt{9} = 3

f′(x)=12x  ⟹  f′(9)=129=16f'(x) = \frac{1}{2\sqrt{x}} \implies f'(9) = \frac{1}{2\sqrt{9}} = \frac{1}{6}

Therefore, the linear approximation is given by,

L(x)=3+16(x−9)L(x) = 3 + \frac{1}{6}(x-9)

Using the linear approximation, we can estimate 9.1\sqrt{9.1} by writing

9.1=f(9.1)≈L(9.1)=3+16(9.1−9)≈3.0167\sqrt{9.1} = f(9.1) \approx L(9.1) = 3 + \frac{1}{6}(9.1-9) \approx 3.0167

Exercise 1.2.1​

Find the linear approximation of f(x)=x3f(x) = \sqrt[3]{x} at x=8x = 8. Use it to approximate 8.13\sqrt[3]{8.1} to five decimal places.

Solution

L(x)=2+112(x−8);2.00833L(x) = 2 + \frac{1}{12}(x-8); \qquad 2.00833

Differentials​

We have seen that linear approximations can be used to estimate function values. They can also be used to estimate the amount a function value changes as a result of a small change in the input. To discuss this more formally, we define a related concept: differentials. Differentials provide us with a way of estimating the amount a function changes as a result of a small change in input values.

When we first looked at derivatives, we used the Leibniz notation dy/dxdy/dx to represent the derivative of yy with respect to xx. Although we used the expressions dydy and dxdx in this notation, they did not have meaning on their own. Here we see a meaning to the expressions dydy and dxdx. Suppose y=f(x)y = f(x) is a differentiable function. Let dxdx be an independent variable that can be assigned any nonzero real number, and define the dependent variable dydy by

dy=f′(x) dx(5)dy = f'(x)\,dx \qquad (5)

It is important to notice that dydy is a function of both xx and dxdx. The expressions dydy and dxdx are called differentials. We can divide both sides of Equation (5) by dxdx, which yields

dydx=f′(x)(6)\frac{dy}{dx} = f'(x) \qquad (6)

This is the familiar expression we have used to denote a derivative. Equation (6) is known as the differential form of Equation (5).

Example 1.2.2: Computing Differentials​

For each of the following functions, find dydy and evaluate when x=3x = 3 and dx=0.1dx = 0.1.

a. y=x2+2xy = x^2 + 2x b. y=cos⁡xy = \cos x

Solution

The key step is calculating the derivative. When we have that, we can obtain dydy directly.

a. Since f(x)=x2+2xf(x) = x^2 + 2x, we know f′(x)=2x+2f'(x) = 2x + 2, and therefore dy=(2x+2) dxdy = (2x+2)\,dx When x=3x = 3 and dx=0.1dx = 0.1, dy=(2⋅3+2)(0.1)=0.8dy = (2 \cdot 3 + 2)(0.1) = 0.8

b. Since f(x)=cos⁡xf(x) = \cos x, f′(x)=−sin⁡(x)f'(x) = -\sin(x). This gives us dy=−sin⁡x dxdy = -\sin x\,dx When x=3x = 3 and dx=0.1dx = 0.1 dy=−sin⁡(3)(0.1)=−0.1sin⁡(3)dy = -\sin(3)(0.1) = -0.1\sin(3)

Example 1.2.3: Approximating Change with Differentials​

Let y=x2+2xy = x^2 + 2x. Compute Δy\Delta y and dydy at x=3x = 3 if dx=0.1dx = 0.1.

Solution

The actual change in yy if xx changes from x=3x = 3 to x=3.1x = 3.1 is given by

Δy=f(3.1)−f(3)=[(3.1)2+2(3.1)]−[32+2(3)]=0.81\Delta y = f(3.1) - f(3) = \left[(3.1)^2 + 2(3.1)\right] - \left[3^2 + 2(3)\right] = 0.81

The approximate change in yy is given by dy=f′(3) dxdy = f'(3)\,dx. Since f′(x)=2x+2f'(x) = 2x + 2, we have

dy=f′(3) dx=(2(3)+2)(0.1)=0.8dy = f'(3)\,dx = (2(3)+2)(0.1) = 0.8

Exercise 1.2.2​

For y=x2+2xy = x^2 + 2x, find Δy\Delta y and dydy at x=3x = 3 if dx=0.2dx = 0.2.

Solution

dy=1.6,Δy=1.64dy = 1.6, \qquad \Delta y = 1.64

Calculating the Amount of Error​

Any type of measurement is prone to a certain amount of error. In many applications, certain quantities are calculated based on measurements. For example, the area of a circle is calculated by measuring the radius of the circle. An error in the measurement of the radius leads to an error in the computed value of the area. Here we examine this type of error and study how differentials can be used to estimate the error.

Consider a function ff with an input that is a measured quantity. Suppose the exact value of the measured quantity is aa but the measured value is a+dxa + dx. We say the measurement error is dxdx (or Δx\Delta x). As a result, an error occurs in the calculated quantity f(x)f(x). This type of error is known as a propagated error and is given by

Δy=f(a+dx)−f(a)(7)\Delta y = f(a + dx) - f(a) \qquad (7)

Since all measurements are prone to some degree of error, we do not know the exact value of a measured quantity, so we cannot calculate the propagated error exactly. However, given an estimate of the accuracy of a measurement, we can use differentials to approximate the propagated error Δy\Delta y. Specifically, if ff is a differentiable function at aa, the propagated error is

Δy≈dy=f′(a) dx(8)\Delta y \approx dy = f'(a)\,dx \qquad (8)

Unfortunately, we do not know the exact value aa. However, we can use the measured value a+dxa + dx, and estimate

Δy≈dy=f′(a+dx) dx(9)\Delta y \approx dy = f'(a + dx)\,dx \qquad (9)

Example 1.2.4: Volume of Cube​

Suppose the side length of a cube is measured to be 5 cm5\text{ cm} with an accuracy of 0.1 cm0.1\text{ cm}.

a. Use differentials to estimate the error in the computed volume of the cube. b. Compute the volume of the cube if the side length is (i) 4.9 cm4.9\text{ cm} and (ii) 5.1 cm5.1\text{ cm} to compare the estimated error with the actual potential error.

Solution

a. The measurement of the side length is accurate to within ±0.1 cm\pm 0.1\text{ cm}. Therefore

−0.1≤dx≤0.1-0.1 \leq dx \leq 0.1

The volume of a cube is given by V=x3V = x^3, which leads to

dV=3x2 dxdV = 3x^2\,dx

Using the measured side length of 5 cm5\text{ cm}, we can estimate that

−3(5)2(0.1)≤dV≤3(5)2(0.1)-3(5)^2(0.1) \leq dV \leq 3(5)^2(0.1)

Therefore,

−7.5≤dV≤7.5-7.5 \leq dV \leq 7.5

b. If the side length is actually 4.9 cm4.9\text{ cm}, then the volume of the cube is V(4.9)=(4.9)3=117.649 cm3V(4.9) = (4.9)^3 = 117.649\text{ cm}^3

If the side length is actually 5.1 cm5.1\text{ cm}, then the volume of the cube is V(5.1)=(5.1)3=132.651 cm3V(5.1) = (5.1)^3 = 132.651\text{ cm}^3

Therefore the actual volume of the cube is between 117.649117.649 and 132.651132.651. Since the side length is measured to be 5 cm5\text{ cm}, the computed volume is V(5)=(5)3=125V(5) = (5)^3 = 125. Therefore, the error in the computed volume is

117.649−125≤dV≤132.651−125117.649 - 125 \leq dV \leq 132.651 - 125

That is,

−7.351≤dV≤7.651-7.351 \leq dV \leq 7.651

We see the estimated error dVdV is relatively close to the actual potential error in the computed volume.

1.2.2 The Gradient of a Straight Line​

To see how the derivative of ff can tell us where a function is increasing or decreasing, look at figure below. Between AA and BB and between CC and DD, the tangent lines have positive slope and so f′(x)>0f'(x) > 0. Between BB and CC the tangent lines have negative slope and so f′(x)<0f'(x) < 0. Thus, it appears that ff increases when f′(x)f'(x) is positive and decreases when f′(x)f'(x) is negative.

Gradient of a curve between A, B, C and D

To prove that this is always the case, we use the Mean Value Theorem.

Increasing/Decreasing Test

(a) If f′(x)>0f'(x) > 0 on an interval, then ff is increasing on that interval.

(b) If f′(x)<0f'(x) < 0 on an interval, then ff is decreasing on that interval.

The First Derivative Test

Suppose that cc is a critical number of a continuous function ff.

(a) If f′f' changes from positive to negative at cc, then ff has a local maximum at cc.

(b) If f′f' changes from negative to positive at cc, then ff has a local minimum at cc.

(c) If f′f' does not change sign at cc (for example, if f′f' is positive on both sides of cc or negative on both sides), then ff has no local maximum or minimum at cc.

The First Derivative Test is a consequence of the Increase/Decrease Test. In part (a), for instance, since the sign of f′(x)f'(x) changes from positive to negative at cc, ff is increasing to the left of cc and decreasing to the right of cc. It follows that ff has a local maximum at cc. It is easy to remember the First Derivative Test by visualizing diagrams such as those in figures below.

(a) Local maximum and (b) local minimum

(c), (d) No maximum or minimum

1.2.3 Concavity​

Figure below shows the graph of a function that is concave upward (CU) on intervals (b,c)(b,c), (d,e)(d,e), and (e,p)(e,p) and concave downward (CD) on intervals (a,b)(a,b), (c,d)(c,d) and (p,q)(p,q).

Concavity of a curve

This reasoning can be reversed and suggests that the following theorem is true.

Concavity Test

(a) If f′′(x)>0f''(x) > 0 for all xx in II, then the graph of ff is concave upward on II.

(b) If f′′(x)<0f''(x) < 0 for all xx in II, then the graph of ff is concave downward on II.

The Second Derivative Test

Suppose f′′f'' is continuous near cc.

(a) If f′(c)=0f'(c) = 0 and f′′(c)>0f''(c) > 0, then ff has a local minimum at cc.

(b) If f′(c)=0f'(c) = 0 and f′′(c)<0f''(c) < 0, then ff has a local maximum at cc.

Example 1.2.5​

Find local maximum and minimum values for function

f(x)=3x4−4x3−12x2+5f(x) = 3x^4 - 4x^3 - 12x^2 + 5

Solution

Find critical numbers:

f′(x)=12x3−12x2−24x=12x(x2−x−2)=12x(x−2)(x+1)\begin{aligned} f'(x) &= 12x^3 - 12x^2 - 24x \\ &= 12x(x^2 - x - 2) = 12x(x-2)(x+1) \end{aligned}

Critical numbers: f′(x)=0  ⟹  x=−1,0,2f'(x) = 0 \implies x = -1, 0, 2

Perform the Increasing/Decreasing test on the critical numbers (−1,0,2)(-1, 0, 2):

Interval12x12x(x−2)(x-2)(x+1)(x+1)f′(x)f'(x)
x<−1x < -1−-−-−-f′(x)<0f'(x) < 0
−1<x<0-1 < x < 0−-−-++f′(x)>0f'(x) > 0
0<x<20 < x < 2++−-++f′(x)<0f'(x) < 0
x>2x > 2++++++f′(x)>0f'(x) > 0

Hence,

  • Local minimum at x=−1x = -1, f(−1)=0f(-1) = 0
  • Local maximum at x=0x = 0, f(0)=5f(0) = 5
  • Local minimum at x=2x = 2, f(2)=−27f(2) = -27

If we use the 2nd derivative test:

f′′(x)=36x2−24x−24f''(x) = 36x^2 - 24x - 24

  • (x=−1)  ⟹  f′′(x)(x = -1) \implies f''(x) is ++ve   ⟹  \implies local minimum
  • (x=0)  ⟹  f′′(x)(x = 0) \implies f''(x) is −-ve   ⟹  \implies local maximum
  • (x=2)  ⟹  f′′(x)(x = 2) \implies f''(x) is ++ve   ⟹  \implies local minimum

Example 1.2.6​

Discuss the curve y=x4−4x3y = x^4 - 4x^3 with respect to concavity, and local maxima and minima.

Solution
f(x)=x4−4x3f′(x)=4x3−12x2=4x2(x−3)f′′(x)=12x2−24x=12x(x−2)\begin{aligned} f(x) &= x^4 - 4x^3 \\ f'(x) &= 4x^3 - 12x^2 = 4x^2(x-3) \\ f''(x) &= 12x^2 - 24x = 12x(x-2) \end{aligned}

To find the critical numbers we set f′(x)=0f'(x) = 0 and obtain x=0x = 0 and x=3x = 3.

To use the Second Derivative Test:

f′′(0)=0f′′(3)=36>0f''(0) = 0 \qquad f''(3) = 36 > 0

Since f′(3)=0f'(3) = 0 and f′′(3)>0f''(3) > 0, f(3)=−27f(3) = -27 is a local minimum. Since f′′(0)=0f''(0) = 0, the Second Derivative Test gives no information about the critical number 00.

But since f′(x)<0f'(x) < 0 for x<0x < 0 and also for 0<x<30 < x < 3, the First Derivative Test tells us that ff does not have a local maximum or minimum at 00.

In fact, the expression for f′(x)f'(x) shows that ff decreases to the left of 33 and increases to the right of 33.

1.2.4 The Second Derivatives​

Example 1.2.9​

A manufacturer needs to make a cylindrical container that will hold 1.5 litres of liquid. Determine the dimensions (in cm) of the container that will minimize the amount of material used in its construction with a proof.

Cylindrical container

Surface area of the cylinder: the two circular ends and the unrolled side

The next step is to create a corresponding mathematical model:

Minimize: A=2πr2+2πrhConstraint: πr2h=1500\text{Minimize: } A = 2\pi r^2 + 2\pi rh \qquad \text{Constraint: } \pi r^2h = 1500

i. Volume =V=1500= V = 1500, find h=?h = ? ii. Find Area, A(r)A(r) in terms of rr by substituting hh. iii. Find A′(r)=?A'(r) = ? iv. Find critical numbers when A′(r)=0A'(r) = 0. v. Prove critical number   ⟹  \implies minimum point vi. Dimension   ⟹  \implies radius and height

Solution

i. Volume, V=πr2h=1500V = \pi r^2h = 1500

h=1500πr2h = \frac{1500}{\pi r^2}

ii. Find Area A(r)A(r) in terms of rr by substituting hh.

A(r)=2πr2+2πr1500πr2=2πr2+3000rA(r) = 2\pi r^2 + 2\pi r\frac{1500}{\pi r^2} = 2\pi r^2 + \frac{3000}{r}

iii. Find A′(r)=?A'(r) = ?

A′(r)=4πr−3000r−2=4πr3−3000r2A'(r) = 4\pi r - 3000r^{-2} = \frac{4\pi r^3 - 3000}{r^2}

iv. Find critical numbers when A′(r)=0A'(r) = 0.

4πr3−3000r2=0  ⟹  r=30004π3=238.73≈6.20 cm\frac{4\pi r^3 - 3000}{r^2} = 0 \implies r = \sqrt[3]{\frac{3000}{4\pi}} = \sqrt[3]{238.7} \approx 6.20\text{ cm}

v. Prove dimensions   ⟹  \implies will give minimum value.

Using first derivative test: A′(r)<0A'(r) < 0 for r<238.73r < \sqrt[3]{238.7} and A′(r)>0A'(r) > 0 for r>238.73r > \sqrt[3]{238.7}, so the critical number is a minimum point.

Or using second derivative test:

A′(r)=4πr−3000r−2A′′(r)=4π+6000r−3→positive  ⟹  Min pointA'(r) = 4\pi r - 3000r^{-2} \qquad A''(r) = 4\pi + 6000r^{-3} \to \text{positive} \implies \text{Min point}

vi. Dimension:

r≈6.20 cm,h=1500πr2≈12.41 cmr \approx 6.20\text{ cm}, \qquad h = \frac{1500}{\pi r^2} \approx 12.41\text{ cm}

Example 1.2.10​

A window is being built. The bottom is a rectangle while the top is a semicircle. If there is 12 m12\text{ m} of framing material, what must the dimensions of the window be in order to let in most light? Provide justification for resulted dimensions.

Window with rectangular bottom and semicircular top

i. Find area and constraint. ii. Find Area, A(r)A(r) in terms of rr by substituting hh. iii. Find A′(r)=?A'(r) = ? iv. Find critical numbers when A′(r)=0A'(r) = 0. v. Prove critical number   ⟹  \implies max point vi. Dimension   ⟹  \implies radius and height

Solution

i. Find area and constraint.

A=2rh+12πr2A = 2rh + \frac{1}{2}\pi r^2

Length=2h+2r+πr=12\text{Length} = 2h + 2r + \pi r = 12

ii. Find Area, A(r)A(r) in terms of rr by substituting hh.

h=12−2r−πr2=6−r−πr2h = \frac{12 - 2r - \pi r}{2} = 6 - r - \frac{\pi r}{2}

A(r)=12r−r2(2+12π)A(r) = 12r - r^2\left(2 + \frac{1}{2}\pi\right)

iii. Find A′(r)=?A'(r) = ?

A′(r)=12−r(4+π)A'(r) = 12 - r(4 + \pi)

iv. Find critical numbers when A′(r)=0A'(r) = 0.

12−r(4+π)=0  ⟹  r=124+π12 - r(4+\pi) = 0 \implies r = \frac{12}{4+\pi}

v. Prove critical number   ⟹  \implies max point.

Use either first or second derivative test:

A′(r)=12−r(4+π)A′′(r)=−(4+π)  ⟹  negative  ⟹  Max pointA'(r) = 12 - r(4+\pi) \qquad A''(r) = -(4+\pi) \implies \text{negative} \implies \text{Max point}

Max point

vi. Dimension of the window:

Width (2r)=244+π≈3.36 m\text{Width }(2r) = \frac{24}{4+\pi} \approx 3.36\text{ m}

Height (h)=6−r−πr2≈1.68 m\text{Height }(h) = 6 - r - \frac{\pi r}{2} \approx 1.68\text{ m}

Curve=12π4+π\text{Curve} = \frac{12\pi}{4+\pi}