Explicit minimization *
For a ball thrown upward, guess a solution for y of the form y(t)=a2t2+a1t+a0. Assuming that y(0)=y(T)=0, this quickly becomes y(t)=a2(t2−Tt). Calculate the action between t=0 and t=T, and show that it is minimized when a2=−g/2.