document.write( "Question 159212: A rectangular patio is surrounded on three sides by a fence (the remaning side is up against the house). If the area of the patio is 38 meter square, and the total length of fence is 18 meters, what is the length and width of the patio. \n" ); document.write( "
Algebra.Com's Answer #117357 by gonzo(654)\"\" \"About 
You can put this solution on YOUR website!
it appears that the length can be any of 2 numbers and satisfy the equation.
\n" ); document.write( "the equation is
\n" ); document.write( "perimeter = l + 2*w = 18 (fence only covers 1 length)
\n" ); document.write( "area = l*w = 38
\n" ); document.write( "in the first equation, we take l = 18 - (2*w) and substitute for l in the second equation.
\n" ); document.write( "the second equation becomes
\n" ); document.write( "(18 - 2*w)*w = 38
\n" ); document.write( "this expands to
\n" ); document.write( "18*w - 2*w^2 = 38
\n" ); document.write( "subtracting both sides of the equation by 18*w and adding 2*w to both sides of the equation and it becomes
\n" ); document.write( "0 = 2*w^2 - 18*w + 38
\n" ); document.write( "which is the same as
\n" ); document.write( "\"2%2Aw%5E2+-+18%2Aw+%2B+38+=+0\"
\n" ); document.write( "the answer is not apparent right away so we'll use the quadratic equation to solve.
\n" ); document.write( "quadratic equation is \"w=%28%28-b%29%2Bsqrt%28b%5E2-4%2Aa%2Ac%29%29%2F%282%2Aa%29\" and \"w=%28%28-b%29-sqrt%28b%5E2-4%2Aa%2Ac%29%29%2F%282%2Aa%29\".
\n" ); document.write( "(-b) = +18
\n" ); document.write( "a = 2
\n" ); document.write( "c = 38
\n" ); document.write( "\"sqrt%28b%5E2-4%2Aa%2Ac%29+=+sqrt%2820%29\"
\n" ); document.write( "\"w+=+%2818+%2B+sqrt%2820%29%29%2F4%29\" = 5.618033989
\n" ); document.write( "\"w+=+%2818+-+sqrt%2820%29%29%2F4%29\" = 3.381966011
\n" ); document.write( "solving for l, we get
\n" ); document.write( "18 - 2*5.618033989 = 6.763932923
\n" ); document.write( "18 - 2*3.381966011 = 11.23606798
\n" ); document.write( "width can be 5.618033989 while length is 6.763932923, or
\n" ); document.write( "width can be 3.381966011 while length is 11.23606798
\n" ); document.write( "to prove,
\n" ); document.write( "perimeter = l + 2*w = 18 (fence perimeter contained only 1*l)
\n" ); document.write( "6.763932923 + 2*5.618033989 = 18.0000009 = 18 if the numbers weren't rounded because of the limitation of the calculator display.
\n" ); document.write( "also
\n" ); document.write( "11.23606798 + 2*3.381966011 = 18
\n" ); document.write( "perimeter is ok.
\n" ); document.write( "area = 2*l + 2*w
\n" ); document.write( "6.763932923 * 5.618033989 = 37.99998431 = 38 if the numbers weren't rounded because of the limitation of the calculator display.
\n" ); document.write( "11.23606798 * 3.381966011 = 38.00000001 = 38 if the numbers weren't rounded because of the limitation of the calculator display.
\n" ); document.write( "to prove that for yourself, do the calculations using a calculator and store the results without truncating and then solve again using the numbers from inside the calculator rather than the numbers in the display.
\n" ); document.write( "
\n" ); document.write( "
\n" );