Distance from P (x, y) to origin
Points of origin Q (0,0)
By applying distance formula
√(x2 - x1)² + (y2 - y1)²
√(0 - x)² + (0 - y) ²
√x² + y²
Hope this helps you.