Radford Mathematics IB Mathematics resources • AA HL

Radford Mathematics

Contact / enquiry

Send a question about tutoring, revision courses, website resources or anything else. Your message will be sent to info@radfordmathematics.com.

IB Mathematics: Analysis and Approaches HL — Topic 5 Calculus

AA HL Optimisation

Find the quickest route, largest area and greatest volume using constraints and calculus.

AA HL · AHL 5.14

Learning goal

Build a model, then find and justify its optimum.

Syllabus link

AHL 5.14 Implicit differentiation and endpoint cases.

Big idea

Choose the target quantity before differentiating.

Start with a problem

Where should you join the path to arrive fastest?

1

Which route is quickest?

Worked example 1: Minimise the travel time

Question. A student starts at point \(P\), which is \(300\) m from a straight path. The destination \(Q\) is \(900\) m along the path from the nearest point \(A\). The student walks across grass at \(1.2\text{ m s}^{-1}\), then runs along the path at \(2\text{ m s}^{-1}\).

The student walks from \(P\) to a point \(X\) on the path, then runs from \(X\) to \(Q\). Let \(\theta\) be the angle between \(PX\) and the perpendicular route \(PA\). Find the value of \(\theta\) that minimises the total time.

Walking from P across grass to X and running along a path to Q; PA is 300 metres and AQ is 900 metres

Solution

Step 1: Identify the target and constraint

The target quantity is the total travel time. The constraints come from the right-angled triangle and from the fixed distance \(AQ=900\text{ m}\).

Step 2: Write the model

Let \(\theta\) be the angle between \(PX\) and the perpendicular route \(PA\). Time is distance divided by speed, so

\[\begin{gathered}T=\frac{\text{grass distance}}{1.2}\\+\frac{\text{path distance}}{2}.\end{gathered}\]

From the triangle,

\[\begin{gathered}PX=300\sec\theta, \\ AX=300\tan\theta,\end{gathered}\]

and therefore

\[XQ=900-300\tan\theta.\]

Step 3: Use the constraint

This is direct substitution (Route A): the trigonometric constraints already express every distance in terms of \(\theta\). Substituting gives

\[\begin{gathered}T(\theta)=\frac{300\sec\theta}{1.2}+\frac{900-300\tan\theta}{2} \\=250\sec\theta+450-150\tan\theta.\end{gathered}\]

Because \(X\) lies between \(A\) and \(Q\), the contextual domain is

\[0\leq\theta\leq\arctan 3.\]

Step 4: Optimise and check

Differentiate:

\[\begin{gathered}T'(\theta)=250\sec\theta\tan\theta-150\sec^2\theta \\=50\sec^2\theta\bigl(5\sin\theta-3\bigr).\end{gathered}\]

Set \(T'(\theta)=0\):

\[\begin{gathered}5\sin\theta-3=0 \\\quad\Longrightarrow\quad \sin\theta=\frac35.\end{gathered}\]

Hence

\[\theta=\arcsin\left(\frac35\right).\]

Since \(\sec^2\theta>0\), the sign of \(T'(\theta)\) changes from negative to positive as \(\sin\theta\) passes through \(\frac35\). Therefore the travel time decreases and then increases, so this critical value gives the minimum.

Answer: The minimum time occurs when \(\theta=\arcsin\left(\frac35\right)\).

The four steps, seen in the route problem

  1. Identify. The target is what is being optimised: here, travel time. The constraint is a restriction linking the variables: here, the route geometry.

  2. Model. Write a formula for the target and separate equations for the constraints.

  3. Use the constraint. Make the target depend on one independent variable. In the route problem, every distance was expressed using \(\theta\).

  4. Optimise and check. Find the possible optima, check the allowed domain and endpoints, and justify the answer in context.

The same method applies to area, volume, cost, profit and distance.

Check the whole allowed domain

On \([a,b]\), compare valid stationary points, points where the derivative does not exist, and the endpoints. An endpoint optimum need not satisfy \(Q'(x)=0\). A derivative sign test, second derivative test or direct comparison can justify an interior optimum.

2

What if the best route is not allowed?

An interior optimum may satisfy \(Q'(x)=0\). A restriction can exclude that point, leaving an endpoint as the best choice.

Worked example 2: A barrier changes the best route

Question. A student starts at point \(P\), which is \(300\) m from the nearest point \(A\) on a straight path. The destination \(Q\) is \(900\) m along the path from \(A\). The student walks across grass at \(1.2\text{ m s}^{-1}\), then runs along the path at \(2\text{ m s}^{-1}\).

The student walks from \(P\) to a point \(X\) on the path and then runs from \(X\) to \(Q\). A barrier requires \(AX\leq120\) m. Let \(\theta\) be the angle between \(PX\) and the perpendicular route \(PA\). Find where the student should reach the path to minimise the total travel time.

Solution

Step 1: Identify the target and constraint

The target quantity is the total travel time. The constraints come from the right-angled triangle, the fixed distance \(AQ=900\text{ m}\), and the barrier restriction \(AX\leq120\text{ m}\).

Step 2: Write the model

From the triangle,

\[\begin{gathered}PX=300\sec\theta, \\ AX=300\tan\theta,\end{gathered}\]

so

\[XQ=900-300\tan\theta.\]

Therefore

\[\begin{gathered}T=\frac{PX}{1.2}+\frac{XQ}{2}, \\ AX\leq120.\end{gathered}\]

Step 3: Use the constraint

This is Route A. Substitution gives

\[\begin{gathered}T(\theta)=\frac{300\sec\theta}{1.2}+\frac{900-300\tan\theta}{2} \\=250\sec\theta+450-150\tan\theta.\end{gathered}\]

The barrier restricts the domain:

\[\begin{gathered}300\tan\theta\leq120 \\\quad\Longrightarrow\quad 0\leq\theta\leq\arctan\left(\frac25\right).\end{gathered}\]

Step 4: Optimise and check

Differentiate:

\[\begin{gathered}T'(\theta)=250\sec\theta\tan\theta-150\sec^2\theta \\=50\sec^2\theta\bigl(5\sin\theta-3\bigr).\end{gathered}\]

The unrestricted stationary value would satisfy

\[\begin{gathered}5\sin\theta-3=0 \\\quad\Longrightarrow\quad \sin\theta=\frac35,\end{gathered}\]

for which \(\tan\theta=\frac34\). This would give \(AX=300\left(\frac34\right)=225\text{ m}\), so it is not allowed.

On the allowed interval, \(\theta\leq\arctan\left(\frac25\right)<\arcsin\left(\frac35\right)\), and hence \(T'(\theta)<0\). Therefore \(T\) is decreasing throughout the allowed interval, so the minimum occurs at its right-hand endpoint:

\[AX=120.\]

Answer: The student should reach the path at the furthest allowed point, \(120\) m from \(A\).

3

Keep the constraint implicit

When rearranging a constraint creates a square root or several branches, implicit differentiation can make the working clearer.

Worked example 3: Maximise a rectangle in an ellipse

Question. A rectangle is centred at the origin with its sides parallel to the coordinate axes. Its vertices lie on the ellipse

\[\frac{x^2}{36}+\frac{y^2}{16}=1.\]

Find the maximum possible area of the rectangle.

Rectangle with width 2x and height 2y inscribed in an ellipse with semiaxes 6 and 4

Solution

Step 1: Identify the target and constraint

The target quantity is the area of the rectangle. The constraint is that every vertex lies on the ellipse.

Step 2: Write the model

Work in the first quadrant, so \(x\geq0\) and \(y\geq0\). The rectangle has width \(2x\) and height \(2y\), hence

\[A=4xy.\]

The separate constraint is

\[\frac{x^2}{36}+\frac{y^2}{16}=1.\]

Step 3: Use the constraint

Solving explicitly for \(y\) would give \(y=4\sqrt{1-\frac{x^2}{36}}\), which introduces an unnecessary square root. We therefore use implicit differentiation (Route B). Regard \(y=y(x)\), so that along the ellipse

\[A(x)=4x\,y(x).\]

Differentiate the constraint with respect to \(x\):

\[\frac{x}{18}+\frac{y}{8}\frac{dy}{dx}=0,\]

so

\[\frac{dy}{dx}=-\frac{4x}{9y}.\]

The relevant domain is \(0\leq x\leq6\), with \(y\geq0\).

Why this works. The area still contains \(x\) and \(y\), but \(y=y(x)\) along the ellipse. Substituting for \(\frac{dy}{dx}\) now lets us differentiate the area without solving for \(y\).

Step 4: Optimise and check

Differentiate the target quantity and substitute the result from Step 3:

\[\begin{gathered}\frac{dA}{dx}=4\left(y+x\frac{dy}{dx}\right) \\=4\left(y-\frac{4x^2}{9y}\right).\end{gathered}\]

At an interior critical point,

\[\begin{gathered}\frac{dA}{dx}=0 \\\quad\Longrightarrow\quad 9y^2=4x^2. \end{gathered}\]

This gives a relationship between the variables, not yet their actual values. We now return to the original constraint from Step 2. Since \(y^2=\frac{4x^2}{9}\), substitute into the ellipse:

\[\begin{gathered}\frac{x^2}{36}+\frac{1}{16}\left(\frac{4x^2}{9}\right)=1 \\\quad\Longrightarrow\quad \frac{x^2}{18}=1.\end{gathered}\]

Thus

\[\begin{gathered}x=3\sqrt2, \\ y=2\sqrt2.\end{gathered}\]

Therefore

\[A=4(3\sqrt2)(2\sqrt2)=48.\]

At the endpoints of the first-quadrant arc, \((0,4)\) and \((6,0)\), the rectangle has area \(0\). Hence the interior critical point gives the absolute maximum.

Answer: The maximum possible area is \(48\) square units.

Two ways to use a constraint

Route A – direct substitution. If \(y=g(x)\) is convenient, substitute it into the target:

\[\begin{gathered}Q=F(x,y)\\\quad\Longrightarrow\quad Q(x)=F(x,g(x)).\end{gathered}\]

Route B – implicit differentiation. Keep \(G(x,y)=0\), treat \(y\) as a function of \(x\), and find \(\frac{dy}{dx}\). Substitute this into the derivative of the target. Both \(x\) and \(y\) may remain, but they are linked by the constraint.

In either route, differentiate the target to find its optimum. The equation \(Q'(x)=0\) may give a relationship such as \(9y^2=4x^2\); use the original constraint to find the actual values.

Optimisation with an implicit constraint

Work through the four-step method, then use the original constraint to find and justify the optimum.

Watch on YouTube →

4

Closest and furthest points

Worked example 4: Find the closest and furthest points

Question. Points \((x,y)\) lie on the curve

\[x^2+xy+y^2=21.\]

Find the points on the curve that are closest to the origin and furthest from the origin.

The closed curve x squared plus xy plus y squared equals 21, showing its closest and furthest points from the origin

Solution

Step 1: Identify the target and constraint

The target quantity is the distance from the origin. To avoid a square root, we optimise the square of the distance; this gives the same closest and furthest points. The constraint is the given curve.

Step 2: Write the model

\[\begin{gathered}D^2=x^2+y^2, \\ x^2+xy+y^2=21.\end{gathered}\]

Step 3: Use the constraint

Solving the constraint explicitly for \(y\) would introduce quadratic-formula expressions and two branches. We therefore use Route B: regard \(y=y(x)\) wherever the curve is not vertical and differentiate the constraint:

\[2x+y+x\frac{dy}{dx}+2y\frac{dy}{dx}=0.\]

Hence

\[\begin{gathered}(x+2y)\frac{dy}{dx}=-(2x+y), \\ \frac{dy}{dx}=-\frac{2x+y}{x+2y}.\end{gathered}\]

Along the constraint, the target is the one-variable function

\[D^2(x)=x^2+y(x)^2.\]

In Step 4, this expression for \(\frac{dy}{dx}\) will be substituted into \(\frac{d}{dx}(D^2)\), eliminating \(\frac{dy}{dx}\) from the derivative of the target quantity.

Step 4: Optimise and check

Differentiate:

\[\frac{d}{dx}\left(D^2\right)=2x+2y\frac{dy}{dx}.\]

At a non-vertical critical point,

\[x+y\frac{dy}{dx}=0.\]

Substitute \(\frac{dy}{dx}=-\frac{2x+y}{x+2y}\):

\[x-y\left(\frac{2x+y}{x+2y}\right)=0.\]

Multiplying by \(x+2y\) gives

\[\begin{gathered}x(x+2y)-y(2x+y)=0 \\\quad\Longrightarrow\quad x^2-y^2=0.\end{gathered}\]

Therefore

\[y=x \quad\text{or}\quad y=-x.\]

These are relationships between the variables at the critical points. We now return to the original constraint from Step 2.

If \(y=x\), then

\[\begin{gathered}3x^2=21 \\\quad\Longrightarrow\quad x=\pm\sqrt7,\end{gathered}\]

giving \((\sqrt7,\sqrt7)\) and \((-\sqrt7,-\sqrt7)\), with

\[D^2=14.\]

If \(y=-x\), then

\[\begin{gathered}x^2=21 \\\quad\Longrightarrow\quad x=\pm\sqrt{21},\end{gathered}\]

giving \((\sqrt{21},-\sqrt{21})\) and \((-\sqrt{21},\sqrt{21})\), with

\[D^2=42.\]

For completeness, Route B written as \(y=y(x)\) may miss points with a vertical tangent. These satisfy \(x+2y=0\). Substitution into the constraint gives \(x^2=28\), and hence \(D^2=35\), which lies between \(14\) and \(42\). Because the curve is closed and bounded, comparison of all candidates gives the absolute minimum and maximum.

Answer: Closest: \((\sqrt7,\sqrt7)\), \((-\sqrt7,-\sqrt7)\). Furthest: \((\sqrt{21},-\sqrt{21})\), \((-\sqrt{21},\sqrt{21})\).

5

The largest possible cone

Worked example 5: Maximise the volume of a cone

Question. A right circular cone has fixed slant height \(5\) cm. Its radius is \(r\) cm and its perpendicular height is \(h\) cm.

The dimensions satisfy the implicit constraint

\[r^2+h^2=25.\]

Find the radius and height of the cone that give the maximum possible volume.

Right circular cone with radius r, perpendicular height h and fixed slant height 5 centimetres

Solution

Step 1: Identify the target and constraint

The target quantity is the volume of the cone. The constraint is the fixed slant height, which links \(r\) and \(h\) through

\[r^2+h^2=25.\]

Step 2: Write the model

The volume of a cone is

\[V=\frac13\pi r^2h.\]

The separate constraint is

\[r^2+h^2=25,\]

with \(r\ge 0\) and \(h\ge 0\).

Step 3: Use the constraint

We use Route B. Rather than writing \(h=\sqrt{25-r^2}\), we keep the constraint implicit and regard \(h=h(r)\). Differentiate the constraint with respect to \(r\):

\[2r+2h\frac{dh}{dr}=0.\]

Hence

\[\frac{dh}{dr}=-\frac{r}{h}.\]

Along the constraint, the target is the one-variable function

\[V(r)=\frac13\pi r^2h(r).\]

In Step 4, this expression for \(\frac{dh}{dr}\) will be substituted into \(\frac{dV}{dr}\), eliminating \(\frac{dh}{dr}\) from the derivative of the target quantity.

Step 4: Optimise and check

Differentiate:

\[\frac{dV}{dr}=\frac13\pi\left(2rh+r^2\frac{dh}{dr}\right).\]

Substitute \(\frac{dh}{dr}=-\frac{r}{h}\):

\[\frac{dV}{dr}=\frac13\pi\left(2rh-\frac{r^3}{h}\right).\]

At an interior critical point,

\[\begin{gathered}\frac{dV}{dr}=0 \\\quad\Longrightarrow\quad 2rh-\frac{r^3}{h}=0.\end{gathered}\]

Since \(r>0\) and \(h>0\) for a non-degenerate cone, multiply by \(h\) and factor out \(r\):

\[\begin{gathered}r(2h^2-r^2)=0 \\\quad\Longrightarrow\quad r^2=2h^2.\end{gathered}\]

This gives a relationship between the variables. We now return to the original constraint from Step 2:

\[\begin{gathered}2h^2+h^2=25 \\\quad\Longrightarrow\quad 3h^2=25.\end{gathered}\]

Therefore

\[h=\frac{5}{\sqrt3}\text{ cm}\]

and

\[\begin{gathered}r^2=\frac{50}{3} \\\quad\Longrightarrow\quad r=\frac{5\sqrt6}{3}\text{ cm}.\end{gathered}\]

At the endpoints \((r,h)=(0,5)\) and \((5,0)\), the volume is \(0\). Hence the interior critical point gives the absolute maximum.

The maximum volume is

\[\begin{gathered}V_{\max}=\frac13\pi r^2h\\=\frac13\pi\left(\frac{50}{3}\right)\left(\frac{5}{\sqrt3}\right)\\=\frac{250\pi}{9\sqrt3}\text{ cm}^3.\end{gathered}\]

Answer: The cone of maximum volume has radius \(\frac{5\sqrt6}{3}\) cm and height \(\frac{5}{\sqrt3}\) cm.

6

Practice questions

The first six questions provide shorter practice on the main AA HL optimisation techniques. Questions 7 to 10 are IB AA HL exam-style questions on this topic, with structured parts and diagrams.

  1. Minimum-time route. A person starts \(250\) m from a straight road. Their destination is \(1000\) m along the road from the nearest point \(A\). They cross the field at \(1\text{ m s}^{-1}\) and then run along the road at \(2.5\text{ m s}^{-1}\). Let \(\theta\) be the angle between the crossing route and the perpendicular route to the road. Show that the minimum time occurs when \(\sin\theta=\frac25\), and find the distance along the road already covered when the person reaches the road.

    Minimum-time route across a field 250 metres wide to a road, with the destination 1000 metres along the road
  2. Endpoint restriction. A student is \(300\) m from a straight path. Their destination is \(900\) m along the path from the nearest point \(A\). They walk across grass at \(1.2\text{ m s}^{-1}\) and then run along the path at \(2\text{ m s}^{-1}\). The point where they reach the path must satisfy \(AX\le 120\) m. Let \(\theta\) be the angle between the route across the grass and the perpendicular route to the path. Find where the student should reach the path to minimise the total time.

    Walking-and-running route with perpendicular distance 300 metres, path distance 900 metres and restricted distance AX
  3. Maximum rectangle in an ellipse. A rectangle is centred at the origin with sides parallel to the coordinate axes. Its vertices lie on the ellipse

    \[\frac{x^2}{49}+\frac{y^2}{25}=1.\]

    Use implicit differentiation to find the maximum possible area of the rectangle.

    Rectangle inscribed in an ellipse with semiaxes 7 and 5
  4. Rectangle under an implicit curve. A rectangle has vertices \((0,0)\), \((x,0)\), \((x,y)\) and \((0,y)\), where \(x>0\) and \(y>0\). The point \((x,y)\) lies on the curve

    \[x^2+xy+y^2=12.\]

    Find the maximum possible area of the rectangle.

    First-quadrant rectangle with upper-right corner on the curve x squared plus xy plus y squared equals 12
  5. Maximum-volume cone. A right circular cone has fixed slant height \(10\) cm. Its radius is \(r\) cm and its perpendicular height is \(h\) cm. The dimensions satisfy the implicit constraint \(r^2+h^2=100\). Find the radius and height that give the maximum possible volume.

    Cone with fixed slant height 10 centimetres and variable radius r and height h
  6. Closest and furthest points. Points \((x,y)\) lie on the curve

    \[x^2+xy+y^2=12.\]

    Find the points on the curve that are closest to the origin and furthest from the origin.

    The closed curve x squared plus xy plus y squared equals 12

IB AA HL exam-style questions: Questions 7–10

Use the structured parts to build each solution.

  1. [IB AA HL exam style] The diagram shows a rectangle centred at the origin, with sides parallel to the coordinate axes. Its vertices lie on the ellipse

    \[\frac{x^2}{36}+\frac{y^2}{16}=1.\]
    Rectangle centred at the origin with vertices on the ellipse with semiaxes 6 and 4
    1. Show that the area of the rectangle is \(A=4xy\).

    2. Differentiate the constraint implicitly to show that

      \[\frac{dy}{dx}=-\frac{4x}{9y}.\]
    3. Hence show that, at a stationary value of \(A\),

      \[9y^2=4x^2.\]
    4. Find the maximum possible area of the rectangle.

  2. [IB AA HL exam style] A right circular cone has fixed slant height \(6\) cm. Its radius is \(r\) cm and its perpendicular height is \(h\) cm.

    Cone with fixed slant height 6 centimetres and variable radius r and height h
    1. Show that the dimensions satisfy

      \[r^2+h^2=36.\]
    2. Write down a formula for the volume \(V\) of the cone.

    3. By differentiating implicitly, show that

      \[\frac{dV}{dr}=\frac{\pi}{3}\left(2rh-\frac{r^3}{h}\right).\]
    4. Hence find the values of \(r\) and \(h\) that give the maximum possible volume.

  3. [IB AA HL exam style] Points \((x,y)\) lie on the curve

    \[x^2+xy+y^2=21.\]
    The closed curve x squared plus xy plus y squared equals 21
    1. Explain why it is convenient to optimise \(D^2=x^2+y^2\) rather than \(D\), where \(D\) is the distance from the origin.

    2. Differentiate the constraint implicitly to show that

      \[\frac{dy}{dx}=-\frac{2x+y}{x+2y}.\]
    3. Hence show that non-vertical stationary points satisfy

      \[x^2-y^2=0.\]
    4. Find the points on the curve that are closest to the origin and furthest from the origin.

  4. [IB AA HL exam style] A rectangle lies in the first quadrant with one vertex at the origin and top-right corner \((x,y)\) on the curve

    \[\begin{gathered}x^2+4xy+4y^2=64, \\ x>0,\; y>0.\end{gathered}\]
    First-quadrant rectangle under the line x plus 2y equals 8
    1. Show that the area of the rectangle is \(A=xy\).

    2. Differentiate the constraint implicitly to show that

      \[\frac{dy}{dx}=-\frac12.\]
    3. Hence show that, at a stationary value of \(A\),

      \[y=\frac{x}{2}.\]
    4. Find the maximum possible area of the rectangle.

7

Answer key

1. Minimum-time route

\[\begin{gathered}T(\theta)=250\sec\theta+\frac{1000-250\tan\theta}{2.5}\\=250\sec\theta+400-100\tan\theta.\end{gathered}\]

Then

\[T'(\theta)=250\sec\theta\tan\theta-100\sec^2\theta.\]

Setting \(T'(\theta)=0\) gives

\[\begin{gathered}5\tan\theta-2\sec\theta=0 \\\quad\Longrightarrow\quad 5\sin\theta=2.\end{gathered}\]

Hence \(\sin\theta=\frac25\). Then

\[\tan\theta=\frac{2}{\sqrt{21}},\]

so the distance already covered along the road is

\[250\tan\theta=\frac{500}{\sqrt{21}}\text{ m}.\]

On \(0\leq\theta\leq\arctan 4\), the derivative has the sign of \(5\sin\theta-2\). It changes from negative to positive, so this stationary point gives the minimum.

2. Endpoint restriction

The time function is

\[T(\theta)=250\sec\theta+450-150\tan\theta,\]

and the restriction \(AX\le 120\) gives

\[\begin{gathered}300\tan\theta\le 120 \\\quad\Longrightarrow\quad \tan\theta\le \frac25.\end{gathered}\]

The unrestricted optimum satisfies \(\sin\theta=\frac35\), which gives \(\tan\theta=\frac34\), so it is not allowed. On the permitted interval,

\[T'(\theta)=50\sec^2\theta(5\sin\theta-3)<0,\]

so \(T\) is decreasing. The minimum occurs at the endpoint, so

\[AX=120\text{ m}.\]

3. Rectangle in an ellipse

\[\begin{gathered}A=4xy, \\ \frac{x^2}{49}+\frac{y^2}{25}=1.\end{gathered}\]

Implicit differentiation gives

\[\frac{dy}{dx}=-\frac{25x}{49y}.\]

So

\[\frac{dA}{dx}=4\left(y-\frac{25x^2}{49y}\right).\]

Setting \(\frac{dA}{dx}=0\) gives \(y^2=\frac{25x^2}{49}\). Substituting into the ellipse gives

\[\begin{gathered}\frac{2x^2}{49}=1 \\\Longrightarrow x=\frac{7}{\sqrt2}, \quad y\\=\frac{5}{\sqrt2}.\end{gathered}\]

Hence

\[\begin{gathered}A_{\max}=4\left(\frac{7}{\sqrt2}\right)\left(\frac{5}{\sqrt2}\right)\\=70.\end{gathered}\]

The area is zero at the endpoints of the first-quadrant arc. This is the only interior stationary point, so it gives the absolute maximum.

4. Rectangle under an implicit curve

\[\begin{gathered}A=xy, \\ x^2+xy+y^2=12.\end{gathered}\]

Implicit differentiation gives

\[\begin{gathered}2x+y+(x+2y)\frac{dy}{dx}=0 \\\quad\Longrightarrow\quad \frac{dy}{dx}=-\frac{2x+y}{x+2y}.\end{gathered}\]

Then

\[\frac{dA}{dx}=y+x\frac{dy}{dx}.\]

Setting \(\frac{dA}{dx}=0\) leads to

\[\begin{gathered}y(x+2y)=x(2x+y) \\\quad\Longrightarrow\quad y^2=x^2.\end{gathered}\]

Since \(x>0\) and \(y>0\), \(y=x\). Substituting into the constraint gives

\[\begin{gathered}3x^2=12 \\\Longrightarrow x=2, \quad y=2.\end{gathered}\]

Therefore

\[A_{\max}=xy=4.\]

At the ends of the first-quadrant arc, one side tends to zero and hence the area tends to zero. The positive interior stationary value is therefore the maximum.

5. Maximum-volume cone

\[\begin{gathered}V=\frac13\pi r^2h, \\ r^2+h^2=100.\end{gathered}\]

Differentiate the constraint implicitly:

\[\begin{gathered}2r+2h\frac{dh}{dr}=0 \\\quad\Longrightarrow\quad \frac{dh}{dr}=-\frac{r}{h}.\end{gathered}\]

Then

\[\begin{gathered}\frac{dV}{dr}=\frac13\pi\left(2rh+r^2\frac{dh}{dr}\right) \\=\frac13\pi\left(2rh-\frac{r^3}{h}\right).\end{gathered}\]

At a stationary point,

\[\begin{gathered}2rh-\frac{r^3}{h}=0 \\\quad\Longrightarrow\quad r^2=2h^2.\end{gathered}\]

Using the constraint,

\[\begin{gathered}3h^2=100 \\\Longrightarrow h=\frac{10}{\sqrt3}, \\ r=\frac{10\sqrt6}{3}.\end{gathered}\]

So the cone of maximum volume has radius \(\frac{10\sqrt6}{3}\) cm and height \(\frac{10}{\sqrt3}\) cm.

The endpoint volumes are zero at \((r,h)=(0,10)\) and \((10,0)\). The only positive interior stationary volume is the absolute maximum.

6. Closest and furthest points on \(x^2+xy+y^2=12\)

Optimise \(D^2=x^2+y^2\). Implicit differentiation of the constraint gives

\[\frac{dy}{dx}=-\frac{2x+y}{x+2y}.\]

At a non-vertical stationary point,

\[\begin{gathered}x+y\frac{dy}{dx}=0 \\\quad\Longrightarrow\quad x^2-y^2=0,\end{gathered}\]

so \(y=x\) or \(y=-x\). If \(y=x\), then \(3x^2=12\), so the points are \((2,2)\) and \((-2,-2)\), with \(D^2=8\). If \(y=-x\), then \(x^2=12\), so the points are \((2\sqrt3,-2\sqrt3)\) and \((-2\sqrt3,2\sqrt3)\), with \(D^2=24\). Vertical tangents satisfy \(x+2y=0\). Substituting \(x=-2y\) into the constraint gives \(y^2=4\), \(x^2=16\), and hence \(D^2=20\). This lies between \(8\) and \(24\), so these points are not extreme.

Closest: \((2,2)\), \((-2,-2)\). Furthest: \((2\sqrt3,-2\sqrt3)\), \((-2\sqrt3,2\sqrt3)\).

7. IB exam-style rectangle in an ellipse

(a) \(A=(2x)(2y)=4xy\).

(b) Differentiating \(\frac{x^2}{36}+\frac{y^2}{16}=1\) gives

\[\begin{gathered}\frac{x}{18}+\frac{y}{8}\frac{dy}{dx}=0 \\\quad\Longrightarrow\quad \frac{dy}{dx}=-\frac{4x}{9y}.\end{gathered}\]

(c) Since \(A=4xy\),

\[\begin{gathered}\frac{dA}{dx}=4\left(y+x\frac{dy}{dx}\right)\\=4\left(y-\frac{4x^2}{9y}\right).\end{gathered}\]

At a stationary point, \(\frac{dA}{dx}=0\), so \(9y^2=4x^2\).

(d) Substitute \(y^2=\frac{4x^2}{9}\) into the ellipse:

\[\begin{gathered}\frac{x^2}{36}+\frac{1}{16}\left(\frac{4x^2}{9}\right)=1 \\\quad\Longrightarrow\quad \frac{x^2}{18}=1.\end{gathered}\]

Hence \(x=3\sqrt2\), \(y=2\sqrt2\), and

\[A_{\max}=4(3\sqrt2)(2\sqrt2)=48.\]

At the endpoints of the first-quadrant arc the area is zero; the only interior stationary point gives the maximum.

8. IB exam-style cone

(a) By Pythagoras, \(r^2+h^2=36\).

(b) \(V=\frac13\pi r^2h\).

(c) Differentiate implicitly:

\[\begin{gathered}2r+2h\frac{dh}{dr}=0 \\\quad\Longrightarrow\quad \frac{dh}{dr}=-\frac{r}{h}.\end{gathered}\]

Then

\[\begin{gathered}\frac{dV}{dr}=\frac13\pi\left(2rh+r^2\frac{dh}{dr}\right)\\=\frac{\pi}{3}\left(2rh-\frac{r^3}{h}\right).\end{gathered}\]

(d) Setting \(\frac{dV}{dr}=0\) gives \(r^2=2h^2\). Using \(r^2+h^2=36\),

\[\begin{gathered}3h^2=36 \\\Longrightarrow h=2\sqrt3, \\ r=2\sqrt6.\end{gathered}\]

Maximum-volume dimensions: \(r=2\sqrt6\) cm, \(h=2\sqrt3\) cm.

The endpoint volumes are zero at \((r,h)=(0,6)\) and \((6,0)\), so the only positive interior stationary value gives the maximum.

9. IB exam-style closest and furthest points

(a) Optimising \(D^2\) avoids the square root and gives the same closest and furthest points as optimising \(D\).

(b) Differentiating \(x^2+xy+y^2=21\) gives

\[\begin{gathered}2x+y+(x+2y)\frac{dy}{dx}=0 \\\quad\Longrightarrow\quad \frac{dy}{dx}=-\frac{2x+y}{x+2y}.\end{gathered}\]

(c) From \(\frac{d}{dx}(D^2)=2x+2y\frac{dy}{dx}=0\), substitute for \(\frac{dy}{dx}\):

\[\begin{gathered}x-y\left(\frac{2x+y}{x+2y}\right)=0 \\\quad\Longrightarrow\quad x^2-y^2=0.\end{gathered}\]

(d) So \(y=x\) or \(y=-x\). If \(y=x\), then \(3x^2=21\), giving \((\sqrt7,\sqrt7)\) and \((-\sqrt7,-\sqrt7)\), with \(D^2=14\). If \(y=-x\), then \(x^2=21\), giving \((\sqrt{21},-\sqrt{21})\) and \((-\sqrt{21},\sqrt{21})\), with \(D^2=42\). Thus the closest points are \((\sqrt7,\sqrt7)\) and \((-\sqrt7,-\sqrt7)\), and the furthest points are \((\sqrt{21},-\sqrt{21})\) and \((-\sqrt{21},\sqrt{21})\).

Also check the vertical tangents: \(x+2y=0\) gives \(D^2=35\). This is between \(14\) and \(42\). The curve is closed and bounded, so comparison of all candidates establishes both absolute extrema.

10. IB exam-style rectangle in the first quadrant

(a) The area is \(A=xy\).

(b) Differentiate \(x^2+4xy+4y^2=64\):

\[2x+4\left(y+x\frac{dy}{dx}\right)+8y\frac{dy}{dx}=0.\]

Hence

\[\begin{gathered}(4x+8y)\frac{dy}{dx}=-(2x+4y) \\\quad\Longrightarrow\quad \frac{dy}{dx}=-\frac12.\end{gathered}\]

(c) Since \(\frac{dA}{dx}=y+x\frac{dy}{dx}\),

\[\frac{dA}{dx}=y-\frac{x}{2}.\]

At a stationary point, \(\frac{dA}{dx}=0\), so

\[y=\frac{x}{2}.\]

(d) Substitute into the constraint:

\[\begin{gathered}x^2+4x\left(\frac{x}{2}\right)+4\left(\frac{x}{2}\right)^2=64 \\\quad\Longrightarrow\quad 4x^2=64.\end{gathered}\]

Thus \(x=4\), \(y=2\), and

\[A_{\max}=xy=8.\]

In the first quadrant, the constraint is \(x+2y=8\). At either end of this segment the area tends to zero, so the only positive interior stationary value is the maximum.