MATH 1071 — Calculus for Business & Economics
Lecture Notes. This is NOT meant to be a substitute for coming to lecture or consulting the textbook directly, but rather a helpful resource to review for exams/ review what was discussed in lecture. Each section ends with a Self-Check taken from the in-class activity — try the problem first, then click the button to see the answer.
How Sensitive Is Demand to Price?
Compare the demand for furniture (say, a couch) with the demand for gas (a gallon). What happens when the price goes up? In both cases demand goes down — but for gas we expect demand to drop much less, because people still need to drive. Elasticity is a number that measures how strongly demand reacts to a change in price.
Is a $10 price increase "a lot"? It depends on the starting price: $10 is a huge jump for a $5 item and barely noticeable for a $2000 couch. So instead of raw changes we compare percent changes:
\[ \text{percent change in price} = \frac{\Delta p}{p}, \qquad \text{percent change in demand} = \frac{\Delta x}{x}. \]The idea is to look at the ratio of the percent change in demand to the percent change in price. Since one goes up when the other goes down, this ratio is negative, so we put a minus sign in front to make it positive:
\[ -\frac{\ \Delta x / x\ }{\Delta p / p} = -\frac{\Delta x}{x}\cdot\frac{p}{\Delta p} = -\frac{\Delta x}{\Delta p}\cdot\frac{p}{x}. \]When the change in price is very small, the difference quotient \(\frac{\Delta x}{\Delta p}\) becomes the derivative \(\frac{dx}{dp}\). This gives the definition.
- If the percent change in demand is less than the percent change in price, then \(E(p) < 1\) and we say demand is inelastic.
- If the percent change in demand is more than the percent change in price, then \(E(p) > 1\) and we say demand is elastic.
- If the percent change in demand is equal to the percent change in price, then \(E(p) = 1\) and we say demand is unit elastic.
Inelastic demand means changing the price doesn't have a huge impact on demand: think medication, milk, or baby formula — things people need no matter what. Elastic demand means demand reacts strongly to price: think restaurant meals, or anything with lots of substitutes.
- Write demand in the form \(x = f(p)\) (solve for \(x\) if necessary).
- Find \(\dfrac{dx}{dp}\).
- Plug into \(E(p) = -\dfrac{dx}{dp}\cdot\dfrac{p}{x}\), replace \(x\) by its formula in \(p\), and simplify.
Now evaluate:
\[ E(1.25) = \frac{1.25}{1.75} = \frac57 \approx 0.714, \qquad E(1.5) = \frac{1.5}{1.5} = 1, \qquad E(2) = \frac{2}{1} = 2. \]So demand is inelastic at \(p = 1.25\), unit elastic at \(p = 1.50\), and elastic at \(p = 2\).
Interpreting Elasticity
In general, think of elasticity as
\[ E(p) = \frac{\%\text{ decrease in demand}}{\%\text{ increase in price}}. \]\(E(4) = \dfrac{3\%\text{ decrease in demand}}{5\%\text{ increase in price}}\): when the price is $4, a 5% increase in price leads to (about) a 3% decrease in demand. Demand falls by a smaller percentage than price rises, so raising the price increases revenue.
Now suppose instead \(E(4) = 2 = \dfrac{2\%\text{ decrease in demand}}{1\%\text{ increase in price}}\). When the price is $4, a 1% increase in price leads to a 2% decrease in demand. We lose more customers than we gain in price, so raising the price decreases revenue.
- If \(E(p) > 1\) (elastic), increasing the price decreases revenue.
- If \(E(p) < 1\) (inelastic), increasing the price increases revenue.
- If \(E(p) = 1\) (unit elastic), revenue is maximized.
To maximize revenue, set \(E = 1\). By the chain rule,
\[ \frac{dx}{dp} = 2(36-2p)\cdot(-2) = -4(36-2p). \]So
\[ E(p) = -\bigl(-4(36-2p)\bigr)\cdot\frac{p}{(36-2p)^2} = \frac{4p\,\cancel{(36-2p)}}{(36-2p)^{\cancel{2}}} = \frac{4p}{36-2p}. \]Set \(E(p) = 1\):
\[ \frac{4p}{36-2p} = 1 \;\Longrightarrow\; 4p = 36 - 2p \;\Longrightarrow\; 6p = 36 \;\Longrightarrow\; p = 6. \]Revenue is maximized at a price of $6. Check: graphing \(R(p) = p(36-2p)^2\) on \([0,18]\) shows a peak at \((6, 3456)\).
Revenue is maximized when \(p = \)$2.50.
Estimating Changes in Demand
Rearranging \(E = \dfrac{\%\text{ decrease in demand}}{\%\text{ increase in price}}\) gives a quick estimate:
\[ \%\text{ decrease in demand} \approx E(p)\cdot(\%\text{ increase in price}). \]Going from $40 to $44 is an increase of \(\frac{4}{40} = 0.10\), i.e. a 10% increase in price. Then
\[ \%\text{ decrease in demand} \approx 1.75 \times 10\% = 17.5\%. \]New demand \(\approx 1000 - (0.175)(1000) = 1000 - 175 = 825\) tickets.
When the price is $10, a 1% increase in price leads to about a 2% decrease in demand. Going from \(p = 10\) to \(p = 11\) is a \(\frac{1}{10} = 10\%\) increase in price, so we expect about a \(20\%\) decrease in demand:
\[ x(11) \approx 600 - (0.20)(600) = 600 - 120 = 480. \]Check: the actual value is \(x(11) = 1200 - 6(121) = 474\). Pretty close!
Self-Check
From Activity 18: Elasticity of Demand
(a) Suppose we have a demand function given by \(x = (30-10p)^2\), where \(0\le p\le 3\). Find the price that maximizes revenue.
(b) Given the demand function \(x = \dfrac{3}{4p^3}\), find \(E(p)\) and give an interpretation of \(E(3)\) in the context of the problem.
Tangent Lines as Approximations
Recall how to find the tangent line to \(y = f(x)\) at \(x = a\). We need a point and a slope:
- Point: \((a, f(a))\).
- Slope: \(f'(a)\), the derivative at \(x = a\).
Then point-slope form gives \(y - f(a) = f'(a)(x-a)\).
First, \(f'(x) = \tfrac12x^{-1/2} = \dfrac{1}{2\sqrt x}\).
- At \(x = 4\): point \((4, f(4)) = (4,2)\), slope \(f'(4) = \frac{1}{2\sqrt4} = \frac14\). Tangent line: \(y - 2 = \tfrac14(x-4)\), i.e. \(y = \tfrac14(x-4)+2\).
- At \(x = 9\): point \((9, f(9)) = (9,3)\), slope \(f'(9) = \frac{1}{2\sqrt9} = \frac16\). Tangent line: \(y - 3 = \tfrac16(x-9)\), i.e. \(y = \tfrac16(x-9)+3\).
Near the point of tangency, the curve and the tangent line are almost indistinguishable. So the tangent line gives an approximation of the function near \(x = a\).
How good is the approximation? Compare the exact values of \(\sqrt x\) with the tangent line at \(x = 4\), \(\ell(x) = \tfrac14(x-4)+2\), and the tangent line at \(x=9\), \(m(x) = \tfrac16(x-9)+3\):
| \(x\) | Exact \(\sqrt x\) | \(\ell(x)\) (near 4) | \(m(x)\) (near 9) |
|---|---|---|---|
| 4 | 2 | 2 | 2.1666667 |
| 4.1 | 2.0248457 | 2.025 | 2.1833333 |
| 4.2 | 2.0493902 | 2.05 | 2.2 |
| 9 | 3 | 3.25 | 3 |
| 8.9 | 2.9832868 | 3.225 | 2.9833333 |
| 11 | 3.3166248 | 3.75 | 3.3333333 |
The line built at \(x=4\) is excellent near 4 and poor near 9; the line built at \(x=9\) is excellent near 9 and poor near 4. The lesson: choose \(a\) close to the input you care about, and somewhere where \(f(a)\) is easy to compute exactly.
Point: \((0, f(0)) = (0,1)\). Slope: by the chain rule \(f'(x) = 4(1+x)^3\cdot 1\), so \(f'(0) = 4\).
\[ y - 1 = 4(x-0) \;\Longrightarrow\; L(x) = 4x+1. \]Notice that \((1.02)^4 = f(0.02)\), and \(0.02\) is close to \(0\). So
\[ (1.02)^4 = f(0.02)\approx L(0.02) = 4(0.02)+1 = 1.08. \]The actual value is \((1.02)^4 = 1.08243216\dots\), very close.
Linear Approximation and the "Next" Item
Recall that the marginal cost \(C'(x)\) approximates the cost of producing one more item. Linear approximation is the same idea written as a line.
(a) Find the linearization of the cost function at \(x = 10\).
\[ C(10) = 100+40+3 = 143, \qquad C'(x) = 2x+4, \qquad C'(10) = 24. \] \[ y - 143 = 24(x-10) \;\Longrightarrow\; L(x) = 24(x-10)+143. \](b) Once we have made ten items, what is the approximate cost of the next item?
\(C'(10) = 24\): after making 10 items, the next item costs approximately $24. (The exact cost of the 11th item is \(C(11)-C(10) = 168 - 143 = \$25\).)
(c) Compare the linear approximation with the "cost of the next item" idea, for example by estimating the cost of 13 items.
The first ten items cost $143, and each of the next \(13-10 = 3\) items costs about $24:
\[ C(13)\approx 143 + 24(13-10) = 215 = L(13). \]The two ideas give exactly the same computation. (Actual: \(C(13) = 224\).)
It costs $53 to make 20 items. The 21st costs about $2 and the 22nd costs about $2:
\[ C(22)\approx 53 + 2 + 2 = 53 + 2\cdot(22-20) = \$57. \]Point \((20,53)\), slope \(2\): \(L(x) = 53 + 2(x-20)\), so \(L(22) = 53 + 2(2) = 57\). Same answer.
Marginal cost: by the chain rule,
\[ C'(x) = \frac{1}{2\sqrt{2x^2+25}}\cdot 4x = \frac{2x}{\sqrt{2x^2+25}}. \]At \(x = 10\): \(C(10) = \sqrt{225} = 15\) and \(C'(10) = \frac{20}{15} = \frac43\). So after producing 10 tons, the next ton costs about \(\$1.33\).
Linear approximation at 10: \(L(x) = 15 + \tfrac43(x-10)\), so the cost to produce 11 tons is about \(L(11) = 15 + \tfrac43 \approx \$16.33\) — the cost of 10 tons plus the marginal cost of one more. (Actual: \(C(11) = \sqrt{267}\approx 16.34\).)
Self-Check
From Activity 19: Linear Approximation/ Linearization
Recall the linearization of \(f\) at \(x = x_0\) is \(L(x) = f(x_0) + f'(x_0)(x-x_0)\), and \(f(a)\approx L(a)\) for \(a\) near \(x_0\).
(a) Find the linearization of \(f(x) = \ln(x)\) at \(x_0 = e\). Use that to estimate \(\ln(3)\) in terms of \(e\). (Your answer should be an expression containing \(e\).)
(b) Use a linearization of the function \(f(x) = \sqrt{x+1}\) to estimate \(\sqrt{10}\). (You pick the \(x_0\) for the linearization.)
Biggest and Smallest Values
We often want to find the biggest and smallest values of a function: maximize revenue, maximize profit, minimize cost. Some vocabulary:
- maxima is the plural of maximum, minima is the plural of minimum;
- extrema (plural of extremum) means both minima and maxima.
- \(f(x) = x^2\) (on all real numbers) has a smallest value of \(0\) at \(x = 0\), but no largest value: the parabola keeps going up forever.
- \(f(x) = \dfrac{1}{x+1}\) on \([-3,-1)\cup(-1,2]\) has no largest or smallest value: near the vertical asymptote \(x=-1\) the outputs blow up to \(\infty\) on one side and \(-\infty\) on the other.
In words: the absolute maximum is the single highest output over the whole interval, and the absolute minimum is the single lowest. A maximum value can happen at more than one \(x\): if a graph reaches a height of 10 at two different places \(x=c\) and \(x=d\) and never goes higher, the absolute max is 10, occurring at both \(x=c\) and \(x=d\).
When Are Absolute Extrema Guaranteed?
Both conditions matter:
- Closed interval. A line segment going up from an open circle at \((-1,1)\) to an open circle at \((2,3)\) has no max and no min: it gets arbitrarily close to 3 and to 1 but never reaches either, because the endpoints are not included.
- Continuous. A graph with a jump can "escape" its highest point through the jump: the top of the jump is an open circle, so there is no max.
- If the conditions fail, extrema might still exist by luck — the theorem just doesn't promise them. Even a constant function on \([a,b]\) satisfies the theorem: \(f(x) = 3\) has max 3 and min 3.
Critical Points
Now we know which functions have absolute extrema. Where (at which \(x\)-values) can they be located? Only two kinds of places:
- at the endpoints of the interval;
- at points where the derivative is zero (a smooth hilltop or valley, with a flat tangent line) or undefined (a sharp corner, like the bottom of a "V").
The derivative is defined everywhere, so the only critical point is \(x = 3\).
Finding Absolute Extrema on a Closed Interval
- Find \(f'(x)\).
- Set \(f'(x) = 0\) (and find where \(f'\) is undefined) and solve for \(x\) to find the critical points.
- Make a table with \(x = a\), \(x = b\), and every critical point between \(a\) and \(b\).
- Find the original \(f(x)\) value for each \(x\)-value.
- The biggest output is the absolute max, and the smallest is the absolute min.
From before, the only critical point is \(x = 3\), which lies in \([2,5]\). Check it along with the endpoints \(x = 2\) and \(x = 5\), plugging into the original function:
| \(x\) | \(f(x) = x^2-6x+14\) | |
|---|---|---|
| 2 | \(4-12+14 = 6\) | |
| 3 | \(9-18+14 = 5\) | min |
| 5 | \(25-30+14 = 9\) | max |
The absolute max is 9 (at \(x = 5\)) and the absolute min is 5 (at \(x=3\)).
So \(x = 2\) or \(x = -3\). But \(-3\) is not between 0 and 4, so we throw it out.
| \(x\) | \(f(x)\) | |
|---|---|---|
| 0 (endpoint) | \(2\) | |
| 2 (critical point) | \(\tfrac83 + 2 - 12 + 2 = -\tfrac{16}{3}\approx -5.33\) | min |
| 4 (endpoint) | \(\tfrac{64}{3}+8-24+2 = \tfrac{22}{3}\approx 7.33\) | max |
Max value of \(\tfrac{22}{3}\) at \(x = 4\); min value of \(-\tfrac{16}{3}\) at \(x = 2\).
Intervals That Are Not Closed
If the interval is not closed, the Extreme Value Theorem doesn't apply, but we can still try:
- Treat the interval as if it were closed and make the same table.
- If an absolute max (or min) occurs only at an endpoint which is not included, then there is no absolute max (or min).
| \(x\) | \(f(x)\) | |
|---|---|---|
| 1 | \(4-16+5 = -7\) | |
| 2 | \(16-32+5 = -11\) | absolute min |
| 4 (not included) | \(64-64+5 = 5\) | would be the max, but \(x=4\) is not included |
The absolute min is \(-11\) at \(x=2\). There is no absolute max: the function gets closer and closer to 5 as \(x\to4\), but never reaches it.
Self-Check
From Activity 20: Absolute Extrema
(a) Find the absolute maximum and minimum values for the function \(f(x) = \tfrac13x^3 - \tfrac12x^2 + 7\) on the interval \([0,3]\).
(b) Show the function \(f(x) = e^{1-x^2}\) has only one critical point. Is this point a maximum or a minimum? Justify your reasoning.
What Are Local Extrema?
An absolute max is the highest point overall. A local (or relative) max is a point that is the highest compared to everyone nearby — the top of a hill, even if there is a taller hill somewhere else. Similarly a local min is the bottom of a valley.
- Because the definition needs an open interval around \(c\) inside the domain, there must be room on both sides of \(c\). On a flat (constant) piece of a graph, every point is both a local min and a local max.
- A graph can have several local maxima of different heights; the absolute max (if it exists) is the biggest value overall.
Where Can Local Extrema Occur?
By the product rule and the chain rule,
\[ f'(x) = e^x\cdot\tfrac23(x-3)^{-1/3}\cdot(1) + e^x(x-3)^{2/3} = e^x\left[\frac{2}{3(x-3)^{1/3}} + (x-3)^{2/3}\right]. \]Where \(f'\) is undefined: the fraction has \((x-3)^{1/3}\) in the denominator, which is zero when \(x = 3\). Since \(f(3) = 0\) is defined, \(x = 3\) is a critical point.
Where \(f' = 0\): since \(e^x\) is never zero, the bracket must be zero:
\[ \begin{aligned} \frac{2}{3(x-3)^{1/3}} + (x-3)^{2/3} &= 0\\ \frac{2}{3(x-3)^{1/3}} &= -(x-3)^{2/3}\\ 2 &= -3(x-3)^{2/3}(x-3)^{1/3} \qquad\text{(multiply both sides by } 3(x-3)^{1/3})\\ 2 &= -3(x-3)\\ 2 &= -3x + 9 \;\Longrightarrow\; -7 = -3x \;\Longrightarrow\; x = \tfrac73. \end{aligned} \]The critical points are \(x = 3\) and \(x = \tfrac73\).
Now we want to know: how can we tell whether these are local mins or local maxes (or neither)? That is exactly what the first derivative test, in the next section, does.
Self-Check
From Activity 21: Local Extrema
Determine all local extrema for each function.
\[ \text{(a)}\ \ f(x) = \tfrac13x^3 + 4x^2 - 9x + 1 \qquad\qquad \text{(b)}\ \ f(x) = e^{-\frac13x^3 - \frac32x^2 + 10x} \](Hint: to classify each critical point, check whether \(f'\) is positive or negative just to the left and just to the right of it — positive means the graph is going up, negative means it is going down. This idea is developed fully in the next section.)
What Does the Derivative Tell Us?
The derivative \(f'(x)\) is the slope of the tangent line. Where the tangent line slopes upward (positive slope), the graph is going up; where it slopes downward (negative slope), the graph is going down.
| \(f\) | \(f'\) |
|---|---|
| increasing ↗ | positive \((+)\) |
| decreasing ↘ | negative \((-)\) |
Key observation: the derivative can only switch from \(+\) to \(-\) (or from \(-\) to \(+\)) by passing through 0 or where it is undefined — that is, at a critical point (or at a point not in the domain). So between consecutive critical points the sign of \(f'\) stays the same, and one test point per interval tells us the sign on the whole interval.
- Find \(f'(x)\) and factor it. Find all critical points (and any \(x\)-values not in the domain).
- Draw a number line with each of these points marked. They break the number line into sections.
- In each section, pick a number in the middle and plug it into the (factored) derivative to determine its sign.
- If \(f'\) is \(+\) then \(f\) is increasing ↗; if \(f'\) is \(-\) then \(f\) is decreasing ↘.
The critical points are \(x = 1\) and \(x = -3\).
| Interval | \((-\infty,-3)\) | \((-3,1)\) | \((1,\infty)\) |
|---|---|---|---|
| Test point | \(f'(-4) = 3(-5)(-1) = 15\) | \(f'(0) = -9\) | \(f'(2) = 3(1)(5) = 15\) |
| Sign of \(f'\) | \(+\) | \(-\) | \(+\) |
| \(f\) | increasing ↗ | decreasing ↘ | increasing ↗ |
Plugging the critical points into \(f\): \(f(-3) = -27+27+27+3 = 30\) and \(f(1) = 1+3-9+3 = -2\). So the graph rises to a peak at \((-3,30)\), falls to a valley at \((1,-2)\), then rises again. It crosses the \(y\)-axis at \(f(0) = 3\).
The First Derivative Test
- If \(f'\) goes from \(+\) to \(-\) at \(c\), then \(f\) goes from ↗ to ↘, so \(f\) has a local max at \(c\).
- If \(f'\) goes from \(-\) to \(+\) at \(c\), then \(f\) goes from ↘ to ↗, so \(f\) has a local min at \(c\).
- If \(f'\) is 0 or undefined at \(c\) but does not change sign (\(+\) to \(+\), or \(-\) to \(-\)), then there is no local min or max at \(c\).
For example, \(f(x) = x^3\) has \(f'(x) = 3x^2\), which is positive on both sides of \(x = 0\). The derivative touches 0 but doesn't change sign, so there is no local extremum at 0.
The critical points are \(x = -2\) and \(x = 3\).
| Interval | \((-\infty,-2)\) | \((-2,3)\) | \((3,\infty)\) |
|---|---|---|---|
| Test point | \(f'(-3) = -3(-1)(-6) = -18\) | \(f'(0) = 18\) | \(f'(4) = -3(6)(1) = -18\) |
| Sign of \(f'\) | \(-\) | \(+\) | \(-\) |
| \(f\) | decreasing ↘ | increasing ↗ | decreasing ↘ |
- Increasing: \((-2,3)\). Decreasing: \((-\infty,-2)\cup(3,\infty)\).
- Local min at \(x = -2\) (\(-\) to \(+\)): \(f(-2) = 8 + 6 - 36 = -22\).
- Local max at \(x = 3\) (\(+\) to \(-\)): \(f(3) = -27 + 13.5 + 54 = 40.5\).
Sketch: coming down from the upper left, a valley at \((-2,-22)\), up through the origin to a peak at \((3, 40.5)\), then down to the lower right.
Test points: \(f'(-2) = -12+6 = -6 < 0\) and \(f'(0) = 6 > 0\). So \(f\) is decreasing on \((-\infty,-1)\) and increasing on \((-1,\infty)\), with a local min at \(x=-1\): \(f(-1) = 3-6+7 = 4\). (This is a parabola opening up with vertex \((-1,4)\), crossing the \(y\)-axis at 7.)
We only care about the sign of \(f'\): above the \(x\)-axis means \(+\), below means \(-\). The graph of \(f'\) touches the \(x\)-axis at \(x = 2\), \(5\) and \(9\).
| Interval | \((-\infty,2)\) | \((2,5)\) | \((5,9)\) | \((9,\infty)\) |
|---|---|---|---|---|
| Sign of \(f'\) | \(+\) | \(-\) | \(+\) | \(+\) |
| \(f\) | ↗ | ↘ | ↗ | ↗ |
- \(x = 2\): \(+\) to \(-\), so a local max.
- \(x = 5\): \(-\) to \(+\), so a local min.
- \(x = 9\): \(f'(9) = 0\) but the sign stays \(+\), so no local min or max.
Self-Check
From Activity 23: Increasing/Decreasing and Concavity
Find the intervals where the function
\[ f(x) = \frac{x+3}{x^2-4} \]is increasing and decreasing. Write your answer in interval notation.
Concavity
An increasing graph can rise in two different ways. If its slope is increasing (slopes like 0, 1, 2, 3, … getting steeper and steeper), the graph bends upward like a cup: concave up. If its slope is decreasing (slopes like 4, 2, 0, \(-2\), \(-4\), …), the graph bends downward like a frown: concave down.
| Concave up \(\cup\) | Concave down \(\cap\) | |
|---|---|---|
| Increasing | rising, getting steeper | rising, leveling off |
| Decreasing | falling, leveling off | falling, getting steeper |
The Second Derivative
A function is concave up when its derivative \(f'\) is increasing. But \(f'\) is increasing exactly when its derivative, the second derivative \(f''\), is positive. Similarly, \(f\) is concave down when \(f'\) is decreasing, i.e. when \(f''\) is negative.
| \(f\) | \(f'\) | \(f''\) |
|---|---|---|
| increasing | positive \(+\) | |
| decreasing | negative \(-\) | |
| concave up \(\cup\) | increasing | positive \(+\) |
| concave down \(\cap\) | decreasing | negative \(-\) |
We find concavity with a sign chart for \(f''\), exactly like we did for \(f'\): find where \(f''\) is zero or undefined, then test a point in each section.
| Interval | \((-\infty,-2)\) | \((-2,\infty)\) |
|---|---|---|
| Test point | \(f''(-3) = -6\) | \(f''(0) = 12\) |
| Sign of \(f''\) | \(-\) | \(+\) |
| \(f\) | concave down \(\cap\) | concave up \(\cup\) |
Concave down on \((-\infty,-2)\), concave up on \((-2,\infty)\), and an inflection point at \(x = -2\).
Using \(f'\) and \(f''\) Together to Sketch
| Interval | \((-\infty,-5)\) | \((-5,1)\) | \((1,\infty)\) |
|---|---|---|---|
| Test point | \(f'(-6) = 3(-7)(-1) > 0\) | \(f'(0) = -15 < 0\) | \(f'(2) = 3(1)(7) > 0\) |
| \(f\) | increasing ↗ | decreasing ↘ | increasing ↗ |
Increasing on \((-\infty,-5)\cup(1,\infty)\); decreasing on \((-5,1)\). Plug the critical points into the original function: local max at \(x=-5\) with \(f(-5) = -125+150+75+2 = 102\); local min at \(x = 1\) with \(f(1) = 1+6-15+2 = -6\).
Concave down on \((-\infty,-2)\), concave up on \((-2,\infty)\). Inflection point at \(x=-2\), where \(f(-2) = -8+24+30+2 = 48\).
Coming from the lower left: increasing and concave down up to the peak \((-5,102)\); decreasing and still concave down until the inflection point \((-2,48)\); decreasing but now concave up down to the valley \((1,-6)\); then increasing and concave up.
Combine the two charts: the graph rises while bending downward until a peak (local max) at \(x = 2\); falls, still bending down, until \(x=3\), where it switches to bending up (inflection point); keeps falling, now bending up, to a valley (local min) at \(x = 4\); then rises, bending up. Any curve with this shape is a correct sketch — the exact heights are not determined by this information.
Self-Check
From Activity 23: Increasing/Decreasing and Concavity, and the Exam 3 Review Packet
(a) Determine where the function \(f(x) = \tfrac12x^3 - \tfrac92x^2 + 10x + 11\) is concave up and concave down. Write your answer in interval notation.
(b) An unknown function \(g(x)\) has \((-\infty,\infty)\) as its domain. The second derivative of \(g\) is given by
\[ g''(x) = \frac{(x-2)(x+1)^2}{x-5}. \]Use this to determine the intervals where \(g(x)\) is concave up and concave down. Give the location of any inflection points.
Limits as \(x\to\pm\infty\)
A limit at infinity asks: what happens to \(f(x)\) as \(x\) gets larger and larger without bound (\(x\to\infty\)), or more and more negative (\(x\to-\infty\))? Two basic examples:
\[ \lim_{x\to\infty}\frac1x = 0, \qquad\qquad \lim_{x\to\infty}x^2 = \infty \ \ (\text{grows without bound, so the limit does not exist as a number}). \]Idea: a fixed number divided by something huge is tiny: \(\dfrac{\text{constant}}{\text{huge}}\to 0\). With "more \(x\)" on the bottom, as \(x\to\infty\) the fraction goes to 0.
What about \(\displaystyle\lim_{x\to\infty}\frac{3x^2+4x}{5x^2-3x}\)? Plugging in "\(\infty\)" gives \(\frac{\infty}{\infty-\infty}\), which is meaningless. Two ways to proceed:
Method 1: Estimate with a Table
| \(x\) | \(f(x)\) | \(x\) | \(f(x)\) |
|---|---|---|---|
| 10 | 0.72340426 | \(-10\) | 0.49056604 |
| 100 | 0.61167002 | \(-100\) | 0.58846918 |
| 1000 | 0.60116070 | \(-1000\) | 0.59884070 |
| 100000 | 0.60001160 | \(-100000\) | 0.59998840 |
As \(x\to\infty\), \(f(x)\to 0.6\), and as \(x\to-\infty\), \(f(x)\to0.6\) as well.
Method 2: Algebraically
since the top grows without bound while the bottom approaches 3. Similarly \(\displaystyle\lim_{x\to-\infty}\frac{x+4}{3+\frac1x} = -\infty\).
Horizontal Asymptotes
- A function can have one, two, or no horizontal asymptotes (a different one on each end is allowed).
- Unlike vertical asymptotes, a function can cross its horizontal asymptote. The asymptote only describes the far left and far right of the graph.
So in the examples above: \(y = \tfrac35\) is a horizontal asymptote of \(\frac{3x^2+4x}{5x^2-3x}\); \(\frac{x^2+4x}{3x+1}\) has no horizontal asymptote; and \(y = 0\) is a horizontal asymptote of \(\frac{3x^3+6x}{4x^4+5}\). For rational functions there is a shortcut, remembered as "BOBO BOTN EATS DC":
| Mnemonic | Meaning | Horizontal asymptote |
|---|---|---|
| BOBO | Bigger On Bottom | O: \(y = 0\) |
| BOTN | Bigger On Top | None |
| EATS DC | Exponents Are The Same | Divide the leading Coefficients |
("Bigger" refers to the highest power of \(x\).) The shortcut is a good check, but you should be able to justify the answer with the algebraic technique.
- \(f(x) = \dfrac{x^2+4x}{3x^2+2}\): dividing by \(x^2\), \(\displaystyle\lim_{x\to\pm\infty}\frac{1+\frac4x}{3+\frac{2}{x^2}} = \frac13\). So \(y = \tfrac13\) is a horizontal asymptote.
- \(g(x) = \dfrac{x^2+3x}{x-5}\): dividing by \(x\), \(\displaystyle\lim_{x\to\pm\infty}\frac{x+3}{1-\frac5x} = \pm\infty\). No horizontal asymptote.
- \(h(x) = \dfrac{x^3+6x}{x^4-6x}\): dividing by \(x^4\), \(\displaystyle\lim_{x\to\pm\infty}\frac{\frac1x+\frac{6}{x^3}}{1-\frac{6}{x^3}} = \frac01 = 0\). So \(y = 0\) is a horizontal asymptote.
Putting It All Together: Sketching Graphs
- Determine the domain of the function.
- Locate the \(x\)- and \(y\)-intercepts.
- Evaluate \(\lim_{x\to\infty}f(x)\) and \(\lim_{x\to-\infty}f(x)\) to determine the end behavior. If either limit is a finite number \(L\), then \(y = L\) is a horizontal asymptote.
- Determine whether \(f\) has any vertical asymptotes.
- Calculate \(f'\). Find all critical points and determine the intervals where \(f\) is increasing and decreasing. Determine any local extrema.
- Calculate \(f''\). Determine the intervals where \(f\) is concave up and concave down, and find any inflection points.
\(1 - x^2 = (1+x)(1-x)\ne 0\), so \(x\ne\pm1\). Domain: \((-\infty,-1)\cup(-1,1)\cup(1,\infty)\).
\(y\)-intercept: \(f(0) = \frac01 = 0\). \(x\)-intercepts: \(\frac{x^2}{1-x^2} = 0\) means \(x^2 = 0\), so \(x = 0\). The only intercept is the origin.
Horizontal asymptote at \(y = -1\).
At \(x = \pm1\) the top is \(1\) and the bottom is \(0\) ("\(\frac10\)"), so the function blows up. Checking signs of the bottom just to each side:
\[ \lim_{x\to1^-}\frac{x^2}{1-x^2} = +\infty,\quad \lim_{x\to1^+}\frac{x^2}{1-x^2} = -\infty,\quad \lim_{x\to-1^-}\frac{x^2}{1-x^2} = -\infty,\quad \lim_{x\to-1^+}\frac{x^2}{1-x^2} = +\infty. \]Vertical asymptotes at \(x = -1\) and \(x = 1\).
Critical point: \(x = 0\). (\(x = \pm1\) are not in the domain but still go on the number line.) The denominator is always positive, so the sign of \(f'\) is the sign of \(2x\):
| Interval | \((-\infty,-1)\) | \((-1,0)\) | \((0,1)\) | \((1,\infty)\) |
|---|---|---|---|---|
| Sign of \(f'\) | \(-\) | \(-\) | \(+\) | \(+\) |
| \(f\) | decreasing | decreasing | increasing | increasing |
Decreasing on \((-\infty,-1)\cup(-1,0)\), increasing on \((0,1)\cup(1,\infty)\), local min at \(x = 0\).
Quotient rule again (the chain rule gives \(\frac{d}{dx}(1-x^2)^2 = 2(1-x^2)(-2x)\)):
\[ f''(x) = \frac{(1-x^2)^2(2) - 2x\cdot 2(1-x^2)(-2x)}{(1-x^2)^4} = \frac{(1-x^2)\bigl[2(1-x^2) + 8x^2\bigr]}{(1-x^2)^4} = \frac{2+6x^2}{(1-x^2)^3}. \]The top \(2+6x^2\) is never zero (it is always positive). The bottom is zero at \(x = \pm1\). So the sign of \(f''\) is the sign of \((1-x^2)^3\), which is the sign of \(1-x^2\):
| Interval | \((-\infty,-1)\) | \((-1,1)\) | \((1,\infty)\) |
|---|---|---|---|
| Sign of \(f''\) | \(-\) | \(+\) | \(-\) |
| \(f\) | concave down | concave up | concave down |
The concavity changes at \(x = \pm1\), but these are not inflection points because they are not in the domain.
- Domain \((-\infty,2)\cup(2,\infty)\), and \(\lim_{x\to2^+}f(x) = \lim_{x\to2^-}f(x) = \infty\).
- Horizontal asymptotes at \(y = 4\) and \(y = -2\).
- \(y\)-intercept of 5 and \(x\)-intercept of 4.
- \(f'(x)>0\) on \((-\infty,2)\) and \(f'(x) < 0\) on \((2,\infty)\).
- \(f''(x) > 0\) on \((-\infty,2)\) and \((2,\infty)\).
Draw the vertical asymptote \(x = 2\) and the horizontal lines \(y = 4\) and \(y = -2\). On the left piece, \(f\) is increasing and concave up and shoots up to \(\infty\) at \(x=2\); since it is increasing, it must level off toward \(y = 4\) as \(x\to-\infty\) (staying above it), passing through \((0,5)\). On the right piece, \(f\) comes down from \(\infty\) near \(x = 2\), decreasing and concave up, crosses the \(x\)-axis at \(x=4\), and levels off toward \(y=-2\) as \(x\to\infty\).
Self-Check
From the Exam 3 Review Packet (no in-class activity for this topic)
(a) Evaluate the limit below using algebraic techniques. Then describe how you can also estimate it by plugging in values.
\[ \lim_{x\to\infty}\frac{3x^2+2x+1}{5x^2+3x-1} \](b) Let
\[ f(x) = \frac{x^2-4}{x^2+8x+15} = \frac{(x-2)(x+2)}{(x+3)(x+5)}. \]- Use algebraic techniques to evaluate \(\lim_{x\to\infty}f(x)\).
- Determine the location of the horizontal asymptotes of \(f(x)\). Explain your reasoning.
- Determine the location of the vertical asymptotes of \(f(x)\). Explain your reasoning using limits.
The Basic Idea
For a function of one variable, the min or max can only occur at critical points (where the first derivative is 0 or undefined) or at endpoints. But word problems often give us:
- a function of two or more variables that we want to maximize or minimize — the objective function; and
- extra information that relates the variables (an equation set equal to a number) — the constraint.
So we use the constraint to reduce the objective function to a single variable, then take the derivative and set it equal to 0.
- Variables: draw a picture and define your variables.
- Objective: determine the objective function — the function you want to minimize or maximize.
- Constraint: find any constraints, i.e. equations that relate the variables.
- One variable + domain: use the constraint to reduce the objective function to one variable, and find the domain of this new function.
- Derivative: find the derivative of the single-variable function and set it equal to 0 (and find where it's undefined) to get the critical points.
- Check! Test that you really have a min/max (a table with the endpoints, or a sign chart).
Objective: maximize the area \(A = \ell\cdot w\).
Constraint: the fence covers two sides of length \(w\) and one side of length \(\ell\): \(2w + \ell = 100\), so \(\ell = 100-2w\).
One variable + domain:
\[ A = (100-2w)\,w = 100w - 2w^2, \qquad 0\le w\le 50. \](The width can't be negative, and \(\ell = 100 - 2w\) can't be negative.)
Derivative:
\[ A' = 100 - 4w = 0 \;\Longrightarrow\; w = 25. \]Check:
| \(w\) | \(A = (100-2w)w\) | |
|---|---|---|
| 0 | 0 | |
| 25 | \((100-50)(25) = 1250\) | absolute max |
| 50 | 0 |
The dimensions are \(w = 25\) ft and \(\ell = 100-2(25) = 50\) ft, for a maximum area of 1250 ft².
Variables: let \(x\) be the side length of each removed square. Folding up the flaps makes a box of height \(x\); each side of the base loses \(x\) at both ends.
Objective: maximize volume \(V = \ell\cdot w\cdot h\).
Constraint: \(\ell = 24-2x\), \(w = 36-2x\), \(h = x\).
One variable + domain:
\[ V = x(24-2x)(36-2x) = 4x^3 - 120x^2 + 864x, \qquad 0\le x\le 12. \](We can't cut out more than half of the 24-inch side.)
Derivative:
\[ V' = 12x^2 - 240x + 864 = 12(x^2 - 20x + 72) = 0. \]Try to factor; if that fails, use the quadratic formula:
\[ x = \frac{20\pm\sqrt{400 - 4(1)(72)}}{2} = \frac{20\pm\sqrt{112}}{2} = 10\pm2\sqrt7. \]\(10+2\sqrt7\approx 15.29\) is outside \([0,12]\), so the only critical point is \(x = 10-2\sqrt7\approx 4.708\).
Check:
| \(x\) | \(V = x(24-2x)(36-2x)\) | |
|---|---|---|
| 0 | 0 | |
| \(10-2\sqrt7\approx4.708\) | \(\approx 1825.3\) | max |
| 12 | 0 |
(A sign chart agrees: \(V'\) is \(+\) on \((0, 4.708)\) and \(-\) on \((4.708, 12)\).) The maximum volume is about 1825 in³, when squares of side \(10-2\sqrt7\approx 4.71\) in are removed.
Let \(x\) be the number of $1 increases. Making a table helps see the pattern:
| Price | $50 | $51 | $52 | $53 | … | $60 | … | \(50+x\) |
|---|---|---|---|---|---|---|---|---|
| # cars | 750 | 745 | 740 | 735 | … | \(750-5(10)\) | … | \(750-5x\) |
Revenue \(=(\#\text{ items})(\text{price per item})\):
\[ R(x) = (750-5x)(50+x) = 37500 + 500x - 5x^2, \qquad 0\le x\le 150. \](Price \(50+x\) must be at most $200.)
\[ R'(x) = 500 - 10x = 0 \;\Longrightarrow\; x = 50. \]| \(x\) | \(R(x) = (750-5x)(50+x)\) | |
|---|---|---|
| 0 | \(750\cdot 50 = 37{,}500\) | |
| 50 | \(500\cdot100 = 50{,}000\) | max |
| 150 | \(0\cdot200 = 0\) |
The revenue-maximizing price is \(50+x = 50+50 = \)$100 per day (renting 500 cars for $50,000).
Variables: let \(x\) be the side length of the square base and \(y\) the height.
Objective: minimize cost.
\[ C = (\text{cost per ft}^2)(\text{area of bottom}) + (\text{cost per ft}^2)(\text{area of a side})(\#\text{ sides}) = 6x^2 + 2(xy)(4) = 6x^2+8xy. \]Constraint: \(V = x^2y = 128\), so \(y = \dfrac{128}{x^2}\).
One variable + domain:
\[ C = 6x^2 + 8x\cdot\frac{128}{x^2} = 6x^2 + \frac{1024}{x}, \qquad x > 0. \]Here \(x > 0\) (if \(x = 0\) the volume would be 0), but there is no upper bound, so we can't use the closed interval table. Instead we use a sign chart.
Derivative:
\[ C'(x) = 12x - \frac{1024}{x^2} = 0 \;\Longrightarrow\; 12x = \frac{1024}{x^2} \;\Longrightarrow\; 12x^3 = 1024 \;\Longrightarrow\; x^3 = \frac{256}{3} \;\Longrightarrow\; x = \sqrt[3]{\frac{256}{3}}\approx 4.40. \](\(C'\) is undefined at \(x = 0\), but that is not in the domain.)
Check: \(C'(1) = 12 - 1024 < 0\) and \(C'(10) = 120 - 10.24 > 0\). So \(C\) is decreasing before \(x\approx 4.40\) and increasing after: an absolute minimum at \(x = \sqrt[3]{256/3}\).
\[ y = \frac{128}{x^2} = \frac{128}{(256/3)^{2/3}}\approx 6.60. \]The cheapest container has a base about 4.40 ft by 4.40 ft and a height of about 6.60 ft (costing about $348.89).
Self-Check
From Activity 24: Optimization
(a) We want to build a rectangular farm surrounded by fencing. We only have 300 m of fencing. Given this condition, what dimensions should the farm be to maximize the enclosed area?
(b) We are going to fence in a rectangular field. Looking at the field from above, the cost of the vertical sides is $10/ft, the cost of the bottom is $2/ft and the cost of the top is $7/ft. If we have $700, determine the dimensions of the field that will maximize the enclosed area.