18: You should get

The rest is simple.
Then use one-sided derivatives to investigate derivative at x = −2 and at x = 3.

Next hint
Answer