We can find the maximum of subject to by figuring out when