Navigation

Optimization

8.3 Max/min examples

15 problems · hints, answers and solutions shown beside each one

Stage 2 · Procedural

For Questions  1 through 3, the quantity to optimize is already given to you as a function of a single variable.

Q1Stage 2Past exam · 2015Q

Find the global maximum and the global minimum for f(x)=x55x+2f(x)=x^5 - 5x + 2 on the interval [2,0][-2,0].

Hint

Factor the derivative.

Answer

The global maximum is f(1)=6f(-1) = 6, the global minimum is f(2)=20f(-2) = -20.

Full solution

We compute f(x)=5x45f'(x)=5\,x^4 - 5, which means that f(x)f(x) has no singular points (i.e., it is differentiable for all values of xx), but it has two critical points:

0=5x450=x41=(x2+1)(x21)0=x21x=±1\begin{align*} 0&=5x^4-5\\ 0&=x^4-1=(x^2+1)(x^2-1)\\ 0&=x^2-1\\ x&= \pm 1 \end{align*}

Note, however, that 11 is not in the interval [2,0][-2,0].

The global maximum and the global minimum for f(x)f(x) on the interval [2,0][-2,0] will occur at x=2x=-2, x=0x=0, or x=1x=-1.

cc2-2001-1
typeendpointendpointcritical point
f(c)f(c)20-202266

So, the global maximum is f(1)=6f(-1) = 6 while the global minimum is f(2)=20f(-2) = -20.

Q2Stage 2Past exam · 2015Q

Find the global maximum and the global minimum for f(x)=x55x10f(x)=x^5 - 5x - 10 on the interval [0,2][0,2].

Hint

Remember to test endpoints.

Answer

Global maximum is f(2)=12f(2) = 12, global minimum is f(1)=14f(1) = -14.

Full solution

We compute f(x)=5x45f'(x)=5x^4-5, which means that f(x)f(x) has no singular points (i.e., it is differentiable for all values of xx), but it has two critical points:

0=5x450=x41=(x2+1)(x21)0=x21x=±1\begin{align*} 0&=5x^4-5\\ 0&=x^4-1=(x^2+1)(x^2-1)\\ 0&=x^2-1\\ x&= \pm 1 \end{align*}

Note, however, that 1-1 is not in the interval [0,2][0,2].

The global maximum and the global minimum for f(x)f(x) on the interval [0,2][0,2] will occur at x=2x=2, x=0x=0, or x=1x=1.

cc220011
typeendpointendpointcritical point
f(c)f(c)121210-1014-14

So, the global maximum is f(2)=12f(2) = 12 while the global minimum is f(1)=14f(1) = -14.

Q3Stage 2Past exam · 2015Q

Find the global maximum and the global minimum for f(x)=2x36x22f(x)=2x^3 - 6x^2 - 2 on the interval [1,4][1,4].

Answer

Global maximum is f(4)=30f(4) = 30, global minimum is f(2)=10f(2) = -10.

Full solution

We compute f(x)=6x212x=6x(x2)f'(x)=6x^2 - 12x = 6x(x-2), which means that f(x)f(x) has no singular points (i.e., it is differentiable for all values of xx), but it has the two critical points: x=0x=0 and x=2x=2. Note, however, 00 is not in the interval [1,4][1,4].

cc114422
typeendpointendpointcritical point
f(c)f(c)6-6303010-10

So, the global maximum is f(4)=30f(4) = 30 while the global minimum is f(2)=10f(2) = -10.

For Questions 4 and 5, you can decide whether a critical point is a local extremum by considering the derivative of the function.

Q4Stage 2Past exam · 2015Q

Consider the function h(x)=x312x+4h(x)=x^3-12x+4. What are the coordinates of the local maximum of h(x)h(x)? What are the coordinates of the local minimum of h(x)h(x)?

Hint

One way to decide whether a critical point x=cx=c is a local extremum is to consider the first derivative. For example: if f(x)f'(x) is negative for all xx just to the left of cc, and positive for all xx just to the right of cc, then f(x)f(x) decreases up till cc, then increases after cc, so f(x)f(x) has a local minimum at cc.

Answer

Local max at (2,20)(-2,20), local min at (2,12)(2,-12).

Full solution

Since h(x)h(x) is a polynomial, it has no singular points. We compute its critical points:

h(x)=3x2120=3x212x=±2\begin{align*} h'(x)&=3x^2-12\\ 0&=3x^2-12\\ x&=\pm 2 \end{align*}

Notice as xx\to\infty, h(x)h(x)\to\infty, and as xx\to-\infty h(x)h(x)\to-\infty. So Theorem 8.3.3 doesn't exactly apply. Instead, let's consider the signs of h(x)h'(x).

xx(,2)(-\infty,-2)(2,2)(-2,2)(2,)(2,\infty)
h(x)h'(x)>0>0<0<0>0>0
h(x)h(x)increasingdecreasingincreasing

So, h(x)h(x) increases until x=2x=-2, then decreases. That means h(x)h(x) has a local maximum at x=2x=-2. The function decreases from 2-2 until 22, after which is increases, so h(x)h(x) has a local minimum at x=2x=2. We compute f(2)=20f(-2)=20 and f(2)=12f(2)=-12.

Q5Stage 2Past exam · 2015Q

Consider the function h(x)=2x324x+1h(x)=2x^3-24x+1. What are the coordinates of the local maximum of h(x)h(x)? What are the coordinates of the local minimum of h(x)h(x)?

Hint

One way to decide whether a critical point x=cx=c is a local extremum is to consider the first derivative. For example: if f(x)f'(x) is negative for all xx just to the left of cc, and positive for all xx just to the right of cc, then f(x)f(x) decreases up till cc, then increases after cc, so f(x)f(x) has a local minimum at cc.

Answer

(2,33)(-2,33) max, and (2,31)(2,-31) min

Full solution

Since h(x)h(x) is a polynomial, it has no singular points. We compute its critical points:

h(x)=6x2240=6x224x=±2\begin{align*} h'(x)&=6x^2-24\\ 0&=6x^2-24\\ x&=\pm2 \end{align*}

Notice as xx\to\infty, h(x)h(x)\to\infty, and as xx\to-\infty h(x)h(x)\to-\infty. So Theorem 8.3.3 doesn't exactly apply. Instead, let's consider the signs of h(x)h'(x).

xx(,2)(-\infty,-2)(2,2)(-2,2)(2,)(2,\infty)
h(x)h'(x)>0>0<0<0>0>0
h(x)h(x)increasingdecreasingincreasing

So, h(x)h(x) increases until x=2x=-2, then decreases. That means h(x)h(x) has a local maximum at x=2x=-2. The function decreases from 2-2 until 22, after which is increases, so h(x)h(x) has a local minimum at x=2x=2.

We compute f(2)=33f(-2)=33 and f(2)=31f(2)=-31.

For Questions 6 through 13, you will have to find an expression for the quantity you want to optimize as a function of a single variable.

Q6Stage 2Past exam · 1999H, 2012H

You are in a dune buggy at a point PP in the desert, 12 km due south of the nearest point AA on a straight east-west road. You want to get to a town BB on the road 1818 km east of AA. If your dune buggy can travel at an average speed of 15 km/hr through the desert and 30 km/hr along the road, towards what point QQ on the road should you head to minimize your travel time from PP to BB?

Figure from prob_s3.5.3, line 2

Figure from prob_s3.5.3, line 2

Hint

Start with a formula for travel time from PP to BB. You might want to assign a variable to the distance from AA where your buggy first reaches the road.

Answer

QQ should be 434\sqrt{3} kilometres from AA

Full solution

Suppose that QQ is a distance of xx from AA. Then it is a distance of 18x18-x from BB.

Figure from prob_s3.5.3, line 2

Figure from prob_s3.5.3, line 2

Using the Pythagorean Theorem, the distance from PP to QQ is 122+x2\sqrt{12^2+x^2} kilometres, and the buggy travels 15 kph over this off-road stretch. The travel time from PP to QQ is 122+x215\dfrac{\sqrt{12^2+x^2}}{15} hours.

The distance from QQ to BB is 18x18-x kilometres, and the dune buggy travels 3030 kph along this road. The travel time from QQ to BB is 18x30\dfrac{18-x}{30} hours. So, the total travel time is

f(x)=122+x215+18x30.f(x)= \dfrac{\sqrt{12^2+x^2}}{15}+\dfrac{18-x}{30}.

We wish to minimize this for 0x180\le x\le 18. We will test all singular points, critical points, and endpoints to find which yields the smallest value of f(x)f(x). Since there are no singular points, we begin by locating the critical points.

0=f(x)=11512(144+x2)1/2(2x)130115x144+x2=130x144+x2=12x2144+x2=144x2=144+x2x=123=43\begin{align*} 0=f'(x)&=\dfrac{1}{15}\cdot\dfrac{1}{2}(144+x^2)^{-1/2}(2x)-\dfrac{1}{30}\\ \dfrac{1}{15}\cdot\dfrac{x}{\sqrt{144+x^2}}&=\dfrac{1}{30}\\ \dfrac{x}{\sqrt{144+x^2}}&=\dfrac{1}{2}\\ \dfrac{x^2}{144+x^2}&=\dfrac{1}{4}\\ 4x^2&=144+x^2\\ x&=\dfrac{12}{\sqrt{3}}=4\sqrt{3} \end{align*}

So the minimum travel times must be one of f(0)f(0), f(18)f(18), and f(43)f\left(4\sqrt{3}\right).

f(0)=1215+1830=1.4f(18)=122+182151.44f(43)=144+144/315+1812/3301.29\begin{align*} f(0)&=\dfrac{12}{15}+\dfrac{18}{30}=1.4\cr f(18)&=\dfrac{\sqrt{12^2+18^2}}{15}\approx1.44\cr f\left({4\sqrt{3}}\right)&= \dfrac{\sqrt{144+144/3}}{15}+\dfrac{18-12/\sqrt{3}}{30} \approx1.29 \end{align*}

So QQ should be 434\sqrt{3} km from AA.

Q7Stage 2Past exam · 1997D

A closed three dimensional box is to be constructed in such a way that its volume is 4500 cm3{}^3. It is also specified that the length of the base is 3 times the width of the base. Find the dimensions of the box that satisfies these conditions and has the minimum possible surface area. Justify your answer.

Hint

A box has three dimensions; make variables for them, and write the relations given in the problem in terms of these variables.

Answer

10×30×1510\times 30 \times 15

Full solution

Let , w\ell,\ w and hh denote the length, width and height of the box respectively. We are told that wh=4500\ell w h =4500 and that =3w\ell=3w. Hence h=4500w=45003w2=1500w2h=\dfrac{4500}{\ell w}=\dfrac{4500}{3 w^2}=\dfrac{1500}{w^2}. The surface area of the box is

A=2w+2h+2wh=2(3w2+3w1500w2+w1500w2)=2(3w2+6000w)=6(w2+2000w)A=2\ell w+2\ell h+2 wh=2\left(3w^2+3w\dfrac{1500}{w^2}+w\dfrac{1500}{w^2}\right) =2\left(3w^2+\dfrac{6000}{w}\right)=6\left(w^2+\dfrac{2000}{w}\right)

Figure from prob_s3.5.3, line 2

Figure from prob_s3.5.3, line 2

As ww tends to zero or to infinity, the surface area approaches infinity. By Theorem 8.3.3 the minimum surface area must occur at a critical point of w2+2000ww^2+\dfrac{2000}{w}.

0=ddw{w2+2000w}=2w2000w22w=2000w2w3=1000w=10\begin{align*}0&=\diff{}{w}\left\{w^2+\dfrac{2000}{w}\right\}\\ &=2w-\dfrac{2000}{w^2}\\ 2w&=\dfrac{2000}{w^2}\\ w^3&=1000\hskip-3pt\\ w&=10\end{align*}

Therefore,

=3w=30h=1500w2=15.\begin{align*}\ell&=3w=30\\ h&=\frac{1500}{w^2}=15.\end{align*}

The dimensions of the box with minimum surface area are 10×30×1510 \times 30 \times 15.

Q8Stage 2Past exam · 1996D

A closed rectangular container with a square base is to be made from two different materials. The material for the base costs $5 per square metre, while the material for the other five sides costs $1 per square metre. Find the dimensions of the container which has the largest possible volume if the total cost of materials is $72.

Hint

Find a formula for the cost of the base, and another formula for the cost of the other sides. The total cost is the sum of these two formulas.

Answer

2×2×62\times 2\times 6

Full solution

Let the length of the sides of the square base be bb metres and let the height be hh metres. The area of the base is b2b^2, the area of the top is b2b^2 and the area of each of the remaining four sides is bhbh so the total cost is

5(b2)cost of base+1(b2+4bh)cost of 5 sides=6b2+4bh=72\underbrace{5(b^2)}_{\text{cost of base}}+\underbrace{1(b^2+4bh)}_{\text{cost of 5 sides}}=6b^2+4bh=72

Solving for hh,

h=726b24b=64(12b2b)=32(12b2b)\begin{align*} h&=\dfrac{72-6b^2}{4b}\\ &=\dfrac{6}{4}\left(\dfrac{12-b^2}{b}\right)\\ &=\dfrac{3}{2}\left(\dfrac{12-b^2}{b}\right) \end{align*}

The volume is

V=b2h=b232(12b2b)=18b32b3.\begin{align*} V=b^2h&=b^2\cdot \dfrac{3}{2}\left(\dfrac{12-b^2}{b}\right) \\ &=18b-\dfrac{3}{2}b^3. \end{align*}

This is the function we want to maximize. Since volume is never negative, the endpoints of the functions are the values of bb that make the volume 0. So, the maximum volume will not occur at an endpoint, it will occur at a critical point. The only critical point is b=2b=2:

0=ddb{18b32b3}=1892b2b2=4b=2, h=32(1242)=6\begin{align*} 0&=\diff{}{b}\left\{18b-\dfrac{3}{2}b^3\right\}\\ &=18-\dfrac{9}{2}b^2\\ b^2&=4\\ b&=2,\ h=\dfrac{3}{2}\left(\dfrac{12-4}{2}\right)=6 \end{align*}

The desired dimensions are 2×2×62\times 2\times 6.

Q9Stage 2Past exam · 1998H

Find a point XX on the positive xx–axis and a point YY on the positive yy–axis such that (taking O=(0,0)O=(0,0))

  1. The triangle XOYXOY contains the first quadrant portion of the unit circle x2+y2=1x^2+y^2=1 and

  2. the area of the triangle XOYXOY is as small as possible.

A complete and careful mathematical justification of property (i) is required.

Hint

The setup is this:

Figure from prob_s3.5.3, line 2

Figure from prob_s3.5.3, line 2

Answer

X=Y=2X=Y=\sqrt{2}

Full solution

It suffices to consider XX and YY such that the line XYXY is tangent to the circle. Otherwise we could reduce the area of the triangle by, for example, holding XX fixed and reducing YY. So let XX and YY be the xx– and yy–intercepts of the line tangent to the circle at (cosθ,sinθ)(\cos\theta,\sin\theta). Then 1X=cosθ\dfrac{1}{X}=\cos\theta and $\dfrac{1}{Y}=\cos\left(\dfrac{\pi}{2}-\theta\right) =\sin\theta$. The area of the triangle is

12XY=12cosθsinθ=1sin(2θ)\dfrac{1}{2} XY=\dfrac{1}{2\cos\theta\sin\theta}=\dfrac{1}{\sin(2\theta)}

Figure from prob_s3.5.3, line 392

Figure from prob_s3.5.3, line 392

This is a minimum when sin(2θ)\sin(2\theta) is a maximum. That is when 2θ=π22\theta=\dfrac{\pi}{2}. Hence X=1cos(π/4)X=\dfrac{1}{\cos(\pi/4)} and Y=1sin(π/4)Y=\dfrac{1}{\sin(\pi/4)}. That is, X=Y=2X=Y=\sqrt{2}.

Q10Stage 2Past exam · 2006H

A rectangle is inscribed in a semicircle of radius RR so that one side of the rectangle lies along a diameter of the semicircle. Find the largest possible perimeter of such a rectangle, if it exists, or explain why it does not. Do the same for the smallest possible perimeter.

Figure from prob_s3.5.3, line 1

Figure from prob_s3.5.3, line 1

Hint

Put the whole system on xyxy-axes, so that you can easily describe the pieces using (x,y)(x,y)-coordinates.

Answer

The largest possible perimeter is 25R2\sqrt{5}R and the smallest possible perimeter is 2R2R.

Full solution

For ease of notation, we place the semicircle on a Cartesian plane with diameter along the xx-axis and centre at the origin.

Figure from prob_s3.5.3, line 1

Figure from prob_s3.5.3, line 1

If xx is the point where the rectangle touches the diameter to the right of the yy-axis, then 2x2x is the width of the rectangle. The origin and the two right corners of the rectangle form a right triangle with hypotenuse RR, so by the Pythagorean Theorem, the upper right hand corner of the rectangle is at (x,R2x2)\big(x,\sqrt{R^2-x^2}\big). The perimeter of the rectangle is given by the function:

P(x)=4x+2R2x2\begin{align*}P(x)&=4x+2\sqrt{R^2-x^2}\end{align*}

So, this is what we optimize. The endpoints of the domain for this function are x=0x=0 and x=Rx=R. To find the critical points, we differentiate:

P(x)=42xR2x2P(x)=0    4=2xR2x2x=2R2x2x2=4(R2x2)5x2=4R2x=25R\begin{align*}P'(x)&=4-\dfrac{2x}{\sqrt{R^2-x^2}}\\ P'(x)=0\iff 4&=\dfrac{2x}{\sqrt{R^2-x^2}}\\ x&=2\sqrt{R^2-x^2}\\ x^2&=4(R^2-x^2)\\ 5x^2&=4R^2\\ x&=\dfrac{2}{\sqrt{5}}R\end{align*}

Note that since our perimeter formula was defined to work only for xx in [0,R][0,R], we neglect the negative square root, 25R-\dfrac{2}{\sqrt{5}}R.

Now, we find the size of the perimeter at the critical point and the endpoints:

cc00RR25R\frac{2}{\sqrt{5}}R
typeendpointendpointcritical point
P(c)P(c)2R2R4R4R25R2\sqrt{5}R

So, the largest possible perimeter is 25R2\sqrt{5}R and the smallest possible perimeter is 2R2R.

Remark: as a check on the correctness of our formula for P(x)P(x), when x=0x=0 the rectangle degenerates to the line segment from (0,0)(0,0) to (0,R)(0,R). The perimeter of this “width zero rectangle” is 2R2R, agreeing with P(0)P(0). Similarly, when x=Rx=R the rectangle degenerates to the line segment from (R,0)(R,0) to (R,0)(-R,0). The perimeter of this “width zero rectangle” is 4R4R, agreeing with P(R)P(R).

Q11Stage 2Past exam · 2009H

Find the maximal possible volume of a cylinder with surface area AA. (Food is often packaged in cylinders, and companies wouldn't want to waste the metal they are made out of. So, you might expect the dimensions you find in this problem to describe a tin of, say, cat food. Read here about why this isn't the case.)

Hint

The surface area consists of two discs and a strip. Find the areas of these pieces.

The volume of a cylinder with radius rr and height hh is πr2h\pi r^2 h.

Figure from prob_s3.5.3, line 1

Figure from prob_s3.5.3, line 1

Answer

A3/236π\dfrac{A^{3/2}}{3\sqrt{6\pi}}

Full solution

Let the cylinder have radius rr and height hh. If we imagine popping off the ends, they are two circular disks, each with surface area πr2\pi r^2. Then we imagine unrolling the remaining tube. It has height hh, and its other dimension is given by the circumference of the disks, which is 2πr2\pi r. Then the area of the “unrolled tube" is 2πrh2\pi rh.

Figure from prob_s3.5.3, line 1

Figure from prob_s3.5.3, line 1

So, the surface area is 2πr2+2πrh2\pi r^2+2\pi r h. Since the area is given as AA, we can solve for hh:

A=2πr2+2πrh2πrh=A2πr2h=A2πr22πr.\begin{align*} A&=2\pi r^2+2\pi r h\\ 2\pi r h &=A-2\pi r^2\\ h&=\dfrac{A-2\pi r^2}{2\pi r}. \end{align*}

Then we can write the volume as a function of the variable rr and the constant AA:

V(r)=πr2h=πr2(A2πr22πr)=12(Ar2πr3)\begin{align*}V(r)&=\pi r^2 h\\ &=\pi r^2 \left(\dfrac{A-2\pi r^2}{2\pi r}\right)\\ &=\dfrac{1}{2}\left(Ar-2\pi r^3\right)\end{align*}

This is the function we want to maximize. Let's find its critical points.

V(r)=12(A6πr2)V(r)=0    A=6πr2    r=A6π\begin{align*}V'(r)&=\dfrac{1}{2}\left(A-6\pi r^2\right)\\ V'(r)=0 &\iff A=6\pi r^2 \iff r=\sqrt{\dfrac{A}{6\pi}}\end{align*}

since negative values of rr don't make sense. At this critical point,

V(A6π)=12[A(A6π)2π(A6π)3]=12[A3/26π2πA3/26π6π]=12[A3/26πA3/236π]=A3/236π.\begin{align*}V\left(\sqrt{\dfrac{A}{6\pi}}\right)&= \dfrac{1}{2}\left[A\left(\sqrt{\dfrac{A}{6\pi}}\right)-2\pi \left(\sqrt{\dfrac{A}{6\pi}}\right)^3\right]\\ &=\dfrac{1}{2}\left[\dfrac{A^{3/2}}{\sqrt{6\pi}}-\dfrac{2\pi A^{3/2}}{6\pi\sqrt{6\pi}}\right]\\ &=\dfrac{1}{2}\left[\dfrac{A^{3/2}}{\sqrt{6\pi}}-\dfrac{A^{3/2}}{3\sqrt{6\pi}}\right]\\ &=\dfrac{A^{3/2}}{3\sqrt{6\pi}}.\end{align*}

We should also check the volume of the cylinder at the endpoints of the function. Since r0r \geq 0, one endpoint is r=0r=0. Since h0h \geq 0, and rr grows as hh shrinks, the other endpoint is whatever value of rr causes hh to be 0. We could find this value of rr, but it's not strictly necessary: when r=0r=0, the volume of the cylinder is zero, and when h=0h=0, the volume of the cylinder is still zero. So, the maximum volume does not occur at the endpoints.

Therefore, the maximum volume is achieved at the critical point, where

Vmax=A3/236π.V_{\rm max}=\dfrac{A^{3/2}}{3\sqrt{6\pi}}.

Remark: as a check, AA has units m2m^2 and, because of the A3/2A^{3/2}, our answer has units m3m^3, which are the correct units for a volume.

Q12Stage 2Past exam · 2007H

What is the largest possible area of a window, with perimeter PP, in the shape of a rectangle with a semicircle on top (so the diameter of the semicircle equals the width of the rectangle)?

Hint

If the circle has radius rr, and the entire window has perimeter PP, what is the height of the rectangle?

Answer

P22(π+4)\dfrac{P^2}{2(\pi+4)}

Full solution

Denote by rr the radius of the semicircle, and let hh be the height of the recangle.

Figure from prob_s3.5.3, line 1

Figure from prob_s3.5.3, line 1

Since the perimeter is required to be PP, the height, hh, of the rectangle must obey

P=πr+2r+2hh=12(Pπr2r)\begin{align*} P&=\pi r+2r+2h\\ h&=\dfrac{1}{2}(P-\pi r -2r) \end{align*}

So the area is

A(r)=12πr2+2rh=12πr2+r(Pπr2r)=rP12(π+4)r2\begin{align*}A(r)&=\half\pi r^2 +2rh\\ &=\half\pi r^2 +r(P-\pi r-2r)\\ &=rP-\half(\pi+4)r^2\end{align*}

Finding all critical points:

0=A(r)=P(π+4)rr=Pπ+4\begin{align*}0=A'(r)&=P-(\pi+4)r\\ r&=\dfrac{P}{\pi+4}\end{align*}

Now we want to know what radius yields the maximum area. We notice that A(r)>0A'(r)>0 for r<Pπ+4r<\dfrac{P}{\pi+4} and A(r)<0A'(r)<0 for r>Pπ+4r>\dfrac{P}{\pi+4}. So, A(r)A(r) is increasing until the critical point, then decreasing after it. That means the global maximum occurs at the critical point, r=Pπ+4r=\dfrac{P}{\pi+4}. The maximum area is

rP12(π+4)r2=P2π+412(π+4)P2(π+4)2=P22(π+4)\begin{align*} rP-\frac{1}{2}(\pi+4)r^2&=\dfrac{P^2}{\pi+4}-\frac{1}{2}(\pi+4)\dfrac{P^2}{(\pi+4)^2}\\ &=\dfrac{P^2}{2(\pi+4)} \end{align*}

Remark: another way to see that the global maximum occurs at the critical point is to compare the area at the critical point to the areas at the endpoints of the function. The smallest value of rr is 0, while the biggest is Pπ+2\dfrac{P}{\pi+2} (when the shape is simply a half-circle). Comparing A(0)A(0), A(Pπ+2)A\left(\dfrac{P}{\pi+2}\right), and A(Pπ+4)A\left(\dfrac{P}{\pi+4}\right) is somewhat laborious, but certainly possible.

Q13Stage 2Past exam · 2010H

Consider an open-top rectangular baking pan with base dimensions xx centimetres by yy centimetres and height zz centimetres that is made from AA square centimetres of tin plate. Suppose y=pxy = px for some fixed constant pp.

  1. Find the dimensions of the baking pan with the maximum capacity (i.e., maximum volume). Prove that your answer yields the baking pan with maximum capacity. Your answer will depend on the value of pp.

  2. Find the value of the constant pp that yields the baking pan with maximum capacity and give the dimensions of the resulting baking pan. Prove that your answer yields the baking pan with maximum capacity.

Answer

(a) x=A3px=\sqrt{\dfrac{A}{3p}}, y=Ap3y=\sqrt{\dfrac{Ap}{3}}, and z=Ap3(1+p)z=\dfrac{\sqrt{Ap}}{\sqrt{3}(1+p)}

(b) p=1p=1

(The dimensions of the resulting baking pan are x=y=A3x=y=\sqrt{ \dfrac{A}{3} } and z=12A3z=\dfrac{1}{2}\sqrt{ \dfrac{A}{3} }.)

Full solution

Figure from prob_s3.5.3, line 1

Figure from prob_s3.5.3, line 1

(a) The surface area of the pan is

xy+2xz+2yz=px2+2xz+2pxz=px2+2(1+p)xz\begin{align*} xy+2xz+2yz&=px^2+2xz+2pxz\\ &=px^2+2(1+p)xz \end{align*}

and the volume of the pan is xyz=px2zxyz=px^2z. Assuming that all Acm2A\,{\rm cm}^2 is used, we have the constraint

px2+2(1+p)xz=Aorz=Apx22(1+p)xpx^2+2(1+p)xz=A \qquad\hbox{or}\quad z=\dfrac{A-px^2}{2(1+p)x}

So

V(x)=xyz=x(px)(Apx22(1+p)x)=p2(1+p)x(Apx2)\begin{align*}V(x)&=xyz=x(px)\left(\frac{A-px^2}{2(1+p)x}\right) \\&=\dfrac{p}{2(1+p)}x(A-px^2)\end{align*}

Using the product rule,

V(x)=p2(1+p)[x(2px)+(Apx2)]=p2(1+p)[A3px2]\begin{align*}V'(x)&=\dfrac{p}{2(1+p)}\left[x(-2px)+(A-px^2)\right]\\ &=\dfrac{p}{2(1+p)}\big[A-3px^2\big]\end{align*}

The derivative V(x)V'(x) is 0 when x=A3px=\sqrt{\dfrac{A}{3p}}. The derivative is positive (i.e. V(x)V(x) is increasing) for x<A3px< \sqrt{\dfrac{A}{3p}} and is negative (i.e. V(x)V(x) is decreasing) for x>A3px>\sqrt{\dfrac{A}{3p}}. So the pan of maximum volume has dimensions x=A3px=\sqrt{\dfrac{A}{3p}}, y=pA3p=Ap3y=p\sqrt{\dfrac{A}{3p}}=\sqrt{\dfrac{Ap}{3}} and z=2A/32(1+p)A/(3p)=Ap3(1+p)z=\dfrac{2A/3}{2(1+p)\sqrt{A/(3p)}}=\dfrac{\sqrt{Ap}}{\sqrt{3}(1+p)}. (b) The volume of the pan from part (a) is

V(p)=(A3p)(pA3p)Ap3(1+p)=(A3)3/2p1+pV(p)=\left(\sqrt{\dfrac{A}{3p}}\right)\left(p\sqrt{\dfrac{A}{3p}}\right) \dfrac{\sqrt{Ap}}{\sqrt{3}(1+p)} =\left(\dfrac{A}{3}\right)^{3/2}\dfrac{\sqrt{p}}{1+p}

Since

ddp{p1+p}=12(1+p)/pp(1+p)2=p(1p1)2(1+p)2\diff{}{p}\left\{\dfrac{\sqrt{p}}{1+p}\right\}=\dfrac{\half (1+p)/\sqrt{p}-\sqrt{p}}{(1+p)^2} =\dfrac{\sqrt{p}\left(\dfrac{1}{p}-1\right)}{2(1+p)^2}

the volume is increasing with pp for p<1p<1 and decreasing with pp for p>1p>1. So the maximum volume is achieved for p=1p=1 (a square base).

Stage 3 · Application

Q14Stage 3Past exam · 1999H

Let f(x)=xxf(x)=x^x for x>0x>0.

  1. Find f(x)f'(x).

  2. At what value of xx does the curve y=f(x)y=f(x) have a horizontal tangent line?

  3. Does the function ff have a local maximum, a local minimum, or neither of these at the point xx found in part (b)?

Hint

Use logarithmic differentiation to find f(x)f'(x).

Answer

(a) xx(1+logx)x^x(1+\log x) (b) x=1ex=\dfrac{1}{e} (c) local minimum

Full solution

(a) We use logarithmic differentiation.

f(x)=xxlogf(x)=log(xx)=xlogxddx{logf(x)}=ddx{xlogx}f(x)f(x)=x(1x)+logx=1+logxf(x)=f(x)(1+logx)=xx(1+logx)\begin{align*} f(x)&=x^x\\ \log f(x)&=\log \left(x^x\right)=x\log x\\ \diff{}{x}\left\{\log f(x)\right\}&=\diff{}{x}\left\{x\log x\right\}\\ \frac{f'(x)}{f(x)}&=x\left(\frac{1}{x}\right)+\log x=1+\log x\\ f'(x)&=f(x)\left(1+\log x\right)=x^x(1+\log x) \end{align*}

(b) Since x>0x>0, xx>0x^x>0. Therefore,

f(x)=0    1+logx=0    logx=1    x=1ef'(x)=0\iff 1+\log x=0\iff \log x=-1\iff x=\dfrac{1}{e}

(c) Since x>0x>0, xx>0x^x>0. So, the sign of f(x)f'(x) is the same as the sign of 1+logx1+\log x.

For x<1ex<\dfrac{1}{e}, logx<1\log x<-1 and f(x)<0f'(x)<0. That is, f(x)f(x) decreases as xx increases, when x<1ex<\dfrac{1}{e}. For x>1ex>\dfrac{1}{e}, logx>1\log x>-1 and f(x)>0f'(x)>0. That is, f(x)f(x) increases as xx increases, when x>1ex>\dfrac{1}{e}. Hence f(x)f(x) is a local minimum at x=1ex=\dfrac{1}{e}.

Q15Stage 3Past exam · 2011H

A length of wire is cut into two pieces, one of which is bent to form a circle, the other to form a square. How should the wire be cut if the area enclosed by the two curves is maximized? How should the wire be cut if the area enclosed by the two curves is minimized? Justify your answers.

Hint

When you are finding the global extrema of a function, remember to check endpoints as well as critical points.

Answer

Maximum area: do not cut, make a circle and no square.
Minimum area: make a square out of a piece that is 44+π\dfrac{4}{4+\pi} of the total length of the wire.

Full solution

Call the length of the wire LL units and suppose that it is cut \ell units from one end. Make the square from the piece of length \ell, and make the circle from the remaining piece of length LL-\ell.

The square has perimeter \ell, so its side length is /4\ell/4 and its area is (4)2\left(\dfrac{\ell}{4}\right)^2. The circle has circumference LL-\ell, so its radius is L2π\dfrac{L-\ell}{2\pi} and its area is π(L2π)2=(L)24π\pi\left(\dfrac{L-\ell}{2\pi}\right)^2=\dfrac{(L-\ell)^2}{4\pi}.

The area enclosed by the shapes, when the square is made from a length of size \ell, is

A()=216+(L)24π\begin{align*}A(\ell)&=\dfrac{\ell^2}{16}+\dfrac{(L-\ell)^2}{4\pi}\end{align*}

We want to find the global max and min for this function, given the constraint 0L0 \leq \ell \leq L, so we find its derivative:

A()=8L2π=π+48πL2π\begin{align*}A'(\ell)&=\dfrac{\ell}{8} -\dfrac{L-\ell}{2\pi} =\dfrac{\pi+4}{8\pi}\ell-\dfrac{L}{2\pi}\end{align*}

Now, we find the critical point.

A()=0π+48π=L2π=4Lπ+4\begin{align*}A'(\ell)&=0\\ \frac{\pi+4}{8\pi}\ell&=\frac{L}{2\pi}\\ \ell&=\frac{4L}{\pi+4}\end{align*}
\ell00LL...4Lπ+4\textcolor{white}{\dfrac{.^.}{.}}\frac{4L}{\pi+4}
typeendpointendpointcritical point
A()A(\ell)...L24π\textcolor{white}{\dfrac{.^.}{.}}\frac{L^2}{4\pi}L216\frac{L^2}{16}_{}A(4Lπ+4)A\left(\frac{4L}{\pi+4}\right)

It seems obnoxious to evaluate A(4Lπ+4)A\left(\frac{4L}{\pi+4}\right), and the problem doesn't ask for it–but we still have to figure out whether it is a global max or min.

When <4Lπ+4\ell<\frac{4L}{\pi+4}, A()<0A'(\ell)<0, and when >4Lπ+4\ell>\frac{4L}{\pi+4}, A()>0A'(\ell)>0. So, A()A(\ell) is decreasing until =4Lπ+4\ell=\frac{4L}{\pi+4}, then increasing. That means our critical point =4Lπ+4\ell=\frac{4L}{\pi+4} is a local minimum.

So, the minimum occurs at the only critical point, which is =(44+π)L\ell=\left(\dfrac{4}{4+\pi}\right)L. This corresponds to L=44+π\dfrac{\ell}{L}=\dfrac{4}{4+\pi}: the proportion of the wire that is cut is 44+π\dfrac{4}{4+\pi}.

The maximum has to be either at =0\ell=0 or at =L\ell=L. As A(0)=L24π>A(L)=L216A(0)=\dfrac{L^2}{4\pi} > A(L)=\dfrac{L^2}{16}, the maximum has =0\ell=0 (that is, no square).

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.