Relative Maximum Application

The textbook we use has a problem that is phrased just like this problem, although it gives the reader more information. I decided to unpack why the equation is what it is. I tried making it a little shorter by speeding up the part where I drew the square - although sometimes problems just take a long time to do! Enjoy!