Explanation:
y = x²
Find the first derivative:
dy/dx = 2x
Find the critical values by setting dy/dx to 0:
0 = 2x
x = 0
Evaluating the first derivative before and after x=0, we see that dy/dx changes signs from negative to positive.
x < 0, dy/dx < 0
x > 0, dy/dx > 0
That means x=0 is a local minimum.
To find the global minimum, we need evaluate the function at x=0 and at the end points.
x = -∞, y = ∞
x = 0, y = 0
x = ∞, y = ∞
So x=0 is also the global minimum.