Optimisation and the Behaviour of Implicitly Defined Relations

AP Calculus BC · Unit 5 — Analytical Applications of Differentiation

The five-step optimisation routine

(1) Draw and label. (2) Write the quantity to be optimised as a formula. (3) Use the constraint to reduce it to one variable, and state the domain that the physical situation allows. (4) Differentiate, set equal to zero, solve. (5) Justify that the critical value gives the extremum you claim, then answer the question that was actually asked.

Step 5 is where AP points are won and lost. Two acceptable justifications: a sign chart for the first derivative, or the second derivative test. If the domain is a closed interval you may instead use the candidates test. Simply asserting "this is the maximum" earns nothing.

Implicitly defined relations

The same analysis applies to a curve given by an equation in $x$ and $y$. Compute $\dfrac{dy}{dx}$ implicitly; the tangent is horizontal where the numerator vanishes and the denominator does not, and vertical where the denominator vanishes and the numerator does not. To classify such a point, compute $\dfrac{d^2y}{dx^2}$ and simplify using the fact that $\dfrac{dy}{dx}=0$ there — that substitution collapses most of the algebra.

(x, y) tren elipxy32dien tich = 4xy, rang buoc: x²/9 + y²/4 = 1
Why one quadrant is enough. A rectangle inscribed in the ellipse $\dfrac{x^2}{9}+\dfrac{y^2}{4}=1$ with two sides parallel to the axes is completely determined by one vertex $(x,y)$ in the first quadrant; the other three vertices are its symmetric images. So the area simplifies to $A=4xy$ — the factor of four is the four quadrants. The constraint is the ellipse equation, and the natural domain is $0\lt x<3$: at the two ends $x=0$ and $x=3$ the rectangle degenerates into a line segment with area $0$.

Worked example: a rectangle inscribed in an ellipse

Find the maximum area of a rectangle with sides parallel to the axes that is inscribed in the ellipse $\dfrac{x^2}{9}+\dfrac{y^2}{4}=1$.

Solution

Steps 1 and 2. Let $(x,y)$ be the vertex in the first quadrant, $x>0$, $y>0$. The area is $A=(2x)(2y)=4xy$.

Step 3 — eliminate one variable. From the constraint, $y=2\sqrt{1-\dfrac{x^2}{9}}=\dfrac{2}{3}\sqrt{9-x^2}$, so

$$A(x)=\frac{8}{3}x\sqrt{9-x^2},\qquad 0<x<3$$

Step 4 — differentiate. Exactly the form seen in the previous problem:

$$A'(x)=\frac{8}{3}\cdot\frac{9-2x^2}{\sqrt{9-x^2}}$$

Set it equal to $0$: $9-2x^2=0$, that is, $x=\dfrac{3}{\sqrt2}$ (reject the negative solution because the domain is $x>0$).

Step 5 — justification. The denominator $\sqrt{9-x^2}$ is positive on the whole domain, so the sign of $A'$ is the sign of $9-2x^2$: positive when $x<\dfrac{3}{\sqrt2}$, negative when $x>\dfrac{3}{\sqrt2}$. The sign changes from $+$ to $-$, so it is a maximum, and since it is the only critical point on the interval, it is also the absolute maximum.

Answer. Then $y=\dfrac{2}{3}\sqrt{9-\dfrac92}=\dfrac{2}{3}\cdot\dfrac{3}{\sqrt2}=\sqrt2$, and

$$A=4\cdot\frac{3}{\sqrt2}\cdot\sqrt2=12$$

The maximum area is $12$. The problem asks for the area, so the answer is $12$, not the pair $\left(\dfrac{3}{\sqrt2},\sqrt2\right)$.

Common mistake

The costliest trap in the whole optimization chapter is finding $x$ and stopping. If the problem asks for the area, you must answer with the area number; if it asks for the dimensions, you must answer with both sides. How to prevent it: underline the last question of the problem before you start calculating, and when you get $x$, reread the underlined part. The second trap: dropping the extremum justification altogether. For AP, one line of a sign chart or one line $A''<0$ is enough, but with no line at all you lose the point even when the answer is right.

Key takeaway

Use the constraint to eliminate a variable, use the domain to know whether there are endpoints, and keep one line of justification to hold on to the point. For implicit curves, horizontal means numerator $0$, vertical means denominator $0$, and to classify, substitute $\dfrac{dy}{dx}=0$ into the second derivative.

← Concavity, the Second Derivative Test, and Points of Inflection · All AP Calculus BC lessons · Practice AP Calculus BC questions (free, instant scoring) · Riemann Sums, the Definite Integral, and Accumulation →