Critical points occur when , which happens for and .
Check the sign of the second derivative at each critical point to determine the function's concavity at that point. If it's concave (), then a maximum occurs; if it's convex (), then a minimum occurs.