Let’s use a diagram to record the given information.
Let [latex]L[/latex] represents the length of the fence and [latex]W[/latex] represents the width of the fence.
We know we have only [latex]80[/latex] feet of fence available, and [latex]L+W+L=80[/latex], or more simply, [latex]2L+W=80[/latex].
This allows us to represent the width, [latex]W[/latex], in terms of [latex]L[/latex].
[latex]W=80 - 2L[/latex]
Now, we are ready to write an equation for the area the fence encloses. We know the area of a rectangle is length multiplied by width.
[latex]A=L \cdot W=L \cdot (80 - 2L)=80L - 2{L}^{2}[/latex].
This formula represents the area of the fence in terms of the variable length [latex]L[/latex].
Thus, the function, written in general form, is[latex]A\left(L\right)=-2{L}^{2}+80L[/latex].
Now, to answer the question: What dimensions should she make her garden to maximize the enclosed area?
The quadratic has a negative leading coefficient, so the graph will open downward, and the vertex will be the maximum value for the area.
Based on the function above, we have [latex]a=-2,b=80[/latex], and [latex]c=0[/latex].
Vertex:
[latex]h= -\dfrac{b}{2a} = -\dfrac{80}{2(-2)} = -\dfrac{80}{-4} = 20[/latex]
and
[latex]\begin{align}k&=A\left(20\right) \\&=80\left(20\right)-2{\left(20\right)}^{2}\\&=800 \end{align}[/latex]
Thus, the vertex is [latex](20, 800)[/latex].
This problem also could be solved by graphing the quadratic function. We can see where the maximum area occurs on a graph of the quadratic function below.
Interpretation of the vertex: The maximum value of the function is an area of [latex]800[/latex] square feet, which occurs when [latex]L=20[/latex] feet. When the shorter sides are [latex]L = 20[/latex] feet, there is [latex]W = 80-2(20) = 40[/latex] feet of fencing left for the longer side.
So, to maximize the area, she should enclose the garden so the two shorter sides have length [latex]20[/latex] feet and the longer side parallel to the existing fence has length [latex]40[/latex] feet.