im having trouble with these two, finding the global max/min, i just dont understand how to do it...

g(t) = t/(t^2+5)

Determine the global extrema of g(t) on the interval 1 ≤ t ≤ 8.

g(t) has a global minimum at t =

g(t) has a global maximum at t =

f(theta) = sin^2(theta)-cos(theta)

Determine the global extrema of f(θ) on the interval 0 ≤ θ ≤ pi.

f(θ) has a global maximum at θ =

f(θ) has a global minimum at θ =