# function for distance from a point outside a sphere to any point on  its surface

Printable View

• November 8th 2012, 10:28 AM
mosibat
1 Attachment(s)
function for distance from a point outside a sphere to any point on its surface
Hi

I have a point m outside a sphere. The sphere center is o and r is the radius of sphere. Distance from point m to o is l.
If we draw a line from m to any point on the surface of sphere, this line has a length. Minimum length is l - r and maximum length would be l + r.
I want the function for distance from m to any point on the surface of sphere. Also how to draw the graph of this function (all possible distances).

http://mathhelpforum.com/attachment....1&d=1352402766
• November 8th 2012, 10:42 AM
HallsofIvy
Re: function for distance from a point outside a sphere to any point on its surface
We can set up a coordinate system in which the sphere has center at the origin and the given point, m, is on the z-axis. The equation of the sphere in that coordinate system is $x^2+ y^2+ z^2= r^2$ and m is (0, 0, l). Given a point (x, y, z) on the sphere, above the xy-plane, then $z= \sqrt{r^2- x^2- y^2}$ then the distance from m to that point is $\sqrt{x^2+ y^2+ (l- \sqrt{r^2- x^2- y^2})^2}$. If (x, y, z) is below the xy-plane, $z= -\sqrt{r^2- x^2 y^2}$ then the distance is $\sqrt{x^2+ y^2+ (l+ \sqrt{r^2- x^2- y^2})^2}$.
• November 8th 2012, 12:40 PM
mosibat
Re: function for distance from a point outside a sphere to any point on its surface
Thanks. That was exactly what I was looking for.
All times are GMT -8. The time now is 02:21 PM.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 5, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9151908159255981, "perplexity_flag": "head"}