Artificial intelligent assistant

Prove: If a continuous function is monotonic in $(a, b) $ then it is monotonic in $[a, b] $ > If a continuous function is monotonic in $(a, b) $ then it is monotonic in $[a, b] $ I conjectured this theorem for this would solve many doubts I had in monotonicity of functions. I can see this intuitively but can someone provide a bit of rigour? For example, this can be used to prove that $y=x^3$ is monotonic for $x=0$.

**Hint:** Use the Intermediate Value Theorem.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 7154b8fa1f340fd7bee33bc977be4fc1