I was looking through some math problems I came across one where it asks you to prove that to maximize the area of a $3$-sided rectangle the length of the fence(parallel to the river) must be twice the width of the fence(perpendicular to the fence). I believe you are supposed to use quadratics in some form to solve the question. This is where I reached (but I think it is a dead end)...
Let $L$ represent the length of the fence in m. Let $W$ represent the width of the fence in m.Then, $P= L + 2W $ and so $L = P-2W$. Thus, $$A = LW=(P-2W)W=-2W^2 + PW.$$ I do not know where to go from here! Any help would be appreciated! Thanks!