local max and local min values

Hi

The goal is to find the local max and local min values I get so far and then I don't know where to go - there are 2 questions - a and b

a) f(x) = x / (1+x)^2

f'(x) = (1-x)/(1+x)^3 according to my calculations which means that

x is underfined at -1 and f'(0) when x = 1 so

x= 1 is a critical point

f(1) = 1

but now what - is the local maximum and minimum both 1???

b) f(x) = x^3 - 3x^2 +5

f'(x) = 3x^2 - 6x

f'(x) = 3x(x-2)

so the critical points are x = 0 and x = 2

so f(0) = 5 and f(2) = 1 but how do you know which is local max and local min since I understand that sometimes the min is greater than the max

Help me understand - thanks

calculus beginner