Solve for t h=-1/2at^2+1