Recently started book on gravity and there (not only there, it is correct way) the escape velocity was given as $${v_{esc}=\sqrt{\frac{2GM}{R}}}.$$ I wanted to derive this myself and I decided to use centripetal force as key to derivation. My idea is that the gravitational force is equal to the centripetal force of the object. I got: $${F_{grav}=\frac{GMm_{obj}}{R^2};}$$ $${F_{cntr}=m_{obj}\frac{v^2}{R};}$$ $${\frac{GMm_{obj}}{R^2}=m_{obj}\frac{v^2}{R};}$$ $${\frac{GM}{R}={v^2};}$$ $${{v}=\sqrt\frac{GM}{R}}$$ So my question is where is the mistake?
EDIT:I would be very pleased if someone explain the other derivation with potential energy too. Especially the fact that the potential gravitational energy must be equal to the kinetic energy.