Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Calculus · Unit 5 · Step-Through Animation

Introduction to Optimization Problems

Two Equations In, One Function Out

You'll learnhow to turn a word problem into one function of one variable on a stated domain, which is everything that has to happen before a derivative can be taken.

A farmer has 1200 feet of fence and a river along one side of the field. Every shape that uses all the fence has a different area, and the question is which shape has the biggest one. Before any calculus can answer that, the problem has to become one function of one variable, with a domain the situation supplies. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · ONE LETTER AND A STATED DOMAIN BEFORE ANY DERIVATIVE · v2

A = xy · 2x + y = 1200 ⇒ A(x) = x(1200 − 2x) on 0 < x < 600
Before you start
What you're looking at
A rectangular field with a river along one side, so only three sides need fencing. There are 1200 feet of fence.
The question
What has to be written down before a derivative can be taken at all?
Step 1 / 12

Read all 12 steps as text
Step 1

A field by a river

A farmer has 1200 feet of fence for three sides of a rectangular field, with a river along the fourth, and wants the largest possible area.

Step 2

The fence holds still, the area moves

Every rectangle on screen uses exactly 1200 feet of fence, and the area rises and then falls as the shape changes.

Step 3

Objective and constraint

The area \(A = xy\) is the objective, the quantity to make largest, and the fence \(2x + y = 1200\) is the constraint, the relationship that is fixed.

Step 4

Delete a letter

Solve the constraint for \(y = 1200 - 2x\) and substitute into the objective: \(A(x) = x(1200 - 2x)\), one function of one variable.

Step 5

Cut the corners, fold the sides

Squares of side \(x\) are cut from the corners of a \(12 \times 12\) sheet, so the box has height \(x\) and a base \((12 - 2x)\) by \((12 - 2x)\): \(V(x) = x(12 - 2x)^{2}\).

Step 6

The domain comes from the sheet

\(x > 0\) because a cut has a size, and \(12 - 2x > 0\) because a base has a width, so the domain is \(0 < x < 6\).

Step 7

The same number, only one box

\(V(2) = 128\) and \(V(8) = 128\), the same number, but a cut of 8 leaves a base of width \(-4\), so only the first one is a box.

Step 8

A critical number outside the domain

Maximize \(A(x) = x(20 - x)\) on \(0 \le x \le 8\): \(A'(x) = 20 - 2x\) vanishes at \(x = 10\), which is not in the domain, so it is discarded.

Step 9

The ends are candidates

With no critical number inside, the candidates are the two endpoints, \(A(0) = 0\) and \(A(8) = 96\), so the maximum is 96 at the right end, where the function is still climbing.

Step 10

Hold y fixed, and the fence runs out

A student writes \(A = xy\) and \(dA/dx = y\), holding \(y\) fixed; watch what that describes as \(x\) grows with \(y\) stuck at 600.

Step 11

Substitute first

\(dA/dx = y\) is never zero, so it reports no maximum at all; \(y\) is not free, and \(A(x) = x(1200 - 2x)\) has a derivative that does vanish.

Step 12

One letter and a domain

Draw and label, write the objective, write the constraint, substitute to one letter, and state the domain with a reason for each end; only then differentiate.