On the differentiable part you are showing that the derivative exits at 0 so and it is not irrational

You can do this with only one case, but you have the right idea

The defintion you are using is this

You may want to use the squeeze thorem

Note that for all x.

Good luck.