I am a bit confused about the escape velocity formula. I know that escape velocity is $$ V_\text{escape} = \sqrt{\frac{2GM}{R_e}} .$$
My question is does this equation change when for example I want to send an object from orbiting the Earth to infinity? Because my teacher gave us a proof that escape velocity from the Earth orbit is $$ V_\text{escape} = \sqrt{\frac{GM}{R_e + h}}. $$
But isn't this just the orbital velocity? If it's the same velocity as escape velocity how come the object even stays in orbit?
This is what my teacher’s proof looks like:
Sorry it's not in English.
So I want to know if his proof is right.