# If you've found the critical point then you'd plug in that x value into f(x) as well as check the endpoints like you did before.