Optimize and analyze implicit relations

Define feasible domains and justify an optimal or implicit-function conclusion

What to practice

  • Define feasible domains and justify an optimal or implicit-function conclusion

Chapters 11 and 12 found and classified extrema of functions that were given to you. This chapter adds two tasks where you supply more of the setup. In an applied problem you build the function and its domain before any calculus starts (topics 5.10 and 5.11). For a curve given by an equation in xx and yy, you locate horizontal and vertical tangents and read a second derivative that contains yy (topic 5.12). In both settings the derivative produces candidates. The conclusion still needs a reason that covers every allowed input.

Predict first. An open box is folded from a 48 cm by 30 cm sheet after equal squares are cut from its corners. Is the best cut nearer 1 cm, 6 cm or 12 cm? Keep your guess for Worked example 13.1.

Build the model before you differentiate (topic 5.10)

Applied optimization fails more often in the setup than in the derivative. Work in this order.

  1. Name the quantity to optimize and the variable you control, with units.
  2. Write the quantity as a function of one variable, using the constraint to remove any other variable.
  3. State the feasible domain: the inputs that describe a real object or situation.
  4. Find the critical numbers inside that domain and justify the absolute extremum on the whole domain.
  5. Answer the question asked, in context and with units.

Worked example 13.1: an open box from a sheet

A box with no lid is made from a 48 cm by 30 cm sheet by cutting a square of side xx cm from each corner and folding up the sides. Find the cut that gives the greatest volume.

The base measures 48−2x48-2x by 30−2x30-2x and the height is xx, so

V(x)=x(30−2x)(48−2x)=4x3−156x2+1440xV(x)=x(30-2x)(48-2x)=4x^3-156x^2+1440x

Every length must be positive, so the feasible domain is 0<x<150<x<15; the short side limits the cut. Differentiate and factor: V′(x)=12x2−312x+1440=12(x−6)(x−20)V'(x)=12x^2-312x+1440=12(x-6)(x-20). The critical number x=20x=20 lies outside the domain. It belongs to the formula, not to any box, so discard it. On (0,15)(0,15) the factor x−20x-20 is negative, so V′V' has the sign of −(x−6)-(x-6): positive on (0,6)(0,6) and negative on (6,15)(6,15). VV increases up to 6 and decreases afterward, so V(6)=6(18)(36)=3888V(6)=6(18)(36)=3888 is the absolute maximum on the feasible domain. Cut 6 cm squares. The box measures 36 cm by 18 cm by 6 cm and holds 3888 cubic centimeters.

Figure 13.1 shows the problem in two representations. The sheet explains where each factor of the formula comes from. The graph shows why the domain matters: the formula keeps producing values past x=15x=15, including at the rejected critical number, but no box exists there.

Two panels. Panel A shows a 48 centimeter by 30 centimeter rectangular sheet with a hatched x by x square at each corner and dashed fold lines; the base in the middle is labeled 48 minus 2x by 30 minus 2x. Panel B graphs V of x equals x times 30 minus 2x times 48 minus 2x against x, the side of each cut square in centimeters. A solid curve over the feasible interval from 0 to 15 starts at an open circle at the origin, rises to a filled point labeled maximum (6, 3888) and falls to an open circle at (15, 0). A dashed gray continuation, labeled same formula, no box exists, dips below the axis to an x mark at (20, negative 1600), labeled critical number x equals 20 outside the domain. A thick bar under the axis marks the feasible inputs 0 less than x less than 15.

Figure 13.1. Build the formula from the picture, then keep only the inputs that describe a real box.

Justify a global answer on the feasible domain (topic 5.11)

A critical number is a candidate, not an answer. The exam asks for an absolute extremum, and the justification must cover every feasible input. Choose one of two arguments.

  • Closed interval: the Candidates Test. If the function is continuous on [a,b][a,b], the Extreme Value Theorem guarantees at least one maximum value and at least one minimum value, as stated in the Fall 2026 clarification of the course framework. Compare the function's values at both endpoints and at every critical number inside (Chapter 11).
  • Any interval: a sign argument. If the derivative is positive to the left of cc and negative to the right of cc throughout the domain, the function rises to cc and falls after it, so cc gives the absolute maximum. This works on open and unbounded domains, where the Candidates Test has no endpoints to check.

Two shortcuts fail. "f′(c)=0f'(c)=0" alone does not show a maximum. Checking two nearby inputs only shows a local comparison.

Worked example 13.2: minimize the square of a distance

Find the point on the curve y=2xy=\sqrt{2x} closest to (5,0)(5,0).

Method choice. A point on the curve is (x,2x)\left(x,\sqrt{2x}\right) with x≥0x\geq 0. Its distance to (5,0)(5,0) is D=(x−5)2+2xD=\sqrt{(x-5)^2+2x}. Because the square root is increasing, DD and D2D^2 are smallest at the same input. Minimize S(x)=D2=x2−8x+25S(x)=D^2=x^2-8x+25 to avoid differentiating a root.

S′(x)=2x−8S'(x)=2x-8, which is 0 at x=4x=4. The domain [0,∞)[0,\infty) has no right endpoint, so use the sign argument: S′<0S'<0 on [0,4)[0,4) and S′>0S'>0 on (4,∞)(4,\infty). So SS is least at x=4x=4, where S(4)=9S(4)=9. The closest point is (4,22)\left(4,2\sqrt{2}\right) and the least distance is 9=3\sqrt{9}=3. The endpoint gives S(0)=25S(0)=25, a distance of 5, which agrees. Report DD, not D2D^2, when the question asks for a distance.

Worked example 13.3: when the critical number is not allowed

A theater has 300 seats. At a ticket price of pp dollars, 900−30p900-30p people want tickets, for 0≤p≤300\leq p\leq 30. Find the price that maximizes ticket revenue.

Treat R(p)=p(900−30p)R(p)=p(900-30p) as revenue and solve R′(p)=900−60p=0R'(p)=900-60p=0 to get p=15p=15. At that price 450 people want seats, but only 300 exist. The model has to respect the seat limit. When 900−30p≥300900-30p\geq 300, that is p≤20p\leq 20, the show sells out and revenue is 300p300p, which increases with pp. So the best price is at least 20 dollars. On [20,30][20,30], R′(p)=900−60p≤−300<0R'(p)=900-60p\leq -300<0, so RR decreases. The maximum is at p=20p=20: revenue 20(300)=600020(300)=6000 dollars, with every seat sold. The unconstrained critical number answered a question about a larger theater.

Find where an implicit curve is horizontal or vertical (topic 5.12)

Chapter 7 differentiated implicitly: differentiate both sides with respect to xx, treat yy as a function of xx, and solve for dydx\frac{dy}{dx}. Write the result as a fraction ND\frac{N}{D} in xx and yy. Then:

  • Horizontal tangent: N=0N=0 and D≠0D\neq 0 at a point on the curve.
  • Vertical tangent: D=0D=0 and N≠0N\neq 0 at a point on the curve.
  • Both zero: 00\frac{0}{0} decides nothing. Examine the curve near the point.

Every candidate must satisfy the original equation. Setting N=0N=0 gives a relation between xx and yy; substitute it into the curve's equation to find actual points.

Worked example 13.4: tangents on a tilted ellipse

For x2−xy+y2=12x^2-xy+y^2=12, differentiate: 2x−(y+xdydx)+2ydydx=02x-\left(y+x\frac{dy}{dx}\right)+2y\frac{dy}{dx}=0, so

dydx=y−2x2y−x\frac{dy}{dx}=\frac{y-2x}{2y-x}

Horizontal: y=2xy=2x. Substitute into the curve: x2−2x2+4x2=3x2=12x^2-2x^2+4x^2=3x^2=12, so x=±2x=\pm 2. The points are (2,4)(2,4) and (−2,−4)(-2,-4), where the denominator is ±6≠0\pm 6\neq 0. Vertical: x=2yx=2y. Substitute: 4y2−2y2+y2=3y2=124y^2-2y^2+y^2=3y^2=12, so y=±2y=\pm 2. The points are (4,2)(4,2) and (−4,−2)(-4,-2), where the numerator is ∓6≠0\mp 6\neq 0. Figure 13.2A shows all four.

Two panels. Panel A graphs the tilted ellipse x squared minus x y plus y squared equals 12, a closed oval leaning up to the right. Filled dots with short dashed horizontal segments mark (2, 4) at the top and (negative 2, negative 4) at the bottom. Open squares with short dotted vertical segments mark (4, 2) on the right and (negative 4, negative 2) on the left. Panel B graphs (y minus 2) squared equals (x minus 2) squared times (x plus 1) for x from negative 1 to about 3.6: a loop that crosses itself at (2, 2), with two branches continuing to the right, one rising and one falling. Filled dots with dashed horizontal segments mark (0, 4) and (0, 0); an open square with a dotted vertical segment marks (negative 1, 2); a gray diamond marks the crossing point (2, 2), with two dash-dot segments showing the two branch directions there. A key under the panels explains the line styles.

Figure 13.2. Horizontal and vertical tangents on two implicit curves. At the gray diamond the slope formula reads 0/0, and the curve has two directions.

Worked example 13.5: diagnose a tangent-point solution

A student analyzes y2−4y=x3−3x2y^2-4y=x^3-3x^2 and writes:

"2ydydx−4dydx=3x2−6x2y\frac{dy}{dx}-4\frac{dy}{dx}=3x^2-6x, so dydx=3x(x−2)2(y−2)\frac{dy}{dx}=\frac{3x(x-2)}{2(y-2)}. Horizontal tangents occur where 3x(x−2)=03x(x-2)=0, at x=0x=0 and x=2x=2. At x=0x=0, y=0y=0 or y=4y=4; at x=2x=2, y=2y=2. So the horizontal tangents are at (0,0)(0,0), (0,4)(0,4) and (2,2)(2,2)."

The derivative is correct, and (0,0)(0,0) and (0,4)(0,4) are correct: the denominator there is −4-4 or 44. The error is (2,2)(2,2), where the denominator is also 0. The formula gives 00\frac{0}{0}, which fails the condition D≠0D\neq 0. Rewriting the curve shows what happens there. Adding 4 to both sides gives (y−2)2=x3−3x2+4=(x−2)2(x+1)(y-2)^2=x^3-3x^2+4=(x-2)^2(x+1), so near x=2x=2 the curve is two branches, y=2±(x−2)x+1y=2\pm(x-2)\sqrt{x+1}. The branches cross at (2,2)(2,2) with slopes 3\sqrt{3} and −3-\sqrt{3}, as the gray diamond in Figure 13.2B shows. Neither is horizontal.

Repair: "Horizontal tangents occur at (0,0)(0,0) and (0,4)(0,4), where the numerator is 0 and the denominator is not. At (2,2)(2,2) both are 0, so the derivative gives no conclusion." The same check finds the vertical tangent. D=0D=0 when y=2y=2, and then (x−2)2(x+1)=0(x-2)^2(x+1)=0. At (−1,2)(-1,2) the numerator is 9≠09\neq 0, so the tangent there is vertical.

Decide local behavior with the second derivative

For an implicit curve, d2ydx2\frac{d^2y}{dx^2} comes from differentiating dydx\frac{dy}{dx} implicitly again. The result contains xx, yy and dydx\frac{dy}{dx}. Substitute the point and the slope there before you simplify.

Worked example 13.6: a high point on the ellipse

Classify the point (2,4)(2,4) on x2−xy+y2=12x^2-xy+y^2=12. Apply the quotient rule to dydx=y−2x2y−x\frac{dy}{dx}=\frac{y-2x}{2y-x}:

d2ydx2=(dydx−2)(2y−x)−(y−2x)(2dydx−1)(2y−x)2\frac{d^2y}{dx^2}=\frac{\left(\frac{dy}{dx}-2\right)(2y-x)-(y-2x)\left(2\frac{dy}{dx}-1\right)}{(2y-x)^2}

At (2,4)(2,4), dydx=0\frac{dy}{dx}=0, so the numerator is (−2)(6)−0=−12(-2)(6)-0=-12 and d2ydx2=−1236=−13\frac{d^2y}{dx^2}=-\frac{12}{36}=-\frac{1}{3}. The slope is 0 and the curve bends down, so near (2,4)(2,4) the curve, viewed as a function of xx, has a relative maximum. This is the Second Derivative Test from Chapter 12, applied to one branch of the curve.

A global claim needs more. The ellipse is bounded, so it has a highest point, and the slope there must be 0 because the tangent cannot be vertical. Its horizontal tangents are only at y=4y=4 and y=−4y=-4, so y=4y=4 is the greatest yy-value on the curve.

Try it

Try it 13.1. A rectangle has its base on the xx-axis and its upper corners on y=12−x2y=12-x^2. Find the greatest possible area and justify that it is the absolute maximum.

Solution. With upper corners at (±x,12−x2)\left(\pm x,12-x^2\right), A(x)=2x(12−x2)A(x)=2x\left(12-x^2\right) on 0<x<230<x<2\sqrt{3}. A′(x)=24−6x2A'(x)=24-6x^2 is 0 at x=2x=2, positive on (0,2)(0,2) and negative on (2,23)\left(2,2\sqrt{3}\right). The absolute maximum is A(2)=32A(2)=32 square units, from a rectangle 4 wide and 8 tall.

Try it 13.2. A pen is built against a barn wall 30 m long, using the wall for one side and 100 m of fence for the other three. Maximize the area.

Solution. With ww the side perpendicular to the wall, the side along the wall is 100−2w100-2w, and A(w)=w(100−2w)A(w)=w(100-2w). A′(w)=0A'(w)=0 at w=25w=25, but then the wall side would be 50 m. The wall forces 100−2w≤30100-2w\leq 30, so 35≤w<5035\leq w<50, and there A′(w)=100−4w<0A'(w)=100-4w<0. The maximum is A(35)=1050A(35)=1050 square meters, using the whole wall.

Try it 13.3. For y2+2y=x3−3xy^2+2y=x^3-3x, find every point with a horizontal tangent.

Solution. dydx=3(x2−1)2(y+1)\frac{dy}{dx}=\frac{3\left(x^2-1\right)}{2(y+1)}, so x=±1x=\pm 1. At x=1x=1, y2+2y+2=0y^2+2y+2=0 has no real solution. At x=−1x=-1, y2+2y−2=0y^2+2y-2=0 gives y=−1±3y=-1\pm\sqrt{3}, where y+1≠0y+1\neq 0. The points are (−1,−1+3)\left(-1,-1+\sqrt{3}\right) and (−1,−1−3)\left(-1,-1-\sqrt{3}\right).

Check your work

  • Did you state the feasible domain before differentiating, and reject critical numbers outside it?
  • Does the justification cover the whole domain: a Candidates Test on a closed interval, or a sign argument?
  • For an implicit curve, does each claimed point satisfy the original equation, with the other part of the fraction nonzero?
  • Did you answer the question asked: a location, a value or a distance, with units?

Practice

This chapter's bank items are APCAL-C13-M01 to APCAL-C13-M13, printed after the companion panel as Questions 169–181, and the nine-point written task APCAL-C13-F01, printed as Written task 18. Questions 169–177 and Written task 18 are no-calculator work. Questions 178–181 require a graphing calculator in radian mode; give decimals to the nearest thousandth. Answers, the error behind each wrong choice, the rubric and a complete response are in Answers, explanations and written responses, under Chapter 13: answers and explanations.

Review and retrieve

Wait two days. Then, without notes, write the five setup steps and redo Worked example 13.4 from its equation. About a week later, mix this chapter with Chapter 12: for x2+xy+y2=27x^2+xy+y^2=27, find the horizontal tangents and classify the upper one with the second derivative. Check: horizontal tangents at (−3,6)(-3,6) and (3,−6)(3,-6), and d2ydx2=−29\frac{d^2y}{dx^2}=-\frac{2}{9} at (−3,6)(-3,6), a relative maximum.

Use this chapter companion

Review the lesson, attempt the original practice, then check the explanation. Your printed study guide remains complete without the website.

Independence

Skill by Skill Prep is independent. SAT® and AP® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website or book. PSAT/NMSQT® is a registered trademark of the College Board and the National Merit Scholarship Corporation, which are not affiliated with, and do not endorse, this site. Bluebook™ is a trademark of the College Board. ACT® is a trademark of ACT Education Corp., which is not affiliated with and does not endorse this website or book. Desmos is a trademark of Desmos Studio PBC. Practice results describe these questions, not official scores or admission predictions.

Last updated .