Question 178406
Let's pretend that the barn side is one of the "lengths".  So the perimeter of fencing would be 2 times the width plus one length.  Let's call the width w and the length l.  Then the amount of fencing needed is
{{{P=2w+l}}}
We were told in the problem that there is 100 ft of fencing available, so we have
{{{100=2w+l}}}
The question is to maximize area, which is A=lw.  Now, currently we have too many variables to be able to solve anything.  Can we fix this?  Yes, using our perimeter equation, we can solve for one of the variables in terms of the other.  Let's try solving for l (length).  Then
{{{l=100-2w}}}
Now we can replace l with this new expression in the area equation,
{{{A=(100-2w)w}}}
Ok, now we're down to only one variable, which is good.  Let's distribute through on the right hand side so we can get a better idea of what we are looking at:
{{{A=100w-2w^2=-2w^2+100w}}}
So, we have a quadratic equation.  Notice, that since the coefficient of the w^2 term is negative, it's upside down.  Just to get a visual, I will graph it for you.
{{{graph(300,200,-50,60,-1000,1500,-2x^2+100x)}}}
So where is the maximum on this graph?  It's the vertex.  Now, to find the x coordinate of a quadratic equation of the form ax^2+bx+c, you have to calculate -b/2a.  In this problem, a=-2 and b=100.  So the x-coordinate (w) of the vertex is -100/(2(-2))=25.  To find the y-coordinate (A), you plug in the x-coordinate back into the equation:
{{{A=-2(25)^2+100(25)=-1250+2500=1250}}}
So the vertex is (25,1250).
This means that the maximum area is 1250 ft^2 and the dimensions giving this area are a width of 25 ft and a length of 50.