Is uniformly continuous?

Here is my proposed solution.

Break into three partitions:

On , is defined on a compact set, so such that .

On , has a bounded derivative: . Let . Thus, when , by the MVT, .

On , is defined on a compact set, so such that .

Let and it follows that when , so is uniformly continuous.

Is that correct?