Math 1326 Notes
Table of Contents
- 1. Function
- 2. Limit
- 3. Derivative
- 3.1. Definition
- 3.2. Rules
- 3.3. Technique : Rewriting the Function
- 3.4. High Order Derivative
- 3.5. Application : Increasing/Decreasing Intervals of Function
- 3.6. Application : Relative Extrema
- 3.7. Application : Concavity of Function
- 3.8. Application : Point of Inflection
- 3.9. Application : More Examples
- 3.10. References
- 4. Integral
- 5. Multivariable Calculus
- 5.1. Function of Several Variables
- 5.2. Partial Derivatives
- 5.3. Second-Order Partial Derivatives
- 5.4. Maxima and Minima
- 5.5. Lagrange Multiplier
- 5.6. Total Differentials and Approximations
- 5.7. Integral Of A Multivariate Function With Respect To One Variable
- 5.8. Double Integral Of A Multivariate Function
- 5.9. References
- 6. Differential Equation
- 7. Sequences and Series
- 8. References
1 Function
1.1 Definition
A function is a rule that assigns to each element from one set (domain) exactly one element from another set (range).
- Notation : \(y = f(x)\)
- How to determine
- numerically : for each value of \(x\), is the value of \(y\) unique?
- graphically : vertical line test
- Example
- YES
- \(y = f(x) = 1\)
- \(y = f(x) = x^2 - 3 + \sqrt{x+2}\)
- NO
- \(y^2 = x\). When \(x=1, y=\pm 1\)
- YES
1.2 Domain
1.2.1 Definition
The set of all possible values of the independent variable (\(x\)) in a function is called the domain of the function.
You should always give the domain in form of set or interval.
1.2.2 How to determine
The domain of a polynomial function \(f(x) = a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + a_0\) is the set of all real numbers \(\mathbb{R}\).
The domain of \(f(x) = 5x^4 + x^3 - 3x^2 + 11\) is \(\mathbb{R}\).
The domain of a fraction function \(f(x) = 1/g(x)\) is the set of all points such that the denominator is non-zero, ie, \(\{x : g(x) \neq 0\}\).
The domain of \(f(x) = \frac{1}{x-3}\) is \(\mathbb{R}\setminus\{3\}\).
The domain of a square root function \(f(x) = \sqrt{g(x)}\) is the set of all points such that the term under the square root symbol non-negative, ie, \(\{x : g(x) \geq 0\}\).
The domain of \(f(x) = \sqrt{x^2 - 9}\) is \((-\infty, -3] \cup [3,\infty)\)
The domain of a logarithmic function \(f(x) = log_a g(x), a > 0, a\neq 1\) is the set of all points such that \(g(x) > 0\), ie, \(\{x : g(x) > 0\}\)
The domain of \(f(x) = ln (x^2 - 9)\) is \((-\infty, -3) \cup (3,\infty)\)
- The domain of an exponential function \(f(x) = a^x, a > 0\) and \(a\neq 1\) is the set of all real numbers \(\mathbb{R}\).
For a composite function \((f\circ g)(x) = f(g(x))\), the domain is \(\{ \text{domain of } f(g) \text{ in term of } x \}\) \(\cap\) \(\{ \text{domain of } g \text{ in term of } x \}\).
For example, when \(f(x)=\frac{1}{x}\) and \(g(x) = ln(x)\)
- the domain of \(f(g)\) in term of \(x\) is \(\{x : g(x) \neq 0\} = \{x : ln(x) \neq 0\} = \{x : x\neq 1\}\) and
- the domain of \(g(x)\) is \(\{x : x > 0\}\), so
- the domain of \(f\circ g\) is \(\{x : x > 0\} \cap \{x : x\neq 1\} = \{x : x > 0 \text{ and } x\neq 1\}\)
1.3 Range
1.3.1 Definition
The resulting set of possible values of the dependent variable (\(y\)) is called the range.
- The range depends on the domain. For example,
- the range of \(y = x+1, x\in (1,2)\) is \((2,3)\), while
- the range of \(y = x+1, x\in (0,5)\) is \((1,6)\).
- If two functions have the same domain and the same rule, then they have the same range as well.
1.3.2 Example
- \(f(x) = 1\)
- \(f(x) = x^2\)
- \(f(x) = \frac{1}{x+1}\)
- \(f(x) = \frac{1}{x^2 + 1}\)
- \(f(x) = \frac{1}{(x+1)^2}\)
- \(f(x) = \sqrt{x}\)
- \(f(x) = \sqrt{x}, x\in (9, 25]\)
- \(f(x) = ln(x-1)\)
- \(f(x) = 3^x\)
1.4 Operations
1.4.1 Arithmetic
- Addition \(f(x) + g(x)\)
- Subtraction \(f(x) - g(x)\)
- Multiplication \(f(x) \cdot g(x)\)
- Division \(f(x)/g(x)\)
1.4.2 Composition
- Definition
- \((f\circ g) (x) = f(g(x))\)
- \((g\circ f) (x) = g(f(x))\)
- In general, \((f\circ g) (x) \neq (g\circ f) (x)\)
- How to find \(f\circ g\) for given \(f\) and \(g\)
- Steps
- In \(f(x)\), replace variable \(x\) with variable \(g\), and
- Then replace variable \(g\) with the expression of \(g(x)\)
- Examples
\(f(x) = 3, g(x) = 4\)
\((f\circ g) (x) = f(g(x)) = f(4) = 3\)
\(f(x) = 3, g(x) = ln(x)\)
\((f\circ g) (x) = f(g(x)) = f(ln(x)) = 3\)
\(f(x) = x^2 + 1, g(x) = \sqrt{x}\)
\((f\circ g) (x) = f(g) = g^2 + 1 = [g(x)]^2 + 1 = (\sqrt{x})^2 + 1 = x + 1, x \geq 0\)
\(f(x) = ln(\frac{x^2}{1-x}), g(x) = 4^{x+1}\)
\((f\circ g) (x) = f(g) = ln(\frac{g^2}{1-g}) = ln(\frac{[g(x)]^2}{1-g(x)}) = ln(\frac{[4^{x+1}]^2}{1-4^{x+1}})\)
\((g\circ f) (x) = g(f) = 4^{f+1} = 4^{f(x) + 1} = 4^{ln(\frac{x^2}{1-x}) + 1}\)
- Steps
- How to identify \(f\) and \(g\) for a given composition
- Steps
- Let \(f\) be the outermost function, so the composition can be written as \(f(g)\), a function of \(g\)
- Let \(g\) be all terms immediately inside \(f\), so \(g\) can be written as \(g(x)\), a function of \(x\)
- Examples
\(h(x) = ln(3x+1)\)
\(ln(\text{something})\) is the outermost function, so let \(f(g) = ln(g)\)
The whole term immediately inside \(ln()\) function is \(g(x) = 3x + 1\)
Thus \(f(x) = ln (x)\) and \(g(x)= 3x + 1\)
\(h(x) = (7x^2 + 3x - 2)^{100}\)
\((\text{something})^{100}\) is the outermost function, so let \(f(g) = g^{100}\)
The whole term immediately inside \((\cdot)^{100}\) is \(g(x) = 7x^2 + 3x - 2\)
Thus \(f(x) = x^{100}\) and \(g(x) = 7x^2 + 3x - 2\)
\(h(x) = 3(x-2)^2 + 5\)
\(3 \cdot \text{something} + 5\) is the outermost function, so let \(f(g) = 3g + 5\) and \(g(x) = (x-2)^2\)
Or, regard \(3(\text{something})^2 + 5\) as the outermost function, so \(f(g) = 3g^2 + 5\) and \(g(x) = x-2\)
Or, regard \(\text{something} + 5\) as the outermost function, so \(f(g) = g + 5\) and \(g(x) = 3(x-2)^2\)
- Steps
1.5 Exponential Function
1.5.1 Definition
An exponential function with base \(a\) is defined as \(y = f(x) = a^x\) where \(a > 0\) and \(a\neq 1\)
1.5.2 Property
- Suppose \(a > 0\) and \(a\neq 1\). Then
- \(a^x \cdot a^y = a^{x+y}\)
- \((a^x)^y = a^{xy}\)
(exponential equation) If \(a^x = a^y\), then \(x = y\).
Example : Solve for \(x\) if \(9^x = 27\).
- \(LHS = 9^x = (3^2)^x = 3^{2x}\) and
- \(RHS = 27 = 3^3\), so
- \(LHS = RHS\) implies \(2x = 3\) and thus
- \(x=\frac{3}{2}\)
change-of-base from \(a\) to \(e\)
For any \(a > 0\), \(a^x = e^{(ln a)x}\)
1.6 Logarithmic Function
1.6.1 Defintion
If \(a > 0\) and \(a\neq 1\), then the logarithmic function of base \(a\) is defined by \(y = f(x) = log_a x\) for \(x > 0\).
1.6.2 Properties
- suppose \(a > 0, a\neq 1, x > 0, y > 0\), and \(r\) is any real number. Then
- \(log_a x^r = r log_a x\)
- \(log_a(xy) = log_a x + log_a y\)
- \(log_a \frac{x}{y} = log_a(x\cdot y^{-1}) = log_a x + log_a y^{-1} = log_a x - log_a y\)
- \(log_a a = 1\), and thus \(lne = 1\)
- \(log_a 1 = 0\)
- \(log_a a^r = r\)
(logarithmic equation) if \(log_a x = log_a y\), then \(x = y\)
Example : Solve for \(x\) if \(3 ln (x) = 2 ln 8\).
- \(LHS = 3ln(x) = ln(x^3)\) and
- \(RHS = 2ln8 = ln8^2 = ln 64\), so
- \(LHS=RHS\) implies \(x^3 = 64\) and thus
- \(x=4\).
change-of-base from \(a\) to \(e\)
If \(a > 0, a\neq 1, b > 0\) and \(b\neq 1\), then for any \(x > 0\), \(log_a x = \frac{log_b x}{log_b a}\).
Letting \(b=e\), then we have \(log_a x = \frac{ln(x)}{ln(a)}\).
Identity
For \(a > 0, a\neq 1\) and \(x > 0\), \(y = log_a x\) means \(a^y = x\).
Thus we have \(y = log_a a^y\) and \(x = a^{log_a x}\) (equivalently, \(y = a^{log_a y}\)). When \(a=e\), we have \[ y = ln(e^y) = e^{lny} \]
1.6.3 Application of Logarithmic Properties
Rewrite a Log Expression
\(ln \frac{\sqrt{x}e^x}{8x^3}\) \(= ln(\sqrt{x}e^x) - ln(8x^3)\) \(= ln(\sqrt{x}) + ln(e^x) - ln((2x)^3)\)
\(= ln(x^{1/2}) + ln(e^x) - ln((2x)^3)\) \(= \frac{1}{2} ln(x) + x ln(e) - 3 ln(2x)\)
\(= \frac{1}{2} ln(x) + x - 3 ln(2x)\)
1.7 References
- Lial, M. L., Greenwell, R. N., Ritchey, N. P. (2011). Calculus with Applications (10th Edition). Boston, MA : Pearson.
2 Limit
2.1 Informal Definition
- Limit at \(a\)
- Limit at infinity
2.2 How to Evaluate Limits
- Evaluate \(f(x)\) around \(a\), and then investigate.
- Graph.
- The following rules.
- The following techniques.
2.3 Rules for Evaluating Limits
Let
- \(a\), \(A\) and \(B\) be real numbers
- \(f\) and \(g\) be functions such that \(\lim\limits_{x\to a} f(x) = A\) and \(\lim\limits_{x\to a} g(x) = B\).
Then the following rules hold.
2.3.1 Arithmetic Rules
- \(\lim\limits_{x\to a} [f(x) \pm g(x)] = A \pm B\)
- \(\lim\limits_{x\to a} [f(x) \cdot g(x)] = A \cdot B\)
- \(\lim\limits_{x\to a} \frac{f(x)}{g(x)} = \frac{A}{B}\) if \(B\neq 0\)
2.3.2 Important Results
- If \(f(x) = k\) is a constant, then \(\lim\limits_{x\to a} f(x) = k\).
- If \(f(x)\) is a polynomial, then \(\lim\limits_{x\to a} f(x) = f(a)\).
- For any real number \(k\), \(\lim\limits_{x\to a} [f(x)]^k = [\lim\limits_{x\to a} f(x)]^k = A^k\), provided this limit exists.
- For any real number \(b > 0\), \(\lim\limits_{x\to a} b^{f(x)} = b^{\lim\limits_{x\to a} f(x)} = b^A\).
- For any real number \(b\) such that \(0 < b < 1\) or \(b > 1\), \(\lim\limits_{x\to a} [log_b(f(x))] = log_b [ \lim\limits_{x\to a} f(x)] = log_b A\) if \(A > 0\).
- \(\lim\limits_{x\to a} f(x) = \lim\limits_{x\to a} g(x)\) if \(f(x) = g(x)\) for all \(x\neq a\)
- \(\lim\limits_{x\to \infty} \frac{1}{x^r} = 0\) for any \(r>0\)
- \(\lim\limits_{x\to - \infty} \frac{1}{x^r} = 0\) for any \(r>0\) such that \(x^r\) is undefined. (For example, if \(n=\frac{1}{2}\), then \(x^n = \sqrt{x}\) is undefined for \(x < 0\), so there is no limit at \(-\infty\) either.)
2.4 Techniques for Evaluating Limits
2.4.1 Technique 1 : Substitution
- Polynomial
\(\lim\limits_{x\to 2} x^3 - 3x^2 + 5x - 2 = 2^3 - 3\cdot 2^2 + 5\cdot 2 - 2 = 4\)
- Fraction with Denominator Non-Zero
\(\lim\limits_{x\to 2} \frac{2x}{3x^3+1} = \frac{2\cdot 2}{3\cdot 2^3 + 1} = \frac{4}{25}\)
- Square Root Function
\(\lim\limits_{x\to 2} \sqrt{x^2 + 5} = \sqrt{2^2 + 5} = 3\)
- Exponential Function
\(\lim\limits_{x\to 2} 3^{x+1} = 3^{2 + 1} = 3^3 =27\)
- Logarithmic Function
\(\lim\limits_{x\to 2} log_2 x^5 = log_2 2^5 = 5\)
2.4.2 Technique 2 : Factorization and Reduction
- Fraction of Polynomials with Denominator Zero
\(\lim\limits_{x\to 3} \frac{2x^2 - 5x - 3}{x-3}\).
If we directly plug \(3\) into the function, we get denominator \(0\). Hence we have to factorize the numerator and then cancel some common factor.
\(\lim\limits_{x\to 3} \frac{2x^2 - 5x - 3}{x-3}\) \(= \lim\limits_{x\to 3} \frac{(2x + 1)(x-3)}{x-3}\) \(= \lim\limits_{x\to 3} 2x + 1 = 2\cdot 3 + 1 = 7\).
2.4.3 Technique 3 : Multiplication by Conjugate
- Fraction Containing Square Root with Denominator Zero
\(\lim\limits_{x\to 9} \frac{\sqrt{x} - 3}{x-9}\).
If we directly plug \(3\) into the function, we get denominator \(0\). Also, neither the numerator nor the denominator can be factorzied. However, We note the numerator is a square root function. In this case, we multiply both numerator and denominator by the conjugate of the numerator (because the numerator contains square root symbol. Similary, if the denominator contains square root symbol, then we multiply by the conjugate of the denominator). The conjuate of \(\sqrt{x} - 3\) is \(\sqrt{x} + 3\), so we have
\(\lim\limits_{x\to 9} \frac{\sqrt{x} - 3}{x-9}\)
\(= \lim\limits_{x\to 9} \frac{(\sqrt{x} - 3)(\sqrt{x} + 3)}{(x-9)(\sqrt{x} + 3)}\) \(= \lim\limits_{x\to 9} \frac{(\sqrt{x})^2 - 3^2}{(x-9)(\sqrt{x} + 3)}\) \(= \lim\limits_{x\to 9} \frac{x - 9}{(x-9)(\sqrt{x} + 3)}\)
\(= \lim\limits_{x\to 9} \frac{1}{\sqrt{x} + 3}\) \(= \frac{1}{6}\).
2.4.4 Technique 4 : Limit at Infinity of a Fraction
- Case 1 : Limit at Infinity of a Fraction Without Square Root
Description
Suppose \(f(x) = \frac{g(x)}{h(x)}\) where
- \(g(x) = a_0 + a_1 x + a_2 x^2 + \dots + a_p x^p\) is a polynomial of order \(p\)
- \(h(x) = b_0 + b_1 x + b_2 x^2 + \dots + b_q x^q\) is a polynomial of order \(q\)
To find \(\lim\limits_{x\to\infty} f(x)\) or \(\lim\limits_{x\to -\infty} f(x)\), we need
- Divide both numerator and denominator by \(x^{max\{p, q\}}\) and simplify the quotients, and
- Evaluate the limit using the simplified form.
Example
\(\lim\limits_{x\to \infty} \frac{2x^2 -3x + 1}{x^2 -5}\)
\(= \lim\limits_{x\to \infty} \frac{2x^2 -3x + 1}{x^2 -5}\) \(= \lim\limits_{x\to \infty} \frac{\frac{2x^2 -3x + 1}{x^2}}{\frac{x^2 -5}{x^2}}\) \(= \lim\limits_{x\to \infty} \frac{2 - \frac{3}{x} + \frac{1}{x^2}} {1 - \frac{5}{x^2}}\)
\(= \frac{ \lim\limits_{x\to \infty} 2 - \lim\limits_{x\to \infty} \frac{3}{x} + \lim\limits_{x\to \infty} \frac{1}{x^2}} {\lim\limits_{x\to \infty} 1 - \lim\limits_{x\to \infty} \frac{5}{x^2}}\)
\(= \frac{2-0+0}{1-0}\) \(= 2\)
- Remarks : Shortcuts
- If \(p=q\), then \(\lim\limits_{x\to\infty} f(x) = \lim\limits_{x\to-\infty} f(x) = \frac{a_p}{b_q}\).
If \(p < q\), then \(\lim\limits_{x\to\infty} f(x) = \lim\limits_{x\to-\infty} f(x) = 0\).
\(\lim\limits_{x\to\infty} \frac{x^2+1}{x^3-2} = 0\)
- If \(p > q\), then
\(\lim\limits_{x\to\infty} f(x) = \infty\).
\(\lim\limits_{x\to\infty} \frac{x^3-2}{x^2+1} = \infty\)
\(\lim\limits_{x\to -\infty} f(x) =\)
- \(\infty\) if \(p-q\) is even
- \(-\infty\) if \(p-q\) is odd.
\(\lim\limits_{x\to -\infty} \frac{x^3-2}{x^2+1} = -\infty\)
\(\lim\limits_{x\to -\infty} \frac{x^4-2}{x^2+1} = \infty\)
- Case 2 : Limit at Infinity of a Fraction With Square Root
Description
Suppose
- \(g(x) = a_0 + a_1 x + a_2 x^2 + \dots + a_p x^p\) is a polynomial of order \(p\)
- \(h(x) = b_0 + b_1 x + b_2 x^2 + \dots + b_q x^q\) is a polynomial of order \(q\)
Then
- If \(f(x) = \frac {\sqrt{g(x)}} {h(x)}\), then divide both numerator and denominator by \(max\{p/2, q\}\).
- If \(f(x) = \frac {g(x)} {\sqrt{h(x)}}\), then divide both numerator and denominator by \(max\{p, q/2\}\).
- If \(f(x) = \frac {\sqrt{g(x)}} {\sqrt{h(x)}}\), then divide both numerator and denominator by \(max\{p/2, q/2\}\).
Example
\(\lim\limits_{x\to \infty} \frac{\sqrt{2x^2 + 1}}{x - 5}\)
Now we can see
- \(f(x) = \frac {\sqrt{g(x)}} {h(x)}\)
- \(p = 2\)
- \(q = 1\)
- \(max\{p/2, q\} = max\{ 2/2, 1 \} = 1\)
so we divide both top and bottom by \(x^1 = x\) :
\(\lim\limits_{x\to \infty} \frac{\sqrt{2x^2 + 1}}{x - 5}\)
\(= \lim\limits_{x\to \infty} \frac{\frac{\sqrt{2x^2 + 1}}{x}}{\frac{x -5}{x}}\) \(= \lim\limits_{x\to \infty} \frac {\frac {\sqrt{2x^2 + 1}} {\sqrt{x^2}} } {\frac {x-5} {x} }\) \(= \lim\limits_{x\to \infty} \frac {\sqrt{ \frac {2x^2 + 1} {x^2} } } {1 - \frac {5} {x} }\)
\(= \lim\limits_{x\to \infty} \frac {\sqrt{ 2 + \frac{1}{x^2} } } {1 - \frac {5} {x} }\) \(= \frac {\lim\limits_{x\to \infty} \sqrt{ 2 + \frac{1}{x^2} } } {\lim\limits_{x\to \infty} 1 - \frac {5} {x} }\) \(= \frac{\sqrt{2+0}}{1-0}\)
\(= \sqrt{2}\)
Here we use \(x = \sqrt{x^2}\), which is only true for \(x\geq 0\). For \(x < 0\), \(x = -\sqrt{x^2}\) holds. Since here we are evaluating the limit at \(+\infty\), we consider only positive \(x\). If we evaluate the limit at \(-\infty\), then it should be
\(\lim\limits_{x\to -\infty} \frac{\sqrt{2x^2 + 1}}{x - 5}\)
\(= \lim\limits_{x\to -\infty} \frac{\frac{\sqrt{2x^2 + 1}}{x}}{\frac{x -5}{x}}\) \(= \lim\limits_{x\to -\infty} \frac {\frac {\sqrt{2x^2 + 1}} {-\sqrt{x^2}} } {\frac {x-5} {x} }\) \(= \lim\limits_{x\to -\infty} - \frac {\sqrt{ \frac {2x^2 + 1} {x^2} } } {1 - \frac {5} {x} }\)
\(= \lim\limits_{x\to -\infty} -\frac {\sqrt{ 2 + \frac{1}{x^2} } } {1 - \frac {5} {x} }\) \(= -\frac {\lim\limits_{x\to -\infty} \sqrt{ 2 + \frac{1}{x^2} } } {\lim\limits_{x\to -\infty} 1 - \frac {5} {x} }\) \(= -\frac{\sqrt{2+0}}{1-0}\)
\(= -\sqrt{2}\)
2.5 References
- Lial, M. L., Greenwell, R. N., Ritchey, N. P. (2011). Calculus with Applications (10th Edition). Boston, MA : Pearson.
3 Derivative
3.1 Definition
3.1.1 Formal Definition
\(f'(x) = \lim\limits_{h \to 0} \frac {f(x + h) - f(x)} {h}\)
- equivalent : \(f'(x) = \lim\limits_{b \to x} \frac {f(b) - f(x)} {b-x}\)
- Notations : \(f'(x)\), \(\frac{dy}{dx}\), \(\frac{d}{dx} f(x)\)
The process of calculating derivatives is called differentiation.
3.1.2 Find Derivatives by Definition
- Steps
- Find \(f(x + h)\)
- Find and simplify \(f(x + h) - f(x)\)
- divide by \(h\) to get \(\frac{f(x + h) - f(x)} {h}\)
- Let \(h\to 0\) : \(f'(x) = \lim\limits_{h \to 0} \frac {f(x + h) - f(x)} {h}\), if the limit exists.
- Examples
Example 1 : Constant Function
\(f(x) = 10\). Find \(f'(x)\).
\(f'(x) = \lim\limits_{h \to 0} \frac {f(x + h) - f(x)} {h}\)
\(= \lim\limits_{h \to 0} \frac {10 - 10} {h}\)
\(= \lim\limits_{h \to 0} 0\)
\(= 0\)
Example 2 : Polynomial Function
\(f(x) = 3x^2 + 5x - 1\). Find \(f'(3)\).
\(f'(x) = \lim\limits_{h \to 0} \frac {f(x + h) - f(x)} {h}\)
\(= \lim\limits_{h \to 0} \frac {[3(x+h)^2 + 5(x+h) - 1] - (3x^2 + 5x - 1)} {h}\)
\(= \lim\limits_{h \to 0} \frac {[3(x^2 + h^2 + 2xh) + 5(x+h) -1] - (3x^2 + 5x - 1)} {h}\)
\(= \lim\limits_{h \to 0} \frac {3x^2 + 3h^2 + 6xh + 5x + 5h -1 - 3x^2 - 5x + 1} {h}\)
\(= \lim\limits_{h \to 0} \frac {3h^2 + 6xh + 5h} {h}\)
\(= \lim\limits_{h \to 0} 3h + 6x + 5\)
\(= 6x + 5\)
Note:
To find \(f'(a)\), first find \(f'(x)\), and then substitute \(x\) by \(a\) in \(f'(x)\). The order can't be changed.
RIGHT
\(f'(x) = 6x + 5\), so subsitute \(x\) by \(3\) and get \(f'(3) = 6\cdot 3 + 5 = 23\)
WRONG
\(f(3) = 3\cdot 3^2 + 5\cdot 3 - 1 = 41\), which is a constant, so \(f'(3) = 0\).
Example 3 : Sqrare Root Function : Using Conjugate
\(f(x) = \sqrt{2x - 1} - 7\). Find \(f'(x)\).
\(f'(x) = \lim\limits_{h \to 0} \frac {f(x + h) - f(x)} {h}\)
\(= \lim\limits_{h \to 0} \frac {(\sqrt{2(x + h) - 1} - 7) - (\sqrt{2x - 1} - 7)} {h}\)
\(= \lim\limits_{h \to 0} \frac {\sqrt{2(x + h) - 1} - \sqrt{2x - 1}} {h}\)
\(= \lim\limits_{h \to 0} \frac {\sqrt{2(x + h) - 1} - \sqrt{2x - 1}} {h} \cdot \frac {\sqrt{2(x + h) - 1} + \sqrt{2x - 1}} {\sqrt{2(x + h) - 1} + \sqrt{2x - 1}}\)
\(= \lim\limits_{h \to 0} \frac {[2(x + h) - 1] - (2x - 1)} {h} \cdot \frac {1} {\sqrt{2(x + h) - 1} + \sqrt{2x - 1}}\)
\(= \lim\limits_{h \to 0} \frac {2x + 2h - 1 - 2x + 1} {h} \cdot \frac {1} {\sqrt{2(x + h) - 1} + \sqrt{2x - 1}}\)
\(= \lim\limits_{h \to 0} \frac {2h} {h} \cdot \frac {1} {\sqrt{2(x + h) - 1} + \sqrt{2x - 1}}\)
\(= \lim\limits_{h \to 0} \frac {2} {\sqrt{2(x + h) - 1} + \sqrt{2x - 1}}\)
\(= \frac{2}{\sqrt{2x - 1} + \sqrt{2x - 1}}\)
\(= \frac{2}{2\sqrt{2x - 1}}\)
\(= \frac{1}{\sqrt{2x - 1}}\)
Note:
- Conjugate of \(\sqrt{2(x + h) - 1} - \sqrt{2x - 1}\) is \(\sqrt{2(x + h) - 1} + \sqrt{2x - 1}\).
- \(\sqrt{2(x + h) - 1} - \sqrt{2x - 1} \neq \sqrt{2h}\)
Example 4 : Fraction : Using Common Denominator
\(f(x) = \frac{2}{3x+1}\). Find \(f'(x)\).
\(f'(x) = \lim\limits_{h \to 0} \frac {f(x + h) - f(x)} {h}\)
\(= \lim\limits_{h \to 0} \frac {\frac{2}{3(x+h)+1} - \frac{2}{3x+1}} {h}\) \(= \lim\limits_{h \to 0} \frac {\frac{2\cdot (3x+1)}{[3(x+h)+1] \cdot (3x+1)} - \frac{2\cdot[3(x+h)+1]}{[3(x+h)+1] \cdot (3x+1)}} {h}\) \(= \lim\limits_{h \to 0} \frac {\frac {2\cdot (3x+1) - 2\cdot[3(x+h)+1]} {[3(x+h)+1] \cdot (3x+1)}} {h}\)
\(= \lim\limits_{h \to 0} \frac{2\cdot (3x+1) - 2\cdot[3(x+h)+1]} {h\cdot [3(x+h)+1] \cdot (3x+1)}\) \(= \lim\limits_{h \to 0} \frac{6x + 2 - 6x - 6h - 2} {h\cdot [3(x+h)+1] \cdot (3x+1)}\) \(= \lim\limits_{h \to 0} \frac{- 6h} {h\cdot [3(x+h)+1] \cdot (3x+1)}\)
\(= \lim\limits_{h \to 0} \frac{- 6} {[3(x+h)+1] \cdot (3x+1)}\) \(= \frac{- 6} {(3x+1) \cdot (3x+1)}\) \(= \frac{- 6} {(3x+1)^2}\)
3.2 Rules
3.2.1 Arithmetic Rules
- Addition & Subtraction
If \(f(x) = g(x) \pm h(x)\) and if \(g'(x)\) and \(h'(x)\) both exist, then \[ f'(x) = g'(x) \pm h'(x) \]
- Scalar Multiplication
If \(f(x) = k g(x)\) where \(k\) is a real number and \(g'(x)\) exists, then \[ f'(x) = k g'(x) \]
- Product Rule
If \(f(x) = g(x) \cdot h(x)\) and if \(g'(x)\) and \(h'(x)\) both exist, then \[ f'(x) = g'(x) \cdot h(x) + g(x) \cdot h'(x)\]
Example
\(f(x) = g(x) \cdot h(x)\) where \(g(x) = 2x^3 + 1\) and \(h(x) = 7x^2 - 2\)
\(g'(x) = 2\cdot 3\cdot x^2 = 6x^2\)
\(h'(x) = 7\cdot 2\cdot x = 14x\)
\(f'(x) = g'(x) \cdot h(x) + g(x) \cdot h'(x)\)
\(= 6x^2 (7x^2 - 2) + (2x^3 + 1) \cdot 14x\)
\(= 42 x^4 - 12 x^2 + 28 x^4 + 14x\)
\(= 70 x^4 - 12 x^2 + 14x\)
- Quotient Rule
If \(f(x) = \frac {g(x)} {h(x)}\) and if \(g'(x)\) and \(h'(x)\) both exist, then \[f'(x) = \frac {g'(x) \cdot h(x) - g(x) \cdot h'(x)} {[h(x)]^2} \]
Example
\(f(x) = \frac{g(x)} {h(x)}\) where \(g(x) = 2x^3 + 1\) and \(h(x) = 7x^2 - 2\)
\(g'(x) = 2\cdot 3\cdot x^2 = 6x^2\)
\(h'(x) = 7\cdot 2\cdot x = 14x\)
\(f'(x) = \frac {g'(x) \cdot h(x) - g(x) \cdot h'(x)} {[h(x)]^2}\)
\(= \frac {6x^2 \cdot (7x^2 - 2) - (2x^3+1) \cdot 14x} {(7x^2-2)^2}\)
\(= \frac {6x^2 (7x^2 - 2) - (2x^3 + 1) \cdot 14x} {(7x^2-2)^2}\)
\(= \frac {42 x^4 - 12 x^2 - 28 x^4 - 14x} {(7x^2-2)^2}\)
\(= \frac {14 x^4 - 12 x^2 - 14x} {(7x^2-2)^2}\)
3.2.2 Chain Rule for Composite Function
- Statement
For a composite function \(f(g(x))\), if we regard the function \(g(x)\) as a single variable \(g\) by letting \(g = g(x)\), then \[ \frac{df(g(x))}{dx} = \frac{df(g)}{dg} \cdot \frac{dg(x)}{dx} \]
- Remarks
- \(g\) and \(g(x)\)
- when writting write \(g\), we mean a variable \(g\), just like \(x, u\) and \(v\)
- when writing \(g(x)\), we mean a function of \(x\)
- \(\frac{df(g)}{dg}\) means
- the variable of function \(f(g)\) is \(g\)
- The derivative of \(f(g)\) is with respect to the variable \(g\)
- In short notation, we may memorize the chain rule by (plausibly, you get the LHS by cancelling \(dg\) on the RHS) \[ \frac{df}{dx} = \frac{df}{dg} \cdot \frac{dg}{dx} \]
- \(g\) and \(g(x)\)
- Example
Let \(f(x) = (2x^2 + 1)^3\). Find \(\frac{df(x)}{dx}\).
Clearly \(f(x)\) is a composite function, where
- The inner function is \(g(x) = 2x^2 + 1\).
- The outer function is \(f(g) = g^3\) where \(g=g(x)\).
By Chain Rule \(\frac{df(g(x))}{dx} = \frac{df(g)}{dg} \cdot \frac{dg(x)}{dx}\), to find \(\frac{df(g(x))}{dx}\), we need \(\frac{df(g)}{dg}\) and \(\frac{dg(x)}{dx}\).
- By regarding \(g\) as a single variable, we find \(\frac{df(g)}{dg} = \frac{d(g^3)}{dg} = 3 g^2\) by power rule
- By regarding \(x\) as the variable, we find \(\frac{dg(x)}{dx} = \frac{d(2x^2 + 1)}{dx} = 4x\) by power rule
- Putting them into the formula of chain rule, we get \(\frac{df(g(x))}{dx} = 3 g^2 \cdot 4x = 12xg^2\)
- Here \(g\) is a variable that is not given by the question, so we have to replace it. Since \(g = g(x)\), we just replace \(g\) with the expression of \(g(x)\), which is \(2x^2 + 1\) here. Thus the final answer is \(\frac{df(g(x))}{dx} = 12x(2x^2+1)^2\).
3.2.3 Rules for Special Functions
- Constant Rule
If \(f(x) = k\) where \(k\) is a real number, then \(f'(x) = 0\).
- Power Rule
If \(f(x) = x^n\) where n is a real number, then \(f'(x) = n\cdot x^{n-1}\)
/Remark: / Whenever you meet something like \(\frac{1}{x}\) or \(\sqrt{x}\), rewrite them as \(x^{-1}\) or \(x^{\frac{1}{2}}\) respectively.
- Polynomial Rule
By the power rule and addition rule, we get that for a polynomial \(f(x) = a_0 + a_1 x + a_2 x^2 + \dots + a_p x^p\) where \(a_0, a_1, a_2, \dots, a_p\) are constants, the derivative is
\(f'(x) = (a_0 + a_1 x + a_2 x^2 + \dots + a_p x^p)'\)
\(= (a_0)' + (a_1 x)' + (a_2 x^2)' + \dots + (a_p x^p)'\)
\(= 0 + a_1 + a_2 \cdot 2x + a_3 \cdot 3x^2 + \dots + a_p \cdot px^{p-1}\)
/Example: / \((5x^3 + 7x^2 - 3x + 2)' = 5 \cdot 3 x^2 + 7 \cdot 2x - 3\).
- Exponential Rule
For any constant \(a\) such that \(a>0\) and \(a\neq 1\), \[ \frac{d}{dx} a^x = lna \cdot a^x \] \[ \frac{d}{dx} e^x = e^x \]
- Examples
- \(\frac{d}{dx} 3^x = ln3 \cdot 3^x\)
\(\frac{d}{dx} 3^{2x^3} =\) ?
Let \(f(x) = 3^{2x^3}\), then we can see it is a composite function where
- the inner function \(g(x) = 2x^3\), with \(\frac{dg(x)}{dx} = 6x^2\)
- the outer function \(f(g) = 3^g\), with \(\frac{df(g)}{dg} = ln3 \cdot 3^g\) where \(g = g(x)\)
so we should apply the Chain Rule and get
\(\frac{df(g(x))}{dx} = \frac{df(g)}{dg} \cdot \frac{dg(x)}{dx} = ln3 \cdot 3^g \cdot 6x^2 = 6 \cdot ln3 \cdot x^2 \cdot 3^{2x^3}\)
\(\frac{d}{dx} e^{4x^3 + 2} =\) ?
Let \(f(x) = e^{4x^3 + 2}\), then we can see it is a composite function where
- the inner function \(g(x) = 4x^3 + 2\), with \(\frac{dg(x)}{dx} = 4 \cdot 3x^2 + 0 = 12 x^2\)
- the outer function \(f(g) = e^g\), with \(\frac{df(g)}{dg} = e^g\) where \(g = g(x)\)
so we should apply the Chain Rule and get
\(\frac{df(g(x))}{dx} = \frac{df(g)}{dg} \cdot \frac{dg(x)}{dx} = e^g \cdot 12x^2 = e^{4x^3 + 2} 12x^2\)
\(\frac{d}{dx}e^2=\) ?
Caution : \(e^2\) is a constant, so \(\frac{de^2}{dx} = e^2\) is WRONG. The exponential rule does not apply because \(2\) is not the variable \(x\). Instead, we should use the constant rule to get \(\frac{de^2}{dx} = 0\).
- Examples
- Logarithmic Rule
For any constant \(a\) such that \(a>0\) and \(a\neq 1\), \[ \frac{d}{dx} log_ax = \frac{1}{x \cdot lna} \] \[ \frac{d}{dx} lnx = \frac{1}{x} \]
- Examples
- \(\frac{d}{dx} log_2 x = \frac{1}{x \cdot ln2}\)
\(\frac{d}{dx} log_2 x^3 =\) ?
Let \(f(x) = log_2 x^3\), then we can see it is a composite function where
- the inner function \(g(x) = x^3\), with \(\frac{dg(x)}{dx} = 3x^2\)
- the outer function \(f(g) = log_2 g\), with \(\frac{f(g)}{dg} = \frac{1}{g \cdot ln2}\)
so we should apply the Chain Rule and get
\(\frac{df(g(x))}{dx} = \frac{df(g)}{dg} \cdot \frac{dg(x)}{dx} = \frac{1}{g \cdot ln2} \cdot 3x^2 = \frac{3x^2}{x^3 \cdot ln2}\)
\(\frac{d}{dx} ln(3x^2 - 1)=\) ?
Let \(f(x) = ln (3x^2 - 1)\), then we can see it is a composite function where
- the inner function \(g(x) = 3x^2 - 1\), with \(\frac{dg(x)}{dx} = 3\cdot 2x - 0 = 6x\)
- the outer function \(f(g) = ln(g)\), with \(\frac{f(g)}{dg} = \frac{1}{g}\)
so we should apply the Chain Rule and get
\(\frac{df(g(x))}{dx} = \frac{df(g)}{dg} \cdot \frac{dg(x)}{dx} = \frac{1}{g} \cdot 6x = \frac{6x}{3x^2 - 1}\)
\(\frac{d}{dx}ln2=\) ?
Caution : \(ln2\) is a constant, so \(\frac{dln2}{dx} = \frac{1}{2}\) is WRONG. The logarithmic rule does not apply because \(2\) is not the variable \(x\). Instead, we should use the constant rule to get \(\frac{dln2}{dx} = 0\).
Remark
Comparison between Power rule and Exponential Rule
- Power Rule : \((x^a)' = a\cdot x^{a-1}\) requires variable \(x\) be the base and constant \(a\) be the power
- Exponential Rule : \(a^x = lna \cdot a^x\) requires constant \(a\) \((a>0\) and \(a\neq 1)\) be the base and variable \(x\) be the power
- Examples
3.3 Technique : Rewriting the Function
Sometimes it is wise to rewrite the function prior to applying the complicated product rule/quotient rule/etc.
3.3.1 Examples
- Example 1 : Using Logarithmic Identities
For example, if \(f(x) = ln \left( \frac{e^{3x^2 + 1} \cdot (2x+5)^2 \cdot \sqrt{3x-1}}{(4x+1)^3} \right)\), then we may use the logarithmic property to rewrite it as
\(f(x) = ln \left( \frac{e^{3x^2 + 1} \cdot (2x+5)^2 \cdot \sqrt{3x-1}}{(4x+1)^3} \right)\)
\(= ln \left( \frac{e^{3x^2 + 1} \cdot (2x+5)^2 \cdot \sqrt{3x-1}}{(4x+1)^3} \right)\)
\(= ln(e^{3x^2 + 1}(2x+5)^2 \cdot \sqrt{3x-1}) - ln((4x+1)^3)\)
\(= ln(e^{3x^2 + 1}) + ln((2x+5)^2) + ln(\sqrt{3x-1}) - ln((4x+1)^3)\)
\(= (3x^2 + 1) lne + 2ln(2x+5) + \frac{1}{2} ln(3x-1) - 3ln(4x+1)\)
\(= 3x^2 + 1 + 2ln(2x+5) + \frac{1}{2} ln(3x-1) - 3ln(4x+1)\)
Now it is much easier for us to find the derivative.
Using relevant rules, we get
\(\frac{d}{dx} f(x)\)
\(= \frac{d}{dx} [3x^2 + 1 + 2ln(2x+5) + \frac{1}{2} ln(3x-1) - 3ln(4x+1)]\)
\(= 3 \frac{d}{dx} x^2 + \frac{d1}{dx} + 2 \frac{d}{dx} ln(2x+5) + \frac{1}{2} \frac{d}{dx} ln(3x-1) - 3 \frac{d}{dx} ln(4x+1)\)
\(= 3\cdot 2x + 0 + 2 \cdot \frac{2}{2x+5} + \frac{1}{2} \cdot \frac{3}{3x-1} - 3 \cdot \frac{4}{4x+1}\)
\(= 6x + \frac{4}{2x+5} + \frac{3}{2(3x-1)} - \frac{12}{4x+1}\)
- Example 2 : Splitting Long Numerators
For example, it is not a good idea to directly use quotient rule when we find the derivative of \(f(x) = \frac{x^3 + 2x^2 + 3x + 4}{5x^2}\). Instead, we may split the long numerator and then simplify each term:
\(f(x) = \frac{x^3 + 2x^2 + 3x + 4}{5x^2}\)
\(= \frac{x^3}{5x^2} + \frac{2x^2}{5x^2} + \frac{3x}{5x^2} + \frac{4}{5x^2}\)
\(= \frac{x}{5} + \frac{2}{5} + \frac{3}{5}x^{-1} + \frac{4}{5}x^{-2}\)
In this way, we immediately get the the derivative of \(f(x)\) as
\(f'(x)\)
\(= \left( \frac{x}{5} \right)' + \left( \frac{2}{5} \right)' + \left( \frac{3}{5} x^{-1} \right)' + \left( \frac{4}{5} x^{-2} \right)'\)
\(= \frac{1}{5} + 0 + \frac{3}{5} \cdot (-1) x^{-2} + \frac{4}{5} \cdot (-2) x^{-3}\)
\(= \frac{1}{5} - \frac{3}{5} x^{-2} - \frac{8}{5} x^{-3}\)
3.4 High Order Derivative
\(f''(x) = [f'(x)]' =\) derivative of \(f'(x)\)
\(f'''(x) = [f''(x)]' =\) derivative of \(f''(x)\)
\(\dots\)
\(f^{(n)}(x) = [f^{(n-1)}(x)]' =\) derivative of \(f^{(n-1)}(x)\)
3.5 Application : Increasing/Decreasing Intervals of Function
3.5.1 Definition
Let \(f\) be defined on some interval. Then for any two numbers \(x_1\) and \(x_2\) in the interval,
\(f\) is increasing on the interval if \[ f(x_1) < f(x_2) \text{ whenever } x_1 < x_2, \] and \(f\) is decreasing on the interval if \[ f(x_1) > f(x_2) \text{ whenever } x_1 < x_2. \]
3.5.2 Critical Number and Critical Point
- Definitions
The critical numbers for a function \(f\) are those numbers \(c\) in the domain of \(f\) for which
- \(f'(c) = 0\) or
- \(f'(c)\) does not exist
A critical point is a point whose \(x\)-coordinate is the critical number \(c\) and whose \(y\)-coordinate is \(f(c)\).
- Example
For \(f(x) = \frac{x^2 + 1}{2x - 1}\), by quotient rule we have
\(f'(x)\)
\(= \left( \frac{x^2 + 1}{2x - 1} \right)'\)
\(= \frac{(x^2 + 1)'(2x - 1) - (x^2 + 1)(2x - 1)'}{(2x - 1)^2}\)
\(= \frac{2x(2x - 1) - (x^2 + 1) \cdot 2}{(2x - 1)^2}\)
\(= \frac{4x^2 - 2x - 2x^2 - 2}{(2x - 1)^2}\)
\(= \frac{2x^2 - 2x - 2}{(2x - 1)^2}\)
- \(f'(x)\) is undefined at \(x = \frac{1}{2}\), but \(\frac{1}{2}\) is NOT a critical number of \(f(x)\) because it is NOT in the domain
Letting \(f'(x) = 0\) means letting \(2x^2 - 2x - 2 = 0\). By formula for quadratic roots (the roots of \(ax^2 + bx + c = 0\) are \(x = \frac{-b \pm \sqrt{4ac}}{2a}\)), we know
\(\frac{-(-2) \pm \sqrt{(-2)^2 - 4 \cdot 2 \cdot (-2)}}{2\cdot 2} = \frac{2 \pm \sqrt{20}}{4} = \frac{2 \pm 2 \sqrt{5}}{4} = \frac{1 \pm \sqrt{5}}{2}\) are 2 critical numbers.
- Hence, only \(\frac{1 + \sqrt{5}}{2}\) and \(\frac{1 - \sqrt{5}}{2}\) are critical numbers of \(f(x)\), and \(\left( \frac{1 + \sqrt{5}}{2}, f(\frac{1 + \sqrt{5}}{2}) \right)\) and \(\left( \frac{1 - \sqrt{5}}{2}, f(\frac{1 - \sqrt{5}}{2}) \right)\) are critical points. (Calculate \(f(\frac{1 - \sqrt{5}}{2})\) and \(f(\frac{1 + \sqrt{5}}{2})\) by yourself. The same for all following examples.)
3.5.3 For a Given Interval, How to Determine Whether Function \(f(x)\) is Increasing or Decreasing?
Suppose a function \(f\) has a derivative at each point in an open interval. Then
- if \(f'(x) > 0\) for each \(x\) in the interval, \(f\) is increasing on the interval
- if \(f'(x) < 0\) for each \(x\) in the interval, \(f\) is decreasing on the interval
- if \(f'(x) = 0\) for each \(x\) in the interval, \(f\) is constant on the interval
3.5.4 For a Given Function \(f(x)\), How to Find All Intervals on Which It Is Increasing or Decreasing?
- Procedure
- Find all critical numbers of \(f(x)\)
- Separate the whole domain of \(f(x)\) into several intervals by the critical numbers
- Within each interval, choose a value of \(x\), say \(a\), and see whether \(f'(a) > 0, < 0\) or \(= 0\).
- Decide where \(f(x)\) is increasing or decreasing on each interval
- If \(f'(a) > 0\), then \(f(x)\) is increasing on that interval
- If \(f'(a) < 0\), then \(f(x)\) is decreasing on that interval
- If \(f'(a) = 0\), then \(f(x)\) is constant on that interval
- Example
- We have already found that the \(f(x) = \frac{x^2 + 1}{2x - 1}\) is defined on \((-\infty, \frac{1}{2}) \cup (\frac{1}{2}, \infty)\) and critical numbers of \(f(x)\) are \(\frac{1 + \sqrt{5}}{2}\) and \(\frac{1 - \sqrt{5}}{2}\).
- These critical numbers separate the domain of \(f(x)\) into the 1st row of intervals in the following table. Now we have to fill in the 2nd and the 3rd rows.
- Within each interval, we choose a number \(a\) and evaluate \(f'(a)\) to see its sign
Based on the sign of \(f'(a)\), we determine whether the function is increasing or decreasing on that interval
\(x\) \((-\infty\), \(\frac{1 - \sqrt{5}}{2})\) \((\frac{1 - \sqrt{5}}{2}, \frac{1}{2})\) \((\frac{1}{2}, \frac{1 + \sqrt{5}}{2})\) \((\frac{1 + \sqrt{5}}{2}, \infty)\) \(f'(x)\) \(f'(-10) > 0\) \(f'(0) < 0\) \(f'(1) < 0\) \(f'(10) > 0\) \(f(x)\) increasing desreasing decreasing increasing
3.6 Application : Relative Extrema
3.6.1 Definition
Let \(c\) be a number in the domain of a function \(f\). Then \(f(c)\) is a relative (or local) maximum for \(f\) if there exists an open interval \((a, b)\) containing \(c\) such that \[ f(x) \le f(c) \] for all \(x\) in \((a, b)\).
Likewise, \(f(c)\) is a relative (or local) minimum for \(f\) if there exists an open interval \((a, b)\) containing \(c\) such that \[ f(x) \ge f(c) \] for all \(x\) in \((a, b)\).
A function has a relative (or local) extremum at \(c\) if it has either a relative maximum or a relative minimum there. If \(c\) is an endpoint of the domain of \(f\), then we only consider \(x\) in the half-open interval that is in the domain.
3.6.2 How to Determine Whether A Number Gives a Relative Extremum
- First Derivative Test
Let \(c\) be a critical number for function \(f\). Suppose that \(f\) is continous on \((a, b)\) and differentiable on \((a, b)\) except possibly at \(c\), and that \(c\) is the only critical number for \(f\) in \((a, b)\). Then
- \(f(c)\) is a relative maximum of \(f\) if \(f'(x) > 0\) in the interval \((a, c)\) and \(f'(x) < 0\) in the interval \((c, b)\)
- \(f(c)\) is a relative minimum of \(f\) if \(f'(x) < 0\) in the interval \((a, c)\) and \(f'(x) > 0\) in the interval \((c, b)\)
- Second Derivatitve Test
Suppose \(f''(x)\) exists on some open interval containing \(c\) except possibly at \(c\) itself, and suppose \(f'(c) = 0\).
- If \(f''(c) > 0\), then \(f(c)\) is a relative minimum
- If \(f''(c) < 0\), then \(f(c)\) is a relative maximum
- If \(f''(c) = 0\) or \(f''(c)\) does not exist, then the test gives no information about extrema, so use the first derivative test. (Remark : so, if possible, always use First Derivative Test.)
3.6.3 How to Find All Relative Extrema of a Function
- Procedure
- Find all critical numbers of function \(f(x)\), and separate the domain into several intervals by these critical numbers
- At each critical number, use First Derivative Test or Second Derivative Test to determine whether it gives a relative maximum or minimum or no information.
- Example
Using First Derivative Test
For function \(f(x) = \frac{x^2 + 1}{2x - 1}\), we already know the critical numbers are \(\frac{1 + \sqrt{5}}{2}\) and \(\frac{1 - \sqrt{5}}{2}\). Also, we have already got the following table, so we can directly apply the First Derivative Test.
\(x\) \((-\infty\), \(\frac{1 - \sqrt{5}}{2})\) \((\frac{1 - \sqrt{5}}{2}, \frac{1}{2})\) \((\frac{1}{2}, \frac{1 + \sqrt{5}}{2})\) \((\frac{1 + \sqrt{5}}{2}, \infty)\) \(f'(x)\) \(f'(-10) > 0\) \(f'(0) < 0\) \(f'(1) < 0\) \(f'(10) > 0\) \(f(x)\) increasing desreasing decreasing increasing - On \((-\infty\), \(\frac{1 - \sqrt{5}}{2})\), \(f'(x) > 0\) and \(f(x)\) is increasing. On \((\frac{1 - \sqrt{5}}{2}, \frac{1}{2})\), \(f'(x) < 0\) and \(f(x)\) is decreasing. Thus \(f(\frac{1 - \sqrt{5}}{2})\) is a relative maximum.
- On \((\frac{1}{2}, \frac{1 + \sqrt{5}}{2})\), \(f'(x) < 0\) and \(f(x)\) is decreasing. On \((\frac{1 - \sqrt{5}}{2}, \infty)\), \(f'(x) > 0\) and \(f(x)\) is increasing. Thus \(f(\frac{1 + \sqrt{5}}{2})\) is a relative minimum.
- \(f(\frac{1}{2})\) is ignored as it is undefined.
Using Second Derivative Test
For function \(f(x) = \frac{x^2 + 1}{2x - 1}\), we already know \(f'(x) = \frac{2x^2 - 2x - 2}{(2x - 1)^2}\), so the second derivative is
\(f''(x) = [f'(x)]'\)
\(= \left( \frac{2x^2 - 2x - 2}{(2x - 1)^2} \right)'\)
\(= \frac{(2x^2 - 2x - 2)'(2x-1)^2 - (2x^2 - 2x - 2)[(2x-1)^2]'}{(2x - 1)^4}\)
\(= \frac{(4x - 2)(2x-1)^2 - (2x^2 - 2x - 2)[2\cdot 2 \cdot (2x-1)]}{(2x - 1)^4}\)
\(= \frac{(4x - 2)(2x-1)^2 - 4(2x^2 - 2x - 2) (2x-1)}{(2x - 1)^4}\)
\(= \frac{(4x - 2)(2x-1) - 4(2x^2 - 2x - 2)}{(2x - 1)^3}\) [by cancelling \((2x-1)\)]
\(= \frac{8x^2 - 4x - 4x + 2 - 8x^2 + 8x + 8}{(2x - 1)^3}\)
\(= \frac{10}{(2x-1)^3}\)
Thus we have
- \(f'(\frac{1 - \sqrt{5}}{2}) = 0\) and \(f''(\frac{1 - \sqrt{5}}{2}) < 0\), so \(f(\frac{1 - \sqrt{5}}{2})\) is a relative maximum.
- \(f'(\frac{1 + \sqrt{5}}{2}) = 0\) and \(f''(\frac{1 + \sqrt{5}}{2}) > 0\), so \(f(\frac{1 + \sqrt{5}}{2})\) is a relative minimum.
3.7 Application : Concavity of Function
3.7.1 Definition
- A function is concave upward on an interval \((a, b)\) if the graph of the function lies above its tangent line at each point of \((a, b)\).
- A function is concave downward on an interval \((a, b)\) if the graph of the function lies below its tangent line at each point of \((a, b)\).
3.7.2 For a Given Interval, How to Determine Whether Function \(f(x)\) Is Concave Upward or Downward?
Let \(f\) be a function with derivatives \(f'\) and \(f''\) existing at all points in an interval \((a, b)\). Then
- \(f\) is concave upward on \((a, b)\) if \(f''(x) > 0\) for all \(x\) in \((a, b)\)
- \(f\) is concave downward on \((a, b)\) if \(f''(x) < 0\) for all \(x\) in \((a, b)\)
3.7.3 For a Given Function \(f(x)\), How to Find All Intervals on Which It Is Concave Upward or Downcard?
- Procedure
- Find all values of \(x\) such that \(f''(x) = 0\) or \(f''(x)\) does not exist (these values are called possible inflection points, see next section)
- Separate the whole domain of \(f(x)\) into several intervals by these numbers
- Within each interval, choose a value of \(x\), say \(a\), and see whether \(f''(a) > 0, < 0\) or \(= 0\).
- Decide where \(f(x)\) is concave upward or downward on each interval
- If \(f''(a) > 0\), then \(f(x)\) is concave upward on that interval
- If \(f''(a) < 0\), then \(f(x)\) is concave downward on that interval
- Example
For function \(f(x) = \frac{x^2 + 1}{2x - 1}\), we already know \(f''(x) = \frac{10}{(2x - 1)^3}\).
- Find all points where \(f''(x) = 0\) or \(f''(x)\) is undefined.
- \(f''(x) = 0\) never holds because the numerator \(10\) can never equal \(0\).
- \(f''(x)\) is undefined at \(x=\frac{1}{2}\)
- Therefore, \(\frac{1}{2}\) is the only possible inflection point
- The domain of the original function \(f(x)\) is \((-\infty,\frac{1}{2}) \cup (\frac{1}{2},\infty)\), so the possible inflection point \(x=\frac{1}{2}\) doesn't separate the domain any more. As a result, the first row of the following table contains only two intervals.
- Calculate \(f''(x)\) at some special point within each interval.
Based on the sign of the second row of the table, we can determine the concavity of the function \(f(x)\) as follows.
\(x\) \((-\infty, \frac{1}{2})\) \((\frac{1}{2}, \infty)\) \(f''(x)\) \(f''(0) < 0\) \(f''(1) > 0\) \(f(x)\) concave downward concave upward
- Find all points where \(f''(x) = 0\) or \(f''(x)\) is undefined.
3.8 Application : Point of Inflection
3.8.1 Definition
A point where a graph changes concavity is called an inflection point.
3.8.2 How to Determine Whether a Point is an Inflection Point
Suppose \(c\) is a point on interval \((a, b)\), and suppose \(f''(x)\) exists on \((a, b)\) except possibly at \(c\).
- If \(f''(x) < 0\) on \((a, c)\) and \(f''(x) > 0\) on \((c, b)\), then \(c\) is an inflection point
- If \(f''(x) > 0\) on \((a, c)\) and \(f''(x) < 0\) on \((c, b)\), then \(c\) is an inflection point
- Otherwise, \(c\) is not an inflection point.
3.8.3 How to Find All Inflection Points of a Function
- Procedure
- Find all possible inflection points (candidates for further investigation). A point \(c\) is said to be a possible inflection point if \(f''(c) = 0\) or \(f''(c)\) is not defined.
- At each possible inflection point, determine by the above method whether it is truly an inflection point.
- Example
For function \(f(x) = \frac{x^2 + 1}{2x - 1}\), we already know \(f''(x) = \frac{10}{(2x - 1)^3}\). \(f''(x)\) is undefined at \(x=\frac{1}{2}\), and \(f''(x) = 0\) can not be achieved for any value of \(x\).
- Thus \(\frac{1}{2}\) is the only possible inflection points.
- At \(\frac{1}{2}\), the concavity changes, so \(\frac{1}{2}\) is an inflection point.
3.9 Application : More Examples
3.9.1 Example 1
Function \(f(x) = x^4 - x^3 - \frac{x^2}{2} + 11\).
First Derivative
\(f'(x) = 4 x^3 - 3 x^2 - \frac{2x}{2} = 4 x^3 - 3 x^2 - x\)
second Derivative
\(f''(x) = [f'(x)]' = (4x^3 - 3 x^2 - x)' = 12x^2 - 6x - 1\)
- Critical Number
- Let \(f'(x) = 0\). Then we have \(4x^3 - 3x^2 - x = x (4x^2 -3x - 1) = 0\), which means \(x=0\) or \(4x^2 -3x - 1 = 0\). Solve \(4x^2 -3x - 1 = 0\) by quadratic formula we have \(x = \frac{-1}{4}\) or \(x=1\). Hence, \(0\), \(\frac{-1}{4}\) and \(1\) are numbers such that \(f'(x) = 0\).
- \(f'(x)\) is a polynomial and is defined everywhere, so there is no point \(c\) such that \(f'(c)\) is undefined.
- Therefore, critical numbers of \(f(x)\) are \(0\), \(\frac{-1}{4}\) and \(1\).
- Increasing and Decreasing Intervals
- Separate the domain of \(f(x)\) by all critical numbers. The domain of \(f(x)\) is \((-\infty, \infty)\) and critical numbers of \(f(x)\) are \(0\), \(\frac{-1}{4}\) and \(1\), so we have the following table.
- Evaluate \(f'(x)\) at some specific number within each interval and see the sign of \(f'(x)\).
By the sign of \(f'(x)\), determine whether \(f(x)\) is increasing or decreasing on that interval.
\(x\) \((-\infty, \frac{-1}{4})\) \((\frac{-1}{4}, 0)\) \((0, 1)\) \((1, \infty)\) \(f'(x)\) \(f'(-10) < 0\) \(f'(-0.1) > 0\) \(f'(0.5) < 0\) \(f'(10) > 0\) \(f(x)\) decreasing increasing decreasing increasing
Relative Maximum or Minimum
Using First Derivative Test,
- since \(f'(x) < 0\) on \((-\infty, \frac{-1}{4})\) and \(f'(x) > 0\) on \((\frac{-1}{4}, 0)\), we know \(f(\frac{-1}{4})\) (calculate it by yourself) is a local minimum
- similarly, \(f(0)\) is a local maximum, and
- \(f(1)\) is a local minimum
Alternatively, using Second Derivative Test,
- \(f'(\frac{-1}{4}) = 0\) and \(f''(\frac{-1}{4}) = 12 \left( \frac{-1}{4} \right)^2 - 6 \cdot \left( \frac{-1}{4} \right) > 0\), so \(f(\frac{-1}{4})\) is a relative minimum
- similarly, \(f'(0) = 0\) and \(f''(0) < 0\), so \(f(0)\) is a relative maximum
- similarly, \(f'(1) = 0\) and \(f''(1) > 0\), so \(f(1)\) is a relative minimum
Possible Inflection Points
We know \(f''(x) = 12x^2 - 6x - 1\).
- Let \(f''(x) = 12x^2 - 6x - 1 = 0\), then we have \(x = \frac{3 + \sqrt{21}}{12}\) or \(x = \frac{3 - \sqrt{21}}{12}\).
- \(f''(x)\) is a polynomial and is thus defined everywhere, so there exists no \(c\) such that \(f''(c)\) is undefined.
- Therefore, \(\frac{3 + \sqrt{21}}{12}\) and \(\frac{3 - \sqrt{21}}{12}\) are the only two possible inflection points.
- Concavity and Inflection Points
- Separate the domain of \(f(x)\), which is \((-\infty, \infty)\), by all possible inflection points, and we get the following table
- Evaluate \(f''(x)\) at some specific number within each interval and see the sign of \(f''(x)\).
By the sign of \(f''(x)\), determine whether \(f(x)\) is concave upward or concave downward on that interval.
\(x\) \((-\infty, \frac{3 - \sqrt{21}}{12})\) \((\frac{3 - \sqrt{21}}{12}, \frac{3 + \sqrt{21}}{12})\) \((\frac{3 + \sqrt{21}}{12}, \infty)\) \(f''(x)\) \(f''(-10) > 0\) \(f''(0) < 0\) \(f''(10) > 0\) \(f(x)\) concave upward concave downward concave upward
3.9.2 Example 2
Function \(f(x) = e^{1-x^2}\)
First Derivative
\(f'(x) = e^{1-x^2} (-2x)\)
second Derivative
\(f''(x) = [f'(x)]' = (e^{1-x^2} (-2x))'\)
\(= (e^{1-x^2})' (-2x) + e^{1-x^2} (-2x)'\)
\(= e^{1-x^2} (-2x) (-2x) + e^{1-x^2} (-2)\)
\(= e^{1-x^2} (4x^2 - 2)\)
\(= 2 e^{1-x^2} (2x^2 - 1)\)
- Critical Number
- Let \(f'(x) = 0\). Then we have \(e^{1-x^2} (-2x) = 0\), which means \(e^{1-x^2} = 0\) or \(-2x = 0\). We know \(e^{1-x^2} = 0\) has no solution since \(e^{1-x^2} > 0\) always holds, while \(-2x = 0\) implies \(x=0\).
- \(y = e^{1-x^2}\) is defined everywhere and \(y = -2x\) is defined everywhere, so \(f'(x)\) is defined everywhere and there is no point \(c\) such that \(f'(c)\) is undefined.
- Therefore, \(x=0\) is the only critical numbers for \(f(x)\).
- Increasing and Decreasing Intervals
- Separate the domain of \(f(x)\) by all critical numbers. The domain of \(f(x)\) is \((-\infty, \infty)\) and critical numbers of \(f(x)\) is \(0\), so we have the following table.
- Evaluate \(f'(x)\) at some specific number within each interval and see the sign of \(f'(x)\).
By the sign of \(f'(x)\), determine whether \(f(x)\) is increasing or decreasing on that interval.
\(x\) \((-\infty, 0)\) \((0, \infty)\) \(f'(x)\) \(f'(-1) > 0\) \(f'(1) < 0\) \(f(x)\) increasing decreasing
Relative Maximum or Minimum
Using First Derivative Test,
- since \(f'(x) > 0\) on \((-\infty, 0)\) and \(f'(x) < 0\) on \((0, \infty)\), we know \(f(0) = e\) is a local maximum
Alternatively, using Second Derivative Test,
- \(f'(0) = 0\) and \(f''(0) = - 2 e < 0\), so \(f(0) = e\) is a relative maximum
Possible Inflection Points
We know \(f''(x) = 2 e^{1-x^2} (2x^2 - 1)\).
- Let \(f''(x) = 2 e^{1-x^2} (2x^2 - 1) = 0\), then we have \(e^{1-x^2} = 0\) (no solution) or \(2x^2 - 1 = 0\) (which implies \(x=\frac{\sqrt{2}}{2}\) or \(x=\frac{-\sqrt{2}}{2}\))
- \(y = e^{1-x^2}\) is defined everywhere and \(y = 2x^2 - 1\) is define everywhere, so \(f''(x)\) is defined everywhere, and thus there exists no \(c\) such that \(f''(c)\) is undefined.
- Therefore, \(x=\frac{\sqrt{2}}{2}\) and \(x=\frac{-\sqrt{2}}{2}\) are the only two possible inflection points.
- Concavity and Inflection Points
- Separate the domain of \(f(x)\), which is \((-\infty, \infty)\), by all possible inflection points, and we get the following table
- Evaluate \(f''(x)\) at some specific number within each interval and see the sign of \(f''(x)\).
By the sign of \(f''(x)\), determine whether \(f(x)\) is concave upward or concave downward on that interval.
\(x\) \((-\infty, \frac{-\sqrt{2}}{2})\) \((\frac{-\sqrt{2}}{2}, \frac{\sqrt{2}}{2})\) \((\frac{\sqrt{2}}{2}, \infty)\) \(f''(x)\) \(f''(-10) > 0\) \(f''(0) < 0\) \(f''(10) > 0\) \(f(x)\) concave upward concave downward concave upward
3.10 References
- Lial, M. L., Greenwell, R. N., Ritchey, N. P. (2011). Calculus with Applications (10th Edition). Boston, MA : Pearson.
4 Integral
4.1 Antiderivative
4.1.1 Definition
If \(F'(x) = f(x)\), then \(F(x)\) is an antiderivative of \(f(x)\).
4.1.2 Property
- Non-Uniqueness of Antiderivative
If the antiderivative of a function exists, then it is not unique.
For example, both \(F(x) = x^2\) and \(G(x) = x^2 + 1\) are antiderivatives of \(f(x) = 2x\).
- Relationship between Different Antiderivatives
If \(F(x)\) and \(G(x)\) are both antiderivatives of a function \(f(x)\) on an interval, then there is a constant \(C\) such that \[ F(x) - G(x) = C \]
Remark
\(F(x) - G(x) = C\) implies \(F(x) = G(x) + C\). That is to say, once a certain antiderivative of \(f(x)\), say \(G(x)\), is found, then all other antiderivates of \(f(x)\) can be obtained as well simply by adding a constant to \(G(x)\).
4.2 Indefinite Integral
4.2.1 Definition
The most general antiderivative of \(f\) is called the Indefinite Integral of \(f\), and is denoted by \(\int f(x) dx\). The process of calculating integrals is called Integration, and \(f(x)\) is called the integrand.
Caution : Don't miss \(dx\). Here \(dx\) indicates that the integral is with respect to variabale \(x\) (rather than \(u\), \(v\) or \(t\), etc). The importance of this notation can be shown by the following example. Suppose variables \(x\) and \(t\) are independent of each other (\(x\) is not a function of \(t\) and \(t\) is not a function of \(x\)). Then for \(\int f(x) dt\), \(t\) is regarded as the variable (\(dt\) means the integral is with respect to \(t\)) and \(x\) is regarded as a constant. As a result, \(\int x^2 dx = \frac{x^3}{3} + C\), whereas \(\int x^2 dt = x^2 t + C\).
4.2.2 Property
If \(F'(x) = f(x)\), then \(\int f(x) dx = F(x) + C\) for any real number \(C\).
This derives from the property of antiderivates.
Caution : don't miss \(C\). The indefinite integral of a function \(f(x)\) represents the most general antiderivative of a function, so the arbitrary constant \(C\) is indispensable.
4.2.3 Rules
We know
- indefinite integral is the most general antiderivative
- antiderivative is the inverse of derivative
- differentiation rules (for finding derivatives) are available
- addition/subtraction rule
- constant multiplication rule
- product rule
- quotient rule
- chain rule
- rules for special functions (power, expoential, logarithmic, etc)
so we may get integration rules (for finding indefinite integral) by inverting the differentiation rules.
Power Rule (inverting power rule of differentiation)
Recall the power rule of differentiation: for any real number \(n \neq -1\), we have
\[ \left( \frac{x^{n+1}}{n+1} \right)' = \frac{1}{n+1} \cdot (x^{n+1})' = \frac{1}{n+1} \cdot (n+1) x^n = x^n \]
Inverting the above formula, we get the power rule of integration.
\[ \boxed{ \int x^n dx = \frac{x^{n+1}}{n+1} + C, \text{ if } n \neq -1} \]
Examples
- \(\int 1 dx = \int x^0 dx = \frac{x^{0+1}}{0+1} = x + C\) (Constant Rule)
- \(\int 1 dt = \int t^0 dt = \frac{t^{0+1}}{0+1} = t + C\)
- \(\int x dx = \int x^1 dx = \frac{x^{1+1}}{1+1} + C = \frac{x^2}{2} + C\)
- \(\int x^2 dx = \int x^2 dx = \frac{x^{2+1}}{2+1} + C = \frac{x^3}{3} + C\)
- \(\int \sqrt{x} dx = \int x^{\frac{1}{2}} dx = \frac{x^{\frac{1}{2}+1}}{\frac{1}{2}+1} + C = \frac{x^{\frac{3}{2}}}{\frac{3}{2}} + C = \frac{2}{3} x^{\frac{3}{2}} + C\)
- \(\int \frac{1}{\sqrt{x}} dx = \int x^{\frac{-1}{2}} dx = \frac{x^{\frac{-1}{2}+1}}{\frac{-1}{2}+1} + C = \frac{x^{\frac{1}{2}}}{\frac{1}{2}} + C = 2 x^{\frac{1}{2}} + C = 2 \sqrt{x} + C\)
- \(\int \frac{1}{x} dx =\)? Here power \(n = -1\), so the power rule does not apply. Instead, use the Logarithmic Rule below.
Logarithmic Rule (inverting logarithmic rule of differentiation)
Recall the logarithmic rule of differentiation:
\[ (ln|x|)' = \frac{1}{x} \]
Proof
- When \(x = 0\), we have \(|x| = 0\) and thus \(ln|x| = ln0\) is undefined.
- When \(x > 0\), we have \(|x| = x\) and thus \((ln|x|)' = (lnx)' = \frac{1}{x}\).
- When \(x < 0\), we have \(|x| = -x\) and thus \((ln|x|)' = [ln(-x)]' = \frac{1}{-x} \cdot (-x)' = \frac{1}{-x} \cdot (-1) = \frac{1}{x}\).
That is to say, for all values of \(x\) in the domain, the formula \((ln|x|)' = \frac{1}{x}\) holds. \(\blacksquare\)
Inverting the above formula, we get the logarithmic rule of integration.
\[ \boxed{ \int \frac{1}{x} dx = ln|x| + C }\]
Question : Can I write \(\int \frac{1}{x} dx = lnx + C\), rather than \(\int \frac{1}{x} dx = ln|x| + C\)?
Answer : No. When writing down \((lnx)'\), we regard \(f(x) = lnx\) as the initial function, whose domain is \(\{ x : x>0 \}\), so its derivative need be defined just for \(x>0\) as well. Clearly, \(\frac{1}{x}\) is defined for any \(x>0\). On the other hand, when writing down \(\int \frac{1}{x} dx\), we regard \(h(x) = \frac{1}{x}\) as the initial function, whose domain is \((-\infty, 0) \cup (0, \infty)\), so its antiderivatives \(\int h(x) dx\) should be also defined for all \(x \in (-\infty, 0) \cup (0, \infty)\). Clearly, \(lnx + C\) is not defined for any \(x<0\), so it is not an antiderivative of \(h(x) = \frac{1}{x}\). Instead, \(ln|x| + C\) is defined for all \(x \in (-\infty, 0) \cup (0, \infty)\), so it is an qualified antiderivative of \(h(x) = \frac{1}{x}\), .
Exponential Rule (inverting exponential rule of differentiation)
Like we did above, inverting the exponential rule of differentiation, we get the exponential rule of integration.
\[ \boxed{ \int e^x dx = e^x + C } \] \[ \boxed{ \int e^{kx} dx = \frac{e^{kx}}{k} + C, k\neq 0 } \]
For \(a>0\) and \(a\neq 1\),
\[ \boxed{ \int a^x dx = \frac{a^x}{lna} + C, \text{ if } a>0 \text{ and } a \neq 1} \] \[ \boxed{ \int a^{kx} dx = \frac{a^{kx}}{k \cdot lna} + C, \text{ if } a>0, a \neq 1 \text{ and } k\neq 0 } \]
Examples
- \(\int 3^{7x} dx = \frac{3^{7x}}{7 \cdot ln3} + C\)
- \(\int e^{2x} dx = \frac{e^{2x}}{2} + C\)
Addition/Subtraction Rule (inverting addition/subtraction rule of differentiation)
Inverting the addition/subtraction rule of differentiation, we get the addition/subtraction of integration.
If all indicated integrals exist, then
\[ \boxed{ \int [f(x) \pm g(x)] dx = \int f(x) dx \pm \int g(x) dx } \]
Example
\(\int \left( 1 - x + x^2 - \sqrt{x} + \frac{1}{\sqrt{x}} - \frac{1}{x} + 3^{7x} \right) dx\)
\(= \int 1 dx - \int x dx + \int x^2 dx - \int \sqrt{x} dx + \int \frac{1}{\sqrt{x}} dx - \int \frac{1}{x} dx + \int 3^{7x} dx\)
\(= x + C_1 - \frac{x^2}{2} - C_2 + \frac{x^3}{3} + C_3 - \frac{2}{3} x^{\frac{3}{2}} - C_4 + 2 \sqrt{x} + C_5 - ln|x| - C_6 + \frac{3^{7x}}{7ln3} + C_7\)
\(= x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{2}{3} x^{\frac{3}{2}} + 2 \sqrt{x} - ln|x| + \frac{3^{7x}}{7ln3} + C\)
Here \(C_1,\dots, C_7\) are arbitrary real numbers, so their summation \(C_1 - C_2 + C_3 \dots + C_7\) is also an arbitrary number which can be denoted simply by \(C\).
Constant Multiplication Rule (inverting constant multiplication rule of differentiation)
If \(\int f(x) dx\) exists, then \[ \boxed{ \int k f(x) dx = k \int f(x) dx } \]
Examples
\(\int (3 - 4x) dx\)
\(= 3 \int 1 dx - 4 \int x dx\)
\(= 3 (x + C_1) - 4 \cdot \left( \frac{x^2}{2} + C_2 \right)\)
\(= 3x + 3C_1 - 2 x^2 - 4C_2\)
\(= 3x + 2x^2 + C\)
Again, since \(C_1\) and \(C_2\) are arbitrary, \(3C_1-4C_2\) is also an arbitrary number which can be denoted simply be \(C\).
- If \(t\) and \(x\) are independent of each other, then
- \(\int t dx = t \int 1 dx = t(x + C) = tx + tC = tx + C^*\) where \(C^* = tC\) is also an arbitrary number.
- \(\int x dt = x \int 1 dt = x(t + C) = tx + xC = tx + C^*\) where \(C^* = xC\) is also an arbitrary number.
4.2.4 Technique 1 : Rewriting the Expression
Sometimes you may find it difficult to directly apply the above rules. However, if you rewrite the expression, it may become more straightforward.
- Example 1 : Splitting a Long Numerator
Find \(\int f(x) dx\) if \(f(x) = \frac{2 + 3 x^2 - 4 \sqrt{x}}{x^3}\).
Rewrite
\(f(x) = \frac{2 + 3 x^2 - 4 \sqrt{x}}{x^3}\)
\(= \frac{2}{x^3} + \frac{3}{x} - 4 \frac{\sqrt{x}}{x^3}\)
\(= \frac{2}{x^3} + \frac{3}{x} - 4 x^{\frac{1}{2}-3}\)
\(= \frac{2}{x^3} + \frac{3}{x} - 4 x^{\frac{-5}{2}}\)
Now it is ready to apply power rule and logarithmic rule to find \(\int f(x) dx\).
- Example 2 : Expanding a Product or Power
Find \(\int f(x) dx\) if \(f(x) = (3x^4 - 5)^2\).
Rewrite
\(f(x) = (3x^4)^2 + 5^2 - 2 \cdot 3x^4 \cdot 5 = 9x^8 + 25 - 30x^4\)
Now it is ready to apply power rule to find \(\int f(x) dx\).
- Example 3 : Expanding a Product or Power
Find \(\int f(x) dx\) if \(f(x) = (3x^4 - 5) (6x + 7)\)
Rewrite
\(f(x) = (3x^4 - 5) (6x + 7) = 3x^4 \cdot 6x + 3x^4 \cdot 7 - 5 \cdot 6x - 5 \cdot 7 = 18x^5 + 21x^4 - 30x -35\)
Now it is ready to apply power rule to find \(\int f(x) dx\).
4.2.5 Technique 2 : Integration by Substitution
- Introduction
Inverting the chain rule of differentiation (details are omitted here), we get the Substitution Method of integration.
Like chain rule, the substitution method is used for dealing with composite functions. By far, the rules and technique we have learned are just suitable for simple functions. As you will see, without the substitution method, it is extremely hard to find the integral of complicated composite functions.
Considering this is a 1-level course, we won't discuss the formal formula or statement of the substitution method. Instead, let's experience the power of this method through examples. After the last illustrative example, a summary is given.
- Illustrative Examples
Illustrative Example 1
Calculate \(\int ( \sqrt{3x^2 - 4} \cdot 6x ) dx\).
The \(h(x) = \sqrt{3x^2 - 4} \cdot 6x\) is a product of a square root function and a linear function. Obviously, it is hard to directly apply power rule or exponential rule, and rewriting the expression seems not helpful, either.
If you have a good intuition, you may find \((3x^2 - 4)' = 6x\). Yes, this does help. If we \(\boxed{ \text{let variable } u \text{ be the inner function of the original composite integrand} }\), ie, let
\[ \boxed{ u = 3x^2 - 4 } \]
then \[ \frac{du}{dx} = u' = 6x \]
and thus \(\boxed{u'dx \text{ can be represented by } du}\), ie,
\[ \boxed{ du = u' dx = 6x dx } \]
Then by \(\boxed{ \text{replacing the inner function in the original integrand with variable } u}\) and \(\boxed{ \text{ replacing the } u' dx \text{ in the original integral with } du}\), we can \(\boxed{ \text{rewrite the original integral as one only about } u}\)
\[ \int ( \sqrt{3x^2 - 4} \cdot 6x ) dx = \int (\underbrace{3x^2 - 4}_u)^{\frac{1}{2}} \cdot \underbrace{6x dx}_{du} = \int u^{\frac{1}{2}} du \]
Look at the RHS, and you will find there is no \(x\) any more. Instead, it becomes an integral about only \(u\), and the form is much simpler than the original one! Let's calculate it using power rule
\(\int ( \sqrt{3x^2 - 4} \cdot 6x ) dx\) \(= \int u^{\frac{1}{2}} du\) \(= \frac{u^{\frac{1}{2}+1}}{\frac{1}{2}+1} + C\) \(= \frac{2u^{\frac{3}{2}}}{3} + C\)
Now the answer is in term of \(u\), let's get it back to \(x\) by replacing \(u\) with \(u = 3x^2 - 4\).
\(\int ( \sqrt{3x^2 - 4} \cdot 6x ) dx\) \(= \frac{2u^{\frac{3}{2}}}{3} + C\) \(= \frac{2(3x^2 - 4)^{\frac{3}{2}}}{3} + C\)
This is impressive! Just by defining \(u\) as the inner function of the original compostite integrand, we have made things much simpler.
Illustrative Example 2
Calculate \(\int (\sqrt{3x^2 - 4} \cdot 2x) dx\).
This is a little bit harder than Example 1. Again we let
\[ u = 3x^2 - 4 \]
Find \(\frac{du}{dx} = u' = 6x\) and thus
\[ du = u' dx = 6x dx \]
As before, we may simply replace the inner function \(3x^2 - 4\) in the original integral with variable \(u\), but this time \(u' dx = 6x dx\) is not in the original integral \(\int ( \sqrt{3x^2 - 4} \cdot 2x ) dx\), so we can't directly replace it with \(du\). In this case, we should let \(u' dx\) appear by \(\boxed{ \text{multiplying the orginal integrand by } u' \text{ and then dividing it by } u'}\). In this example, \(u=6x\), so we have
\(\int ( \sqrt{3x^2 - 4} \cdot 2x ) dx\)
\(= \int ( \sqrt{3x^2 - 4} \cdot 2x \cdot \frac{6x}{6x}) dx\)
\(= \int (\underbrace{3x^2 - 4}_u)^{\frac{1}{2}} \cdot \frac{2x}{6x} \cdot \underbrace{6xdx}_{du}\)
\(= \frac{1}{3} \int u^{\frac{1}{2}} du\)
\(= \frac{1}{3} (\frac{2u^{\frac{3}{2}}}{3} + C)\)
\(= \frac{2u^{\frac{3}{2}}}{9} + C^*\)
\(= \frac{2(3x^2 - 4)^{\frac{3}{2}}}{9} + C^*\)
This example tells us that sometimes you need rewrite the orginal integral to let \(u'dx\) appear and then replace it with \(du\). Usually, we do this by multiplying the original integrand by \(u'\) and then dividing it by \(u'\).
Illustrative Example 3
Calculate \(\int ( \sqrt{3x - 4} \cdot 2x ) dx\).
This example is in turn a little bit harder than Example 2. Again we let
\[ u = 3x - 4 \]
Find \(\frac{du}{dx} = u' = 3\) and thus
and find
\[ du = u'dx = 3 dx \]
Again \(u' dx = 3dx\) is not in the original integral \(\int ( \sqrt{3x - 4} \cdot 2x ) dx\) so we multiply the integrand by \(u'=3\) and then divide it by \(u'=3\) to let \(u'dx = 3dx\) appear:
\(\int ( \sqrt{3x - 4} \cdot 2x ) dx\)
\(=\int ( \sqrt{3x - 4} \cdot 2x \cdot \frac{3}{3}) dx\)
\(=\int (\underbrace{3x - 4}_{u})^{\frac{1}{2}} \cdot \frac{2x}{3} \cdot \underbrace{3dx}_{du}\)
\(=\frac{2}{3} \int (u^{\frac{1}{2}}x) du\)
Wait, we want to convert the original integral into one only about \(u\), just like those in Example 1 and Example 2, but now we still have \(x\) in the expression after substitution. So let's give up and try another \(u\) or even another method?
Wait, is it possible to \(\boxed{ \text{replace } x \text{ with a function of } u}\) by chance? Yes, look at our definition of \(u = 3x - 4\), and you get \(x = \frac{u + 4}{3}\), which helps us out:
\(\int ( \sqrt{3x - 4} \cdot 2x ) dx\)
\(=\frac{2}{3} \int (u^{\frac{1}{2}} \cdot \underbrace{x}_{\frac{u + 4}{3}} ) du\)
\(=\frac{2}{3} \int ( u^{\frac{1}{2}} \cdot \frac{u + 4}{3} ) du\)
Now the last integral is only about \(u\) and there is no \(x\), so we can find the integral
\(\int ( \sqrt{3x - 4} \cdot 2x ) dx\)
\(=\frac{2}{3} \int ( u^{\frac{1}{2}} \cdot \frac{u + 4}{3} ) du\)
\(=\frac{2}{9} \int u^{\frac{1}{2}} \cdot (u + 4) du\)
\(=\frac{2}{9} \int ( u^{\frac{1}{2}} u + 4u^{\frac{1}{2}} ) du\)
\(=\frac{2}{9} \int ( u^{\frac{3}{2}} + 4u^{\frac{1}{2}} ) du\)
\(=\frac{2}{9} (\frac{2u^{\frac{5}{2}}}{5} + 4 \cdot \frac{2u^{\frac{3}{2}}}{3} + C )\)
\(=\frac{4u^{\frac{5}{2}}}{45} + \frac{16u^{\frac{3}{2}}}{27} + C^*\)
\(=\frac{4(3x-4)^{\frac{5}{2}}}{45} + \frac{16(3x-4)^{\frac{3}{2}}}{27} + C^*\)
This example tells us that if the expression after substitution still contains \(x\), try to replace \(x\) with a function of \(u\).
- General Procedure of Substitution Method
Suppose a composite function \(h(x)\) is given and we want to find \(\int h(x) dx\). Then we follow the steps below to apply the substitution method of integration.
- Identify the inner function \(g(x)\) and let \(u = g(x)\)
- Replace \(g(x)\) with \(u\) in the original integral
- Replace \(u'dx\) with \(du\) in the original integral
- Find \(u' = g'(x)\)
- If \(u'dx\) doesn't appear in the integral yet, then multiply the integrand by \(u'\) and then divide it by \(u'\)
- Replace \(u' dx\) with \(du\) in the integral
- If now the integral is only about \(u\), then calculate it.
- If now the integral still contains \(x\), then replace \(x\) with a function of \(u\). The relationship between \(x\) and \(u\) is determined when we define \(u=g(x)\). Once the integral contains only \(u\), calculate it.
- How to Identify the Inner Function \(g(x)\) and Define \(u\)
- We have already known the power of the substitution method, but for a specific function, how should we identify the inner function \(g(x)\) and then define \(u = g(x)\)?
- Usually, try to let \(u = g(x)\) be
- the quantity under a root symbol
- the base of a power
- the exponent of a power
- the denominator of a fraction
- More Examples
Example 4: \(u=\) base of a power, \(h(x) = (3x-2)^{10}\)
Theoretically, we may expand the power and then apply the power rule to get \(\int h(x) dx\). However, although theoretically possible, it is not practically recommended to expand a power of order greater than 2. Let's try to apply the substitution method.
\(h(x)\) is a power function whose base is another function, so let \(u\) be the base part, and we have
\[ u = 3x - 2 \]
and thus
\[ du = u'dx = 3dx \]
Then we have
\(\int h(x) dx = \int (3x-2)^{10} dx\)
\(= \int (3x-2)^{10} \cdot \frac{3}{3}dx\)
\(= \frac{1}{3} \int (\underbrace{3x-2}_u)^{10} \cdot \underbrace{3dx}_{du}\)
\(= \frac{1}{3} \int u^{10} du\)
\(= \frac{1}{3} (\frac{u^{11}}{11} + C)\)
\(= \frac{u^{11}}{33} + C^*\)
\(= \frac{(3x-2)^{11}}{33} + C^*\)
Example 5: \(u=\) base of a power, \(h(x) = (12x - 8)(3x^2 - 4x + 5)^{100}\)
Again, it is not wise to expand \(h(x)\). Let's try the substitution method.
One factor of \(h(x)\) is a power function whose base is another function, so let \(u\) be the base part, and we have
\[ u = 3x^2 - 4x + 5 \]
and thus
\[ du = u'dx = (6x - 4)dx \]
Then we have
\(\int h(x) dx = \int (12x - 8)(3x^2 - 4x + 5)^{100} dx\)
\(=\int 2 (6x - 4)(3x^2 - 4x + 5)^{100} dx\)
\(=2 \int (\underbrace{3x^2 - 4x + 5}_{u})^{100} \cdot \underbrace{(6x - 4) dx}_{du}\)
\(=2 \int u^{100} du\)
\(=2 \cdot \left( \frac{u^{101}}{101} + C \right)\)
\(=\frac{2 u^{101}}{101} + C^*\)
\(=\frac{2 (3x^2 - 4x + 5)^{101}}{101} + C^*\)
Example 6: \(u=\) base of a power, \(h(x) = \frac{(lnx)^9}{2x}\)
One factor of \(h(x)\) is a power function whose base is another function, so let \(u\) be the base part, and we have
\[ u = lnx \]
and thus
\[ du = u'dx = \frac{1}{x} dx \]
Then we have
\(\int h(x) dx = \int \frac{(lnx)^9}{2x} dx\)
\(= \frac{1}{2} \int (\underbrace{lnx}_{u})^9 \cdot \underbrace{\frac{1}{x} dx}_{du}\)
\(= \frac{1}{2} \int u^9 du\)
\(= \frac{1}{2} \left( \frac{u^{10}}{10} + C \right)\)
\(= \frac{u^{10}}{20} + C^*\)
\(= \frac{(lnx)^{10}}{20} + C^*\)
Example 7: \(u=\) exponent of a power, \(h(x) = 6 e^{3x-2}\)
One factor of \(h(x)\) is a exponential function whose exponent is another function, so let \(u\) be the exponent part, and we have
\[ u = 3x - 2 \]
and thus
\[ du = u'dx = 3 dx \]
Then we have
\(\int h(x) dx = \int 6 e^{3x-2} dx\)
\(= 2 \int e^{\overbrace{3x-2}^u} \cdot \underbrace{3 dx}_{du}\)
\(= 2 \int e^u du\)
\(= 2 (e^u + C)\)
\(= 2 e^u + C^*\)
\(= 2 e^{3x-2} + C^*\)
Example 8: \(u=\) exponent of a power, \(h(x) = 6x^2 e^{4x^3 - 1}\)
One factor of \(h(x)\) is a exponential function whose exponent is another function, so let \(u\) be the exponent part, and we have
\[ u = 4x^3 - 1 \]
and thus
\[ du = u'dx = 12 x^2 dx \]
Then we have
\(\int h(x) dx = \int 6x^2 e^{4x^3 - 1} dx\)
\(= \int e^{4x^3 - 1} \cdot 6x^2 \cdot \frac{2}{2}dx\)
\(= \frac{1}{2} \int e^{\overbrace{4x^3 - 1}^u} \cdot \underbrace{12x^2 dx}_{du}\)
\(= \frac{1}{2} \int e^u du\)
\(= \frac{1}{2} \cdot (e^u + C)\)
\(= \frac{1}{2} \cdot e^{4x^3 - 1} + C^*\)
Example 9: \(u=\) denominator of a fraction, \(h(x) = \frac{2}{3x-2}\)
\(h(x)\) is a fraction whose denominator is another function, so let \(u\) be the denominator, and we have
\[ u = 3x - 2 \]
and thus
\[ du = u'dx = 3 dx \]
Then we have
\(\int h(x) dx = \int \frac{2}{3x-2} dx\)
\(= \int \frac{2}{3x-2} \cdot \frac{3}{3} dx\)
\(= \frac{2}{3} \int \frac{1}{\underbrace{3x-2}_u} \cdot \underbrace{3dx}_{du}\)
\(= \frac{2}{3} \int \frac{1}{u} du\).
\(= \frac{2}{3} \cdot (ln|u| + C)\)
\(= \frac{2}{3} \cdot ln|3x-2| + C^*\)
Example 10: \(u=\) denominator of a fraction, \(h(x) = \frac{3x}{2x-1}\)
\(h(x)\) is a fraction whose denominator is another function, so let \(u\) be the denominator, and we have
\[ u = 2x - 1 \]
and thus
\[ du = u'dx = 2 dx \]
Then we have
\(\int h(x) dx = \int \frac{3x}{2x-1} dx\)
\(= \int \frac{3x}{2x-1} \cdot \frac{2}{2} dx\)
\(= \frac{3}{2} \int \frac{x}{\underbrace{2x-1}_u} \cdot \underbrace{2dx}_{du}\)
\(= \frac{3}{2} \int \frac{x}{u} du\)
There is still a \(x\) in the expression after substitution, so we need find the relationship between \(x\) and \(u\) and replace \(x\) with a function of \(u\). Since \(u = 2x-1\), we have \(x = \frac{u+1}{2}\). Therefore,
\(\int h(x) dx = \int \frac{3x}{2x-1} dx\)
\(= \frac{3}{2} \int \frac{x}{u} du\)
\(= \frac{3}{2} \int \frac{u+1}{2u} du\)
\(= \frac{3}{4} \int \frac{u+1}{u} du\)
\(= \frac{3}{4} \int \left( 1 + \frac{1}{u} \right) du\)
\(= \frac{3}{4} (u + ln|u| + C)\)
\(= \frac{3}{4} (2x - 1 + ln|2x - 1| + C)\)
\(= \frac{3x}{2} - \frac{3}{4} + \frac{3ln|2x - 1|}{4} + C^*\)
Example 11: \(u=\) function under root symbol, \(h(x) = \frac{3x}{\sqrt{2x-1}}\)
\(h(x)\) is a fraction whose denominator is another function. In turn, the denominator is a square root of some other function. In this case, we let \(u\) be the part under the root symbol, and we have
\[ u = 2x - 1 \]
and thus
\[ du = u'dx = 2 dx \]
Then we have
\(\int h(x) dx = \int \frac{3x}{\sqrt{2x-1}} dx\)
\(= \int \frac{3x}{(2x-1)^{\frac{1}{2}}} \cdot \frac{2}{2} dx\)
\(= \frac{3}{2} \int \frac{x}{(\underbrace{2x - 1}_u)^{\frac{1}{2}}} \cdot \underbrace{2dx}_{du}\)
\(= \frac{3}{2} \int \frac{x}{u^{\frac{1}{2}}} du\)
Again, there is an \(x\) in the expression after substitution. Since \(u = 2x-1\), we have \(x = \frac{u+1}{2}\). Therefore,
\(\int h(x) dx = \int \frac{3x}{\sqrt{2x-1}} dx\)
\(= \frac{3}{2} \int \frac{x}{u^{\frac{1}{2}}} du\)
\(= \frac{3}{2} \int \frac{u+1}{2u^{\frac{1}{2}}} du\)
\(= \frac{3}{4} \int \frac{u+1}{u^{\frac{1}{2}}} du\)
\(= \frac{3}{4} \int (u+1)u^{\frac{-1}{2}} du\)
\(= \frac{3}{4} \int (u \cdot u^{\frac{-1}{2}} + u^{\frac{-1}{2}} )du\)
\(= \frac{3}{4} \int (u^{\frac{1}{2}} + u^{\frac{-1}{2}} )du\)
\(= \frac{3}{4} (\frac{2u^{\frac{3}{2}}}{3} + 2u^{\frac{1}{2}} + C)\)
\(= \frac{u^{\frac{3}{2}}}{2} + \frac{3u^{\frac{1}{2}}}{2} + C^*\)
\(= \frac{(2x - 1)^{\frac{3}{2}}}{2} + \frac{3(2x-1)^{\frac{1}{2}}}{2} + C^*\)
4.2.6 Technique 3 : Integration by Parts
- Formula
Inverting the product rule of differentiation (details are omitted here), we get the method of Integration by Parts.
If \(u(x)\) and \(v(x)\) are differentiable functions, then \[ \int (u \cdot v') dx = u \cdot v - \int (u' \cdot v) dx \]
- Remark
For a given integral whose integrand is a product of two factors, if we want to apply integration by parts, how to determine which is \(u\) and which is \(v\)?
The reason why we apply a method is that the method makes the problem simpler and easier. Hence we should choose \(u\) and \(v\) in such a way that \(\int (u' \cdot v) dx\) is easy to calculate. See the following examples.
- Examples
Example 1 : \(\int (ax+b)e^{cx+d} dx\), Type 1 Problem
Find \(\int (2x + 4) e^{3x} dx\).
This indefinite integral can't be calculated by rules or techniques that we have learned in previous sections. Since the integrand is a product of two factors, we may try integration by parts.
Should we let
- \(u = 2x + 4\), \(v' = e^{3x}\), or
- \(u = e^{3x}\), \(v' = 2x + 4\)?
As mentioned before, we should define \(u\) and \(v\) in such a way that \(\int u'v dx\) is easy to calculate. In this example, \((2x+4)'=2\) and \((e^{3x})' = 3e^{3x}\). It may be wise to let \(u = 2x + 4\) because then \(u' = 2\) is very simple. Accordingly, \(v\) should be defined in such a way that \(v' = e^{3x}\), which means \(v = \int e^{3x} dx = \frac{e^{3x}}{3} + C\). Without loss of generality, we let \(C=0\) and thus \(v = \frac{e^{3x}}{3}\).
By the formula of integration by parts, we have \(\int u v' dx = u v - \int u' v dx\) and thus
\(\int [(2x + 4) \cdot e^{3x}] dx = (2x + 4) \cdot \frac{e^{3x}}{3} - \int 2 \cdot \frac{e^{3x}}{3} dx\)
\(= (2x + 4) \cdot \frac{e^{3x}}{3} - \frac{2}{3} \int e^{3x} dx\)
\(= (2x + 4) \cdot \frac{e^{3x}}{3} - \frac{2}{3} \cdot \left( \frac{e^{3x}}{3} + C \right)\)
\(= (2x + 4) \cdot \frac{e^{3x}}{3} - \frac{2e^{3x}}{9} + C^*\)
Example 2 : \(\int (a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + b)e^{cx+d} dx\), Generalized Type 1 Problem, Iterated Application of Integration by Parts
Find \(\int (x^2 + 5) e^{3x + 4} dx\).
This integral \(\int (x^2 + 5) e^{3x + 4} dx\) doesn't fit in the simple Type 1 integration-by-parts problem \(\int (ax+b)e^{cx+d} dx\) in Example 1, because \(x^2 + 5\) doesn't fit in \((ax + b)\). However, let's still apply integration by parts to see what we get. Similar to Example 1, we let \(u=x^2 + 5\) and \(v'=e^{3x + 4}\). Then \(u'=2x\) and \(v = \int e^{3x + 4} dx = \frac{e^{3x + 4}}{3} + C\). Without loss of generality, let \(C=0\) and thus \(v=\frac{e^{3x + 4}}{3}\).
Applying integration by parts \(\int uv' dx = uv - \int u'v dx\), we have
\(\int (x^2 + 5) e^{3x+4} dx\)
\(= (x^2 + 5) \cdot \frac{e^{3x+4}}{3} - \int 2x \cdot \frac{e^{3x+4}}{3} dx\)
\(= (x^2 + 5) \cdot \frac{e^{3x+4}}{3} - \frac{2}{3} \int x e^{3x+4} dx\)
Now we need find \(\int x e^{3x+4} dx\), which is in form of \((ax+b)e^{cx+d}\), similar to Example 1, so we use integration by parts again. Note this is the second time we apply integration by parts for this problem. Since symbols \(u\) and \(v\) are already used, to avoid confusion, this time we let \(s=x\) and \(t' = e^{3x+4}\). Then \(s' = 1\) and \(t = \int e^{3x+4} dx = \frac{e^{3x+4}}{3} + C\). Without loss of generality, let \(C=0\) and thus \(t=\frac{e^{3x+4}}{3}\).
Applying integration by parts \(\int st' dx = st - \int s't dx\), we have
\(\int x e^{3x+4} dx\)
\(= x \cdot \frac{e^{3x+4}}{3} - \int 1 \cdot \frac{e^{3x+4}}{3} dx\)
\(= x \cdot \frac{e^{3x+4}}{3} - \frac{1}{3} \int e^{3x+4} dx\)
\(= x \cdot \frac{e^{3x+4}}{3} - \frac{1}{3} \cdot \frac{e^{3x+4}}{3} + C\)
\(= x \cdot \frac{e^{3x+4}}{3} - \frac{e^{3x+4}}{9} + C\)
Finally, by putting the above result into the previous one, we have
\(\int (x^2 + 5) e^{3x+4} dx\)
\(= (x^2 + 5) \cdot \frac{e^{3x+4}}{3} - \frac{2}{3} \int x e^{3x+4} dx\)
\(= (x^2 + 5) \cdot \frac{e^{3x+4}}{3} - \frac{2}{3} \cdot (x \cdot \frac{e^{3x+4}}{3} - \frac{e^{3x+4}}{9} + C)\)
\(= (x^2 + 5) \cdot \frac{e^{3x+4}}{3} - \frac{2}{3} \cdot (x \cdot \frac{e^{3x+4}}{3} - \frac{e^{3x+4}}{9}) + C^*\)
which is just the answer.
Here is nothing mysterious. We just applied integration by parts for twice. That's it. The order of the polynomial \(x^2 + 5\) in the original integrand is \(2\), so we apply the integration by parts for \(2\) times in total. Generally, for \(\int (a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + b)e^{cx+d} dx\), we apply the integration by parts for \(n\) times. For each time, we let \(u\) be the polynomial and let \(v'\) be \(e^{cx+d}\). Apparently, Example 1 is a special case of this example corresponding to \(n=1\), which applies integration by parts for only once.
Caution : when applying integration by parts for more than once, we should use different symbols for the two variables in each round to avoid confusion. For example, in the first round, we may use \(u\) and \(v\), while in the second round we should use \(s\) and \(t\), etc.
Example 3 : \(\int x^a ln(x^b) dx\), Type 2 Problem
Find \(\int x^7 \cdot ln(x^5) dx\).
This indefinite integral can't be calculated by rules or techniques that we have learned in previous sections. Since the integrand is a product of two factors, we may try integration by parts.
Should we let
- \(u = x^7\), \(v' = ln(x^5)\) or
- \(u = ln(x^5)\), \(v' = x^7\)?
As mentioned before, we should define \(u\) and \(v\) in such a way that \(\int u'v dx\) is simple. In this example, \((x^7) = 7 x^6\) and \((ln(x^5))' = \frac{1}{x^5} \cdot 5x^4 = \frac{5}{x}\). It may be wise to let \(u = ln(x^5)\) because then \(u' = \frac{5}{x}\) is simple. Accordingly, \(v\) should be defined in such a way that \(v' = x^7\), which means \(v = \int x^7 dx = \frac{x^8}{8} + C\). Without loss of generality, we let \(C = 0\) and thus \(v = \frac{x^8}{8}\).
By the formula of integration by parts, we have \(\int u v' dx = u \cdot v - \int u' v dx\) and thus
\(\int ln(x^5) \cdot x^7 dx = ln(x^5) \cdot \frac{x^8}{8} - \int \frac{5}{x} \cdot \frac{x^8}{8} dx\)
\(= ln(x^5) \cdot \frac{x^8}{8} - \frac{5}{8} \cdot \int x^7 dx\)
\(= ln(x^5) \cdot \frac{x^8}{8} - \frac{5}{8} \cdot \left( \frac{x^8}{8} + C \right)\)
\(= ln(x^5) \cdot \frac{x^8}{8} - \frac{5x^8}{64} + C^*\)
Example 4 : \(\int ln(x) dx\), Type 2 Problem, Special Case
Find \(\int ln(x) dx\).
This is a special case of Type 2 Problem corresponding to \(a = 0\) and \(b = 1\). We can rewrite the original problem as \(\int ln(x) dx = \int x^0 ln(x) dx = \int 1 \cdot ln(x) dx\).
Similar to Example 3, let \(u = ln(x)\) and \(v' = 1\). Then \(v = \int v' dx = \int 1 dx = x + C\). Without loss of generality, let \(C=0\) and thus \(v = x\).
By the formula of integration by parts \(\int u v' dx = u \cdot v - \int u' v dx\), we have
\(\int ln(x) dx\)
\(= \int ln(x) \cdot 1 dx = ln(x) \cdot x - \int (lnx)'x dx\)
\(= lnx \cdot x - \int \frac{1}{x} \cdot x dx\)
\(= lnx \cdot x - \int 1 dx\)
\(= lnx \cdot x - x + C\)
- Summary
In this course (not true in general), there are mainly 2 types of problems suitable for integration by parts:
- Type 1 : \(\int (a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + b)e^{cx+d} dx\) where \(a_1, a_2, \dots, a_n, b, c\) and \(d\) are constants. See Example 2. When \(n=1\), the integral becomes \(\int (ax + b)e^{cx+d} dx\). See Example 1.
- Type 2 : \(\int x^a ln(x^b) dx\) where \(a\) and \(b\) are constant. See Example 3 and Example 4.
According to the examples,
- If the integrand is a product in form of \((a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + b)e^{cx+d}\), ie, Type 1, then use integraion by parts for \(n\) times. For the first application, let \(u = a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + b\) and \(v'=e^{cx+d}\). The similar strategy for the second and further applications. Especially, if the integrand is in form of \((ax + b)e^{cx+d}\), then one application of integration by part is enough, by letting \(u=ax+b\) and \(v'=e^{cx+d}\). When applying integration by parts for more than once, we should use different symbols for the two variables in each round to avoid confusion. For example, in the first round, we may use \(u\) and \(v\), while in the second round we should use \(s\) and \(t\), etc.
- If the integrand is a product in form of \(x^a ln(x^b)\), ie, Type 2, then use integration by parts by letting \(u=ln(x^b)\) and \(v'=x^a\).
- Otherwise, try other methods.
- For example, if the integrand is a product of two polynomials, like \(\int (ax+b)(cx+d) dx\), then it is of neither Type 1 nor Type 2. We solve this problem by rewriting (expanding) the product \(\int (ax+b)(cx+d) dx\) \(=\int (ac\cdot x^2 + ad\cdot x + bc\cdot x + bd) dx\) \(= ac\int x^2 dx + ad\int x dx + bc\int x dx + bd\int 1 dx\)
- For example, if the integrand is \(xe^{x^2}\), then it is a product of neither Type 1 nor Type 2. We solve this problem using integration by substitution. Let \(u = x^2\) and thus \(du = u' dx = 2x dx\). then we have \(\int xe^{x^2} dx\) \(= \frac{1}{2} \int e^{x^2} 2x dx\) \(= \frac{1}{2} \int e^u du\) \(= \frac{1}{2} \cdot e^u + C\) \(= \frac{1}{2} \cdot e^{x^2} + C\).
4.2.7 Discussion : Integration by Substitution and Integration by Parts
- Comparison
As we have seen, both Integration by Substitution and Integration by Parts are used for integrands in form of product of two factors, so when should we use Integration by Substitution and when should we use Integration by Parts?
Recall that
- For Integration by Substitution (inversion of Chain Rule of differentiation),
- the formula is \(\int f(u(x)) u'(x) dx = \int f(u) du\)
- we define only one new variable \(u = u(x)\)
- \(u'\) should appear in the original integrand
- we replace \(u(x)\) in the original integrand with variable \(u\)
- we replace \(u'dx\) in the original integrand with \(du\)
- we convert the original integral into an integral \(\int f(u) du\) about variable \(u\) only
- the new integral \(\int f(u) du\) is with respcet to the new variable \(u\) only, so there shouldn't be any \(x\) in the integrand \(f(u)\)
- For Integration by Parts (inversion of Production Rule of differentiation),
- the formula is \(\int u(x)v'(x) dx = u(x)v(x) - \int u'(x)v(x) dx\)
- we define two new variables \(u\) and \(v\)
- \(v'\) should appear in the integrand
- we don't replace anything in the original integrand (We just figure out which factor is \(u\) and which factor is \(v'\). We don't really replace the factors with symbols \(u\) and \(v'\). That is, No Substitution.)
- we convert the original integral into an expression which contains \(\int (u'v) dx\)
- the new integral \(\int (u'v) dx\) is with respect to the original variable \(x\), so the integrand \(u'v\) should be given in term of \(x\) and there is no symbol like \(u,v,u'\) or \(v'\)
Clearly, integration by substitution and integration by parts are different in nature. As a result, they have different scopes of applications. In most cases for this course, only one of them works for each step. Please see the following examples.
- For Integration by Substitution (inversion of Chain Rule of differentiation),
- Examples
Example 1 : Integration by Parts
Calculate \(\int x e^{2x} dx\).
If we use integration by substitution by letting \(u = 2x\) (so \(x = \frac{u}{2}\)) and thus \(u'=2\), then the original integral becomes
\(\int x e^{2x} dx\)
\(= \int x e^{2x} \cdot \frac{2}{2} dx\)
\(= \frac{1}{2} \int x e^{2x} \cdot 2 dx\)
\(= \frac{1}{2} \int x e^u du\)
\(= \frac{1}{2} \int \frac{u}{2} \cdot e^u du\)
\(= \frac{1}{4} \int u e^u du\)
The integrand is still a product of two factors, which is not substantially simpler than the original integral. Therefore, integration by substitution doesn't work for this problem.
The integrand here is a product in form of \((ax+b)e^{cx+d}\), ie, Type 1 of the integration-by-parts problems, so Integration by Parts should work.
In this example, \(x'=1\) and \((e^{2x})' = 2 e^{2x}\). It may be wise to let \(u=x\) because then \(x'\) is simpler than \((e^{2x})'\). Accordingly, \(v\) should be defined in such at way that \(v'=e^{2x}\), which means \(v = \int e^{2x} dx = \frac{e^{2x}}{2} + C\). Without loss of generality, let \(C=0\) and thus \(v = \frac{e^{2x}}{2}\).
By the formula of integration by parts, we have \(\int u v' dx = u v - \int u' v dx\) and thus
\(\int x e^{2x} dx = x \cdot \frac{e^{2x}}{2} - \int (1 \cdot \frac{e^{2x}}{2}) dx\)
\(= x \cdot \frac{e^{2x}}{2} - \frac{1}{2} \int e^{2x} dx\)
\(= x \cdot \frac{e^{2x}}{2} - \frac{1}{2} \cdot \frac{e^{2x}}{2} + C\)
\(= e^{2x} \cdot \frac{x}{2} - e^{2x} \cdot \frac{1}{4} + C\)
\(= e^{2x} \cdot \frac{2x - 1}{4} + C\)
Example 2 : Integration by Substitution
Calculate \(\int x e^{x^2} dx\).
The integrand here is a product of neither Type 1 nor Type 2 of the integration-by-parts problems, so integration by parts may not apply. However, integration by substitution works for this example.
Let \(u = x^2\). Then \(du = u'dx = 2x dx\).
The original integral becomes
\(\int x e^{x^2} dx\)
\(= \int e^{x^2} \cdot x \cdot \frac{2}{2} dx\)
\(= \frac{1}{2} \int e^{x^2} \cdot 2x dx\)
\(= \frac{1}{2} \int e^u du\)
\(= \frac{1}{2} (e^u + C)\)
\(= \frac{1}{2} (e^{x^2} + C)\)
\(= \frac{e^{x^2}}{2} + C^*\)
Remark : Example 1 is \(\int x e^{2x} dx\) and Example 2 is \(\int x e^{x^2} dx\). The two integrals look similar, but need different techniques to calculate.
Example 3 : Using both Integration by Substitution and Integration by Parts
Find \(\int 6x^7 \cdot ln(3x^8 + 5) dx\).
The Type 2 integration-by-parts is \(\int x^a ln(x^b) dx\), so this example \(\int 6x^7 \cdot ln(3x^8 + 3) dx\) doesn't fit in the Type 2 integration-by-parts problem.
Since integration by parts doesn't work, let's try integration by substitution. Let \(u = 3x^8 + 5\). Then we have \(u' = 24 x^7\) and thus \(du = u' dx = 24 x^7 dx\). Therefore,
\(\int 6x^7 \cdot ln(3x^8 + 5) dx\)
\(= \int 6x^7 \cdot ln(3x^8 + 5) \frac{24}{24}dx\)
\(= \frac{6}{24} \int ln(3x^8 + 5) \cdot 24 x^7 dx\)
\(= \frac{1}{4} \int ln(u) du\)
Now we need find \(\int ln(u) du\), which fits in the Type 2 integration-by-parts problem. To apply integration by parts, we need define two new variables like "\(u\)" and "\(v\)". However, we have already used symbol "\(u\)" in the previous substitution and now \(u\) is the "original variable" in the integral \(\int ln(u) du\). Thus, to avoid confusion, let's use symbols \(s\) and \(t\) this time for the integration by parts. Define \(s = ln(u)\) and \(t' = 1\). By \(t' = 1\), we get \(t = \int t' du = \int 1 du = u + C\). Without loss of generality, let \(C = 0\) and thus \(t = u\). For this problem, the formula for integration by parts is \(\int s t' du = st - \int s't du\), and thus
\(\int ln(u) du = \int ln(u) \cdot 1 du = ln(u) \cdot u - \int \frac{1}{u} \cdot u du\)
\(= ln(u) \cdot u - \int 1 du\)
\(= ln(u) \cdot u - u + C\).
Putting the result back into the previous expression, we get
\(\int 6x^7 \cdot ln(3x^8 + 5) dx\)
\(= \frac{1}{4} \int ln(u) du\)
\(= \frac{1}{4} (ln(u) \cdot u - u + C)\)
Replacing \(u\) with \(3x^8 + 5\), we get
\(\int 6x^7 \cdot ln(3x^8 + 5) dx\)
\(= \frac{1}{4} (ln(u) \cdot u - u + C)\)
\(= \frac{1}{4} (ln(3x^8 + 5) \cdot (3x^8 + 5) - (3x^8 + 5) + C)\)
\(= \frac{ln(3x^8 + 5) \cdot (3x^8 + 5)}{4} - \frac{3x^8 + 5}{4} + C^*\)
Example 4 : Using either Integration by Substitution or Integration by Parts
Find \(\int \frac{1}{x} \cdot ln(x) dx\).
Method 1 : Integration by Substitution
Let \(u = ln(x)\). Then \(du = u' dx = \frac{1}{x} dx\) and thus
\(\int \frac{1}{x} \cdot ln(x) dx\)
\(= \int ln(x) \cdot \frac{1}{x} dx\)
\(= \int u du\)
\(= \frac{u^2}{2} + C\)
\(= \frac{[ln(x)]^2}{2} + C\)
Method 2 : Integration by Parts
Let \(u = ln(x)\) and \(v' = \frac{1}{x}\). Then \(u' = \frac{1}{x}\) and \(v = \int v' dx = \int \frac{1}{x} dx = ln|x| + C\). The original integral \(\int \frac{1}{x} \cdot ln(x) dx\) is defined only for \(x > 0\), so \(v = ln|x| + C = ln(x) + C\). Therefore, by the formula for integration by parts \(\int uv' dx = uv - \int u'v dx\), we have
\(\int ln(x) \cdot \frac{1}{x} dx = ln(x) \cdot (ln(x) + C) - \int \frac{1}{x} \cdot (ln(x) + C) dx\)
\(\implies \int ln(x) \cdot \frac{1}{x} dx = ln(x) \cdot ln(x) + C \cdot ln(x) - \int \frac{1}{x} \cdot ln(x) dx - C \int \frac{1}{x} dx\)
Adding \(\int ln(x) \cdot \frac{1}{x} dx\) to both sides, we get
\(2 \int ln(x) \cdot \frac{1}{x} dx = ln(x) \cdot ln(x) + C \cdot ln(x) - C \int \frac{1}{x} dx\)
\(\implies 2 \int ln(x) \cdot \frac{1}{x} dx = [ln(x)]^2 + C \cdot ln(x) - C (ln(x) + C_1)\)
\(\implies 2 \int ln(x) \cdot \frac{1}{x} dx = [ln(x)]^2 + C \cdot ln(x) - C \cdot ln(x) - C \cdot C_1\)
\(\implies 2 \int ln(x) \cdot \frac{1}{x} dx = [ln(x)]^2 - C \cdot C_1\)
\(\implies \int ln(x) \cdot \frac{1}{x} dx = \frac{[ln(x)]^2}{x} - \frac{C \cdot C_1}{2} = \frac{[ln(x)]^2}{x} + C^*\)
Which is the same as the answer obtained by integration by substitution.
4.3 Definite Integral
4.3.1 Introduction
The area under the curve of a positive function.
4.3.2 Definition
If \(f\) is defined on the interval \([a, b]\), then the Definite Integral of \(f\) from \(a\) to \(b\) is given by
\[ \int_a^b f(x)dx = \lim_{n\to\infty} \sum_{i=1}^{n} f(x_i) \Delta x \]
provided the limit exists, where \(\Delta x = \frac{b-a}{n}\) and \(x_i\) is any value of \(x\) in the \(i\) -th interval.
- Remark
- "\(dx\)" means that the integral is with respect to variable \(x\), ie, we regard \(x\) as the variable of interest.
- \(a\) and \(b\) are called lower limit and upper limit of the definite integral, respectively.
- In most cases, it is quite hard to calculate a definite integral by definition. Fortunately, the Fundamental Theorem of Calculus can help us convert the problem of definite integral into a problem of indefinite integral.
4.3.3 Properties
If all indicated definite integrals exist, then
- \(\int_a^a f(x) dx = 0\)
- \(\int_a^b k \cdot f(x) dx = k \cdot \int_a^b f(x) dx\) for any real constant \(k\)
- \(\int_a^b [f(x) \pm g(x)] dx = \int_a^b f(x)dx \pm \int_a^b g(x) dx\)
- \(\int_a^b f(x) dx = \int_a^c f(x) dx + \int_c^b f(x) dx\) for any real number \(c\)
- \(\int_a^b f(x) dx = - \int_b^a f(x) dx\)
- Example
Suppose \(\int_7^1 f(x) dx = 5\) and \(\int_3^7 f(x) dx = 2\). Find \(\int_1^3 (-3) \cdot f(x) dx\).
We know \(5 = \int_7^1 f(x) dx = - \int_1^7 f(x) dx\), so \(\int_1^7 f(x) dx = -5\).
Also, \(\int_1^7 f(x) dx = \int_1^3 f(x) dx + \int_3^7 f(x) dx\), so \(\int_1^3 f(x) dx = \int_1^7 f(x) dx - \int_3^7 f(x) dx\).
Therefore,
\(\int_1^3 (-3) \cdot f(x) dx\)
\(= -3 \int_1^3 f(x) dx\)
\(= -3 \cdot (\int_1^7 f(x) dx - \int_3^7 f(x) dx)\)
\(= -3 \cdot (-5 - 2)\)
\(= -3 \cdot (-7)\)
\(= 21\)
4.4 Fundamental Theorem of Calculus
4.4.1 Statement of The Theorem
Let \(f\) be continuous on the interval \([a, b]\), and let \(F\) be any antiderivative of \(f\). Then \[ \int_a^b f(x) dx = F(b) - F(a) = F(x) \big|_a^b \]
- Remark
- The theorem tells us that we can convert a problem about definite integral into one about indefinite integral.
- Without loss of generality, we may let \(F\) be the antiderivative of \(f\) in which the constant term \(C=0\).
- The requirement "\(f\) be continuous on the interval \([a, b]\)" is necessary.
4.4.2 Examples
Example 1 : FTC Applicable
\(\int_2^5 4x^3 dx\)
\(= 4 \int_2^5 x^3 dx\)
\(= 4 \cdot \frac{x^{3+1}}{3+1} \big|_2^5\)
\(= 4 \cdot \frac{x^{4}}{4} \big|_2^5\)
\(= x^4 \big|_2^5\)
\(= 5^4 - 2^4\)
\(= 609\)
Example 2 : FTC Not Applicable
\(\int_{-2}^{3} \frac{1}{x} dx\)
Note \(f(x) = \frac{1}{x}\) is not continuous on \([-2, 3]\) because it is undefined at \(x=0\). Hence the FTC can NOT be applied to this integral, and the following answer is WRONG:
\(\int_{-2}^{3} \frac{1}{x} dx\)
\(= ln|x| \big|_{-2}^3\)
\(= ln|3| - ln|-2|\)
\(= ln3 - ln2\)
\(= ln\frac{3}{2}\)
In fact, \(\int_{-2}^{3} \frac{1}{x} dx\) doesn't exist.
Example 3 : FTC and Integration by Substitution
Find \(\int_2^5 \frac{1}{2x-1} dx\).
CORRECT ANSWER
First find the indefinite integral \(\int \frac{1}{2x-1} dx\).
The integrand is a fraction whose denominator is another function, so we try to apply integration by substitution.
Let \(u = 2x-1\). Then \(du = u'dx = 2 dx\) and thus
\(\int \frac{1}{2x-1} dx\)
\(= \int \frac{1}{2x-1} \cdot \frac{2}{2} dx\)
\(= \frac{1}{2} \int \frac{1}{2x-1} \cdot 2 dx\)
\(= \frac{1}{2} \int \frac{1}{u} du\)
\(= \frac{ln|u|}{2} + C\)
The answer is in term of \(u\), so we get it back to \(x\), as we always did
\(\int \frac{1}{2x-1} dx\)
\(= \frac{ln|u|}{2} + C\)
\(= \frac{ln|2x - 1|}{2} + C\)
Evaluate \(\int \frac{1}{2x-1} dx\) at \(2\) and \(5\) and then find the difference
\(\int_2^5 \frac{1}{2x-1} dx\)
\(= \frac{ln|2\cdot 5 - 1|}{2} - \frac{ln|2\cdot 2 - 1|}{2}\)
\(= \frac{ln9}{2} - \frac{ln3}{2}\)
\(= \frac{ln\frac{9}{3}}{2}\)
\(= \frac{ln3}{2}\), which is the final answer.
WRONG ANSWER
The following answer is wrong.
\(\int_2^5 \frac{1}{2x-1} dx\)
\(= \int_2^5 \frac{1}{2x-1} \cdot \frac{2}{2} dx\)
\(= \frac{1}{2} \int_2^5 \frac{1}{2x-1} \cdot 2 dx\)
\(= \frac{1}{2} \int_2^5 \frac{1}{u} du\)
\(= \frac{1}{2} ln|u| \big|_2^5\)
\(= \frac{1}{2} (ln5 - ln2)\)
\(= \frac{ln2.5}{2}\)
Why is it wrong? Look at the 3rd and the 4th lines, between which we convert the original integral from one about variable \(x\) into one about variable \(u\). In the original integral \(\int_2^5 \frac{1}{2x-1} dx\), the upper limit \(5\) and lower limit \(2\) are with respect to \(x\), not \(u\). When we change the variable from \(x\) to \(u\), the integral limits should also change accordingly : when \(x=2\), \(u = 2 \cdot 2 - 1 = 3\); when \(x = 5\), \(u = 2 \cdot 5 - 1 = 9\), so we should have
\(\int_2^5 \frac{1}{2x-1} dx\)
\(= \int_2^5 \frac{1}{2x-1} \cdot \frac{2}{2} dx\)
\(= \frac{1}{2} \int_2^5 \frac{1}{2x-1} \cdot 2 dx\)
\(= \frac{1}{2} \int_3^9 \frac{1}{u} du\)
\(= \frac{1}{2} ln|u| \big|_3^9\)
\(= \frac{1}{2} (ln9 - ln3)\)
\(= \frac{ln3}{2}\)
However, the above way (replacing integral limits of \(x\) with integral limits of \(u\)) is Not Recommended, because it is unnecessary (it is not a must-use method for any problem) and you might frequently forget to change the integral limits. Instead, follow the correct answer at the beginning of this example (write the expression in term of \(x\) and thus there is no need to change the integral limits).
Example 4 : FTC and Integration by Parts
Find \(\int_1^3 (2x+3)e^{4x+5} dx\).
First find the indefinite integral \(\int (2x+3)e^{4x+5} dx\).
The integrand is a product of two factors and it fits in the Type 1 of integral-by-parts problems. Therefore, we define \(u = 2x + 3\) and define \(v\) is such a way that \(v' = e^{4x+5}\), which means \(v = \int e^{4x+5} dx = \frac{e^{4x+5}}{4} + C\). Without loss of generality, let \(C=0\) and thus \(v=\frac{e^{4x+5}}{4}\).
By the formula of integration by parts, we have \(\int u v' dx = u v - \int u' v dx\) and thus
\(\int (2x+3) e^{4x+5} dx = (2x+3) \cdot \frac{e^{4x+5}}{4} - \int (2 \cdot \frac{e^{4x+5}}{4}) dx\)
\(= (2x+3) \cdot \frac{e^{4x+5}}{4} - \frac{1}{2} \int e^{4x+5} dx\)
\(= (2x+3) \cdot \frac{e^{4x+5}}{4} - \frac{1}{2} \cdot \frac{e^{4x+5}}{4} + C\)
\(= (4x+6) \cdot \frac{e^{4x+5}}{8} - \frac{e^{4x+5}}{8} + C\)
\(= e^{4x+5} \cdot \frac{4x+6-1}{8} + C\)
\(= e^{4x+5} \cdot \frac{4x+5}{8} + C\)
Now we have got the indefinite integral, by FTC, we have
\(\int_1^3 (2x+3)e^{4x+5} dx = e^{4x+5} \cdot \frac{4x+5}{8} \big|_1^3\)
\(= \frac{17e^{17}}{8} - \frac{9e^9}{8}\)
\(= \frac{17e^{17} - 9e^9}{8}\)
4.5 improper Integral
4.5.1 Definitions
If \(f\) is continuous on the indicated interval and if the indicated limits exist, then \[ \int_{a}^{\infty} f(x) dx = \lim_{b\to\infty} \int_{a}^{b} f(x) dx \] \[ \int_{-\infty}^{b} f(x) dx = \lim_{a\to-\infty} \int_{a}^{b} f(x) dx \] \[ \int_{-\infty}^{\infty} f(x) dx = \int_{-\infty}^{c} f(x) dx + \int_{c}^{\infty} f(x) dx \] for real numbers \(a, b\) and \(c\), where \(c\) is arbitrarily chosen. Without loss of generality, we usually let \(c = 0\).
If the expressions on the right side exist, the integrals are convergent; otherwise, they are divergent. A convergent integral has a value that is a finite real number. A divergent integral does not, often because the area under the curve is infinitely large.
4.5.2 Useful Limits About Infinity
\[ - (-\infty) = \infty \]
\[ \infty + \infty = \infty \]
\[ -\infty - \infty = - \infty \]
\[ \infty - \infty = \text{ it depends } \]
\[ \infty \cdot \infty = \infty \]
\[ (-\infty) \cdot (-\infty) = \infty \]
\[ \infty \cdot (-\infty) = - \infty \]
\[ k \pm \infty = \infty \text{ for any constant } k \]
\[ k \pm (-\infty) = -\infty \text{ for any constant } k \]
\[ k \cdot \infty = \infty \text{ for any constant } k > 0 \]
\[ k \cdot (-\infty) = -\infty \text{ for any constant } k > 0 \]
\[ \frac{1}{\infty} = 0\]
\[ \frac{1}{-\infty} = 0\]
\[ \frac{1}{0^+} = \infty \]
\[ \frac{1}{0^-} = -\infty \]
\[ \lim\limits_{x\to\infty} e^{x} = \infty \]
\[ \lim\limits_{x\to -\infty} e^{x} = 0 \]
\[ \lim\limits_{x\to\infty} ln(x) = \infty\]
\[ \lim\limits_{x\to 0^+} ln(x) = -\infty\]
\[ \lim\limits_{x\to\infty} x^r = \infty \text{ for any } r>0 \]
\[ \lim\limits_{x\to-\infty} x^n = -\infty \text{ if } n > 0 \text{ is an odd integer} \]
\[ \lim\limits_{x\to-\infty} x^n = \infty \text{ if } n > 0 \text{ is an even integer} \]
\[ \lim\limits_{x\to-\infty} x^{\frac{1}{n}} = -\infty \text{ if } n > 0 \text{ is an odd integer} \]
\[ \lim\limits_{x\to-\infty} x^{\frac{1}{n}} = \text{ undefined if } n > 0 \text{ is an even integer} \]
\[ \lim\limits_{x\to\infty} \frac{1}{x^r} = 0 \text{ for any } r>0\]
\[ \lim\limits_{x\to -\infty} \frac{1}{x^r} = 0 \text{ for any } r >0 \text{ such that } x^r \text{ is defined} \]
\[ \lim\limits_{x\to\infty} a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + a_0 = \lim\limits_{x\to\infty} a_n x^n \]
\[ \lim\limits_{x\to-\infty} a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + a_0 = \lim\limits_{x\to -\infty} a_n x^n \]
4.5.3 Examples
- Example 1
Find \(\int_{-\infty}^{0} e^{2x - 1} dx\).
By exponential rule integration, we know \(\int e^{2x-1} dx = \frac{e^{2x-1}}{2} + C\).
By FTC, we have \(\int_{a}^{0} e^{2x-1} dx\) \(= \frac{e^{2x-1}}{2} \big|_{a}^{0}\) \(= \frac{e^{2\cdot 0 - 1}}{2} - \frac{e^{2\cdot a - 1}}{2}\) \(= \frac{e^{-1}}{2} - \frac{e^{2a - 1}}{2}\)
By the formula,
\(\int_{-\infty}^{0} e^{2x-1} dx\)
\(= \lim\limits_{a\to -\infty} \int_{a}^{0} e^{2x-1} dx\)
\(= \lim\limits_{a\to -\infty} \left( \frac{e^{-1}}{2} - \frac{e^{2a-1}}{2} \right)\)
\(= \frac{e^{-1}}{2} - \frac{ \lim\limits_{a\to -\infty} e^{2a-1}}{2}\)
\(= \frac{e^{-1}}{2} - \frac{0}{2}\)
\(= \frac{e^{-1}}{2}\)
which is a finite number, so the improper integral is convergent.
- Example 2
Find \(\int_{0}^{\infty} e^{2x - 1} dx\).
By Example 1, we know \(\int_{0}^{b} e^{2x-1} dx\) \(= \frac{e^{2x-1}}{2} \big|_{0}^{b}\) \(= \frac{e^{2\cdot b - 1}}{2} - \frac{e^{2\cdot 0 - 1}}{2}\) \(= \frac{e^{2b-1}}{2} - \frac{e^{- 1}}{2}\)
By the formula,
\(\int_{0}^{\infty} e^{2x-1} dx\)
\(= \lim\limits_{b\to \infty} \int_{0}^{b} e^{2x-1} dx\)
\(= \lim\limits_{b\to \infty} \left( \frac{e^{2b-1}}{2} - \frac{e^{-1}}{2} \right)\)
\(= \infty - \frac{e^{-1}}{2}\)
\(= \infty\)
so the improper integral is divergent.
- Example 3
Find \(\int_{-\infty}^{1} \frac{2x}{x^2 + 1} dx\).
We need first find the indefinite integral \(\int \frac{2x}{x^2 + 1} dx\).
Let \(u=x^2+1\). Then \(u'=(x^2+1)=2x\) and \(du=u'dx = 2xdx\). Thus
\(\int \frac{2x}{x^2 + 1} dx\)
\(= \int \frac{1}{x^2 + 1} 2xdx\)
\(= \int \frac{1}{u} du\)
\(= ln|u| + C\)
\(= ln|x^2+1| + C\)
so the definite integral
\(\int_a^1 \frac{2x}{x^2 + 1} dx\)
\(= ln|x^2+1| \big|_a^1\)
\(= ln|1^2+1| - ln|a^2+1|\)
\(= ln|2| - ln|a^2+1|\)
\(= ln2 - ln(a^2 + 1)\)
\(= ln\left( \frac{2}{a^2 + 1} \right)\)
By the formula,
\(\int_{-\infty}^{1} \frac{2x}{x^2 + 1} dx\) \(= \lim\limits_{a\to -\infty} ln\left( \frac{2}{a^2 + 1} \right)\) \(= ln(0^+)\) \(= -\infty\)
so the improper integral is divergent.
- Example 4
Find \(\int_{1}^{\infty} \frac{2x}{x^2 + 1} dx\).
Similar to Example 3, we know the definite integral
\(\int_1^b \frac{2x}{x^2 + 1} dx\)
\(= ln|x^2+1| \big|_1^b\)
\(= ln|b^2+1| - ln|1^2+1|\)
\(= ln|b^2+1| - ln|2|\)
\(= ln(b^2+1) - ln2\)
\(= ln\left( \frac{b^2+1}{2} \right)\)
By the formula,
\(\int_{1}^{\infty} \frac{2x}{x^2 + 1} dx\) \(= \lim\limits_{b\to \infty} ln\left( \frac{b^2+1}{2} \right)\) \(=ln(\infty)\) \(=\infty\)
so the improper integral is divergent.
- Example 5
Find \(\int_{-\infty}^{\infty} \frac{2x}{(x^2 + 1)^2} dx\).
We need first find the indefinite integral \(\int \frac{2x}{(x^2 + 1)^2} dx\).
Using integration by substitution, let \(u = x^2 + 1\), then \(du= u' dx = (x^2 + 1)' dx = 2x dx\), and
\(\int \frac{2x}{(x^2 + 1)^2} dx\)
\(= \int \frac{1}{(x^2 + 1)^2} 2x dx\)
\(= \int \frac{1}{u^2} du\)
\(= \int u^{-2} du\)
\(= - u^{-1} + C\)
\(= - \frac{1}{u} + C\)
\(= - \frac{1}{x^2 + 1} + C\)
By FTC, we have \(\int_{a}^{0} \frac{2x}{(x^2 + 1)^2} dx\) \(= - \frac{1}{x^2 + 1} \big|_{a}^{0}\) \(= \left( - \frac{1}{0^2 + 1} \right) - \left( - \frac{1}{a^2 + 1} \right)\) \(= - 1 + \frac{1}{a^2 + 1}\)
Similarly, we have \(\int_{0}^{b} \frac{2x}{(x^2 + 1)^2} dx\) \(= - \frac{1}{x^2 + 1} \big|_{0}^{b}\) \(= \left( - \frac{1}{b^2 + 1} \right) - \left( - \frac{1}{0^2 + 1} \right)\) \(= - \frac{1}{b^2 + 1} + 1\)
By the formula,
\(\int_{-\infty}^{\infty} \frac{2x}{(x^2 + 1)^2} dx\)
\(= \lim\limits_{a\to -\infty} \int_{a}^{0} \frac{2x}{(x^2 + 1)^2} dx + \lim\limits_{b\to \infty} \int_{0}^{b} \frac{2x}{(x^2 + 1)^2} dx\)
\(= \lim\limits_{a\to -\infty} \left( - 1 + \frac{1}{a^2 + 1} \right) + \lim\limits_{b\to \infty} \left( - \frac{1}{b^2 + 1} + 1 \right)\)
\(= (- 1 + 0) + ( 0 + 1 )\)
\(= 0\)
which is a finite number, so the improper integral is convergent.
4.6 Application : Area Between Two Curves
4.6.1 Formulae
- If \(f(x)\) and \(g(x)\) are continuous functions and \(f(x) \ge g(x)\) on \([a, b]\), then the area between the curves of \(f(x)\) and \(g(x)\) from \(x=a\) to \(x=b\) is given by \(\int_a^b [f(x) - g(x)] dx\).
- If \(f(x)\) and \(g(x)\) are continuous functions and \(f(x) \le g(x)\) on \([a, b]\), then the area between the curves of \(f(x)\) and \(g(x)\) from \(x=a\) to \(x=b\) is given by \(\int_a^b [g(x) - f(x)] dx\).
4.6.2 Procedure
To calculate the area of the region between curves of functions \(f(x)\) and \(g(x)\), we
- Figure out the left endpoint and right endpoint of the region
- If an interval \([a, b]\) is given, then \(a\) and \(b\) are just the left endpoint and the right endpoint of the region, respectively
- If two vertical lines \(x = a\) and \(x = b\) are given and \(a < b\), then \(a\) and \(b\) are just the left endpoint and the right endpoint of the region, respectively
- If the left endpoint and right endpoint are not given, then
- Find all points \(c\) such that \(f(c) = g(c)\), say \(c_1, c_2, \dots, c_n\).
- Then the left endpoint and the right endpoint of the region are \(a = \min \{ c_1, c_2, \dots, c_n \}\) and \(b = \max \{ c_1, c_2, \dots, c_n \}\), respectively.
- Determine the subintervals of \([a, b]\) on which \(f(x) \ge g(x)\) or \(f(x) \le g(x)\)
- Find all points \(c\) on interval \((a, b)\) such that \(f(c) = g(c)\), say \(c_1, c_2, \dots, c_n\). Without loss of generality, suppose \(a < c_1 < c_2 < \dots < c_n < b\)
- Separate the whole interval \((a, b)\) by \(c_1, c_2, \dots, c_n\) into subintervals \((a, c_1), (c_1, c_2), \dots, (c_n, b)\)
- Within each subinterval, pick a test number, say \(d\), and see whether \(f(d) \ge g(d)\) or \(f(d) \le g(d)\)
- if \(f(d) \ge g(d)\), then \(f(x) \ge g(x)\) on that whole subinterval
- if \(f(d) \le g(d)\), then \(f(x) \le g(x)\) on that whole subinterval
- Within each subinterval, calculate the area of the region between \(f(x)\) and \(g(x)\) via definite integral using the formulae
- Sum up all the areas on subintervals calculated in Step 3, and the total is just area of the whole region between \(f(x)\) and \(g(x)\) on interval \([a, b]\)
4.6.3 Examples
- Example 1 : Endpoints of the Region Are Given
Find the area of the region bounded by the curves of \(f(x) = 3x^2 + 1\), the \(x\)-axis, \(x=3\) and \(x=5\).
Let's rephrase the question : find the area of the region between curves of \(f(x) = 3x^2 + 1\) and \(g(x) = 0\) (\(x\)-axis) on interval \([3, 5]\).
First, we need find all subintervals of \([3, 5]\) on which \(f(x) \ge g(x)\) or \(f(x) \le g(x)\).
- Find all points where \(f(x) = g(x)\). Let \(f(x) = g(x)\), ie, \(3x^2 + 1 = 0\), and then we see there is no solution to this equation. Hence we don't separate the interval \([3, 5]\) any more.
- Within \([3, 5]\), we pick a test number \(d = 4\). Then \(f(4) = 3 \cdot 4^2 + 1 = 49\), \(g(4) = 0\), \(f(4) > g(4)\) and thus \(f(x) > g(x)\) on \([3, 5]\).
Therefore, the area between \(f(x)\) and \(g(x)\) on interval \([3,5]\) equals the definite integral
\(\int_3^5 [ f(x) - g(x) ] dx\)
\(= \int_3^5 [ 3x^2 + 1 - 0 ] dx\)
\(= \int_3^5 (3x^2 + 1) dx\)
\(= (x^3 + x) \big|_3^5\)
\(= (5^3 + 5) - (3^3 + 3)\)
\(= 100\)
- Example 2 : Endpoints of the Region Are Given
Find the area of the region bounded by the curves of \(f(x) = x^2 - 1\), the \(x\)-axis, \(x= -2\) and \(x=3\).
Let's rephrase the question : find the area of the region between curves of \(f(x) = x^2 - 1\) and \(g(x) = 0\) (\(x\)-axis) on interval \([-2, 3]\).
First, we need find all subintervals of \([-2, 3]\) on which \(f(x) \ge g(x)\) or \(f(x) \le g(x)\).
- Find all points where \(f(x) = g(x)\). Let \(f(x) = g(x)\), ie, \(x^2 - 1 = 0\), and then we have \(x = 1\) or \(x = -1\).
- Separate the interval \([-2, 3]\) by \(-1\) and \(1\), so we get subintervals \((-2, -1), (-1, 1)\) and \((1, 3)\).
- Within \((-2, -1)\), we pick a test number \(d = -1.5\). Then \(f(-1.5) = (-1.5)^2 - 1 = 1.25\), \(g(-1.5) = 0\), \(f(-1.5) > g(-1.5)\) and thus \(f(x) > g(x)\) on \([-2, -1]\).
- Within \((-1, 1)\), we pick a test number \(d = 0\). Then \(f(0) = 0^2 - 1 = -1\), \(g(0) = 0\), \(f(0) < g(0)\) and thus \(f(x) < g(x)\) on \((-1, 1)\).
- Within \((1, 3)\), we pick a test number \(d = 2\). Then \(f(2) = 2^2 - 1 = 3\), \(g(2) = 0\), \(f(2) > g(2)\) and thus \(f(x) > g(x)\) on \((-2, -1)\).
Then the areas of the regions on subintervals are
\(A_1 = \int_{-2}^{-1} [ f(x) - g(x) ] dx = \int_{-2}^{-1} [ (x^2 - 1) - 0 ] dx = \left( \frac{x^3}{3} - x \right) \big|_{-2}^{-1} = \frac{4}{3}\)
\(A_2 = \int_{-1}^{1} [g(x) - f(x)] dx = \int_{-1}^{1} [ 0 - (x^2 - 1) ] dx = \left( \frac{-x^3}{3} + x \right) \big|_{-1}^{1} = \frac{4}{3}\)
\(A_3 = \int_{1}^{3} [f(x) - g(x)] dx = \int_{1}^{3} [(x^2 - 1) - 0] dx = \left( \frac{x^3}{3} - x \right) \big|_{1}^{3} = \frac{20}{3}\)
Thus the area of the whole region between \(f\) and \(g\) on interval \([-2, 3]\) is
\(A = A_1 + A_2 + A_3 = \frac{4}{3} + \frac{4}{3} + \frac{20}{3} = \frac{28}{3}\)
Caution : Remember, we should always first find all the subintervals on which \(f \ge g\) or \(f \le g\) before writing down the integral. If we derectly evaluate the integral of \(f-g\) on the whole interval \([-2, 3]\), then we get the following WRONG answer :
\(\int_{-2}^{3} [ f(x) - g(x) ] dx\)
\(= \int_{-2}^{3} [ (x^2 - 1) - 0 ] dx\)
\(= \left( \frac{x^3}{3} - x \right) \big|_{-2}^{3}\)
\(= \frac{20}{3}\).
- Example 3 : Endpoints of the Region Are NOT Given
Find the area of the region bounded by the curves of \(f(x) = x^3 - 1\) and \(g(x) = x - 1\).
In this example, the endpoints of the region bounded by \(f(x)\) and \(g(x)\) are NOT GIVEN and we need figure them out.
Let \(f(x) = g(x)\). Then we have
\(x^3 - 1 = x - 1\)
\(\implies x^3 - x = 0\)
\(\implies x(x^2 - 1) = 0\)
\(\implies x(x+1)(x-1) = 0\)
\(\implies x = 0, x = -1\) or \(x = 1\)
so
- the left endpoint of the region is \(a = \min \{ 0, -1, 1\} = -1\)
- the right endpoint of the region is \(b = \max \{ 0, -1, 1\} = 1\)
Therefore, the question is now rephrased as : find the area of the region between curves of \(f(x) = x^3 - 1\) and \(g(x) = x - 1\) on interval \([-1, 1]\).
To calculate the area of whole region, we need first find all subintervals of \([-1, 1]\) on which \(f(x) \ge g(x)\) or \(f(x) \le g(x)\).
- We have already found that \(f(x) = g(x)\) at \(x = -1\), \(x = 0\) and \(x = 1\)
- Then we separate the whole interval \([-1, 1]\) by \(-1, 0\) and \(1\) into \((-1, 0)\) and \((0, 1)\)
- Within \((-1, 0)\), we pick a test number \(d = -0.5\). Then \(f(-0.5) = (-0.5)^3 - 1 = -1.125\), \(g(-0.5) = -0.5 - 1 = -1.5\), \(f(-0.5) > g(-0.5)\) and thus \(f(x) > g(x)\) on \((-1, -0)\).
- Within \((0, 1)\), we pick a test number \(d = 0.5\). Then \(f(0.5) = 0.5^3 - 1 = -0.875\), \(g(0.5) = 0.5 - 1 = -0.5\), \(f(0.5) < g(0.5)\) and thus \(f(x) < g(x)\) on \((0, 1)\).
Then the areas of the regions on subintervals are
\(A_1 = \int_{-1}^{0} [ f(x) - g(x) ] dx\) \(= \int_{-1}^{0} [ (x^3 - 1) - (x - 1) ] dx\) \(= \int_{-1}^{0} ( x^3 - x ) dx\) \(= \left( \frac{x^4}{4} - \frac{x^2}{2} \right) \big|_{-1}^{0}\) \(= \left( \frac{0^4}{4} - \frac{0^2}{2} \right) - \left( \frac{(-1)^4}{4} - \frac{(-1)^2}{2} \right)\) \(= \frac{1}{4}\)
\(A_2 = \int_{0}^{1} [g(x) - f(x)] dx\) \(= \int_{0}^{1} [ (x - 1) - (x^3 - 1) ] dx\) \(= \int_{0}^{1} (x - x^3) dx\) \(= \left( \frac{x^2}{2} + \frac{x^4}{4} \right) \big|_{0}^{1}\) \(= \left( \frac{1^2}{2} + \frac{1^4}{4} \right) - \left( \frac{0^2}{2} + \frac{0^4}{4} \right)\) \(= \frac{3}{4}\)
Thus the area of the whole region between \(f\) and \(g\) on interval \([-1, 1]\) is
\(A = A_1 + A_2 = \frac{1}{4} + \frac{3}{4} = 1\)
4.7 Application : Volume of a Solid of Revolution
4.7.1 Formula
If \(R\) is the region between \(f(x)\) and the \(x\)-axis from \(x=a\) to \(x=b\), then the volume of the solid formed by rotating \(R\) about the \(x\)-axis is given by \[ V = \int_{a}^{b} \pi [f(x)]^2 dx \]
4.7.2 Examples
- Example 1
Find the volume of solid of revolution formed by rotating about \(x\)−axis the area bounded by \(f(x) = \sqrt[3]{2x+1} + 3\), \(x\)-axis, \(x = 1\) and \(x = 4\).
We know \([f(x)]^2 = (\sqrt[3]{2x+1} + 3)^2 = [(2x+1)^{\frac{1}{3}} + 3]^2\)
\(= [(2x+1)^{\frac{1}{3}}]^2 + 3^2 + 2 \cdot 3 \cdot (2x+1)^{\frac{1}{3}}\)
\(= (2x+1)^{\frac{2}{3}} + 9 + 6(2x+1)^{\frac{1}{3}}\)
Therefore, by the formula, the volume is
\(V = \int_{1}^{4} \pi [f(x)]^2 dx\)
\(= \pi \int_{1}^{4} \left[ (2x+1)^{\frac{2}{3}} + 9 + 6(2x+1)^{\frac{1}{3}} \right] dx\)
\(= \pi \left[ \int_{1}^{4} (2x+1)^{\frac{2}{3}} dx + \int_{1}^{4} 9 dx + \int_{1}^{4} 6(2x+1)^{\frac{1}{3}} dx \right]\)
\(= \pi \left[ \int_{1}^{4} (2x+1)^{\frac{2}{3}} dx + 9 \int_{1}^{4} 1 dx + 6 \int_{1}^{4} (2x+1)^{\frac{1}{3}} dx \right]\)
\(= \pi (V_1 + 9V_2 + 6V_3)\)
where
\(V_1 = \int_{1}^{4} (2x+1)^{\frac{2}{3}} dx\)
\(V_2 = \int_{1}^{4} 1 dx\)
\(V_3 = \int_{1}^{4} (2x+1)^{\frac{1}{3}} dx\)
For \(V_1\):
The integrand is a power whose base is another function, so we may use integration by substitution, by letting \(u\) be the base.
Let \(u = 2x+1\). Then \(u'=(2x+1)'=2\) and \(du = u' dx = 2 dx\). Thus the indefinite integral is
\(\int (2x+1)^{\frac{2}{3}} dx\) \(= \int (2x+1)^{\frac{2}{3}} \cdot \frac{2}{2} dx\) \(= \frac{1}{2} \int (2x+1)^{\frac{2}{3}} \cdot 2 dx\) \(= \frac{1}{2} \int u^{\frac{2}{3}} du\) \(= \frac{1}{2} \cdot \frac{u^{\frac{2}{3} + 1}}{\frac{2}{3} + 1} + C\) \(= \frac{1}{2} \cdot \frac{3u^{\frac{5}{3}}}{5} + C\) \(= \frac{3u^{\frac{5}{3}}}{10} + C\) \(= \frac{3(2x+1)^{\frac{5}{3}}}{10} + C\)
By FTC, we have
\(V_1 = \int (2x+1)^{\frac{2}{3}} dx\) \(= \frac{3(2x+1)^{\frac{5}{3}}}{10} \big|_{1}^{4}\) \(= \frac{3(2\cdot 4+1)^{\frac{5}{3}}}{10} - \frac{3(2\cdot 1+1)^{\frac{5}{3}}}{10}\) \(= \frac{3\cdot 9^{\frac{5}{3}}}{10} - \frac{3\cdot 3^{\frac{5}{3}}}{10}\) \(= 9.81\)
For \(V_2\):
\(\int 1 dx = x + C\)
By FTC, we have
\(V_2 = \int_{1}^{4} 1 dx\) \(= x \big|_{1}^{4}\) \(= 4 - 1 = 3\)
For \(V_3\):
Similar to \(V_1\), the integrand is a power whose base is another function, so we may use integration by substitution, by letting \(u\) be the base.
Let \(u = 2x+1\). Then \(u'=(2x+1)'=2\) and \(du = u' dx = 2 dx\). Thus the indefinite integral is
\(\int (2x+1)^{\frac{1}{3}} dx\) \(= \int (2x+1)^{\frac{1}{3}} \cdot \frac{2}{2} dx\) \(= \frac{1}{2} \int (2x+1)^{\frac{1}{3}} \cdot 2 dx\) \(= \frac{1}{2} \int u^{\frac{1}{3}} du\) \(= \frac{1}{2} \cdot \frac{u^{\frac{1}{3} + 1}}{\frac{1}{3} + 1} + C\) \(= \frac{1}{2} \cdot \frac{3u^{\frac{4}{3}}}{4} + C\) \(= \frac{3u^{\frac{4}{3}}}{8} + C\) \(= \frac{3(2x+1)^{\frac{4}{3}}}{8} + C\)
By FTC, we have
\(V_3 = \int (2x+1)^{\frac{1}{3}} dx\) \(= \frac{3(2x+1)^{\frac{4}{3}}}{8} \big|_{1}^{4}\) \(= \frac{3(2\cdot 4+1)^{\frac{4}{3}}}{8} - \frac{3(2\cdot 1+1)^{\frac{4}{3}}}{8}\) \(= \frac{3\cdot 9 ^{\frac{4}{3}}}{8} - \frac{3\cdot 3^{\frac{4}{3}}}{8}\) \(= 5.40\)
Putting \(V_1\), \(V_2\) and \(V_3\) back into the formula, then we get
\(V = \int_{1}^{4} \pi [f(x)]^2 dx\) \(= \pi (V_1 + 9V_2 + 6V_3)\) \(= \pi (9.81 + 9\cdot 3 + 6\cdot 5.40)\) \(= 217.43\)
- Example 2
Find the volume of solid of revolution formed by rotating about \(x\)−axis the area bounded by \(f(x) = e^{-2x+4} - 1\), \(x\)-axis, \(x = 1\) and \(x = 3\).
We know \([f(x)]^2 = (e^{-2x+4} - 1)^2 = [e^{-2x+4} - 1]^2\)
\(= (e^{-2x+4})^2 + 1^2 - 2 \cdot 1 \cdot e^{-2x+4}\)
\(= e^{-4x+8} + 1 - 2 e^{-2x+4}\)
Therefore, by the formula, the volume is
\(V = \int_{1}^{3} \pi [f(x)]^2 dx\)
\(= \pi \int_{1}^{3} \left[ e^{-4x+8} + 1 - 2 e^{-2x+4} \right] dx\)
\(= \pi \left[ \int_{1}^{3} e^{-4x+8} dx + \int_{1}^{3} 1 dx - 2 \int_{1}^{3} e^{-2x+4} dx \right]\)
\(= \pi (V_1 + V_2 - 2V_3)\)
where
\(V_1 = \int_{1}^{3} e^{-4x+8} dx\)
\(V_2 = \int_{1}^{3} 1 dx\)
\(V_3 = \int_{1}^{3} e^{-2x+4} dx\)
For \(V_1\):
By Exponential Rule for integration, we have \(\int e^{-4x+8} dx\) \(= \frac{e^{-4x+8}}{-4} + C\)
By FTC, we have
\(V_1 = \int_{1}^{3} e^{-4x+8} dx\) \(= \frac{e^{-4x+8}}{-4} \big|_{1}^{3}\) \(= \frac{e^{-4\cdot 3 +8}}{-4} - \frac{e^{-4\cdot 1+8}}{-4}\) \(= \frac{e^{-4}}{-4} - \frac{e^{4}}{-4}\) \(= 13.65\)
For \(V_2\):
\(\int 1 dx = x + C\)
By FTC, we have
\(V_2 = \int_{1}^{3} 1 dx\) \(= x \big|_{1}^{3}\) \(= 3 - 1 = 2\)
For \(V_3\):
By Exponential Rule for integration, we have \(\int e^{-2x+4} dx\) \(= \frac{e^{-2x+4}}{-2} + C\)
By FTC, we have
\(V_3 = \int_{1}^{3} e^{-2x+4} dx\) \(= \frac{e^{-2x+4}}{-2} \big|_{1}^{3}\) \(= \frac{e^{-2\cdot 3+4}}{-2} - \frac{e^{-2\cdot 1+4}}{-2}\) \(= \frac{e^{-2}}{-2} - \frac{e^{2}}{-2}\) \(= 3.63\)
Putting \(V_1\), \(V_2\) and \(V_3\) back into the formula, then we get
\(V = \int_{1}^{4} \pi [f(x)]^2 dx\) \(= \pi (V_1 + V_2 - 2V_3)\) \(= \pi (13.65 + 2 - 2 \cdot 3.63)\) \(= 26.36\)
4.8 Application : Average Value
4.8.1 Formula
The Average Value of a Function \(f(x)\) on the interval \([a, b]\) is \[ \frac{1}{b-a} \int_{a}^{b} f(x) dx \] provided the indicated definite integral exists.
4.8.2 Example
Find the average value of \(f(x) = \frac{3x^3 + 2x^2 + 1}{x}\) on \([1, e]\).
We know the indefinite integral
\(\int \frac{3x^3 + 2x^2 + 1}{x} dx\)
\(= \int 3x^2 + 2x + \frac{1}{x} dx\)
\(= \int 3x^2 dx + \int 2x dx + \int \frac{1}{x} dx\)
\(= x^3 + x^2 + ln|x| + C\)
so by FTC the definite integral is
\(\int_{1}^{e} \frac{3x^3 + 2x^2 + 1}{x} dx\)
\(= x^3 + x^2 + ln|x| \big|_1^e\)
\(= (e^3 + e^2 + ln|e|) - (1^3 + 1^2 + ln|1|)\)
\(= e^3 + e^2 - 1\)
By the formula, the average value of \(f(x) = \frac{3x^3 + 2x^2 + 1}{x}\) on \([1, e]\) is
\(\frac{1}{b-a} \int_{a}^{b} f(x) dx = \frac{1}{e-1} \cdot (e^3 + e^2 - 1) = \frac{e^3 + e^2 - 1}{e-1}\)
4.9 References
- Lial, M. L., Greenwell, R. N., Ritchey, N. P. (2011). Calculus with Applications (10th Edition). Boston, MA : Pearson.
5 Multivariable Calculus
5.1 Function of Several Variables
5.1.1 Definition
The expression \(z = f(x, y)\) is a function of two variables if a unique value of \(z\) is obtained from each ordered pair of real numbers \((x, y)\). The variables \(x\) and \(y\) are independent variables, and \(z\) is the dependent variable. The set of all ordered pairs of real numbers \((x, y)\) such that \(f(x, y)\) exists is the domain of \(f\); the set of all values of \(f(x, y)\) is the range. Similar definitions could be given for functions of three, four, or more independent variables.
5.1.2 Example
- \(f(x,y) = x + y + \frac{x}{y}\)
- \(z = x^{2y} + e^{x^3-5y} - 6x +2y^2 - 3xy + 1\)
5.2 Partial Derivatives
5.2.1 Informal Definition
The partial derivative of \(f\) with respect to \(x\) is the derivative of \(f\) obtained by treating \(x\) as a variable and \(y\) as a constant.
The partial derivative of \(f\) with respect to \(y\) is the derivative of \(f\) obtained by treating \(y\) as a variable and \(x\) as a constant.
5.2.2 Formal Definition
Let \(z = f(x, y)\) be a function of two independent variables. Let all indicated limits exist. Then the partial derivative of \(f\) with respect to \(x\) is
\[ f_x(x, y) = \frac{\partial f}{\partial x} = \lim_{h\to 0} \frac{f(x + h, y) - f(x,y)}{h} \]
and the partial derivative of \(f\) with respect to \(y\) is
\[ f_y(x, y) = \frac{\partial f}{\partial y} = \lim_{h\to 0} \frac{f(x, y + h) - f(x,y)}{h} \]
You are not required to find partial derivatives by definition.
5.2.3 Remark
Generally, \(\frac{\partial f}{\partial x}\) and \(\frac{\partial f}{\partial y}\) are not equal.
5.2.4 Example
Find \(\frac{\partial f}{\partial x}\) and \(\frac{\partial f}{\partial y}\) if \(f(x, y) = x^3 + y^2 + x^2 y + e^{2x+y^3} + ln(\frac{x}{y})\).
Regarding \(y\) as a constant, we have
\(\frac{\partial f}{\partial x} = \frac{dx^3}{dx} + \frac{dy^2}{dx} + \frac{dx^2 y}{dx} + \frac{de^{2x + y^3}}{dx} + \frac{dln(\frac{x}{y})}{dx}\)
\(= 3x^2 + 0 + y \cdot 2x + e^{2x + y^3} \cdot \frac{d(2x+y^3)}{dx} + \frac{1}{\frac{x}{y}} \cdot \frac{d(\frac{1}{y}\cdot x)}{dx}\)
\(= 3x^2 + 2y \cdot x + e^{2x + y^3} \cdot 2 + \frac{y}{x} \cdot \frac{1}{y}\)
\(= 3x^2 + 2y \cdot x + 2e^{2x + y^3} + \frac{1}{x}\)
Regarding \(x\) as a constant, we have
\(\frac{\partial f}{\partial y} = \frac{dx^3}{dy} + \frac{dy^2}{dy} + \frac{dx^2 y}{dy} + \frac{e^{2x + y^3}}{dy} + \frac{dln(\frac{x}{y})}{dy}\)
\(= 0 + 2y + x^2 + e^{2x + y^3} \cdot \frac{d(2x+y^3)}{dy} + \frac{1}{\frac{x}{y}} \cdot \frac{d\frac{x}{y}}{dy}\)
\(= 0 + 2y + x^2 + e^{2x + y^3} \cdot 3y^2 + \frac{y}{x} \cdot \frac{d(xy^{-1})}{dy}\)
\(= 2y + x^2 + e^{2x + y^3} \cdot 3y^2 + \frac{y}{x} \cdot x \cdot (-1) y^{-2}\)
\(= 2y + x^2 + e^{2x + y^3} \cdot 3y^2 - y \cdot y^{-2}\)
\(= 2y + x^2 + e^{2x + y^3} \cdot 3y^2 - y^{-1}\)
As we see, generally, \(\frac{\partial f}{\partial x}\) and \(\frac{\partial f}{\partial y}\) are not the same.
5.3 Second-Order Partial Derivatives
5.3.1 Definitions
For a function \(f(x,y)\), if the indicated partial derivative exists, then
\[ \frac{\partial}{\partial x} \left( \frac{\partial f(x,y)}{\partial x} \right) = \frac{\partial^2 f(x,y)}{\partial x^2} = f_{xx} (x,y) \]
\[ \frac{\partial}{\partial y} \left( \frac{\partial f(x,y)}{\partial y} \right) = \frac{\partial^2 f(x,y)}{\partial y^2} = f_{yy} (x,y) \]
\[ \frac{\partial}{\partial y} \left( \frac{\partial f(x,y)}{\partial x} \right) = \frac{\partial^2 f(x,y)}{\partial y \partial x} = f_{xy} (x,y) \]
\[ \frac{\partial}{\partial x} \left( \frac{\partial f(x,y)}{\partial y} \right) = \frac{\partial^2 f(x,y)}{\partial x \partial y} = f_{yx} (x,y) \]
For all functions in this course, \(f_{xy}\) and \(f_{yx}\) are equal.
5.3.2 Remark
- Note the order : \(\frac{\partial^2 f}{\partial y \partial x} = \frac{\partial}{\partial y} \left( \frac{\partial f}{\partial x} \right)\) means "the partial derivative of \(\frac{\partial f}{\partial x}\) with respect to \(y\)", so we should first find \(\frac{\partial f}{\partial x}\) and then find the partial derivative of the whole \(\frac{\partial f}{\partial x}\) with respect to \(y\). That is, the order of partial differentiation in \(\partial y \partial x\) is "from right to left". On the other hand, \(f_{xy}\) means "partial derivative with respect to \(x\) first, and then to \(y\)", so it is \(\frac{\partial^2 f}{\partial y \partial x}\), not \(\frac{\partial^2 f}{\partial x \partial y}\). That is, the order of partial differentiation in \(f_{xy}\) is "from left to right".
- Identity: By definition, \(\frac{\partial^2 f}{\partial y \partial x}\) and \(\frac{\partial^2 f}{\partial x \partial y}\) should be calculated in different ways. However, for all functions that you will meet in the course, it holds that \[ \frac{\partial^2 f}{\partial y \partial x} = \frac{\partial^2 f}{\partial x \partial y} \]
- Note the notation : \(\frac{\partial^2 f}{\partial x^2}\) is NOT "the derivative of \(f\) with respect to \(x^2\)"! Instead, it is \(\frac{\partial}{\partial x} \left( \frac{\partial f}{\partial x} \right)\).
5.3.3 Example
Find all second-order partial derivatives of \(f(x, y) = x^3 + y^2 + x^2 y + e^{2x+y^3} + ln(\frac{x}{y})\).
We already found that
\(f_x(x,y) = \frac{\partial f}{\partial x} = 3x^2 + y \cdot 2x + 2e^{2x + y^3} + \frac{1}{x}\)
and
\(f_y(x,y) = \frac{\partial f}{\partial y} = 2y + x^2 + e^{2x + y^3} \cdot 3y^2 - y^{-1}\)
so
\(f_{xx}(x,y) = \frac{\partial^2 f}{\partial x^2} = \frac{\partial}{\partial x} \left( 3x^2 + y \cdot 2x + 2e^{2x + y^3} + \frac{1}{x} \right)\)
\(= 6x + 2y + 2e^{2x + y^3} \cdot \frac{d(2x + y^3)}{dx} + (-1)x^{-2}\)
\(= 6x + 2y + 2e^{2x + y^3} \cdot 2 - x^{-2}\)
\(= 6x + 2y + 4e^{2x + y^3} - x^{-2}\)
and
\(f_{yy}(x,y) = \frac{\partial^2 f}{\partial y^2} = \frac{\partial}{\partial y} \left( 2y + x^2 + e^{2x + y^3} \cdot 3y^2 - y^{-1} \right)\)
\(= 2 + 0 + \frac{\partial (e^{2x + y^3} \cdot 3y^2)}{\partial y} - (-1) \cdot y^{-2}\)
\(= 2 + \left( \frac{de^{2x + y^3}}{dy} \cdot 3y^2 + e^{2x + y^3} \cdot \frac{d3y^2}{dy} \right) + y^{-2}\)
\(= 2 + \left( e^{2x+y^3} \cdot \frac{d(2x + y^3)}{dy} \cdot 3y^2 + e^{2x + y^3} \cdot 6y \right) + y^{-2}\)
\(= 2 + \left( e^{2x+y^3} \cdot 3y^2 \cdot 3y^2 + e^{2x + y^3} \cdot 6y \right) + y^{-2}\)
\(= 2 + e^{2x+y^3} \cdot 9y^4 + e^{2x + y^3} \cdot 6y + y^{-2}\)
Also, we have
\(f_{xy}(x,y) = \frac{\partial^2 f}{\partial y \partial x} = \frac{\partial}{\partial y} \left( 3x^2 + y \cdot 2x + 2e^{2x + y^3} + \frac{1}{x} \right)\)
\(= 0 + 2x + \frac{d(2e^{2x + y^3})}{dy} + 0\)
\(= 2x + 2e^{2x + y^3} \cdot \frac{d(2x+y^3)}{dy}\)
\(= 2x + 2e^{2x + y^3} \cdot 3y^2\)
\(= 2x + 6e^{2x + y^3} \cdot y^2\)
and
\(f_{yx}(x,y) = \frac{\partial^2 f}{\partial x \partial y} = \frac{\partial}{\partial x} \left( 2y + x^2 + e^{2x + y^3} \cdot 3y^2 - y^{-1} \right)\)
\(= 0 + 2x + \frac{d (e^{2x + y^3} \cdot 3y^2)} {dx} - 0\)
\(= 2x + 3y^2 \cdot \frac{d e^{2x + y^3}} {dx}\)
\(= 2x + 3y^2 \cdot e^{2x + y^3} \cdot \frac{d (2x + y^3)} {dx}\)
\(= 2x + 3y^2 \cdot e^{2x + y^3} \cdot 2\)
\(= 2x + 6y^2 \cdot e^{2x + y^3}\)
As we see, \(f_{xy} = f_{yx}\).
5.4 Maxima and Minima
5.4.1 Definition
Let \((a, b)\) be the center of a circular region contained in the \(xy\)-plane. Then, for a function \(z = f(x, y)\) defined for every \(f(x, y)\) in the region,
- \(f(a, b)\) is a relative (or local) maximum if \(f(a, b) > f(x, y)\) for all points \((x, y)\) in the circular region
- \(f(a, b)\) is a relative (or local) minimum if \(f(a, b) < f(x, y)\) for all points \((x, y)\) in the circular region
5.4.2 Critical Point
- Definition
For a function \(f(x,y)\), the points \((a,b)\) such that \(f_x(a,b) = 0\) and \(f_y(a,b) = 0\) are called critical points.
- Remark
AND condition: For a critical point \((a,b)\), \(f_x(a,b) = 0\) and \(f_y(a,b) = 0\) should hold at the same time.
- How to find all critical points?
- Find all values of \(x\) such that \(f_x(x,y) = 0\) or \(f_y(x,y) = 0\), say \(x_1, x_2, \dots, x_m\)
- For \(x_1\)
- put \(x=x_1\) into the equations \(f_x(x,y) = 0\) and \(f_y(x,y) = 0\), to get \(f_x(x_1,y) = 0\) and \(f_y(x_1,y) = 0\)
- solve for all values of \(y\) such that \(f_x(x_1,y) = 0\) and \(f_y(x_1,y) = 0\), say \(y_{1},y_{2},\dots,y_{m}\)
- then all \((x_1, y_{1}), (x_1, y_{2}), \dots, (x_1, y_{m})\) are critical points
- Repeat Step 2 for each \(x_2, \dots, x_n\), to get all the corresponding critical points.
See Example 4 for illustration.
5.4.3 Saddle Point
For a function \(f(x,y)\), a point on the graph is called a saddle point if it is a minimum when approached from one direction but a maximum when approached from another direction. A saddle point is neither a maximum nor a minimum.
source of picture:https://math.etsu.edu/multicalc/prealpha/Chap2/Chap2-8/10-6-53.gif
5.4.4 Test for Relative Extrema
For a function \(z = f(x,y)\), let \(f_{xx}\), \(f_{yy}\) and \(f_{xy}\) all exist in a circular region contained in the \(xy-\)plane with center \((a,b)\).
Suppose \((a,b)\) is a critical point of \(f(x,y)\), ie, \(f_x(a, b) = 0\) and \(f_y(a,b) = 0\).
Define the number \(D\), known as the discriminant, by \[ D(a,b) = f_{xx}(a,b) \cdot f_{yy}(a,b) - [f_{xy}(a,b)]^2 \]
Then
- \(f(a,b)\) is a relative maximum if \(D(a,b) > 0\) and \(f_{xx}(a,b) < 0\)
- \(f(a,b)\) is a relative minimum if \(D(a,b) > 0\) and \(f_{xx}(a,b) > 0\)
- \(f(a,b)\) is a saddle point (neither a maximum nor a minimum) if \(D(a,b) < 0\)
- if \(D(a,b) = 0\), the test gives no information
5.4.5 Example
- Example 1
Find all relative minima, relative maxima or saddle points of \(f(x, y) = 8x^2 + 4xy + y^2 + 48x - 24y - 7\).
First, find all partial derivatives and second-order partial derivatives.
\(f_x(x,y) = 16x + 4y + 48\)
\(f_y(x,y) = 4x + 2y -24\)
\(f_{xx}(x,y) = 16\)
\(f_{yy}(x,y) = 2\)
\(f_{xy}(x,y) = f_{yx}(x,y) = 4\)
Second, find all critical points by letting \(f_x = 0\) and \(f_y = 0\), ie,
\(16x + 4y + 48 = 0\),
\(4x + 2y -24 = 0\).
which means \(x = -12\) and \(y = 36\). Hence \((-12, 36)\) is the only critical point of function \(f\).
Third, calculate the discriminant of \(f\) at the critical point \((-12, 36)\), ie,
\(D = f_{xx}(-12, 36) \cdot f_{yy}(-12, 36) - [f_{xy}(-12, 36)]^2 = 16 \cdot 2 - 4^2 = 16\)
Finally, since \(D > 0\) and \(f_{xx} > 0\), we know \((-12, 36)\) is a relative minimum of \(f\).
- Example 2
Find all relative minima, relative maxima or saddle points of \(f(x, y) = -8x^2 + 8xy + y^2 + 48x - 24y - 7\).
First, find all partial derivatives and second-order partial derivatives.
\(f_x(x,y) = -16x + 8y + 48\)
\(f_y(x,y) = 8x + 2y -24\)
\(f_{xx}(x,y) = -16\)
\(f_{yy}(x,y) = 2\)
\(f_{xy}(x,y) = f_{yx}(x,y) = 8\)
Second, find all critical points by letting \(f_x = 0\) and \(f_y = 0\), ie,
\(-16x + 8y + 48 = 0\),
\(8x + 2y -24 = 0\).
which means \(x = 3\) and \(y = 0\). Hence \((3, 0)\) is the only critical point of function \(f\).
Third, calculate the discriminant of \(f\) at the critical point \((3, 0)\), ie,
\(D = f_{xx}(3, 0) \cdot f_{yy}(3, 0) - [f_{xy}(3, 0)]^2 = -16 \cdot 2 - 8^2 = -96\)
Finally, since \(D < 0\), we know \((3, 0)\) is a saddle point of \(f\).
- Example 3
Find all relative minima, relative maxima or saddle points of \(f(x, y) = x^3 + 8y^3 - 48x - 24y - 7\).
First, find all partial derivatives and second-order partial derivatives.
\(f_x(x,y) = 3x^2 - 48 = 3(x^2 - 16) = 3(x + 4)(x - 4)\)
\(f_y(x,y) = 24y^2 -24 = 24(y^2 - 1) = 24(y + 1)(y - 1)\)
\(f_{xx}(x,y) = 6x\)
\(f_{yy}(x,y) = 48y\)
\(f_{xy}(x,y) = f_{yx}(x,y) = 0\)
Second, find all critical points by letting \(f_x = 0\) and \(f_y = 0\), ie,
\(3(x + 4)(x - 4) = 0\),
\(24(y + 1)(y - 1) = 0\).
We see that \(-4\) and \(4\) are the only two values of \(x\) such that \(f_x = 0\) or \(f_y = 0\).
- When \(x = -4\), we have \(f_x(x,y) = 0\). A critical number should make both \(f_x = 0\) and \(f_y = 0\) hold at the same time. To have \(f_y = 0\), we need \(y = -1\) or \(y = 1\). Therefore, \((x,y) = (-4, -1)\) and \((x,y) = (-4, 1)\) are two critical points.
- When \(x = 4\), we have \(f_x(x,y) = 0\). A critical number should make both \(f_x = 0\) and \(f_y = 0\) hold at the same time. To have \(f_y = 0\), we need \(y = -1\) or \(y = 1\). Therefore, \((x,y) = (4, -1)\) and \((x,y) = (4, 1)\) are two critical points.
Hence, there are 4 critical points in total : \((x,y) = (-4, -1), (-4, 1), (4, -1), (4, 1)\).
Third, calculate the discriminant of \(f\) at each critical point:
- at \((x,y) = (-4,-1)\), \(D = f_{xx}(-4, -1) \cdot f_{yy}(-4, -1) - [f_{xy}(-4, -1)]^2 = 1152 > 0\). Since \(f_{xx}(-4, -1) < 0\), \((x,y) = (-4, -1)\) yields a relative maximum
- at \((x,y) = (-4,1)\), \(D = f_{xx}(-4, 1) \cdot f_{yy}(-4, 1) - [f_{xy}(-4, 1)]^2 = -1152 < 0\), so \((x,y) = (-4, 1)\) yields a saddle point
- at \((x,y) = (4,-1)\), \(D = f_{xx}(4, -1) \cdot f_{yy}(4, -1) - [f_{xy}(4, -1)]^2 = -1152 < 0\), so \((x,y) = (4, -1)\) yields a saddle point
- at \((x,y) = (4,1)\), \(D = f_{xx}(4, 1) \cdot f_{yy}(4, 1) - [f_{xy}(4, 1)]^2 = 1152 > 0\). Since \(f_{xx}(4, 1) > 0\), \((x,y) = (4, 1)\) yields a relative minimum.
- Example 4
Find all relative minima, relative maxima or saddle points of \(f(x, y) = (x^2 - 1)(y^2 - 9)\).
First, find all partial derivatives and second-order partial derivatives.
\(f_x(x,y) = (y^2 - 9) \cdot 2x = 2x(y+3)(y-3)\)
\(f_y(x,y) = (x^2 - 1) \cdot 2y = 2(x+1)(x-1)y\)
\(f_{xx}(x,y) = 2(y^2 - 9)\)
\(f_{yy}(x,y) = 2(x^2 - 1)\)
\(f_{xy}(x,y) = f_{yx}(x,y) = 4xy\)
Second, find all critical points by letting \(f_x = 0\) and \(f_y = 0\), ie,
\(2x(y+3)(y-3) = 0\),
\(2(x+1)(x-1)y = 0\).
We see that \(0, -1\) and \(1\) are the values of \(x\) such that \(f_x = 0\) or \(f_y = 0\).
- When \(x = 0\), we have \(f_x(x,y) = 0\). A critical number should make both \(f_x = 0\) and \(f_y = 0\) hold at the same time. Hence let's see how to make \(f_y = 0\) hold. Putting \(x=0\) into the second equation, we get \(2(x+1)(x-1)y = 2\cdot(0+1)\cdot(0-1)\cdot y = -2y = 0\), which means \(y = 0\). Therefore \((x,y) = (0,0)\) is a critical point.
- When \(x = -1\), we have \(f_y(x,y) = 0\). A critical number should make both \(f_x = 0\) and \(f_y = 0\) hold at the same time. Hence let's see how to make \(f_x = 0\) hold. Putting \(x=-1\) into the first equation, we get \(2\cdot(-1)\cdot(y+3)(y-3) = -2(y+3)(y-3) = 0\), which means \(y = -3\) or \(y = 3\). Therefore \((x,y) = (-1, -3)\) and \((x,y) = (-1, 3)\) are two critical points.
- When \(x = 1\), we have \(f_y(x,y) = 0\). A critical number should make both \(f_x = 0\) and \(f_y = 0\) hold at the same time. Hence let's see how to make \(f_x = 0\) hold. Putting \(x=1\) into the first equation, we get \(2\cdot 1\cdot(y+3)(y-3) = 2(y+3)(y-3) = 0\), which means \(y = -3\) or \(y = 3\). Therefore \((x,y) = (1, -3)\) and \((x,y) = (1, 3)\) are two critical points.
Hence, there are 5 critical points in total : \((x,y) = (0,0), (-1, -3), (-1, 3), (1, -3), (1, 3)\).
Third, calculate the discriminant of \(f\) at each critical point:
- at \((x,y) = (0, 0)\), \(D = f_{xx}(0, 0) \cdot f_{yy}(0, 0) - [f_{xy}(0, 0)]^2 = 36 > 0\). Since \(f_{xx}(0, 0) = -18 < 0\), \((x,y) = (0, 0)\) yields a relative maximum
- at \((x,y) = (-1,-3)\), \(D = f_{xx}(-1, -3) \cdot f_{yy}(-1, -3) - [f_{xy}(-1, -3)]^2 = -144 < 0\), so \((x,y) = (-1, -3)\) yields a saddle point
- at \((x,y) = (-1, 3)\), \(D = f_{xx}(-1, 3) \cdot f_{yy}(-1, 3) - [f_{xy}(-1, 3)]^2 = -144 < 0\), so \((x,y) = (-1, 3)\) yields a saddle point
- at \((x,y) = (1,-3)\), \(D = f_{xx}(1, -3) \cdot f_{yy}(1, -3) - [f_{xy}(1, -3)]^2 = -144 < 0\), so \((x,y) = (1, -3)\) yields a saddle point
- at \((x,y) = (1,3)\), \(D = f_{xx}(1, 3) \cdot f_{yy}(1, 3) - [f_{xy}(1, 3)]^2 = -144 < 0\), so \((x,y) = (1, 3)\) yields a saddle point
5.5 Lagrange Multiplier
5.5.1 Introduction
In the previous section Multivariate Maxima and Minima, we have already learned how to determine the relative maxima or relative minima of a multivariate function. In this section, we will learn how to find the relative extrema subject to a constraint.
Suppose the width and the height of a rectangle are \(x\) and \(y\) respectively. We know the area of the rectangle is \(f(x, y) = xy\). As \(x\) and \(y\) get larger and larger toward \(\infty\), the area \(f\) gets larger and larger toward \(\infty\), so there is no relative maximum of the area.
However, once a constraint is introduced, the situation becomes different, as we will see. Suppose that the perimeter of the rectangle is fixed to 20, ie. \(2x + 2y = 20\) or equivalently \(x + y = 10\). Now, subject to the constraint \(x+y=10\), what is the maximum of the area of the rectangle? The method in section Multivariate Maxima and Minima doesn't work for this problem because it doesn't consider the constraint. This is the reason why we need Lagrange Multiplier method.
Of course, in this example, we are able to find the maximum of the area of the rectangle simply by substitution method, without using any advanced method like Lagrange Multiplier.
- Since \(x+y=10\), we can find \(y=10-x\).
- Replace \(y\) with \(10-x\) in \(f(x,y)\) to get \(f = xy = x(10-x) = 10x - x^2\).
- Now \(f\) is a function of only \(x\), so the original problem becomes finding the relative maximum of a univariate function. We have already learned this in application of univariate derivative. That is,
- find the critical number by letting \(f' = 0\), ie, \(10-2x = 0\), which means \(x = 5\)
- by First Derivative Test,
- when \(x<5\), we have \(f'(x) > 0\), so \(f(x)\) is increasing
- when \(x>5\), we have \(f'(x) < 0\), so \(f(x)\) is decreasing
- so \(x=5\) yields a relative maximum, and the corresponding \(y = 10 - 5 = 5\)
However, this substitution method doesn't always work well, because sometimes the relationship between \(x\) and \(y\) is so complicated that neither of them can be represented as a simple function of the other variable. On the contrary, Lagrange Multiplier is always easy to implement.
Now let's see how we solve this problem through Lagrange Multiplier.
5.5.2 The Lagrange Multiplier Method
All relative extrema of the function \(f = f(x,y)\), subject to a constraint \(g(x,y) = 0\), will be found among those points \((x,y)\) for which there exists a value of \(\lambda\) such that \[ F_{x}(x,y,\lambda) = 0,\] \[ F_{y}(x,y,\lambda) = 0,\] \[ F_{\lambda}(x,y,\lambda) = 0, \] where \[ F(x,y,\lambda) = f(x,y) - \lambda \cdot g(x,y) \] and all indicated partial derivatives exist.
5.5.3 Procedure of Applying Lagrange Multiplier
- Write the constraint in the form \(g(x,y)=0\)
- Form the Lagrange function \(F(x,y,\lambda) = f(x,y) - \lambda \cdot g(x,y)\)
- Find \(F_x(x,y,\lambda)\), \(F_y(x,y,\lambda)\) and \(F_{\lambda}(x,y,\lambda)\)
- Form the system of equations \(F_{x}(x,y,\lambda) = 0, F_{y}(x,y,\lambda) = 0, F_{\lambda}(x,y,\lambda) = 0\)
- Solve the system in Step 4; the relative extrema for \(f\) are among the solutions of the system
5.5.4 Solving the System of Equations by Substitution
Substitution is the most straightforward method for solving a system of equations of multiple variables. To apply the substitution method, we
- first represent one variable as a function of the other variables, through one equation in the system
- then replace this variable in all other equations of the system with the function, so that this variable no longer appears in the new system.
To find the relative extrema of function \(f(x,y)\) under the constraint \(g(x,y) = 0\), the Lagrange Multiplier method leads to a system of equations that contains 3 variables : \(x\), \(y\) and \(\lambda\). By the above statement about substitution method, to solve this system of equations, we may
- first represent \(\lambda\) as a function of \(x\) and \(y\), through one equation in the system
- then replace \(\lambda\) in the other 2 equations of the system with that function, so that \(\lambda\) no longer appears in the new system.
Of course, we may represent \(x\) as a function of \(y\) and \(\lambda\) (or \(y\) as a function of \(x\) and \(\lambda\)) and then apply the substitution in a similar way. However, in general, it is better to do the subsitution for \(\lambda\).
5.5.5 Examples
- Example 1
Find relative extrema of \(f(x,y) = xy\), subjuect to \(x + y = 10\).
- The constraint can be rewritten as \(g(x,y) = x + y - 10 = 0\).
The Lagrange function is
\(F(x,y,\lambda) = f(x,y) - \lambda \cdot g(x,y)\) \( = xy - \lambda (x + y - 10)\) \( = xy - \lambda x - \lambda y + 10\lambda\).
Find partial derivatives
\(F_x(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial x} = y - \lambda\)
\(F_y(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial y} = x - \lambda\)
\(F_{\lambda}(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial \lambda} = -x - y + 10\)
Form the system of equations
System 1:
\[ F_x(x,y,\lambda) = y - \lambda = 0 \ \ (1) \]
\[ F_y(x,y,\lambda) = x - \lambda = 0 \ \ (2) \]
\[ F_{\lambda}(x,y,\lambda) = -x - y + 10 = 0 \ \ (3) \]
Let's solve the System 1 in Step 4 by substitution.
- Represent \(\lambda\) as a function of \(x\) and \(y\) : from \((1)\) we get \(\lambda = y\ \ (1')\).
Replace \(\lambda\) with \(y\) in the other two equations, and we get System 2.
System 2:
\[ x - y = 0 \ \ (2') \]
\[ -x - y + 10 = 0 \ \ (3) \]
Now we just need solve the System 2 which contains only \(x\) and \(y\). Again, we use substitution method to solve it.
- Represent \(y\) as a function of \(x\) : from \((2')\) we get \(y = x\ \ (2'')\).
- Replace \(y\) with \(x\) in equation \((3)\), and we get \(- x - x + 10 = 0 \implies x = 5\)
- By \((2'')\), we have \(y = x = 5\)
Therefore, \((x,y) = (5,5)\) yields a relative extremum \(f(5,5) = 5 \cdot 5 =25\)
Remark: You can use any method to solve these equations. Here I just show you how to apply the subtitution method. It may not be the simplest method, but it always works as far as this course is concerned. Using this "stupid" substitution method sometimes has an advantage: at least you will get the answer even if you are not good at manipulating complicated algebraic operations and tricks.
- Example 2
Find relative extrema of \(f(x,y) = x^2 + 2y^2\), subjuect to \(3x + 4y = 5\).
- The constraint can be rewritten as \(g(x,y) = 3x + 4y - 5 = 0\).
The Lagrange function is
\(F(x,y,\lambda) = f(x,y) - \lambda \cdot g(x,y)\) \(= x^2 + 2y^2 - \lambda (3x + 4y - 5)\) \(= x^2 + 2y^2 - 3 \lambda x - 4 \lambda y + 5 \lambda\).
Find partial derivatives
\(F_x(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial x} = 2x - 3\lambda\)
\(F_y(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial y} = 4y - 4\lambda\)
\(F_{\lambda}(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial \lambda} = -3x - 4y + 5\)
Form the system of equations
System 1:
\[ F_x(x,y,\lambda) = 2x - 3\lambda = 0 \ \ (1) \]
\[ F_y(x,y,\lambda) = 4y - 4\lambda = 0 \ \ (2) \]
\[ F_{\lambda}(x,y,\lambda) = -3x - 4y + 5 = 0 \ \ (3) \]
Let's solve the System 1 in Step 4 by substitution.
- Represent \(\lambda\) as a function of \(x\) and \(y\) : from \((1)\) we get \(\lambda = \frac{2x}{3} \ \ (1')\).
Replace \(\lambda\) with \(\frac{2x}{3}\) in the other two equations, and we get System 2.
System 2:
\[ 4y - 4 \cdot \frac{2x}{3} = 4y - \frac{8x}{3} = 0 \ \ (2') \]
\[ -3x - 4y + 5 = 0 \ \ (3) \]
Now we just need solve the System 2 which contains only \(x\) and \(y\). Again, we use substitution method to solve it.
- Rrepresent \(y\) as a function of \(x\) : from \((2')\) we get \(y = \frac{2x}{3} \ \ (2'')\).
- Replace \(y\) with \(\frac{2x}{3}\) in equation \((3)\), and we get \(- 3x - 4 \cdot \frac{2x}{3} + 5 = 0 \implies x = \frac{15}{17}\)
- By \((2'')\), we have \(y = \frac{2}{3} \cdot \frac{15}{17} = \frac{10}{17}\)
Therefore, \((x,y) = \left( \frac{15}{17},\frac{10}{17} \right)\) yields a relative extremum \(f\left( \frac{15}{17},\frac{10}{17} \right) = \frac{425}{289}\).
Remark: You can use any method to solve these equations. Here I just show you how to apply the subtitution method. It may not be the simplest method, but it always works as far as this course is concerned. Using this "stupid" substitution method sometimes has an advantage: at least you will get the answer even if you are not good at manipulating complicated algebraic operations and tricks.
- Example 3
Find relative extrema of \(f(x,y) = x^2 y\), subjuect to \(x + 2y = 3\).
- The constraint can be rewritten as \(g(x,y) = x + 2y - 3 = 0\).
The Lagrange function is
\(F(x,y,\lambda) = f(x,y) - \lambda \cdot g(x,y)\) \(= x^2 y - \lambda (x + 2y - 3)\) \(= x^2 y - \lambda x - 2 \lambda y + 3 \lambda\).
Find partial derivatives
\(F_x(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial x} = 2xy - \lambda\)
\(F_y(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial y} = x^2 - 2\lambda\)
\(F_{\lambda}(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial \lambda} = -x - 2y + 3\)
Form the system of equations
System 1:
\[ F_x(x,y,\lambda) = 2xy - \lambda = 0 \ \ (1) \]
\[ F_y(x,y,\lambda) = x^2 - 2\lambda = 0 \ \ (2) \]
\[ F_{\lambda}(x,y,\lambda) = -x - 2y + 3 = 0 \ \ (3) \]
Let's solve the System 1 in Step 4 by substitution.
- Represent \(\lambda\) as a function of \(x\) and \(y\) : from \((1)\) we get \(\lambda = 2xy \ \ (1')\).
Replace \(\lambda\) with \(2xy\) in the other two equations, and we get System 2.
System 2:
\[ x^2 - 2 \cdot 2xy = x^2 - 4xy = 0 \ \ (2') \]
\[ -x - 2y + 3 = 0 \ \ (3) \]
Now we just need solve the System 2 which contains only \(x\) and \(y\). Again, we use substitution method to solve it.
- Represent \(x\) as a function of \(y\) : from \((3)\) we get \(x = 3-2y \ \ (3')\).
Replace \(x\) with \(3-2y\) in equation \((3')\), and we get
\((3-2y)^2 - 4(3-2y)y = 0\)
\(\implies 3^2 + (2y)^2 - 2\cdot 3\cdot 2y - (12 - 8y)y = 0\)
\(\implies 9 + 4y^2 - 12y - 12y + 8y^2 = 0\)
\(\implies 12y^2 - 24y + 9 = 0\)
\(\implies 4y^2 - 8y + 3 = 0\)
\(\implies (2y-1)(2y-3) = 0\)
\(y = \frac{1}{2}\) or \(y = \frac{3}{2}\)
- By \((3')\), we have
- when \(y = \frac{1}{2}\), \(x = 3 - 2 \cdot \frac{1}{2} = 2\)
- when \(y = \frac{3}{2}\), \(x = 3 - 2 \cdot \frac{3}{2} = 0\)
Therefore, \((x,y) = \left( 2,\frac{1}{2} \right)\) and \((x,y) = \left( 0,\frac{3}{2} \right)\) yield two relative extrema \(f\left( 2,\frac{1}{2} \right) = 2^2 \cdot \frac{1}{2} = 2\) and \(f\left( 0,\frac{3}{2} \right) = 0^2 \cdot \frac{3}{2} = 0\) respectively.
Remark: You can use any method to solve these equations. Here I just show you how to apply the subtitution method. It may not be the simplest method, but it always works as far as this course is concerned. Using this "stupid" substitution method sometimes has an advantage: at least you will get the answer even if you are not good at manipulating complicated algebraic operations and tricks.
- Example 4
Find relative extrema of \(f(x,y) = x^{\frac{1}{4}} y^{\frac{3}{4}}\), subjuect to \(x + 2y = 1\).
- The constraint can be rewritten as \(g(x,y) = x + 2y - 1 = 0\).
The Lagrange function is
\(F(x,y,\lambda) = f(x,y) - \lambda \cdot g(x,y)\) \(= x^{\frac{1}{4}} y^{\frac{3}{4}} - \lambda (x + 2y - 1)\) \(= x^{\frac{1}{4}} y^{\frac{3}{4}} - \lambda x - 2 \lambda y + \lambda\).
Find partial derivatives
\(F_x(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial x} = \frac{1}{4} \cdot x^{\frac{-3}{4}} y^{\frac{3}{4}} - \lambda\)
\(F_y(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial y} = x^{\frac{1}{4}} \cdot \frac{3}{4} \cdot y^{\frac{-1}{4}} - 2\lambda\)
\(F_{\lambda}(x,y,\lambda) = \frac{\partial F(x,y,\lambda)}{\partial \lambda} = -x - 2y + 1\)
Form the system of equations
System 1:
\[ F_x(x,y,\lambda) = \frac{1}{4} \cdot x^{\frac{-3}{4}} y^{\frac{3}{4}} - \lambda = 0 \ \ (1) \]
\[ F_y(x,y,\lambda) = x^{\frac{1}{4}} \cdot \frac{3}{4} \cdot y^{\frac{-1}{4}} - 2\lambda = 0 \ \ (2) \]
\[ F_{\lambda}(x,y,\lambda) = -x - 2y + 1 = 0 \ \ (3) \]
Let's solve the System 1 in Step 4 by substitution.
- Represent \(\lambda\) as a function of \(x\) and \(y\) : from \((1)\) we get \(\lambda = \frac{1}{4} \cdot x^{\frac{-3}{4}} y^{\frac{3}{4}} \ \ (1')\).
Replace \(\lambda\) with \(\frac{1}{4} \cdot x^{\frac{-3}{4}} y^{\frac{3}{4}}\) in the other two equations, and we get System 2.
System 2:
\[ x^{\frac{1}{4}} \cdot \frac{3}{4} \cdot y^{\frac{-1}{4}} - 2 \cdot \frac{1}{4} \cdot x^{\frac{-3}{4}} y^{\frac{3}{4}} = 0 \ \ (2') \]
\[ -x - 2y + 1 = 0 \ \ (3) \]
Now we just need solve the system 2 which contains only \(x\) and \(y\). Again, we use substitution method to solve it.
- Before applying the substitution, let's simplify \((2')\) in some way. We see that \((2')\) has fraction powers and even negative fraction powers. Thus if we directly apply the substitution then those fraction powers still exist. We don't like fraction powers or negative powers, so let's eliminate them.
- we see that the negative power of \(x\) in \((2')\) is \(\frac{-3}{4}\) and the negative power of \(y\) in \((2')\) is \(\frac{-1}{4}\).
so we multiply both sides of \((2')\) by \(x^{\frac{3}{4}} y^{\frac{1}{4}}\) in order to offset those negative powers
\(x^{\frac{1}{4}} \cdot \frac{3}{4} \cdot y^{\frac{-1}{4}} - 2 \cdot \frac{1}{4} \cdot x^{\frac{-3}{4}} y^{\frac{3}{4}} = 0 \ \ (2')\)
\(\implies x^{\frac{3}{4}} y^{\frac{1}{4}} \cdot \left( x^{\frac{1}{4}} \cdot \frac{3}{4} \cdot y^{\frac{-1}{4}} - 2 \cdot \frac{1}{4} \cdot x^{\frac{-3}{4}} y^{\frac{3}{4}} \right) = x^{\frac{3}{4}} y^{\frac{1}{4}} \cdot 0\)
\(\implies x^{\frac{3}{4}} y^{\frac{1}{4}} \cdot \left( x^{\frac{1}{4}} \cdot \frac{3}{4} \cdot y^{\frac{-1}{4}} \right) - x^{\frac{3}{4}} y^{\frac{1}{4}} \cdot \left( 2 \cdot \frac{1}{4} \cdot x^{\frac{-3}{4}} y^{\frac{3}{4}} \right) = 0\)
\(\implies \frac{3}{4} \cdot x^{\frac{3}{4}} x^{\frac{1}{4}} y^{\frac{1}{4}} \cdot y^{\frac{-1}{4}} - 2 \cdot \frac{1}{4} \cdot x^{\frac{3}{4}} \cdot x^{\frac{-3}{4}} \cdot y^{\frac{1}{4}} \cdot y^{\frac{3}{4}} = 0\)
\(\implies \frac{3}{4} \cdot x - 2 \cdot \frac{1}{4} \cdot y = 0\)
\(\implies y = \frac{3x}{2} \ \ (2'')\)
Note here we don't have any fraction power or negative power any more.
Now System 2 becomes
new System 2:
\[ y = \frac{3x}{2} \ \ (2'') \]
\[ -x - 2y + 1 = 0 \ \ (3) \]
- Now let's solve the new System 2 by substitution.
- \(y\) is already represent as \(\frac{3x}{2}\) in \((2'')\)
Replace \(y\) with \(\frac{3x}{2}\) in equation \((3)\), and we get
\(-x - 2 \cdot \frac{3x}{2} + 1 = 0\)
\(\implies -x - 3x + 1 = 0\)
\(\implies x = \frac{1}{4}\)
- By \((2'')\), we have \(y = \frac{3}{2} \cdot \frac{1}{4} = \frac{3}{8}\)
Therefore, \((x,y) = \left( \frac{1}{4}, \frac{3}{8} \right)\) yields a relative extremum \(f\left( \frac{1}{4}, \frac{3}{8} \right) = \left( \frac{1}{4} \right) ^ {\frac{1}{4}} \left( \frac{3}{8} \right) ^ {\frac{3}{4}}\).
Remark: You can use any method to solve these equations. Here I just show you how to apply the subtitution method. It may not be the simplest method, but it always works as far as this course is concerned. Using this "stupid" substitution method sometimes has an advantage: at least you will get the answer even if you are not good at manipulating complicated algebraic operations and tricks.
- Example 5
Find relative extrema of \(f(x,y,z) = xyz\), subjuect to \(2xy + 2xz + yz = 12\).
- The constraint can be rewritten as \(g(x,y,z) = 2xy + 2xz + yz - 12 = 0\).
The Lagrange function is
\(F(x,y,z,\lambda) = f(x,y,z) - \lambda \cdot g(x,y,z)\) \(= xyz - \lambda (2xy + 2xz + yz - 12)\) \(= xyz - 2\lambda xy - 2\lambda xz - \lambda yz + 12\lambda\)
Find partial derivatives
\(F_x(x,y,z,\lambda) = \frac{\partial F(x,y,z,\lambda)}{\partial x} = yz - 2\lambda y - 2\lambda z\)
\(F_y(x,y,z,\lambda) = \frac{\partial F(x,y,z,\lambda)}{\partial y} = xz - 2\lambda x - \lambda z\)
\(F_z(x,y,z,\lambda) = \frac{\partial F(x,y,z,\lambda)}{\partial z} = xy - 2\lambda x - \lambda y\)
\(F_{\lambda}(x,y,z,\lambda) = \frac{\partial F(x,y,z,\lambda)}{\partial \lambda} = - 2xy - 2xz - yz + 12\)
Form the system of equations
System 1:
\[ F_x(x,y,z,\lambda) = yz - 2\lambda y - 2\lambda z = 0 \ \ (1) \]
\[ F_y(x,y,z,\lambda) = xz - 2\lambda x - \lambda z = 0 \ \ (2) \]
\[ F_z(x,y,z,\lambda) = xy - 2\lambda x - \lambda y = 0 \ \ (3) \]
\[ F_{\lambda}(x,y,z,\lambda) = - 2xy - 2xz - yz + 12 = 0 \ \ (4) \]
NOTE : the hierarchical structure of the following solution is indicated by the bullet symbol \(\bullet\) and indentation.
Let's solve the System 1 in Step 4 by substitution.
- Represent \(\lambda\) as a function of \(x, y\) and \(z\) : from \((1)\) we get \(\lambda = \frac{yz}{2y + 2z} \ \ (1')\).
Replace \(\lambda\) with \(\frac{yz}{2y + 2z}\) in the other three equations, and we get
\(F_y(x,y,z,\lambda) = xz - 2\cdot \frac{yz}{2y + 2z} \cdot x - \frac{yz}{2y + 2z} \cdot z\) \(= \frac{xz(2y+2z)}{2y + 2z} - \frac{2xyz}{2y + 2z} - \frac{yz^2}{2y + 2z}\) \(= \frac{2xyz+2xz^2}{2y + 2z} - \frac{2xyz}{2y + 2z} - \frac{yz^2}{2y + 2z}\) \(= \frac{2xyz+2xz^2 - 2xyz - yz^2}{2y + 2z}\) \(= \frac{(2x - y)z^2}{2y + 2z} = 0\)
\(\implies (2x - y)z^2 = 0 \ \ (2')\)
\(F_z(x,y,z,\lambda) = xy - 2\cdot \frac{yz}{2y + 2z} \cdot x - \frac{yz}{2y + 2z} \cdot y\) \(= \frac{xy(2y+2z)}{2y + 2z} - \frac{2xyz}{2y + 2z} - \frac{y^2 z}{2y + 2z}\) \(= \frac{2xy^2+2xyz}{2y + 2z} - \frac{2xyz}{2y + 2z} - \frac{y^2 z}{2y + 2z}\) \(= \frac{2xy^2+2xyz - 2xyz - y^2 z}{2y + 2z}\) \(= \frac{(2x - z)y^2}{2y + 2z} = 0\)
\(\implies (2x - z)y^2 = 0 \ \ (3')\)
\(F_{\lambda}(x,y,z,\lambda) = - 2xy - 2xz - yz + 12 = 0 \ \ (4)\)
Putting \((2')\), \((3')\) and \((4)\) together, we have System 2 which contains only \(x, y\) and \(z\) as follows.
System 2:
\[ (2x - y)z^2 = 0 \ \ (2') \]
\[ (2x - z)y^2 = 0 \ \ (3') \]
\[ F_{\lambda}(x,y,z,\lambda) = - 2xy - 2xz - yz + 12 = 0 \ \ (4) \]
Now we just need solve the system 2, which contains only \(x, y\) and \(z\). Again, we use substitution method to solve it.
From \((2')\), we get
\[ z = 0 \ \ (5) \textbf{ OR } 2x - y = 0 \implies y = 2x \ \ (6) \]
Note the relationship between \((5)\) and \((6)\) is OR, not AND, so we don't put them simultaneously into equations \((3')\) and \((4)\) in System 2. Instead, at each time, we just use one of them. As a result, we need discuss it case by case.
- Case 1 : When \(z = 0 \ \ (5)\) holds
Replace \(z\) with \(0\) in equations \((3')\) and \((4)\), and we get System 3.1.
System 3.1:
\[ 2xy^2 = 0 \ \ (3'') \]
\[ -2xy + 12 = 0 \ \ (4') \]
- Now we just need solve the system 3.1 which contains only \(x\) and \(y\). Again, we use substitution method to solve it.
- From \((3'')\) we get \[x = 0 \ \ (7) \textbf{ OR } y^2 = 0 \implies y = 0 \ \ (8)\]
- When \(x = 0 \ \ (7)\) holds, replace \(x\) with \(0\) in equation \((4')\), and we get \(12 = 0\), which never holds, so there is no solution of \(y\) corresponding to \(x=0\)
- When \(y = 0 \ \ (8)\) holds, replace \(y\) with \(0\) in equation \((4')\), and we get \(12 = 0\), which never holds, so there is no solution of \(x\) corresponding to \(y=0\)
- Therefore, there is not solution to System 3.1 under either \((7)\) or \((8)\).
- Therefore, there is no solution to \((x,y,z)\) in Case 1.
- Case 2 : When \(y = 2x \ \ (6)\) holds
Replace \(y\) with \(2x\) in equations \((3')\) and \((4)\), and we get System 3.2.
System 3.2:
\[ (2x - z) (2x)^2 = 4(2x - z)x^2 = 0 \ \ (3''') \]
\[ -2x(2x) - 2xz - 2xz + 12 = -4x^2 - 4xz + 12 = 0 \ \ (4'') \]
- Now we just need solve the system 3.2 which contains only \(x\) and \(z\). Again, we use substitution method to solve it.
From \((3''')\), we get
\[ x^2 = 0 \implies x = 0 \ \ (9) \textbf{ OR } 2x - z = 0 \implies z = 2x \ \ (10) \]
Note that the relationship between \((9)\) and \((10)\) is OR, not AND, so we don't put them simultaneously into equations \((4'')\) in System 3.2. Instead, at each time, we just use one of them. As a result, we need discuss it case by case.
Case 2.1 : When \(x = 0 \ \ (9)\) holds
Replace \(x\) with \(0\) in equation \((4'')\), and we get \(12 = 0\), which never holds, so there is no solution of \(z\) corresponding to \(x = 0\).
Therefore, there is no solution to \((x,y,z)\) in Case 2.1.
- Case 2.2 : When \(z = 2x \ \ (10)\) holds
Replace \(z\) with \(2x\) in equation \((4'')\), and we get \(-4x^2 - 4x(2x) + 12 = 0\), so
\[ x = 1 \ \ (11) \textbf{ OR } x = -1 \ \ (12) \]
- When \(x = 1 \ \ (11)\) holds, by \((10)\) we have \(z = 2x = 2 \cdot 1 = 2\) and by \((6)\) we have \(y = 2x = 2 \cdot 1 = 2\). Therefore, \((x,y,z) = (1, 2, 2)\) gives a relative extremum.
- When \(x = -1 \ \ (12)\) holds, by \((10)\) we have \(z = 2x = 2 \cdot (-1) = -2\) and by \((6)\) we have \(y = 2x = 2 \cdot (-1) = -2\). Therefore, \((x,y,z) = (-1, -2, -2)\) gives a relative extremum.
- Therefore, \((x,y,z) = (1,2,2)\) and \((x,y,z) = (-1,-2,-2)\) are the only two points giving relative extrema in Case 2.2.
- Also, in whole Case 2, \((x,y,z) = (1,2,2)\) and \((x,y,z) = (-1,-2,-2)\) are the only 2 points giving relative extrema as Case 2.1 has no solution.
- Finally, for the whole problem, \((x,y,z) = (1,2,2)\) and \((x,y,z) = (-1,-2,-2)\) are the only 2 points giving relative extrema as Case 1 has no solution. The values of the two extrema are \(f(1,2,2) = 1\cdot 2\cdot 2 = 4\) and \(f(-1, -2, -2) = (-1) \cdot (-2) \cdot (-2) = -4\).
Remark: You can use any method to solve these equations. Here I just show you how to apply the subtitution method. It may not be the simplest method, but it always works as far as this course is concerned. Using this "stupid" substitution method sometimes has an advantage: at least you will get the answer even if you are not good at manipulating complicated algebraic operations and tricks.
5.6 Total Differentials and Approximations
5.6.1 Total Differential for Two Variables
Let \(z = f(x,y)\) be a function of \(x\) and \(y\). Let \(dx\) and \(dy\) be real numbers. Then the total differential of \(z\) is \[ dz = f_x(x,y) dx + f_y(x,y) dy \]
5.6.2 Approximations
For small values of \(dx\) and \(dy\), \(dz \approx \Delta z\), where \(\Delta z = f(x+dx, y+dy) - f(x,y)\).
Therefore, the approximation for \(f(x+dx, y+dy)\) is \[ f(x+dx, y+dy) \approx f(x,y) + dz = f(x,y) + f_x(x,y) dx + f_y(x,y) dy \]
- Remark
This can be derived as follows. First, we have \(\Delta z \approx dz \ \ (1)\)
\(\Delta z = f(x+dx,y+dy) - f(x,y) \ \ (2)\)
\(dz = f_x(x,y) dx + f_y(x,y) dy \ \ (3)\)
Then putting \((2)\) and \((3)\) into \((1)\) we get
\(f(x+dx,y+dy) - f(x,y) \approx f_x(x,y) dx + f_y(x,y) dy\)
\(\implies f(x+dx,y+dy) \approx f(x,y) + f_x(x,y) dx + f_y(x,y) dy\).
5.6.3 Example
- Example 1
Find the total differential of function \(z = x^2 y\) and compute its values when \((x, y) = (2, 3)\) and \((dx, dy) = (\Delta x, \Delta y) = (0.01, 0.02)\).
Find the partial derivatives
\(f_x(x,y) = \frac{\partial f(x,y)}{\partial x} = \frac{\partial x^2 y}{\partial x} = 2xy\)
\(f_x(x,y) = \frac{\partial f(x,y)}{\partial y} = \frac{\partial x^2 y}{\partial x} = x^2\)
Then the total differential is \(dz = f_x(x,y) dx + f_y(x,y) dy = 2xy dx + x^2 dy\)
When \((x,y) = (2,3)\) and \((dx, dy) = (0.01, 0.02)\), we have \(dz = f_x(x,y) dx + f_y(x,y) dy = 2xy dx + x^2 dy\) \(= 2 \cdot 2 \cdot 3 \cdot 0.01 + 2^2 \cdot 0.02\) \(= 0.2\)
- Example 2
Approximate \(2.02^2 \cdot 2.99\).
Let's identify the relevant quantities first:
- the function is \(f(x,y) = x^2 y\)
- we want to approximate \(f(2.02, 2.99)\)
- \((2.02, 2.99)\) is close to \((2, 3)\) and \(f(2,3)\) is easy to compute, so we should approximate \(f(2.02, 2.99)\) by \(f(2,3)\)
- \(dx = 2.02 - 2 = 0.02\) and \(dy = 2.99 - 3 = -0.01\)
Then calculate
- \(f_x(x,y) = \frac{\partial x^2 y}{\partial x} = 2xy\)
- \(f_x(x,y) = \frac{\partial x^2 y}{\partial y} = x^2\)
Therefore, by the formula \(f(x+dx, y+dy) \approx f(x,y) + f_x(x,y) dx + f_y(x,y) dy\), we have
\(f(2.02, 2.99) = f(2+0.02, 3+(-0.01))\)
\(\approx f(2,3) + f_x(2,3) \cdot 0.02 + f_y(2,3) \cdot (-0.01)\)
\(= 2^2 \cdot 3 + 2 \cdot 2 \cdot 3 \cdot 0.02 + 2^2 \cdot (-0.01)\)
\(= 12.2\)
5.7 Integral Of A Multivariate Function With Respect To One Variable
5.7.1 Indefinite Integral
To find the indefinite integral of a multivariate function with respect to one variable, we regard all other variables as constants.
- Example
Let \(f(x,y) = x^2 + xy + y^3\). Then
\(\int f(x,y) dx = \int (x^2 + xy + y^3) dx = \frac{x^3}{3} + \frac{yx^2}{2} + y^3 x + C(y)\) where \(C(y)\) is any function of \(y\).
\(\int f(x,y) dy = \int (x^2 + xy + y^3) dy = x^2 y + \frac{xy^2}{2} + \frac{y^4}{4} + C(x)\) where \(C(x)\) is any function of \(x\).
- Remark
- \(\int f(x,y) dx \neq \int f(x,y) dy\). That is, the integral of \(f\) with respect to \(x\) is not identical to the integral with respect to \(y\). This is the general situation.
- As we did for univariate functions, the indefinite integral, as the "most general antiderivative", is a class of antiderivatives rather than a single one. One antiderivative in this class can be represented as another one plus a constant.
- Here the "constant" means a function that doesn't have the variable with respect to which the integral is defined. That is, it can be a function of the other variables. To find \(\int f(x,y) dx\), we add \(C(y)\) (an arbitrary function of \(y\)) to one specific antiderivative of function \(f(x,y)\) with respect to \(x\) (ie, \(\frac{x^3}{3} + \frac{yx^2}{2} + y^3 x\)), and the result is just the whole family of antiderivatives of \(f(x,y)\) with respect to \(x\). Check it by finding the partial derivative of \(\frac{x^3}{3} + \frac{yx^2}{2} + y^3 x + C(y)\) with respect to \(x\). The similar situation for \(\int f(x,y) dy\), the indefinite integral with respect to \(y\).
- In \(\int f(x,y) dx\), if we use just a constant number \(C\) instead of \(C(y)\) (an arbitrary function of \(y\)), then the result is still a family of antiderivatives of \(f(x,y)\) with respect to \(x\). However, this family is not "the most general" one – not as general as the one using \(C(y)\) – so it is not the "indefinite integral".
5.7.2 Definite Integral
As we did for univariate functions, we evaluate definite integrals by the corresponding indefinite integrals through Fundamental Theorem of Calculus.
- Example
Let \(f(x,y) = x^2 + xy + y^3\). Then
\(\int_0^1 f(x,y) dx = \int_0^1 (x^2 + xy + y^3) dx\)
\(= \frac{x^3}{3} + \frac{yx^2}{2} + y^3 x + C(y) \big|_0^1\)
\(= \left( \frac{x^3}{3} + \frac{yx^2}{2} + y^3 x + C(y) \right) \big|_{x=1} - \left( \frac{x^3}{3} + \frac{yx^2}{2} + y^3 x + C(y) \right) \big|_{x=0}\)
\(= \left( \frac{1^3}{3} + \frac{y \cdot 1^2}{2} + y^3 \cdot 1 + C(y) \right) - \left( \frac{0^3}{3} + \frac{y \cdot 0^2}{2} + y^3 \cdot 0 + C(y) \right)\)
\(= \frac{1}{3} + \frac{y}{2} + y^3\)
\(\int_0^1 f(x,y) dy = \int_0^1 (x^2 + xy + y^3) dy\)
\(= x^2 y + \frac{xy^2}{2} + \frac{y^4}{4} + C(x) \big|_0^1\)
\(= \left( x^2 y + \frac{xy^2}{2} + \frac{y^4}{4} + C(x) \right) \big|_{y=1} - \left( x^2 y + \frac{xy^2}{2} + \frac{y^4}{4} + C(x) \right) \big|_{y=0}\)
\(= \left( x^2 \cdot 1 + \frac{x \cdot 1^2}{2} + \frac{1^4}{4} + C(x) \right) - \left( x^2 \cdot 0 + \frac{x \cdot 0^2}{2} + \frac{0^4}{4} + C(x) \right)\)
\(= x^2 + \frac{x}{2} + \frac{1}{4}\)
- Remark
- \(\int_0^1 f(x,y) dx \neq \int_0^1 f(x,y) dy\). This is the general situation, as the indefinite integrals \(\int f(x,y) dx \neq \int f(x,y) dy\).
- \(\int_0^1 f(x,y) dx\) is a function of only \(y\), and \(\int_0^1 f(x,y) dy\) is a function of only \(x\). This is the general situation. When calculating the definite integral with respect to \(x\), we replace \(x\) in the antiderivative with the lower and upper integral limits, so \(x\) is eliminated and the result \(\int_0^1 x^2 + xy + y^3 dx = \frac{1}{3} + \frac{y}{2} + y^3\) contains only \(y\). It can be imagined that if we further find the definite integral of \(\frac{1}{3} + \frac{y}{2} + y^3\) with respect to \(y\) (ie, find \(\int_a^b \frac{1}{3} + \frac{y}{2} + y^3 dy\)), then \(y\) will be also eliminated and we will get a constant number. We will see this in next section "Double Integral".
- When we evaluate \(\int_0^1 f(x,y) dx\), the definite integral of \(f(x,y)\) with respect to \(x\), \(C(y)\) doesn't play a role because it is eventually cancelled by \(-C(y)\). This is the general case : we don't really need \(C(y)\) for evaluating the definite integral with respect to \(x\), just as we don't need \(C\) for evaluating the univariate definite integral. The similar for the definite integral with respect to \(y\) and \(C(x)\).
5.8 Double Integral Of A Multivariate Function
5.8.1 Introduction: Volume of The Solid Under A Surface and Over A Region
For a non-negative function \(f(x,y)\) and a region \(R\), we are interested in the volume of the solid under the graph of \(f\) and over the region \(R\), which can be calculated through Double Integral.
In the following sections, we will see 2 special cases of \(R\):
- Rectangluar \(R\), or
- Variable \(R\)
source of picture:https://www.zweigmedia.com/RealWorld/summarypic/cs8_9.gif
5.8.2 Double Integral Over A Rectangle Region
- Formula
For a non-negative \(f(x,y)\), if \(R = \{ (x,y) : a \le x \le b, c \le y \le d \}\), then the volume of the solid under the graph of \(f\) and over the region \(R\), denoted by either \(\iint_R f(x,y) dy dx\) or \(\iint_R f(x,y) dx dy\), equals either \(\int_a^b \left( \int_c^d f(x,y) dy \right) dx\) or \(\int_c^d \left( \int_a^b f(x,y) dx \right) dy\). That is,
\[ V = \iint_R f(x,y) dy dx = \iint_R f(x,y) dx dy \] \[ = \int_a^b \left( \int_c^d f(x,y) dy \right) dx = \int_c^d \left( \int_a^b f(x,y) dx \right) dy \]
- Remark
For rectangular \(R\), we always have \(\int_a^b \left( \int_c^d f(x,y) dy \right) dx = \int_c^d \left( \int_a^b f(x,y) dx \right) dy\), which means the order of the two layers of integrals can be exchanged.
source of picture:https://math.oregonstate.edu/home/programs/undergrad/CalculusQuestStudyGuides/vcalc/255doub/plot1.gif
- Example
Find the volume of the solid under the graph of the function \(f(x,y) = 6x^2 y + e^{x+2y}\) and over the region \(R = \{ (x, y) | 3 \le x \le 5, 1 \le y \le 2 \}\).
To calculate the volume, we need find either \(\int_3^5 \left( \int_1^2 6x^2 y + e^{x+2y} dy \right) dx\) or \(\int_1^2 \left( \int_3^5 6x^2 y + e^{x+2y} dx \right) dy\).
Let's find \(\int_3^5 \left( \int_1^2 6x^2 y + e^{x+2y} dy \right) dx\) now. You can find \(\int_1^2 \left( \int_3^5 6x^2 y + e^{x+2y} dx \right) dy\) by yourself using similar steps.
First, find the inner integral \(\int_1^2 6x^2 y + e^{x+2y} dy\).
Regarding \(x\) as a constant, we get the indefinite integral of \(6x^2 y + e^{x+2y}\) with respect to \(y\)
\(\int 6x^2 y + e^{x+2y} dy\)
\(= \int 6x^2 y dy + \int e^{x+2y} dy\)
\(= 6x^2 \cdot \frac{y^2}{2} + \frac{e^{x+2y}}{2} + C(x)\)
\(= 3 x^2 y^2 + \frac{e^{x+2y}}{2} + C(x)\)
Hence, by FTC we get the definite integral \(\int_1^2 6x^2 y + e^{x+2y} dy\)
\(= \left( 3 x^2 y^2 + \frac{e^{x+2y}}{2} \right) \big|_{y=1}^{y=2}\)
\(= \left( 3 x^2 \cdot 2^2 + \frac{e^{x + 2 \cdot 2}}{2} \right) - \left( 3 x^2 \cdot 1^2 + \frac{e^{x+2 \cdot 1}}{2} \right)\)
\(= \left( 12 x^2 + \frac{e^{x + 4}}{2} \right) - \left( 3 x^2 + \frac{e^{x+2}}{2} \right)\)
\(= 12 x^2 + \frac{e^{x + 4}}{2} - 3 x^2 - \frac{e^{x + 2}}{2}\)
\(= 9 x^2 + \frac{e^{x + 4}}{2} - \frac{e^{x + 2}}{2}\)
Second, find the outer integral \(\int_3^5 \left( 9 x^2 + \frac{e^{x + 4}}{2} - \frac{e^{x + 2}}{2} \right) dx\).
The indefinite integral
\(\int \left( 9 x^2 + \frac{e^{x + 4}}{2} - \frac{e^{x + 2}}{2} \right) dx\)
\(= \int 9 x^2 dx + \frac{1}{2} \int e^{x + 4} dx - \frac{1}{2} \int e^{x + 2} dx\)
\(= 3 x^3 + \frac{e^{x + 4}}{2} - \frac{e^{x + 2}}{2} + C\)
Hence, by FTC we get the definite integral
\(\int_3^5 \left( 9 x^2 + \frac{e^{x + 4}}{2} - \frac{e^{x + 2}}{2} \right) dx\)
\(= \left( 3 x^3 + \frac{e^{x + 4}}{2} - \frac{e^{x + 2}}{2} \right) \big|_{x=3}^{x=5}\)
\(= \left( 3 \cdot 5^3 + \frac{e^{5 + 4}}{2} - \frac{e^{5 + 2}}{2} \right) - \left( 3 \cdot 3^3 + \frac{e^{3 + 4}}{2} - \frac{e^{3 + 2}}{2} \right)\)
\(= 294 + \frac{e^9 - e^7 - e^7 + e^5}{2}\)
\(= 294 + \frac{e^9 - 2e^7 + e^5}{2}\)
Therefore, we have \(V = \iint_R f(x,y) dy dx = \int_3^5 \left( \int_1^2 6x^2 y + e^{x+2y} dy \right) dx = \int_3^5 \left( 9 x^2 + \frac{e^{x + 4}}{2} - \frac{e^{x + 2}}{2} \right) dx = 294 + \frac{e^9 - 2e^7 + e^5}{2}\)
5.8.3 Double Integral Over A Variable Region
- Formula
- Case 1 : For a non-negative \(f(x,y)\), if the region \(R = \{ (x,y) : a \le x \le b, g_1(x) \le y \le g_2(x) \}\), then the volume of the solid under the graph of \(f\) and over the region \(R\), denoted by \(\iint_R f(x,y) dy dx\), equals \(\int_a^b \left[ \int_{g_1(x)}^{g_2(x)} f(x,y) dy \right] dx\). That is \[ V = \iint_R f(x,y) dy dx = \int_a^b \left[ \int_{g_1(x)}^{g_2(x)} f(x,y) dy \right] dx \]
Case 2 : For a non-negative \(f(x,y)\), if the region \(R = \{ (x,y) : h_1(y) \le x \le h_2(y), c \le y \le d \}\), then the volume of the solid under the graph of \(f\) and over the region \(R\), denoted by \(\iint_R f(x,y) dx dy\), equals \(\int_c^d \left[ \int_{h_1(y)}^{h_2(y)} f(x,y) dx \right] dy\). That is
\[ V = \iint_R f(x,y) dx dy = \int_c^d \left[ \int_{h_1(y)}^{h_2(y)} f(x,y) dx \right] dy \]
- Remark
- For non-rectangular \(R\), \(\int_a^b \left[ \int_{g_1(x)}^{g_2(x)} f(x,y) dy \right] dx \neq \int_{g_1(x)}^{g_2(x)} \left[ \int_a^b f(x,y) dx \right] dy\), and \(\int_c^d \left[ \int_{h_1(y)}^{h_2(y)} f(x,y) dx \right] dy \neq \int_{h_1(y)}^{h_2(y)} \left[ \int_c^d f(x,y) dx \right] dy\), which means the order of the two layers of integrals can NOT be exchanged.
- When the integral limits of \(y\) are functions of \(x\), we should first calculate \(\int_{g_1(x)}^{g_2(x)} f(x,y) dy\), and then calculate the integral of the whole \(\int_{g_1(x)}^{g_2(x)} f(x,y) dy\) with respect to \(x\).
- When the integral limits of \(x\) are functions of \(y\), we should first calculate \(\int_{h_1(y)}^{h_2(y)} f(x,y) dx\), and then calculate the integral of the whole \(\int_{h_1(y)}^{h_2(y)} f(x,y) dx\) with respect to \(y\).
- For short, always let the inside integral be the one with variable integral limits.
source of picture:https://tutorial.math.lamar.edu/Classes/CalcIII/DIGeneralRegion.aspx
- Example
Find the volume of the solid under the graph of the function \(f(x,y) = 6x^2 y + e^{x+2y}\) and over the region \(R = \{ (x, y) | y \le x \le 2y, 1 \le y \le 2 \}\).
Note that here the integral limits of \(x\) are functions of \(y\) and the integral limits of \(y\) are constants, so to calculate the volume, we need first do the integration with respect to \(x\) and then do the integration with respect to \(y\). That is, we need find \(\int_1^2 \left( \int_{y}^{2y} 6x^2 y + e^{x+2y} dx \right) dy\).
First, find the inner integral \(\int_{y}^{2y} 6x^2 y + e^{x+2y} dx\).
Regarding \(y\) as a constant, we get the indefinite integral of \(6x^2 y + e^{x+2y}\) with respect to \(x\)
\(\int 6x^2 y + e^{x+2y} dx\)
\(= \int 6x^2 y dx + \int e^{x+2y} dx\)
\(= 6y \cdot \frac{x^3}{3} + e^{x+2y} + C(y)\)
\(= 2 x^3 y + e^{x+2y} + C(y)\)
Hence, by FTC we get the definite integral
\(\int_{y}^{2y} 6x^2 y + e^{x+2y} dx\)
\(= ( 2 x^3 y + e^{x+2y} ) \big|_{x = y}^{x = 2y}\)
\(= ( 2 \cdot (2y)^3 y + e^{2y+2y} ) - ( 2 y^3 y + e^{y+2y} )\)
\(= ( 16 y^4 + e^{4y} ) - ( 2 y^4 + e^{3y} )\)
\(= 16 y^4 + e^{4y} - 2 y^4 - e^{3y}\)
\(= 14 y^4 + e^{4y} - e^{3y}\)
Second, find the outer integral \(\int_1^2 \left( 14 y^4 + e^{4y} - e^{3y} \right) dy\)
The indefinite integral
\(\int 14 y^4 + e^{4y} - e^{3y} dy\)
\(= \int 14 y^4 dy + \int e^{4y} dy - \int e^{3y} dy\)
\(= \frac{14y^5}{5} + \frac{e^{4y}}{4} - \frac{e^{3y}}{3} + C\)
Hence by FTC we get the definite integral
\(\int_1^2 14 y^4 + e^{4y} - e^{3y} dx\)
\(= \left( \frac{14y^5}{5} + \frac{e^{4y}}{4} - \frac{e^{3y}}{3} \right) \big|_{y=1}^{y=2}\)
\(= \left( \frac{14 \cdot 2^5}{5} + \frac{e^{4 \cdot 2}}{4} - \frac{e^{3 \cdot 2}}{3} \right) - \left( \frac{14 \cdot 1^5}{5} + \frac{e^{4 \cdot 1}}{4} - \frac{e^{3 \cdot 1}}{3} \right)\)
\(= \left( \frac{448}{5} + \frac{e^{8}}{4} - \frac{e^{6}}{3} \right) - \left( \frac{14}{5} + \frac{e^{4}}{4} - \frac{e^{3}}{3} \right)\)
\(= \frac{448}{5} + \frac{e^{8}}{4} - \frac{e^{6}}{3} - \frac{14}{5} - \frac{e^{4}}{4} + \frac{e^{3}}{3}\)
\(= \frac{434}{5} + \frac{e^{8} - e^{4}}{4} - \frac{e^{3} - e^{6}}{3}\)
Therefore, we have \(V = \int_1^2 \left( \int_{y}^{2y} 6x^2 y + e^{x+2y} dx \right) dy = \int_1^2 \left( 14 y^4 + e^{4y} - e^{3y} \right) dy = \frac{434}{5} + \frac{e^{8} - e^{4}}{4} - \frac{e^{3} - e^{6}}{3}\)
5.9 References
- Lial, M. L., Greenwell, R. N., Ritchey, N. P. (2011). Calculus with Applications (10th Edition). Boston, MA : Pearson.
6 Differential Equation
6.1 Introduction
6.1.1 Motivation
When we are given a derivative like \(\frac{dy}{dx} = x^2\), we can easily find the original function \(y\) as the indefinite integral of \(x^2\) : \(y = \int x^2 dx = \frac{x^3}{3} + C\).
However, if the derivative is not a simple function of only \(x\), for example, if \(\frac{dy}{dx} = x^2 e^y\),
- how can we represent \(y\) as an explicit function of \(x\) (find a function \(f(x)\) such that \(y = f(x)\))?
- if we can't find such \(f\), to what extent can we simplify the relationship between \(x\) and \(y\)? For example, can we represent the relationship between \(x\) and \(y\) without using derivative?
In this section, we will partly answer this question.
6.1.2 General Solution and Particular Solution
As we saw above, from \(\frac{dy}{dx} = x^2\) we get \(y = \int x^2 dx = \frac{x^3}{3} + C\), which contains an arbitrary constant \(C\). It is a family of solutions, rather than a single solution, so it is called the General Solution.
However, if we are given particular initial values of \(x\) and \(y\), ie, \((x,y) = (x_0, y_0)\), then we can calculate a unique value of \(C\) by replacing \(x\) and \(y\) with \(x_0\) and \(y_0\) respectively in the general solution. In the above example, if the initial values are \((x,y)=(1,2)\), then by replacing \(x\) and \(y\) with \(1\) and \(2\) in the general solution \(y = \int x^2 dx = \frac{x^3}{3} + C\), we get \(2 = \frac{1^3}{3} + C \implies C = \frac{5}{3}\). Put \(C = \frac{5}{3}\) into the general solution, and we get \(y = \frac{x^3}{3} + \frac{5}{3}\). This is just a single solution, and it is called the particular solution corresponding to initial values \((x,y)=(1,2)\).
6.2 Elementary Differential Equations
6.2.1 Formula
The general solution of the differential equation \(\frac{dy}{dx} = g(x)\) is \(y = \int g(x) dx\).
6.2.2 Example
Find \(y\) if \(\frac{dy}{dx} - 3x^2 - e^{2x} = \frac{5}{x}\). Find a particular solution for initial value \(x = 1, y = 2\).
General Solution
From \(\frac{dy}{dx} - 3x^2 - e^{2x} = \frac{5}{x}\) we get \(\frac{dy}{dx} = 3x^2 + e^{2x} + \frac{5}{x} = g(x)\).
Hence, by formula, the general solution is
\(y = \int g(x) dx = \int \left( 3x^2 + e^{2x} + \frac{5}{x} \right) dx\)
\(= \int 3x^2 dx + \int e^{2x} dx + \int \frac{5}{x} dx\)
\(= x^3 + \frac{e^{2x}}{2} + 5ln|x| + C\)
Particular Solution
Putting \(x = 1, y = 2\) into the general solution, we have \(2 = 1^3 + \frac{e^{2 \cdot 1}}{2} + 5ln|1| + C\) and thus \(C = 1 - \frac{e^2}{2}\).
Putting \(C = 1 - \frac{e^2}{2}\) into the general solution, we get the particular solution for \(x = 1, y = 2\) :
\(y = x^3 + \frac{e^{2x}}{2} + 5ln|x| + 1 - \frac{e^2}{2}\)
6.3 Separable Differential Equations
6.3.1 Formula
The general solution of the separable differential equation \(\frac{dy}{dx} = \frac{p(x)}{q(y)}\) is \(\int q(y) dy = \int p(x) dx\).
6.3.2 Remark
- Why is it called separable?
The differential equation is called "separable" because the right hand side \(\frac{p(x)}{q(y)}\) is a fraction between \(p(x)\) and \(q(y)\), where
- \(p(x)\) is a function of ONLY \(x\)
- \(q(y)\) is a function of ONLY \(y\)
That means, the two variables \(x\) and \(y\) are separated into two individual functions.
- A Common Mistake
Find \(\frac{dy}{dx}=\frac{1}{xy}\).
Wrong Solution:
let \(p(x) = 1\) and \(q(y)=xy\).
Then the general solution is
\(\int q(y) dy = \int p(x) dx\)
\(\implies \int xy dy = \int 1 dx\)
\(\implies x \int y dy = \int 1 dx\)
\(\implies x \cdot \frac{y^2}{2} + C_1 = x + C_2\)
\(\implies \frac{xy^2}{2} - x = C\)
What is wrong with the following solution?
- First, as mentioned above, \(p(x)\) should be a function of ONLY \(x\), and \(q(y)\) should be a function of ONLY \(y\). However, \(q(y)=xy\) in the above wrong solution was defined as a function of both \(x\) and \(y\). That means, \(x\) and \(y\) were not separated. The correct way is \(\frac{dy}{dx}\) \(= \frac{1}{xy}\) \(= \frac{1}{x} \cdot \frac{1}{y}\) \(= \frac{\frac{1}{x}}{y}\) \(= frac{p(x)}{q(y)}\), ie, let \(p=\frac{1}{x}\) and let \(q(y) = y\).
Second, remember that here \(\int xy dy \neq x \int y dy\)! Why? We did have \(\int xy dy = x \int y dy\) in the multivariate calculus chapter! Yes, in the multivariate calculus, we had \(\int xy dy = x \int y dy\) because we regard \(x\) as a constant when \(y\) is regarded as the variable. Why are we allowed to do so (regarding \(x\) as a constant)? The reason is, in a multivariate function \(z=f(x,y)\), \(x\) and \(y\) are independent of each other. That is, \(x\) doesn't change as \(y\) changes, so \(x\) is "constant".
However, when saying "differential equation", we mean \(y = f(x)\) is a univariate function of \(x\), rather than any multivariate function \(z=f(x,y)\)! That is, \(x\) and \(y\) are not indpendent! Suppose \(y\) is actually independent of \(x\). Then \(y\) can be regarded as a constant when \(x\) is regarded as the variable, and thus always \(\frac{dy}{dx} = \frac{d(constant)}{dx} = 0\), which makes the diffrential equation meaningless!
To summarize,
- If we are talking about the multivariate function \(z = f(x,y)\), in which \(z\) is a function of both \(x\) and \(y\) and \(x\) and \(y\) are independent, then we can regard \(x\) as a constant when \(y\) is treated as the variable. Also, we can regard \(y\) as a constant when \(x\) is treated as the variable.
- If we are talking about (ordinary) differential equations, then we mean \(y\) is a univariate function of \(x\), ie, \(y=f(x)\), and thus \(x\) and \(y\) are not independent of each other. In this case, we can NOT regard \(x\) as a constant when \(y\) is treated as the variable. Also, we can NOT regard \(y\) as a constant when \(x\) is treated as the variable.
Let's look at the following example to get an illustration.
- Case 1 : multivariate \(z = f(x,y) = xy\). Then \(x\) and \(y\) are independent, so \(y\) can be regarded as a constant when \(x\) is regarded as the variable. In this case, we have \(\int xy dx = y \int x dx = y \left( \frac{x^2}{2} + C \right) = \frac{x^2 y}{2} + Cy\)
- Case 2 : univariate \(y = f(x) = x^3\). Then \(y\) depends on \(x\), and can NOT be regarded as a constant. In this case, we have \(\int xy dx = \int x \cdot x^3 dx = \int x^4 dx = \frac{x^5}{5} + C = \frac{x^2 \cdot x^3}{5} + C = \frac{x^2 y}{5} + C\).
- Look, for Case 1 and Case 2, the answers to \(\int xy dx\) are not the same, because they are based on different assumptions!
6.3.3 Example 1
Find the general solution for \(\frac{dy}{dx} - (2y - 1)^2 = 0\) and find the particular solution for initial value \(x = 3, y = 1\).
General Solution
The equation can be rewritten as \(\frac{dy}{dx} = (2y - 1)^2 = \frac{1}{(2y - 1)^{-2}} = \frac{p(x)}{q(y)}\) where
- \(p(x) = 1\)
- \(q(y) = (2y - 1)^{-2}\)
so the general solution is \(\int q(y) dy = \int p(x) dx\).
First, we need find \(\int q(y) dy\).
According to our experience, integration by substitution should be used. Let \(u = u(y) = 2y - 1\). Then we have \(du = u' dy = 2 dy\) and thus
\(\int q(y) dy = \int (2y - 1)^{-2} dy\)
\(= \int (2y - 1)^{-2} \cdot \frac{2}{2} dy\)
\(= \frac{1}{2} \int u^{-2} du\)
\(= \frac{1}{2} \cdot \frac{u^{-2+1}}{-2+1} + C_1\)
\(= \frac{u^{-1}}{-2} + C_1\)
\(= \frac{1}{-2u} + C_1\)
\(= \frac{1}{-2(2y - 1)} + C_1\)
Second, we find \(\int p(x) dx = \int 1 dx = x + C_2\).
Finally, the general solution is \(\frac{1}{-2(2y - 1)} + C_1 = x + C_2 \implies \frac{1}{-2(2y - 1)} - x + C = 0\).
Optionally (not required for your homework, quiz or exam), we can simplify the answer and write \(y\) as an explicit function of \(x\) :
\(\frac{1}{-2(2y - 1)} + C_1 = x + C_2\)
\(\implies \frac{1}{-2(2y - 1)} = x + C\)
\(\implies -2(2y - 1) = \frac{1}{x+C}\)
\(\implies 2y - 1 = \frac{1}{-2(x+C)}\)
\(\implies 2y = \frac{1}{-2(x+C)} + 1\)
\(\implies y = \frac{1}{-4(x+C)} + \frac{1}{2}\)
Particular Solution
Putting \(x = 3, y = 1\) into the general solution, we have \(1 = \frac{1}{-4(3+C)} + \frac{1}{2}\) and thus \(C = \frac{-7}{2}\).
Putting \(C = \frac{-7}{2}\) into the general solution, we get the particular solution for \(x = 3, y = 1\) :
\(y = \frac{1}{-4(x-\frac{7}{2})} + \frac{1}{2}\)
6.3.4 Example 2
Find the general solution for \(\frac{dy}{dx} = \frac{y(2x^2 + 3x + 1)}{(3y^3 + 4y)x}\) and find the particular solution for initial value \(x = 1, y = 1\).
General Solution
The equation can be rewritten as
\(\frac{dy}{dx} = \frac{y(2x^2 + 3x + 1)}{(3y^3 + 4)x}\) \(= \frac{2x^2 + 3x + 1}{x} \cdot \frac{y}{3y^3 + 4}\) \(= \frac{\frac{2x^2 + 3x + 1}{x}}{\frac{3y^3 + 4}{y}}\) \(= \frac {2x + 3 + \frac{1}{x}} {3y^2 + \frac{4}{y}}\) \(= \frac {p(x)}{q(y)}\)
where
- \(p(x) = 2x + 3 + \frac{1}{x}\)
- \(q(y) = 3y^2 + \frac{4}{y}\)
so the general solution is \(\int q(y) dy = \int p(x) dx\).
First, we find
\(\int q(y) dy = \int 3y^2 + \frac{4}{y} dy\)
\(= \int 3y^2 dy + \int \frac{4}{y} dy\)
\(= y^3 + 4ln|y| + C_1\)
Second, we find
\(\int p(x) dx = \int 2x + 3 + \frac{1}{x} dx\)
\(= \int 2x dx + \int 3 dx + \int \frac{1}{x} dx\)
\(= x^2 + 3x + ln|x| + C_2\)
Finally, the general solution is \(y^3 + 4ln|y| + C_1 = x^2 + 3x + ln|x| + C_2\), or equivalently
\(y^3 + 4ln|y| - x^2 - 3x - ln|x| + C = 0\)
In this example, it is quite hard (if not impossible) for us to represent \(y\) as an explicit function of \(x\).
Particular Solution
Putting \(x = 1, y = 1\) into the general solution, we have \(1^3 + 4ln|1| - 1^2 - 3 \cdot 1 - ln|1| + C = 0\) and thus \(C = 3\).
Putting \(C = 3\) into the general solution, we get the particular solution for \(x = 1, y = 1\) :
\(y^3 + 4ln|y| - x^2 - 3x - ln|x| + 3 = 0\).
6.3.5 Example 3
Find the general solution for \(\frac{dy}{dx} = \frac{x(y^3+1)^4}{y^2 e^x}\) and find the particular solution for initial value \(x = 1, y = 1\).
General Solution
The equation can be rewritten as
\(\frac{dy}{dx} = \frac{x(y^3+1)^4}{y^2 e^x}\) \(= \frac{x}{e^x} \cdot \frac{(y^3+1)^4}{y^2}\) \(= x e^{-x} \cdot \frac{1}{\frac{y^2}{(y^3+1)^4}}\) \(= \frac{x e^{-x}}{\frac{y^2}{(y^3+1)^4}}\) \(= \frac {p(x)}{q(y)}\)
where
- \(p(x) = x e^{-x}\)
- \(q(y) = \frac{y^2}{(y^3+1)^4}\)
so the general solution is \(\int q(y) dy = \int p(x) dx\).
First, we find \(\int q(y) dy = \int \frac{y^2}{(y^3+1)^4} dy\) by substitution.
Let \(u=y^3+1\). Then \(du = u'dy = 3y^2 dy\) and
\(\int q(y) dy = \int \frac{y^2}{(y^3+1)^4} dy\)
\(= \int \frac{3y^2}{3(y^3+1)^4} dy\)
\(= \frac{1}{3}\int \frac{1}{(y^3+1)^4} \cdot 3y^2dy\)
\(= \frac{1}{3}\int \frac{1}{u^4} du\)
\(= \frac{1}{3}\int u^{-4} du\)
\(= \frac{1}{3} \left( \frac{u^{-4+1}}{-4+1} + C \right)\)
\(= \frac{1}{3} \left( \frac{u^{-3}}{-3} + C \right)\)
\(= \frac{u^{-3}}{-9} + C_1\)
\(= \frac{(y^3+1)^{-3}}{-9} + C_1\)
Second, we find \(\int p(x) dx = \int x e^{-x} dx\) by integration by parts.
Let \(u = x\) and \(v' = e^{-x}\). Then \(u' = 1\), \(v = \int e^{-x} dx = \frac{e^{-x}}{-1} + C = -e^{-x} + C\). Without loss of generality, let \(C=0\) and then \(v = -e^{-x}\) and
\(\int p(x) dx = \int x e^{-x} dx = \int u v' dx\)
\(= uv - \int u'v dx\)
\(= x \cdot (- e^{-x}) - \int 1 \cdot (- e^{-x}) dx\)
\(= - xe^{-x} + \int e^{-x} dx\)
\(= - xe^{-x} + \frac{e^{-x}}{-1} + C_2\)
\(= - xe^{-x} - e^{-x} + C_2\)
Finally, the general solution is \(\frac{(y^3+1)^{-3}}{-9} + C_1 = - xe^{-x} - e^{-x} + C_2\), or equivalently
\(\frac{(y^3+1)^{-3}}{-9} + xe^{-x} + e^{-x} + C = 0\)
In this example, \(y\) can be written as an explicit function of \(x\). Do it by yourself (not required, though).
Particular Solution
Putting \(x = 1, y = 1\) into the general solution, we have \(\frac{(1^3+1)^{-3}}{-9} + 1 \cdot e^{-1} + e^{-1} + C = 0\) and thus \(C = \frac{1}{72} - \frac{2}{e}\).
Putting \(C = \frac{1}{72} - \frac{2}{e}\) into the general solution, we get the particular solution for \(x = 1, y = 1\) :
\(\frac{(y^3+1)^{-3}}{-9} + xe^{-x} + e^{-x} + \frac{1}{72} - \frac{2}{e} = 0\).
6.4 Linear First-Order Differential Equations
6.4.1 Definition
A linear first-order differential equation is an equation of the form \(\frac{dy}{dx} + P(x) \cdot y = Q(x)\)
Remark:
- "Linear" : If we move the term \(P(x) \cdot y\) to the RHS of the equation, then we get \(\frac{dy}{dx} = Q(x) - P(x) \cdot y\), ie, the derivative \(\frac{dy}{dx}\) is a linear function of \(y\) if we regard \(x\) as a constant.
- "First-Order" : only the first order derivative exists in the equation, no second derivative or higher-order derivative.
6.4.2 Integrating Factor
The function \(I(x) = e^{\int P(x) dx}\) is called an integrating factor for the linear first-order differential equation \(\frac{dy}{dx} + P(x) \cdot y = Q(x)\).
Remark: \(\int P(x) dx\), as an indefinite integral, is a family of antiderivatives indexed by an arbitrary constant \(C\). For example, if \(P(x) = 2x\), then \(\int P(x) dx = \int 2x dx = x^2 + C\). However, for finding the solution to a linear first-order differential equation, one special antiderivative of \(P(x)\) is enough. For example, for \(P(x) = 2x\) and thus \(\int P(x) dx = x^2 + C\), we can choose the special antiderivative \(x^2\) corresponding to \(C=0\), and then get \(I(x) = e^{x^2}\), instead of the full version \(I(x) = e^{x^2 + C}\). Why is it enough to use just \(I(x) = e^{x^2}\) rather than the full version \(I(x) = e^{x^2 + C}\)? Actually, you can try both \(I(x) = e^{x^2}\) and \(I(x) = e^{x^2 + C}\) in the following procedure for solving linear first-order differential equations, and you will eventually find that these two different versions of \(I(x)\) yield exactly the same final solution. Therefore, for convenience, we can just ignore the constant \(C\) in \(\int P(x) dx\).
6.4.3 Solving The Equation
- Write the equation in the standard form \(\frac{dy}{dx} + P(x) \cdot y = Q(x)\).
- Find the integrating factor \(I(x) = e^{\int P(x) dx}\). One special antiderivative is enough, so we can drop the arbitrary constant \(C\).
- Calculate \(\int Q(x) \cdot I(x) dx\), which is a family of antiderivatives of \(Q(x)I(x)\)
- The general solution is \(y = \frac{\int Q(x) \cdot I(x) dx}{I(x)}\)
Remark: You are not required to know the derivation of the solution. You can verify the solution by yourself : replace \(y\) with \(\frac{\int Q(x) \cdot I(x) dx}{I(x)}\) in the original different equation, and you will find the LHS and RHS are equal, which means it is truely a solution to the equation.
6.4.4 Examples
- Example 1
Find the particular solution for \(\frac{dy}{dx} = 2x - 3y\) satisfying \(x=0\) and \(y=1\).
The equation can be rewritten as
\(\frac{dy}{dx} = 2x - 3y\)
\(\implies \frac{dy}{dx} + 3y = 2x\)
\(\implies \frac{dy}{dx} + P(x) \cdot y = Q(x)\)
where \(P(x) = 3\) and \(Q(x) = 2x\)
- Then the integrating factor is \(I(x) = e^{\int P(x) dx} = e^{3x}\).
Calculate \(\int Q(x) \cdot I(x) dx = \int 2x e^{3x} dx = \int 2x e^{3x} dx\).
Clearly this integral should be calculated via integration by parts.
Let \(u=2x\) and \(v' = e^{3x}\). Then \(u'=2\) and \(v = \frac{e^{3x}}{3}\).
Then \(\int 2x \cdot e^{3x} dx = \int uv' dx = uv - \int u'vdx\)
\(= 2x \cdot \frac{e^{3x}}{3} - \int 2 \cdot \frac{e^{3x}}{3} dx\)
\(= \frac{2xe^{3x}}{3} - \frac{2}{3} \int e^{3x} dx\)
\(= \frac{2xe^{3x}}{3} - \frac{2}{3} \cdot \frac{e^{3x}}{3} + C\)
\(= \frac{2xe^{3x}}{3} - \frac{2e^{3x}}{9} + C\)
The general solution is
\(y = \frac{\int Q(x) \cdot I(x) dx}{I(x)}\)
\(= \frac{\frac{2xe^{3x}}{3} - \frac{2e^{3x}}{9} + C}{e^{3x}}\)
\(= \frac{2x}{3} - \frac{2}{9} + \frac{C}{e^{3x}}\)
To find the particular solution for \(x=0, y=1\), we replace \(x\) and \(y\) with \(0\) and \(1\) respectively in the general solution, and get
\(1 = \frac{2 \cdot 0}{3} - \frac{2}{9} + \frac{C}{e^{3 \cdot 0}}\)
\(\implies 1 = - \frac{2}{9} + C\)
\(\implies C = \frac{11}{9}\).
Replace \(C\) with \(\frac{11}{9}\), and we get the particular solution for \(x=0, y=1\):
\(y = \frac{2x}{3} - \frac{2}{9} + \frac{\frac{11}{9}}{e^{3x}} = \frac{2x}{3} - \frac{2}{9} + \frac{11}{9e^{3x}}\).
- Example 2
Find the general solution for \(x^2 \frac{dy}{dx} + 3x = xy + x^4 e^{2x+1}\).
The equation can be rewirtten as
\(x^2 \frac{dy}{dx} + 3x = xy + x^4 e^{2x + 1}\)
\(\implies x^2 \frac{dy}{dx} = -3x + xy + x^4 e^{2x + 1}\)
\(\implies \frac{dy}{dx} = \frac{-3x + xy + x^4 e^{2x + 1}}{x^2}\)
\(\implies \frac{dy}{dx} = \frac{-3}{x} + \frac{y}{x} + x^2 e^{2x + 1}\)
\(\implies \frac{dy}{dx} - \frac{y}{x} = \frac{-3}{x} + x^2 e^{2x + 1}\)
\(\implies \frac{dy}{dx} + P(x) \cdot y = Q(x)\)
where \(P(x) = \frac{-1}{x}\) and \(Q(x) = \frac{-3}{x} + x^2 e^{2x + 1}\)
The integrating factor is \(I(x) = e^{\int P(x) dx} = e^{\int \frac{-1}{x} dx} = e^{- \int \frac{1}{x} dx} = e^{-ln|x|}\).
We have the formula \(e^{ln(f(x))} = f(x)\) because the natural log and the exponential operations are inverse to each other and thus can be offset. Can we simplify \(I(x) = e^{-ln|x|}\) using the formula? Yes, but we need first get rid of the negative sign before \(ln|x|\). By the property \(a lnb = ln(b^a)\), we have \(I(x) = e^{-ln|x|} = e^{ln(|x|^{-1})} = |x|^{-1} = \frac{1}{|x|}\).
OK, it seems better, but there is an absolute value symbol in \(I(x)\), which may cause problems in Step 3 because we don't know how to integrate \(\int Q(x) I(x) dx\) if \(I(x)\) has an absolute value. For finding the solution to a linear first-order differential equation, we can directly remove the absolute value symbol in this kind of \(I(x)\). The reason is as follows. We know \(|x| = x\) if \(x>0\) and \(|x| = -x\) if \(x<0\), so \(I(x) = \frac{1}{x}\) if \(x>0\) and \(I(x) = \frac{1}{-x}\) if \(x<0\). If we discuss it case by case, then
- For \(x>0\), you can find a general solution to the differential equation via Step 3 and Step 4 by using \(I(x) = \frac{1}{x}\);
- For \(x<0\), you can find another general solution to the differential equation via Step 3 and Step 4 by using \(I(x) = \frac{1}{-x}\).
You will see that these two solutions are exactly the same in form. That means, we can consider just the case \(x>0\) and let \(I(x) = \frac{1}{x}\).
Hence, finally, we have removed the absolute value symbol and the integrating factor becomes \(I(x) = \frac{1}{x}\).
Calculate \(\int Q(x) \cdot I(x) dx\).
\(\int Q(x) \cdot I(x) dx = \int \left( \frac{-3}{x} + x^2 e^{2x + 1} \right) \cdot \frac{1}{x} dx\)
\(= \int \frac{-3}{x^2} + x e^{2x + 1} dx\)
\(= \int \frac{-3}{x^2} dx + \int x e^{2x + 1} dx\)
\(= A + B\)
where \(A = \int \frac{-3}{x^2} dx\) and \(B = \int x e^{2x + 1} dx\).
Calculate \(A\):
\(A = \int \frac{-3}{x^2} dx = (-3) \cdot \frac{x^{-2+1}}{-2+1} + C_1 = 3x^{-1} + C_1\)
Calculate \(B\) by integration by parts:
Let \(u = x\) and \(v' = e^{2x + 1}\). Then \(u' = 1\) and \(v = \frac{e^{2x + 1}}{2}\).
\(B = \int x e^{2x + 1} dx\)
\(= uv - \int u'v dx\)
\(= x \cdot \frac{e^{2x + 1}}{2} - \int 1 \cdot \frac{e^{2x + 1}}{2} dx\)
\(= \frac{xe^{2x + 1}}{2} - \frac{1}{2} \int e^{2x + 1} dx\)
\(= \frac{xe^{2x + 1}}{2} - \frac{1}{2} \cdot \frac{e^{2x + 1}}{2} + C_2\)
\(= \frac{xe^{2x + 1}}{2} - \frac{e^{2x + 1}}{4} + C_2\)
Therefore, \(\int Q(x) \cdot I(x) dx = A + B = 3x^{-1} + \frac{xe^{2x + 1}}{2} - \frac{e^{2x + 1}}{4} + C\)
The general solution is
\(y = \frac{\int Q(x) \cdot I(x) dx}{I(x)}\)
\(= \frac{3x^{-1} + \frac{xe^{2x + 1}}{2} - \frac{e^{2x + 1}}{4} + C}{\frac{1}{x}}\)
\(= \left( 3x^{-1} + \frac{xe^{2x + 1}}{2} - \frac{e^{2x + 1}}{4} + C \right) \cdot x\)
\(= 3 + \frac{x^2 e^{2x + 1}}{2} - \frac{xe^{2x + 1}}{4} + Cx\)
6.5 Application : Continuous Deposits
6.5.1 The equation
Suppose that today you open a new bank account and deposit \(y_0\) dollars (called principal) into it. Denote by \(y=y(x)\) the total amount of money you will have after time \(x\).
If \(r\) is the annual interest rate compounded continuously,
then the rate of growth of your total money is \[ \frac{dy}{dx} = ry \]
Suppose that after the initial principal \(y_0\) you continue depositing into your account continuous money at a constant rate \(D\) dollars/year.
Then the eventual rate of growth of your total money is \[ \boxed{ \frac{dy}{dx} = ry + D } \]
Remark: In the textbook, the symbols \(t\) and \(A\) are used to represent "time" and "total amount" respectively, but here I use \(x\) and \(y\), because many people may regard \(t\) and \(A\) as constants rather than variables.
6.5.2 General Solution
- Formula
The general solution to \(\frac{dy}{dx} = ry + D\) is
\[ \boxed{ y = \frac{C e^{rx} - D}{r} } \]
- Derivation of The Formula
The differential equation \(\frac{dy}{dx} = ry + D\)
- is a separable differential equation because \(\frac{dy}{dx} = ry + D \implies \frac{dy}{dx} = \frac{1}{\frac{1}{ry + D}} = \frac{p(x)}{q(y)}\) where \(p(x) = 1\) and \(q(y) = \frac{1}{ry + D}\);
- is also a linear first-order differential equation, because \(\frac{dy}{dx} = ry + D \implies \frac{dy}{dx} - ry = D \implies \frac{dy}{dx} + P(x)y = Q(x)\) where \(P(x) = -r\) and \(Q(x) = D\).
Therefore, we can solve it by two different methods and of course they will give us the same answer.
- Method 1 : Separable Differential Equation
When we regard \(\frac{dy}{dx} = ry + D\) as a separable differential equation, the general solution is \(\int q(y) dy = \int p(x) dx\). From above discussion, here \(p(x) = 1\) and \(q(y) = \frac{1}{ry+D}\), so the general solution is \(\int \frac{1}{ry + D} dy = \int 1 dx\). Evaluate the two sides, and we get
\(LHS = \int \frac{1}{ry + D} dy\)
Let \(u = ry+D\), so \(du = u'dy = rdy\). Then \(LHS = \int \frac{1}{ry+D} dy\) \(= \int \frac{1}{ry+D} \cdot \frac{r}{r} dy\) \(= \frac{1}{r} \int \frac{1}{ry+D} rdy\) \(= \frac{1}{r} \int \frac{1}{u} du\) \(= \frac{1}{r} \cdot ln|u| + C_1\) \(= \frac{1}{r} \cdot ln|ry+D| + C_1\) \(= \frac{1}{r} \cdot ln(ry+D) + C_1\) because \(ry+D>0\).
- \(RHS = \int 1 dx = \int 1 dx = x + C_2\).
Therefore, the general solution to \(\frac{dy}{dx} = ry + D\) is
\(LHS = RHS\)
\(\implies \frac{1}{r} \cdot ln(ry+D) + C_1 = x + C_2\)
\(\implies \frac{1}{r} \cdot ln(ry+D) = x + C\)
\(\implies ln(ry+D) = r(x + C)\)
\(\implies ln(ry+D) = rx + C^*\) where \(C^* = rC\)
\(\implies e^{ln(ry+D)} = e^{rx + C^*}\)
\(\implies ry+D = e^{rx} \cdot e^{C^*}\)
\(\implies ry+D = e^{rx} \cdot C^{**}\) where \(C^{**} = e^{C^*}\)
\(\implies y= \frac{C^{**} e^{rx} - D}{r}\)
or written as \[ y = \frac{C e^{rx} - D}{r} \]
- Method 2 : Linear First-Order Differential Equation
When we regard \(\frac{dy}{dx} = ry + D\) as a linear first-order differential equation, the general solution is \(y = \frac{\int Q(x) I(x) dx }{I(x)}\) where \(I(x)\) is the integrating factor.
From above discussion, here \(P(x) = -r\) and \(Q(x) = D\), so the general solution is \(y = \frac{\int Q(x) I(x) dx }{I(x)}\).
- \(I(x) = e^{\int P(x) dx} = e^{-rx}\)
- \(\int Q(x)I(x) dx = \int D e^{-rx} dx = D \int e^{-rx} dx = D \cdot \frac{e^{-rx}}{-r} + C = \frac{-De^{-rx}}{r} + C\)
\(y = \frac{\int Q(x) I(x) dx }{I(x)}\) \(= \frac{\frac{-De^{-rx}}{r} + C}{e^{-rx}}\) \(= \frac{\frac{-De^{-rx}}{r}}{e^{-rx}} + \frac{C}{e^{-rx}}\) \(= \frac{-D}{r} + Ce^{rx}\) \(= \frac{-D}{r} + \frac{rCe^{rx}}{r}\) \(= \frac{-D}{r} + \frac{C^*e^{rx}}{r}\) \(= \frac{C^*e^{rx} - D}{r}\) where \(C^* = rC\)
or written as \[ y = \frac{C e^{rx} - D}{r} \]
6.5.3 Particular Solution
The above is a general solution to the differential equation \(\frac{dy}{dx} = ry + D\). The general solution is a class of functions indexed by the arbitrary constant \(C\). Obviously, if \(y_0\), \(r\) and \(D\) are all given as specific numbers, then at a specific time \(x\), the total amount of money you will have should be a determinate number, rather than an arbitrary quantity. That means, we should be able to figure out the value of \(C\). As we did before, if an initial condition is given, then we can find a unique solution to the differential equation, which is call the particular solution.
The initial condition for the continuous deposit problem is \(x=0, y=y_0\), because at the initial time \(x=0\) the total amount of money is \(y=y_0\). Then we can find the corrsponding particular solution:
Replace \(x\) and \(y\) with \(0\) and \(y_0\) respectively in the general solution, and we get
\(y_0 = \frac{C e^{r\cdot 0} - D}{r} \implies y_0 = \frac{C - D}{r} \implies C = ry_0 + D\)
Replace \(C\) with \(ry_0+D\) in the general solution, and we get the particular solution for \(x=0, y=y_0\):
\[ \boxed{y = \frac{(ry_0+D)e^{rx} - D}{r} }\]
6.5.4 Total Amount at a Specific Time
Note that the particular solution \(y = y(x) = \frac{(ry_0+D)e^{rx} - D}{r}\) means that the total amount of money \(y\) is a function of time \(x\). At a specific time \(x=x_t\), your total amount of money \(y\) can be calculated by replacing \(x\) with \(x_t\) in the particular solution, ie,
\[ \boxed{y(x_t) = \frac{(ry_0+D)e^{rx_t} - D}{r} }\]
6.5.5 Example
Suppose today you deposit \(10000\) dollars in an IRA at \(3\%\) interest compounded continuously. In addition, you make continuous deposit at the rate of \(1200\) dollars per year. How much will you have in total after 10 years?
We identity \(y_0 = 10000\), \(r = 3\% = 0.03\), \(D = 1200\), and \(x_t=10\).
By the formula, after 10 years, you will have \(y(10) = \frac{(ry_0+D)e^{rx_t} - D}{r} = \frac{(0.03\cdot 10000 + 1200)e^{0.03\cdot 10} - 1200}{0.03} = 27492.9\) dollars.
6.6 References
- Lial, M. L., Greenwell, R. N., Ritchey, N. P. (2011). Calculus with Applications (10th Edition). Boston, MA : Pearson.
7 Sequences and Series
7.1 Sequence
7.1.1 Definition
- A sequence is a set of ordered numbers.
- Each number in the sequence is called a term.
- The function between the order of each term and its value is called a general term.
- Example
- \(3, 5, 7, 9, 11 \dots\) is a sequence.
- Each number in \(3, 5, 7, 9, 11, \dots\) is called a term of the sequence.
- We see
- the 1st term is \(a_1 = 3 = 1 \cdot 2 + 1\)
- the 2nd term is \(a_2 = 5 = 2 \cdot 2 + 1\)
- the 3rd term is \(a_3 = 7 = 3 \cdot 2 + 1\)
- the 4rd term is \(a_4 = 9 = 4 \cdot 2 + 1\)
- the 5rd term is \(a_5 = 11 = 5 \cdot 2 + 1\)
- \(\dots\)
- the \(i\)th term is \(a_i = f(i) = i \cdot 2 + 1\)
- so the general term of the sequence is \(a_i = f(i) = i \cdot 2 + 1\).
7.1.2 Sum of First \(n\) Terms of a Sequence
\(S_n = \sum_{i=1}^{n} a_i = a_1 + a_2 + a_3 + \dots + a_n\) is the sum of first \(n\) terms of the sequence \(a_1, a_2, a_3, \dots\)
7.2 Series
7.2.1 Definition
Suppose \(a_1, a_2, a_3, \dots\) is a sequence. Then the corrsponding series is the sum of all terms of the sequence, ie, \[ \sum_{i=1}^{\infty} a_i = a_1 + a_2 + a_3 + \cdots \]
Remark:
- a sequence is a set of individual numbers
- a series is the sum of all elements in a sequence, which is a single number
7.2.2 Convergence of Series
Suppose \(a_1, a_2, a_3, \dots\) is an sequence and \(S_n = \sum_{i=1}^{n} a_n = a_1 + a_2 + a_3 + \dots + a_n\) is the sum of first \(n\) terms.
- If \(\lim\limits_{n\to\infty} S_n\) exists and \(\lim\limits_{n\to\infty} S_n = L\), then we say the series \(\sum_{i=1}^{\infty} a_i\) converges to \(L\),
- If \(\lim\limits_{n\to\infty} S_n\) does not exist or equals infinity, then we say the series \(\sum_{i=1}^{\infty} a_i\) diverges.
7.3 Special Case : Geometric Sequences and Geometric Series
7.3.1 Introduction
Any set of ordered numbers is a sequence, and the sum of all terms in the sequence is a series. For example, \(a_1 = 2, a_2 = \frac{-1}{3}, a_3 = {10}, a_4 = 0, a_5 = 225, \dots\) is just a sequence and \(\sum_{i=1}^{\infty}a_i\) is the corresponding series. However, it seems quite hard for us to find any "pattern" (general term) in this sequence.
In this course, we are interested in sequences and series which have nice mathematical properties (a clear pattern or general term) and practical applications. Geometric sequence and geometic series are just special cases among these.
7.3.2 Geometric Sequence
- Definition
Suppose \(a_1, a_2, a_3, a_4, a_5, \dots\) is a sequence. If \(\frac{a_{i+1}}{a_i}\) equals the same constant \(r\) for all \(i = 1, 2, 3, \dots\), then the sequence is called a geometric sequence.
Example 1
Suppose a sequence \(a_1 = 3, a_2 = 9, a_3 = 27, a_4 = 81, a_5 = 243, \dots\) is given. We see that
- \(\frac{a_2}{a_1} = \frac{9}{3} = 3\)
- \(\frac{a_3}{a_2} = \frac{27}{9} = 3\)
- \(\frac{a_4}{a_3} = \frac{81}{27} = 3\)
- \(\frac{a_5}{a_4} = \frac{243}{81} = 3\)
- \(\dots\)
That is, \(\frac{a_{i+1}}{a_i} = 3\) for all \(i = 1, 2, 3, \dots\), so this sequence is a geometric sequence.
Example 2
Suppose a sequence \(a_1 = 3, a_2 = 9, a_3 = 21, \dots\) is given. We see that
- \(\frac{a_2}{a_1} = \frac{9}{3} = 3\)
- \(\frac{a_3}{a_2} = \frac{21}{9} = \frac{7}{3} \neq 3\)
Since \(\frac{a_2}{a_1} \neq \frac{a_3}{a_2}\), this sequence is NOT a geometric sequence.
- Common Ratio
For a geometric sequence \(a_1, a_2, a_3, a_4, a_5, \dots\), the constant \(r = \frac{a_{i+1}}{a_i}\) is called the common ratio.
Remark:
- \(r\) is called the common ratio because it is the same between any two consecutive terms.
- For a geometric sequence, \(r = \frac{a_{i+1}}{a_i}\) is the same for all \(i = 1, 2, 3, \dots\), so the value of \(r\) can be cauculated simply by \(r = \frac{a_2}{a_1}\).
- General Term
If a geometric sequence has first term \(a_1\) and common ratio \(r\), then the general term of the sequence is \[ \boxed{a_i = a_1 r^{i-1}} \text{ for } i = 1,2,3,\dots .\]
Remark: Clearly
- \(a_2 = a_1 \cdot r = a_1 r^{2-1}\)
- \(a_3 = a_2 \cdot r = (a_1 \cdot r) \cdot r = a_1 r^2 = a_1 r^{3-1}\)
- \(a_4 = a_3 \cdot r = [a_2 \cdot r] \cdot r = [(a_1 \cdot r) \cdot r] \cdot r = a_1 r^3 = a_1 r^{4-1}\)
- \(\dots\)
- Sum of First \(n\) Terms of a Geometric Sequence
If a geometric sequence has first term \(a_1\) and common ratio \(r\), then the sum of the first \(n\) terms, denoted by \(S_n\), is given by \[ \boxed{ S_n = \sum_{i=1}^{n} a_i = a_1 + a_2 + a_3 + \dots + a_n = \frac{a_1(r^n - 1)}{r - 1} \text{ where } r\neq 1 } \]
7.3.3 Geometric Series
7.3.4 Comprehensive Examples
- Example 1
Suppose a geometric sequence \(2, -6, 18, -54, 162, \dots\) is given.
- The first term is \(a_1 = 2\)
- The common ratio is \(r = \frac{a_2}{a_1} = \frac{-6}{2} = -3\)
- The general term is \(a_n = a_1 r^{n-1} = 2 \cdot (-3)^{n-1}\)
- The term \(a_6 = a_1 r^{6-1} = 2 \cdot (-3)^5 = -486\)
- The term \(a_7 = a_1 r^{7-1} = 2 \cdot (-3)^6 = 1458\)
- The sum of first \(n\) terms is
\(S_n = \frac{a_1(r^n - 1)}{r - 1}\)
\(= \frac{2 \cdot ( (-3)^n - 1 )}{-3-1}\)
\(= \frac{2 \cdot ( (-3)^n - 1 )}{-4}\)
\(= \frac{(-3)^n - 1}{-2}\)
- The sum of first \(2\) terms is \(S_2 = \frac{(-3)^2 - 1}{-2} = \frac{8}{-2} = -4\)
- The sum of first \(5\) terms is \(S_5 = \frac{(-3)^5 - 1}{-2} = \frac{-244}{-2} = 122\)
- Since the common ratio is \(-3 \notin (-1,1)\), the series \(\sum_{i=1}^{\infty} a_n\) diverges
- Example 2
Suppose a geometric sequence \(2, \frac{2}{3}, \frac{2}{9}, \frac{2}{27}, \frac{2}{81} \dots\) is given.
- The first term is \(a_1 = 2\)
- The common ratio is \(r\) \(= \frac{a_2}{a_1}\) \(= \frac{\frac{2}{3}}{2}\) \(= \frac{1}{3}\)
- The general term is \(a_n = a_1 r^{n-1} = 2 \cdot \left( \frac{1}{3} \right)^{n-1}\)
- The term \(a_6\) \(= a_1 r^{6-1}\) \(= 2 \cdot \left( \frac{1}{3} \right)^5\) \(= \frac{2}{243}\)
- The term \(a_7\) \(= a_1 r^{7-1}\) \(= 2 \cdot \left( \frac{1}{3} \right)^6\) \(= \frac{2}{729}\)
- The sum of first \(n\) terms is
\(S_n\)
\(= \frac{a_1(r^n - 1)}{r - 1}\)
\(= \frac{2 \cdot \left[ \left( \frac{1}{3} \right)^n - 1 \right]}{\frac{1}{3} - 1}\)
\(= \frac{2 \cdot \left[ \left( \frac{1}{3} \right)^n - 1 \right]}{\frac{-2}{3}}\)
\(= -3 \left[ \left( \frac{1}{3} \right)^n - 1 \right]\)
\(= -3 \cdot \left( \frac{1}{3} \right)^n + 3\)
\(= - \left( \frac{1}{3} \right)^{n-1} + 3\)
- The sum of first \(2\) terms is \(S_2 = - \left( \frac{1}{3} \right)^{2-1} + 3 = \frac{8}{3}\)
- The sum of first \(5\) terms is \(S_5 = - \left( \frac{1}{3} \right)^{5-1} + 3 = \frac{242}{81}\)
- Since the common ratio is \(\frac{1}{3} \in (-1,1)\), the series \(\sum_{i=1}^{\infty} a_n\) converges to \(\frac{a_1}{1-r} = \frac{2}{1-\frac{1}{3}} = 3\)
- Example 3
Find \(\sum_{i=1}^{10} \frac{5^{3i}}{2^{i-1}}\).
- Identify that this expression is the sum of first 10 terms of a sequence whose general term is \(a_i = \frac{5^{3i}}{2^{i-1}}\).
Show that the sequence is a geometric sequence. We have \(\frac{a_{i+1}}{a_i}\) \(= \frac{\frac{5^{3(i+1)}}{2^{(i+1)-1}}}{\frac{5^{3i}}{2^{i-1}}}\) \(= \frac{5^{3(i+1)}}{2^{(i+1)-1}} \cdot \frac{2^{i-1}}{5^{3i}}\) \(= \frac{2^{i-1}}{2^{(i+1)-1}} \cdot \frac{5^{3(i+1)}}{5^{3i}}\) \(= \frac{2^{i-1}}{2^i} \cdot \frac{5^{3i+3}}{5^{3i}}\) \(= \frac{1}{2} \cdot 5^3\) \(= \frac{125}{2}\).
That is to say, \(\frac{a_{i+1}}{a_i} = \frac{125}{2}\) is a constant for all \(i=1,2,3,\dots\). By definition, the sequence is a geometric sequence.
- The first term of the sequence is \(a_1 = \frac{5^{3\cdot 1}}{2^{1-1}} = 125\).
- The common ratio of the sequence is \(r=\frac{125}{2}\).
Therefore, by formula, the sum of the first \(10\) terms of sequence \(a_i = \frac{5^{3i}}{2^{i-1}}\) is \(\sum_{i=1}^{10} \frac{5^{3i}}{2^{i-1}}\) \(= \frac{\left[\left(\frac{125}{2}\right)^{10} - 1\right]}{\frac{125}{2} - 1}\) \(= \frac{2\left[\left(\frac{125}{2}\right)^{10} - 1\right]}{123}\) \(= \frac{2\left(\frac{125}{2}\right)^{10} - 2}{123}\) \(= \frac{{125^{10}}{2^9} - 2}{123}\).
You are not required to simplify it any more or write it as a decimal.
- Example 4
Find the first \(6\) terms of the geometric sequence whose 2nd term is \(4\) and 5th term is \(32\).
Basically, we should first find the general term of the sequence, and then calculate each one of the first \(6\) terms using the general term.
By the general term of geometric sequences \(a_i = a_1 r^{i-1}\),
- the 2nd term is \(a_2 = 4 = a_1 r^{2-1} = a_1 r \ \ (1)\)
- the 5th term is \(a_5 = 32 = a_1 r^{5-1} = a_1 r^4 \ \ (2)\)
Now we have to solve for \(a_1\) and \(r\) from the system consisting of equations \((1)\) and \((2)\). We use the substitution method.
- From \((1)\), we get \(a_1 = \frac{4}{r} \ \ (3)\).
- Put \((3)\) into \((2)\), and we get \(32 = \frac{4}{r} \cdot r^4 = 4r^3 \implies 8 = r^3 \implies r = 2 \ \ (4)\).
- Put \((4)\) into \((3)\), and we get \(a_1 = \frac{4}{2} = 2\).
Therefore, the general term of the sequence is \(a_i = a_1 r^{i-1} = 2 \cdot 2^{i-1} = 2^i\).
In turn, we can calculate the first \(6\) terms
- \(a_1 = 2^1 = 2\)
- \(a_2 = 2^2 = 4\) or calculated by \(a_2 = a_1 r = 2 \cdot 2 = 4\)
- \(a_3 = 2^3 = 8\) or calculated by \(a_3 = a_2 r = 4 \cdot 2 = 8\)
- \(a_4 = 2^4 = 16\) or calculated by \(a_4 = a_3 r = 8 \cdot 2 = 16\)
- \(a_5 = 2^5 = 32\) or calculated by \(a_5 = a_4 r = 16 \cdot 2 = 32\)
- \(a_6 = 2^6 = 64\) or calculated by \(a_6 = a_5 r = 32 \cdot 2 = 64\)
- Example 5
Check if the geometric series \(2 - \frac{4}{3} + \frac{8}{9} - \frac{16}{27} + \cdots\) converges or not. Find the sum if it converges.
This is a geometric series corresponding to the geometric sequence \(2, \frac{-4}{3}, \frac{8}{9}, \frac{-16}{27}, \dots\). The 1st term of the sequence is \(a_1 = 2\) and the 2nd term of the sequence is \(a_2 = \frac{-4}{3}\), so the common ratio of the sequence is \(r = \frac{a_2}{a_1} = \frac{\frac{-4}{3}}{2} = \frac{-2}{3} \in (-1,1)\).
Hence, by the rule, the series converges to \(\frac{a_1}{1-r} = \frac{2}{1-\frac{-2}{3}} = \frac{6}{5}\).
- Example 6
Check if the geometric series \(\sum_{i=1}^{\infty} \frac{5^{3i}}{2^{i-1}}\) converges or not. Find the sum if it converges.
This is a geometric series corresponding to the geometirc sequence whose general term is \(a_i = \frac{5^{3i}}{2^{i-1}}\). The 1st term of the sequence is \(a_1 = \frac{5^{3\cdot 1}}{2^{1-1}} = 125\) and the 2nd term of sequence is \(\frac{5^{3\cdot 2}}{2^{2-1}} = \frac{15625}{2}\), so the common ratio of the sequence is \(r = \frac{a_2}{a_1} = \frac{\frac{15625}{2}}{125} = \frac{125}{2} \notin (-1,1)\).
Hence, by the rule, the series diverges.
- Example 7
Express the repeated decimal \(0.535353\dots\) as a rational number.
A number is rational if it can be written as a fraction between two integers, so the nature of the problem is to convert \(0.535353\dots\) into a fraction of two integers.
We note that \(0.535353\dots = 0.53 + 0.0053 + 0.000053 + \cdots\) is a series corresponding to the sequence \(a_1 = 0.53, a_2 = 0.0053, a_3 = 0.000053, \dots\).
Now we verify that the sequence \(a_1 = 0.53, a_2 = 0.0053, a_3 = 0.000053, \dots\) is a geometric sequence : we see that \(\frac{a_2}{a_1} = \frac{a_3}{a_2} = \frac{a_4}{a_3} = \cdots = \frac{a_{i+1}}{a_i} = 0.01\) is a constant for any \(i = 1, 2, 3, \dots\), so the sequence \(a_1 = 0.53, a_2 = 0.0053, a_3 = 0.000053, \dots\) is a geometric sequence with common ratio \(r = 0.01 \in (-1, 1)\).
Therefore, \(0.535353\dots = 0.53 + 0.0053 + 0.000053 + \cdots\) is the geometric series corresponding to the geometric sequence \(a_1 = 0.53, a_2 = 0.0053, a_3 = 0.000053, \dots\).
By the rule, sine \(r \in (-1,1)\), the geometric series \(0.535353\dots = 0.53 + 0.0053 + 0.000053 + \cdots\) converges to \(\frac{a_1}{1-r} = \frac{0.53}{1-0.01} = \frac{0.53}{0.99} = \frac{53}{99}\).
Finally, we have \(0.535353\dots = \frac{53}{99}\), which is a fraction between two integers, so it is a rational number.
7.4 L'Hospital's Rule
7.4.1 Indeterminate Form
The limit \(\lim\limits_{x\to a} \frac{f(x)}{g(x)}\) is called an indeterminate form if
- \(\lim\limits_{x\to a} f(x) = 0\) and \(\lim\limits_{x\to a} g(x) = 0\) hold at the same time (\(\frac{0}{0}\)), or
- \(\lim\limits_{x\to a} f(x) = \pm\infty\) and \(\lim\limits_{x\to a} g(x) = \pm\infty\) hold at the same time (\(\frac{\pm\infty}{\pm\infty}\)).
The two forms are called indeterminate because we can not determine whether
- \(\lim\limits_{x\to a} \frac{f(x)}{g(x)} = 0\), or
- \(\lim\limits_{x\to a} \frac{f(x)}{g(x)} = \pm\infty\), or
- \(\lim\limits_{x\to a} \frac{f(x)}{g(x)} = c = \text{ a constant}\), or
- \(\lim\limits_{x\to a} \frac{f(x)}{g(x)}\) does not exist.
However, if the derivatives of \(f(x)\) and \(g(x)\) exist, then we may use the so-called L'Hospital's Rule to find the value of the indeterminate form.
7.4.2 L'Hospital's Rule
Suppose both \(f'(x)\) and \(g'(x)\) exist on some interval \((a-c,a+c)\) where \(c>0\).
If
- \(\lim\limits_{x\to a} f(x) = 0\) and \(\lim\limits_{x\to a} g(x) = 0\) hold at the same time, or
- \(\lim\limits_{x\to a} f(x) = \pm \infty\) and \(\lim\limits_{x\to a} g(x) = \pm\infty\) hold at the same time,
then \[ \boxed{ \lim\limits_{x\to a} \frac{f(x)}{g(x)} = \lim\limits_{x\to a} \frac{f'(x)}{g'(x)} } \text{ provided they exist. } \]
7.4.3 Remark
- Check the condition
Before applying L'Hospital's Rule, we should ALWAYS check whether the condition "\(\lim\limits_{x\to a} f(x) = 0\) and \(\lim\limits_{x\to a} g(x) = 0\) hold at the same time" or "\(\lim\limits_{x\to a} f(x) = \pm \infty\) and \(\lim\limits_{x\to a} g(x) = \pm\infty\) hold at the same time" holds. Otherwise, the rule does not apply.
- Repeated Application
Sometimes, after the first application of L'Hospital's Rule, the limit is still an indeterminate form. In this case, we may apply the L'Hospital's Rule for another time to see whether the problem gets simpler.
7.4.4 Examples
- Example 1 : L'Hospital's Rule Does NOT Apply
Find \(\lim\limits_{x\to 2} \frac{x^2 - 4}{x^2 - x - 6}\).
Here we identify
- \(f(x) = x^2 - 4\)
- \(g(x) = x^2 - x -6\)
We know
- \(\lim\limits_{x\to 2} f(x) = \lim\limits_{x\to 2} x^2 - 4 = 2^2 - 4 = 0\)
- \(\lim\limits_{x\to 2} g(x) = \lim\limits_{x\to 2} x^2 - x - 6 = 2^2 - 2 - 6 = -4 \neq 0\)
so the L'Hospital's Rule doesn't work for this problem.
As we learned in the Limit chapter, this limit can be found just by substitution:
\(\lim\limits_{x\to 2} \frac{x^2 - 4}{x^2 - x - 6} = \frac{0}{-4} = 0\).
- Example 2 : \(0/0\) indeterminate form
Find \(\lim\limits_{x\to 2} \frac{x^2 - 4}{x^2 + x - 6}\).
Here we identify
- \(f(x) = x^2 - 4\)
- \(g(x) = x^2 + x -6\)
We know
- \(\lim\limits_{x\to 2} f(x) = \lim\limits_{x\to 2} x^2 - 4 = 2^2 - 4 = 0\)
- \(\lim\limits_{x\to 2} g(x) = \lim\limits_{x\to 2} x^2 + x - 6 = 2^2 + 2 - 6 = 0\)
so the limit is an indeterminate form.
By L'Hospital's Rule,
\(\lim\limits_{x\to 2} \frac{f(x)}{g(x)}\) \(= \lim\limits_{x\to 2} \frac{f'(x)}{g'(x)}\) \(= \lim\limits_{x\to 2} \frac{2x}{2x+1}\) \(= \frac{2 \cdot 2}{2\cdot 2 + 1}\) \(= \frac{4}{5}\)
- Example 3 : \(\infty/\infty\) indeterminate form, and repeated application of L'Hospital's Rule
Find \(\lim\limits_{x\to \infty} \frac{x^2 - 4}{x^2 - x - 6}\).
Here we identify
- \(f(x) = x^2 - 4\)
- \(g(x) = x^2 - x -6\)
We know
- \(\lim\limits_{x\to \infty} f(x)\) \(= \lim\limits_{x\to \infty} x^2 - 4\) \(= \infty^2 - 4 = \infty\)
\(\lim\limits_{x\to \infty} g(x)\) \(= \lim\limits_{x\to \infty} x^2 - x - 6\) \(= \lim\limits_{x\to \infty} x (x - 1 - \frac{6}{x})\) \(= \lim\limits_{x\to \infty} x \cdot \lim\limits_{x\to \infty}x - 1 - \frac{6}{x}\) \(= \infty \cdot (\infty - 1 - 0)\) \(= \infty \cdot \infty = \infty\).
(Note : for the denominator, if we directly substitute \(\infty\) for \(x\) in \(x^2 - x - 6\), then we get \(\infty^2 - \infty - 6 = \infty - \infty - 6\) and we don't know how to evaluate the indeterminate difference \(\infty - \infty\). We don't know whether it exists or not, and we don't know whether it is \(0\), \(\infty\) or any other constant. This is the reason why we do the factorization \(x^2 - x - 6 = x (x - 1 - \frac{6}{x})\) and then find \(\lim\limits_{x\to \infty} x^2 - x - 6 = \infty\).)
The limit is an indeterminate form \(\infty/\infty\).
By L'Hospital's Rule,
\(\lim\limits_{x\to \infty} \frac{f(x)}{g(x)}\) \(= \lim\limits_{x\to \infty} \frac{f'(x)}{g'(x)}\) \(= \lim\limits_{x\to \infty} \frac{2x}{2x+1}\) \(= \frac{2 \cdot \infty}{2\cdot \infty + 1}\) \(= \frac{\infty}{\infty}\)
which is again an indeterminate form \(\infty/\infty\).
Therefore, let's apply the L'Hospital's Rule for another time and get
\(\lim\limits_{x\to \infty} \frac{f(x)}{g(x)}\) \(= \lim\limits_{x\to \infty} \frac{f'(x)}{g'(x)}\) \(= \lim\limits_{x\to \infty} \frac{2x}{2x+1}\) \(= \lim\limits_{x\to \infty} \frac{(2x)'}{(2x+1)'}\) \(= \lim\limits_{x\to \infty} \frac{2}{2}\) \(= \lim\limits_{x\to \infty} 1\) \(= 1\).
Recall that we actually could find this limit without using L'Hospital's Rule. We can just divide both numerator and denominator by \(x^2\) and get:
\(\lim\limits_{x\to \infty} \frac{x^2 - 4}{x^2 - x - 6}\) \(= \lim\limits_{x\to \infty} \frac{\frac{x^2 - 4}{x^2}}{\frac{x^2 - x - 6}{x^2}}\) \(= \lim\limits_{x\to \infty} \frac{1 - \frac{4}{x^2}}{1 - \frac{1}{x} - \frac{6}{x^2}}\) \(= \frac{1 - \frac{4}{\infty^2}}{1 - \frac{1}{\infty} - \frac{6}{\infty^2}}\) \(= \frac{1 - 0}{1 - 0 - 0}\) \(= 1\).
- Example 4 : L'Hospital's Rule applicable but not helpful
Find \(\lim\limits_{x\to \infty} \frac{\sqrt{x+1}}{\sqrt{x-1}}\).
Here we identify
- \(f(x) = \sqrt{x+1}\)
- \(g(x) = \sqrt{x-1}\)
We know
- \(\lim\limits_{x\to \infty} f(x) = \lim\limits_{x\to \infty} \sqrt{x+1} = \sqrt{\infty+1} = \infty\)
- \(\lim\limits_{x\to \infty} g(x) = \lim\limits_{x\to \infty} \sqrt{x-1} = \sqrt{\infty-1} = \infty\)
The limit is an indeterminate form \(\infty/\infty\).
By L'Hospital's Rule,
\(\lim\limits_{x\to \infty} \frac{f(x)}{g(x)}\) \(= \lim\limits_{x\to \infty} \frac{f'(x)}{g'(x)}\) \(= \lim\limits_{x\to \infty} \frac{\frac{1}{2\sqrt{x+1}}}{\frac{1}{2\sqrt{x-1}}}\) \(= \lim\limits_{x\to \infty} \frac{1}{2\sqrt{x+1}} \cdot 2\sqrt{x-1} = \lim\limits_{x\to \infty} \frac{\sqrt{x-1}}{\sqrt{x+1}}\)
which is again an indeterminate form \(\infty/\infty\).
Should we apply the L'Hospital's Rule for one more time? Let's try it:
\(\lim\limits_{x\to \infty} \frac{\sqrt{x-1}}{\sqrt{x+1}}\) \(= \lim\limits_{x\to \infty} \frac{\frac{1}{2\sqrt{x-1}}}{\frac{1}{2\sqrt{x+1}}}\) \(= \lim\limits_{x\to \infty} \frac{1}{2\sqrt{x-1}} \cdot 2\sqrt{x+1} = \lim\limits_{x\to \infty} \frac{\sqrt{x+1}}{\sqrt{x-1}}\)
which is exactly the original problem!
As you can imagine, even if we apply the L'Hospital's Rule for even more times, the problem still doesn't get simpler.
Therefore, although L'Hospital's Rule is applicable here, it doesn't directly help us solve the problem. In this case, we need first make some change to the original problem.
We put the quantities under square root symbols together by
\(\lim\limits_{x\to \infty} \frac{\sqrt{x+1}}{\sqrt{x-1}}\) \(=\lim\limits_{x\to \infty} \sqrt{\frac{x+1}{x-1}}\) \(=\sqrt{\lim\limits_{x\to \infty} \frac{x+1}{x-1}}\)
Now we can find \(\lim\limits_{x\to \infty} \frac{x+1}{x-1}\) by
- L'Hospital's Rule, ie, \(\lim\limits_{x\to \infty} \frac{x+1}{x-1} = \lim\limits_{x\to \infty} \frac{1}{1} = 1\), or
- dividing both numerator and demoninator by \(x\), ie, \(\lim\limits_{x\to \infty} \frac{x+1}{x-1}\) \(= \lim\limits_{x\to \infty} \frac{\frac{x+1}{x}} {\frac{x-1}{x}}\) \(= \lim\limits_{x\to \infty} \frac{1 + \frac{1}{x}} {1 - \frac{1}{x}}\) \(= \frac{1 + 0} {1 - 0}\) \(= 1\).
Finally, the original limit
\(\lim\limits_{x\to \infty} \frac{\sqrt{x+1}}{\sqrt{x-1}}\) \(=\sqrt{\lim\limits_{x\to \infty} \frac{x+1}{x-1}}\) \(=\sqrt{\lim\limits_{x\to \infty} 1}\) \(=1\).
7.5 References
- Lial, M. L., Greenwell, R. N., Ritchey, N. P. (2011). Calculus with Applications (10th Edition). Boston, MA : Pearson.
8 References
- Lial, M. L., Greenwell, R. N., Ritchey, N. P. (2011). Calculus with Applications (10th Edition). Boston, MA : Pearson.