BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Sketching strategy and maximum–minimum problems

Two more curve sketches, (x + 1)/(x + 2) and x/ln x, lead to a general strategy: discontinuities and ends first, then critical points, with the signs of f′ and f″ as checks. Then maxima and minima: the largest and smallest values are found among the critical points, the endpoints and the discontinuities. Examples: the open can with least surface, and a wire cut into two squares.

You need this first

Full reading path (8 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
On this page · 7 sections
  1. A function with no critical points
  2. A general strategy for sketching
  3. Example: x / ln x
  4. Maxima and minima: where to look
  5. Example: the open can with least surface area
  6. Example: a wire cut into two squares
  7. Summary

Lecture 11 is two lectures in one. Jerison first finishes curve sketching with two more examples and a general strategy, and then begins the subject in the title: finding the largest and smallest values of a function (transcript, pp. 1, 11). The notes for this lecture contain only the maximum–minimum part, so the sketching half here follows the transcript.

A function with no critical points#

Sketch f(x)=(x+1)/(x+2)f(x) = (x + 1)/(x + 2). Its derivative is f′(x)=1/(x+2)2f'(x) = 1/(x + 2)^2, which is never zero: there are no critical points (transcript, p. 1). The lesson: do not freeze. Go back to precalculus and plot points, and the most important point to plot is the one that is not there, x=−2x = -2, where ff is undefined (p. 1).

Approach −2-2 from each side. The notation (−2)+(-2)^+ means "a little more than −2-2", and (−2)−(-2)^- "a little less" (pp. 1–2):

One-sided values at the singularity
f((−2)+)=−10+=−∞,f((−2)−)=−10−=+∞f\bigl((-2)^+\bigr) = \frac{-1}{0^+} = -\infty, \qquad f\bigl((-2)^-\bigr) = \frac{-1}{0^-} = +\infty
In words

f ((-2) plus ) equals minus 1 over 0 plus equals minus infinity, f ((-2) minus ) equals minus 1 over 0 minus equals plus infinity

Source: 18.01 Lecture 11 transcript, pp. 1–2

Then the ends, x→±∞x \to \pm\infty: divide top and bottom by xx to get (1+1/x)/(1+2/x)→1(1 + 1/x)/(1 + 2/x) \to 1 (p. 3). So there is a vertical asymptote at x=−2x = -2 and a horizontal one at y=1y = 1. Can the graph cross the level 1 and come back? No: that would need a horizontal tangent, and f′f' is never zero, so the graph cannot backtrack (p. 3).

Two checks (pp. 4–5). Writing f(x)=1−1/(x+2)f(x) = 1 - 1/(x + 2) shows at once that f′=1/(x+2)2>0f' = 1/(x + 2)^2 > 0 and that the graph is a hyperbola. And

Second derivative
f′′(x)=−2(x+2)3f''(x) = \frac{-2}{(x + 2)^3}
In words

f double prime (x) equals minus 2 over the quantity x plus 2, all cubed

is negative for x>−2x > -2 (concave down) and positive for x<−2x < -2 (concave up): the second derivative only rules out a wiggle.

A warning (p. 4): ff is increasing on x<−2x < -2 and on x>−2x > -2, but it is not increasing on the whole line, since it jumps from +∞+\infty down to −∞-\infty at x=−2x = -2. Ignoring that point is like ignoring Mount Everest, the most important feature of the function. And a remark (p. 5): f′>0f' > 0 always means increasing, but not the reverse; a function can increase while f′f' is zero at a few points, like x3x^3 at 0.

A general strategy for sketching#

Jerison's scheme (transcript, pp. 5–6):

  1. Plot the discontinuities (especially the infinite ones), the ends (x→±∞x \to \pm\infty, or the endpoints of the domain), and any easy points. All precalculus.
  2. Solve f′(x)=0f'(x) = 0; plot the critical points and values.
  3. Decide the sign of f′f' on each interval between critical points and discontinuities. If steps 1 and 2 worked, this is only a double check, and a valuable one: an error here shows up as a graph that does not fit.
  4. Decide the sign of f′′f'': concavity and inflection points. Usually skip this: second derivatives are often awful to compute, so do it only when asked (pp. 6–7).
  5. Combine everything.

Example: x / ln x#

Sketch f(x)=x/ln⁡xf(x) = x/\ln x for x>0x > 0 (transcript, pp. 6–11).

Step 1. The singularity is where ln⁡x=0\ln x = 0, at x=1x = 1: f(1+)=+∞f(1^+) = +\infty and f(1−)=−∞f(1^-) = -\infty. The ends: f(0+)=0+/ln⁡(0+)=0+/(−∞)=0f(0^+) = 0^+/\ln(0^+) = 0^+/(-\infty) = 0; and at x=1010x = 10^{10}, f=1010/(10ln⁡10)≈1010/23f = 10^{10}/(10\ln 10) \approx 10^{10}/23, huge, so f→∞f \to \infty as x→∞x \to \infty (p. 7). [The transcript says the denominator is "maybe 230"; 10ln⁡10≈2310\ln 10 \approx 23. The conclusion is the same.]

Step 2. By the quotient rule (p. 8):

Derivative of x / ln x
f′(x)=ln⁡x−1(ln⁡x)2=1ln⁡x−1(ln⁡x)2f'(x) = \frac{\ln x - 1}{(\ln x)^2} = \frac{1}{\ln x} - \frac{1}{(\ln x)^2}
In words

f prime (x) equals the quantity log x minus 1, all over ( log x) squared equals 1 over the quantity log x, minus 1 over ( log x) squared

Source: 18.01 Lecture 11 transcript, pp. 8–9

It vanishes at x=ex = e, with critical value f(e)=e/ln⁡e=ef(e) = e/\ln e = e. With only one critical point, the graph is fixed: from 0 it goes down to −∞-\infty at x=1x = 1; from +∞+\infty it comes down to (e,e)(e, e) and turns back up (pp. 8–9). The second form also shows that f′→0f' \to 0 as x→0+x \to 0^+: the graph starts out horizontally (p. 10).

Step 3 (the check): f′<0f' < 0 on 0<x<10 < x < 1 and 1<x<e1 < x < e, f′>0f' > 0 for x>ex > e: down, down, up (p. 9).

Step 4. Differentiating the second form (p. 10):

Second derivative of x / ln x
f′′(x)=2−ln⁡xx (ln⁡x)3f''(x) = \frac{2 - \ln x}{x\,(\ln x)^3}
In words

f double prime (x) equals the quantity 2 minus log x, all over the quantity x ( log x) cubed

Concave down on 0<x<10 < x < 1, concave up on 1<x<e21 < x < e^2, concave down again for x>e2x > e^2. So there is an inflection point at (e2,e2/2)(e^2, e^2/2), beyond the minimum: a wiggle that the first sketch missed (pp. 10–11).

y=x/ln⁡xy = x/\ln x, computed from the formula (left out very close to the asymptote x=1x = 1). It falls from 0 to −∞-\infty as xx approaches 1 from the left, comes down from +∞+\infty to its local minimum (e,e)≈(2.72,2.72)(e, e) \approx (2.72, 2.72), and bends from concave up to concave down at the inflection point (e2,e2/2)≈(7.39,3.69)(e^2, e^2/2) \approx (7.39, 3.69).

Maxima and minima: where to look#

Given a sketch, finding the largest and smallest values is easy. But a sketch is a lot of work, and the goal is to find the maximum and minimum with shortcuts, without the second derivative or any decoration (transcript, p. 11).

The key idea: look at the critical points, but not only there. The sentence does not end there (p. 11; notes, p. 1):

Where extremes can be
the largest and smallest values of f occur at critical points (f′(x)=0), endpoints, or points of discontinuity\text{the largest and smallest values of } f \text{ occur at critical points } \bigl(f'(x) = 0\bigr), \text{ endpoints, or points of discontinuity}
In words

the largest and smallest values of f occur at critical points ( f prime (x) equals 0 ), endpoints, or points of discontinuity

In the sketch of x/ln⁡xx/\ln x there are five candidate places for extreme behaviour (the ends at 0 and at infinity, the two sides of the asymptote, and the critical point), and only one of them is a critical point (transcript, p. 11).

The notes add a warning on language (notes, p. 1). For y=ln⁡x/xy = \ln x/x from the previous lecture, the maximum value is 1/e1/e, and it is achieved at x=ex = e. So "what is the maximum?" is answered by 1/e1/e, not by ee. Finding x=ex = e is the calculus step, but a full answer gives the value too, and the two together locate the top of the graph at (e,1/e)(e, 1/e).

Example: the open can with least surface area#

The notes then work two problems; the first is set out in numbered steps, condensed here (notes, pp. 2–3). Find the open-topped can (a cylinder with a bottom but no top) of fixed volume VV with the least surface area.

  1. Draw the picture; name the variables: radius rr, height hh, volume VV, area SS.
  2. Write the constraint and the quantity to minimise:
Constraint and surface area
V=πr2h=constant,S=πr2+2πrhV = \pi r^2 h = \text{constant}, \qquad S = \pi r^2 + 2\pi r h
In words

V equals pi r squared h equals constant, S equals pi r squared plus 2 pi r h

  1. Use the constraint to write everything in terms of rr: h=V/(πr2)h = V/(\pi r^2), so S=πr2+2V/rS = \pi r^2 + 2V/r for 0<r<∞0 < r < \infty.
  2. Critical points and endpoints:
Critical point of the surface area
dSdr=2πr−2Vr2=0  ⇒  r3=Vπ,r=(Vπ)1/3\frac{dS}{dr} = 2\pi r - \frac{2V}{r^2} = 0 \;\Rightarrow\; r^3 = \frac{V}{\pi}, \quad r = \left(\frac{V}{\pi}\right)^{1/3}
In words

d S over d r equals 2 pi r minus 2 V over r squared equals 0 which gives r cubed equals V over pi, r equals ( V over pi ) to the power one third

At both ends S→∞S \to \infty (the 2V/r2V/r term as r→0r \to 0, the πr2\pi r^2 term as r→∞r \to \infty), so the minimum is at the critical point. There h=V/(πr2)=(V/π)1/3h = V/(\pi r^2) = (V/\pi)^{1/3} and S=3π1/3V2/3S = 3\pi^{1/3}V^{2/3}. The neatest form of the answer is the shape: h/r=1h/r = 1, the height equals the radius (notes, p. 3).

Surface area of an open can of volume VV as a function of its radius, computed from S=πr2+2V/rS = \pi r^2 + 2V/r. It goes to infinity at both ends, so the one critical point is the minimum: for V=1V = 1 it is at r=(1/π)1/3≈0.683r = (1/\pi)^{1/3} \approx 0.683, where S≈4.39S \approx 4.39.

Example: a wire cut into two squares#

Cut a wire of length 1 at xx and bend each piece into a square: sides x/4x/4 and (1−x)/4(1 - x)/4 (notes, pp. 4–5). The total area is

Area of the two squares
A=(x4)2+(1−x4)2,A′=x8−1−x8=0  ⇒  x=12A = \left(\frac{x}{4}\right)^2 + \left(\frac{1 - x}{4}\right)^2, \qquad A' = \frac{x}{8} - \frac{1 - x}{8} = 0 \;\Rightarrow\; x = \frac12
In words

capital A equals ( x over 4 ) squared plus ( the quantity 1 minus x, all over 4 ) squared, capital A prime equals x over 8 minus the quantity 1 minus x, all over 8 equals 0 which gives x equals one half

At x=12x = \tfrac12, A=2×(1/8)2=1/32A = 2 \times (1/8)^2 = 1/32. But the endpoints give A(0)=A(1)=1/16A(0) = A(1) = 1/16, which is larger. So the critical point is the minimum, and the maximum is at the endpoints: use all the wire for one square. The moral: if you look only at critical points, you may find the worst answer rather than the best (notes, p. 5).

Worked example

A closed can

A can with a lid must hold 1.0 litre (1000 cm³). What radius and height use the least metal, and how much?

Area in terms of r

Now there are two discs: S=2πr2+2πrhS = 2\pi r^2 + 2\pi r h, and h=V/(πr2)h = V/(\pi r^2) gives S=2πr2+2V/rS = 2\pi r^2 + 2V/r.

Critical point

dS/dr=4πr−2V/r2=0dS/dr = 4\pi r - 2V/r^2 = 0 gives r3=V/(2π)r^3 = V/(2\pi), so r=(1000/2π)1/3≈5.42r = (1000/2\pi)^{1/3} \approx 5.42 cm. Again S→∞S \to \infty at both ends, so this is the minimum.

Shape and area

h=V/(πr2)=2r≈10.8h = V/(\pi r^2) = 2r \approx 10.8 cm: the height equals the diameter. S=6πr2≈554S = 6\pi r^2 \approx 554 cm².

Worked example

A square and a circle

A wire of length 1 is cut at xx; the first piece makes a square, the second a circle. Where should you cut to make the total area as small as possible, and as large as possible?

Area

The square has side x/4x/4; the circle has circumference 1−x1 - x, so radius (1−x)/(2π)(1 - x)/(2\pi) and area (1−x)2/(4π)(1 - x)^2/(4\pi). Then A=x2/16+(1−x)2/(4π)A = x^2/16 + (1 - x)^2/(4\pi).

Critical point

A′=x/8−(1−x)/(2π)=0A' = x/8 - (1 - x)/(2\pi) = 0 gives x=4/(π+4)≈0.560x = 4/(\pi + 4) \approx 0.560, with A=1/(4(π+4))≈0.0350A = 1/\bigl(4(\pi + 4)\bigr) \approx 0.0350: the minimum.

Endpoints

A(1)=1/16=0.0625A(1) = 1/16 = 0.0625 (all square) and A(0)=1/(4π)≈0.0796A(0) = 1/(4\pi) \approx 0.0796 (all circle). The maximum is at an endpoint: put all the wire into the circle.

Summary#

  • When there are no critical points, go back to precalculus: plot discontinuities (from each side), the ends, and easy points. A function with f′≠0f' \ne 0 cannot turn back.
  • Sketching strategy: (1) discontinuities, ends, easy points; (2) critical points and values; (3) sign of f′f' as a check; (4) sign of f′′f'' only if asked; (5) combine.
  • Do not say a function is increasing across a discontinuity.
  • Maxima and minima occur at critical points, endpoints or discontinuities. Give both where the extreme is achieved and its value.
  • Open can of fixed volume with least area: h=rh = r. Two squares from one wire: the critical point is the minimum; the maximum is at an endpoint.

Symbols on this page

Show the 26 symbols used here
θ\theta theta.
In the cosmology note, the development angle of the closed universe: 0 at the Big Bang, π at maximum size. Unit: rad. Say it: “theta” (sounds like “thay-ta or thee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
In the cosmology note, the scale factor a(t) of a closed universe. Say it: “a”.
xx x.
The variable on the horizontal axis; in the wire problem, where the wire is cut. Say it: “x”.
yy y.
The function's value, y = f(x). Say it: “y”.
tt t.
In the cosmology note, cosmic time. Unit: s. Say it: “t”.
dd d.
The d of a derivative, as in dS/dr. Say it: “d”.
ee e.
Euler's number, e ≈ 2.718. Say it: “e”.
ff f.
The function being sketched or optimised. Say it: “f”.
rr r.
The radius of the can. Unit: m (here cm). Say it: “r”.
AA A.
The total area enclosed by the two pieces of wire. Say it: “capital A”.
hh h.
The height of the can. Unit: m (here cm). Say it: “h”.
SS S.
The surface area of the can (the metal used). Unit: m² (here cm²). Say it: “S”.
f′f' f prime.
The derivative of f: its sign says where f rises or falls. Say it: “f prime”.
VV V.
The fixed volume of the can. Unit: m³ (here cm³ or litres). Say it: “V”.
A′A' A prime.
The derivative of the total area A with respect to x, the cut point. Say it: “capital A prime”.
a˙\dot{a} a dot.
The rate of change of a with time, ȧ = da/dt: how fast the scale factor grows. Say it: “a dot”.
f′′f'' f double prime.
The second derivative of f: its sign gives the concavity. Say it: “f double prime”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 29 words used here

Also used

p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
critical point.
A point where a function's derivative is zero, so its graph is level there; maxima and minima are found among such points. Explained in Curve sketching with the first and second derivative.
asymptote.
A straight line that a graph gets closer and closer to, without reaching it, as the graph heads off to infinity.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
tangent.
A straight line that touches a curve at a point and runs in the same direction as the curve there. Explained in Angles, radians and trigonometry.
hyperbola.
An open curve with two separate branches: the set of points whose distances from two fixed points differ by the same amount. Explained in Quadratics and power laws.
concave.
Of a graph: bending, either upwards like a cup (concave up) or downwards like a cap (concave down). Explained in The logarithm from an integral, and areas between curves.
second derivative.
The derivative of a derivative: how fast a rate of change itself is changing. Explained in Acceleration in one dimension.
discontinuity.
A point where a function is not continuous: its graph jumps, has a hole or shoots off to infinity there. Explained in Curve sketching with the first and second derivative.
interval.
A stretch between two values or two moments; in maths, all the numbers between two end points. Explained in Time dilation, length contraction and the interval.
inflection point.
A point where a graph changes the way it bends, from bending up to bending down or the other way. Explained in Curve sketching with the first and second derivative.
singularity.
A point where a quantity becomes infinite or undefined, so the usual equations stop working there. Explained in Black holes.
quotient rule.
The rule for the derivative of a fraction of two functions: (u/v)′ = (u′v − uv′)/v².
critical value.
The value a function takes at a critical point. Explained in Curve sketching with the first and second derivative.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
constraint.
A condition that limits what is allowed, such as a rope of fixed length that links the motions of the bodies it joins. Explained in Tension in ropes and the spring force.
closed universe.
A universe with more than the critical density, whose space curves back on itself like a sphere, so it is finite. Explained in Open, closed and flat universes.
Big Bang.
The hot, dense early state from which the whole observable universe has been expanding for about 13.8 billion years. Explained in The Big Bang.
scale factor.
The number a(t) that tells how much distances in the universe have stretched: when it doubles, every distance between galaxies doubles. Explained in Towards the universe: an expanding gas cools.
development angle.
Guth's name for the parameter θ of the closed-universe solution, running from 0 at the Big Bang to 2π at the Big Crunch. Explained in The closed universe as a cycloid.
Big Crunch.
The collapse at the end of a closed universe that recollapses, when all distances shrink back towards zero. Explained in Towards the universe: will an expanding ball of matter stop?.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
notation.
A system of symbols used to write ideas down briefly, such as dy/dx for a derivative.
rule out.
To show that a possibility cannot be right, so it is no longer considered.
error.
The difference between a measured or computed value and the true one; often how large that difference may be.
vanish.
To become zero; sometimes, of a fixed point or solution, to stop existing.
comes down to.
Is, in the end, simply a matter of.
moral.
The general lesson to take away from an example or argument.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

33 more cosmology pages that build on this

Pages that build on this

Check your understanding

  1. f(x)=(x+1)/(x+2)f(x) = (x + 1)/(x + 2) has f′(x)=1/(x+2)2>0f'(x) = 1/(x + 2)^2 > 0. Is ff increasing on the whole real line?
  2. Where should you look for the maximum and minimum of a function?
  3. An open-topped can of fixed volume has the least surface area when its height hh and radius rr satisfy…
  4. A wire of length 1 is cut and bent into two squares. Cutting it in the middle gives total area 1/321/32. That is…
0 of 4 answered

Flashcards

1 / 3