# Difference between revisions of "022 Sample Final A, Problem 2"

A dairy farmer plans to enclose a rectangular pasture adjacent to a river. To provide enough grass for his cows, the fenced pasture must contain 200 square meters of grass. If no fencing is required along the river, what dimensions will use the smallest amount of fencing?

Foundations:
As a word problem, we must begin by assigning variables in order to construct useful equation(s). As an optimization problem, we will be taking a derivative of one of our equations in order to find an extreme point.

Solution:

Step 1:
Declare Variables:   We are attempting to enclose a rectangular area, such that we use as little fencing as possible for the three fenced sides. Let's use ${\displaystyle x}$ and ${\displaystyle y}$ as indicated in the image, and simply call the length of fencing required ${\displaystyle L}$.
Step 2:
Form the Equations:   With the variables declared, we need two fences of length ${\displaystyle x}$ and one fence of length ${\displaystyle y}$. Together, we need a total length of ${\displaystyle L=2x+y}$.
On the other hand, we know that the pasture has a fixed area of ${\displaystyle 200}$ square meters. Thus, we also know that ${\displaystyle xy=200}$.
Step 3:
Optimize:   Since ${\displaystyle xy=200}$, we also know ${\displaystyle y=200/x}$. Plugging this into our equation for length, we have
${\displaystyle L(x)\,=\,2x+{\frac {200}{x}}.}$
We now take the derivative to find
${\displaystyle L'(x)\,=\,2-{\frac {200}{x^{2}}}\,=\,{\frac {2x^{2}-200}{x^{2}}}\,=\,{\frac {2(x-10)(x+10)}{x^{2}}}.}$
This has roots ${\displaystyle \pm 10}$. Of course, we can't have negative fencing lengths, so we can ignore the negative root. Finally, we use the area relation to find
${\displaystyle y\,=\,{\frac {200}{x}}\,=\,{\frac {200}{10}}\,=\,20.}$
Thus, the least amount of fencing is used when we size our ${\displaystyle 200}$ sq. m. pasture as ${\displaystyle 20}$ meters by ${\displaystyle 10}$ meters.