ArticleslgStudy

mathematics

Line–sphere intersection

Line–sphere intersection is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Line–sphere intersection rather than just read about it. In short: In analytic geometry, a line and a sphere can intersect in three ways: no intersection at all, intersection at exactly one point, and intersection at two points. Methods for distinguishing these cases, and determining the coordinates for the points in the latter cases, are useful in a number of circumstances.

Line–sphere intersection — main illustration
Line–sphere intersection — illustration

Key takeaways

  • Line–sphere intersection belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Line–sphere intersection to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Line–sphere intersection from memory before moving on to harder problems.

Reference excerpt

In analytic geometry, a line and a sphere can intersect in three ways:

no intersection at all, intersection at exactly one point, and intersection at two points. Methods for distinguishing these cases, and determining the coordinates for the points in the latter cases, are useful in a number of circumstances. For example, it is a common calculation to perform during ray tracing.

Calculation using vectors in 3D In vector notation, the equations are as follows: Equation for a sphere

‖ x − c ‖ 2 = r 2 {\displaystyle \left\Vert \mathbf {x} -\mathbf {c} \right\Vert ^{2}=r^{2}}

x {\displaystyle \mathbf {x} } : points on the sphere

c {\displaystyle \mathbf {c} } : center point

r {\displaystyle r} : radius of the sphere Equation for a line starting at o {\displaystyle \mathbf {o} }

x = o + d u {\displaystyle \mathbf {x} =\mathbf {o} +d\mathbf {u} }

x {\displaystyle \mathbf {x} } : points on the line

o {\displaystyle \mathbf {o} } : origin of the line

d {\displaystyle d} : distance from the origin of the line

u {\displaystyle \mathbf {u} } : direction of line (a non-zero vector) Searching for points that are on the line and on the sphere means combining the equations and solving for d {\displaystyle d} , involving the dot product of vectors:

Equations combined

‖ o + d u − c ‖ 2 = r 2 ⇔ ( o + d u − c ) ⋅ ( o + d u − c ) = r 2 {\displaystyle \left\Vert \mathbf {o} +d\mathbf {u} -\mathbf {c} \right\Vert ^{2}=r^{2}\Leftrightarrow (\mathbf {o} +d\mathbf {u} -\mathbf {c} )\cdot (\mathbf {o} +d\mathbf {u} -\mathbf {c} )=r^{2}}

Expanded and rearranged:

d 2 ( u ⋅ u ) + 2 d [ u ⋅ ( o − c ) ] + ( o − c ) ⋅ ( o − c ) − r 2 = 0 {\displaystyle d^{2}(\mathbf {u} \cdot \mathbf {u} )+2d[\mathbf {u} \cdot (\mathbf {o} -\mathbf {c} )]+(\mathbf {o} -\mathbf {c} )\cdot (\mathbf {o} -\mathbf {c} )-r^{2}=0}

The form of a quadratic formula is now observable. (This quadratic equation is an instance of Joachimsthal's equation.)

a d 2 + b d + c = 0 {\displaystyle ad^{2}+bd+c=0}

where

a = u ⋅ u = ‖ u ‖ 2 {\displaystyle a=\mathbf {u} \cdot \mathbf {u} =\left\Vert \mathbf {u} \right\Vert ^{2}}

b = 2 [ u ⋅ ( o − c ) ] {\displaystyle b=2[\mathbf {u} \cdot (\mathbf {o} -\mathbf {c} )]}

c = ( o − c ) ⋅ ( o − c ) − r 2 = ‖ o − c ‖ 2 − r 2 {\displaystyle c=(\mathbf {o} -\mathbf {c} )\cdot (\mathbf {o} -\mathbf {c} )-r^{2}=\left\Vert \mathbf {o} -\mathbf {c} \right\Vert ^{2}-r^{2}}

Simplified

… excerpt ends here. Continue reading the full article.

Illustrations

Line–sphere intersection: The three possible line-sphere intersections:
1. no intersection
2. single-point intersection
3. two-point intersection
The three possible line-sphere intersections: 1. no intersection 2. single-point intersection 3. two-point intersection

Worked examples

Example 1 — a first encounter with Line–sphere intersection

Start with the simplest possible case. Write down what Line–sphere intersection claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Line–sphere intersection before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Line–sphere intersection ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Line–sphere intersection

In research
Line–sphere intersection appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Line–sphere intersection in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Line–sphere intersection is common in secondary-school and first-year university syllabi. It links to neighbouring topics Analytic geometry, Geometric algorithms, Geometric intersection, so understanding it makes those chapters shorter.
In everyday life
Look for Line–sphere intersection outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Line–sphere intersection” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Line–sphere intersection in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Line–sphere intersection means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Line–sphere intersection out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Line–sphere intersection in simple terms?

In analytic geometry, a line and a sphere can intersect in three ways: no intersection at all, intersection at exactly one point, and intersection at two points. Methods for distinguishing these cases, and determining the coordinates for the points in the latter cases, are useful in a number of cir…

Why does Line–sphere intersection matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Line–sphere intersection?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Line–sphere intersection.

Tags

  • Analytic geometry
  • Geometric algorithms
  • Geometric intersection
  • Spherical geometry

Keep exploring