Application of Rolles Theorem with Intermediate Value Theorem