document.write( "Question 416512: A farmer wants to build a pen with one side attached to his barn. He has 800metres of fencing. What is the max area that the pen can be?\r
\n" ); document.write( "\n" ); document.write( "p = 2L + W
\n" ); document.write( "800 = 2L + W
\n" ); document.write( "W = 800 - 2L\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #291872 by htmentor(1343)\"\" \"About 
You can put this solution on YOUR website!
This is an optimization problem requiring derivatives. You are on the right track.
\n" ); document.write( "The next step is to maximize the area
\n" ); document.write( "\"A+=+L%2AW+=+%28800-2L%29%2AL+=+800L+-+2L%5E2\"
\n" ); document.write( "Now take the derivative and set = 0
\n" ); document.write( "\"dA%2FdL+=+0+=+800+-+4L\"
\n" ); document.write( "Solving for L gives L = 200 m
\n" ); document.write( "And W = 800 - 2L -> W = 400 m
\n" ); document.write( "So the max. area = A = L*W = 200*400 = 80000 m^2
\n" ); document.write( "
\n" );