Given that

attains a maximum at

, it follows that

at that same point. So integrating once gives



and so the first derivative is

.
Integrating again, you get


You know that this curve passes through the point (2, -1), which means when

, you have

:


and so
