Easiest to look at an example. Consider the two functions

Both have critical points at yet both also have their second derivatives vanish at so the second derivative test is inconclusive for this case. However, it's not hard to see that

and

so for , it has a minimum at whereas has a maximum there.