Sebastian M. answered 10/09/20
Experienced HS/College Tutor for Math and Standardized Tests
First thing you should do is draw the problem. Assuming the shape of the barrier will always be a rectangle, you will be dealing with the equation A=l*w no matter how much of the house you use. Lets assume that more than 90ft are used. Since the house is contributing the entire wall, the total barrier is made of 390ft. Thus P=390, and P=2L+2W. This implies 390=2L+2W. We can solve for W here in terms of L => W = 195-L. Then A = L(195-L) = 195L-L2. This equation represents an upside down parabola. To find the maximum then all you need to do is find the vertex. This can be done several ways without calculus. One such way is to use the formula x=-b/2a to get the x-coordinate of the vertex => x=-195/-2 = 97.5. This x-coordinate represents the length that gives maximum area. To find the maximum area, plug in 97.5 into the area equation:
A = 195(97.5)-(97.5)2=9506.25 ft2
And width: W = 195-97.5 = 97.5 ft = L
Next, suppose less than 90ft is used. The amount of wall used will be equal to the length of the barrier, L which is between 0 and 90. We can put the whole fencing to use with the added length from the side of the house, thus P=300+L and P=2L+2W => 300+L = 2W+2L. Solving for L this time gives us L = 300-2W. Plugging this into the Area equation gives A = LW = (300-2W)W = 300W-2W2. Again this is an upside down parabola and you can take it from here.