Final answer:
The formula for the distance from a point P(x, y, z) to the origin in three-dimensional space is r = sqrt(x^2 + y^2 + z^2).
Step-by-step explanation:
The formula for the distance from a point P(x, y, z) to the origin in three-dimensional space can be found using the Pythagorean theorem. The distance, denoted as r, is calculated as the square root of the sum of the squares of the coordinates:
r = sqrt(x^2 + y^2 + z^2)
For example, if P(2, 3, 4), the distance to the origin is: r = sqrt(2^2 + 3^2 + 4^2) = sqrt(29)