Given $$f(t) = \int_0^t \frac{x^2+14x+45}{1+\cos^2(x)}dx $$
I need to find the local max of f(t). Well here using the fundamental theorem of calculus, I know I can just replace the $x$ with $t$. But I do not remember how to find the local max/min and if I remember correctly critical points were in the same context, So some insight on critical points would be good too. Thank you.

