the distance from point y to wx is the height of the triangle.
using pythagoras theorem,
group similar terms to get,
this implies that,
take positive square root of both sides to get,