Well my book says to do this:
eg, find the maximum and minimum values of

.
first, let a =

so the equation becomes:

. Then by completing the square we get
^2 + 5)
. Sub

back in, and we get
Now -1<= cos x <= 1 so we sub the max value of

, which is 1 into the equation
 ^2 +5)
and we get 9. hence that's the max value of

Same process for minimum value, sub in -1 into
 ^2 +5)
and we get 5, which is the minimum value of

.
However there is a question which this method doesn't seem to work.
Find the max and min value of

. Let a =

so equation becomes

Now -1<=

<=1 so sub 1 into

and we get 5 as the max value. Then we sub -1 in and we also get 5 o.O. However the minimum value is 4. How do i arrive at the answer? Is there a way to do it analytically? Because graphically, i have not learnt how to sketch

without calc.
Many thanks.