Neha Patil (Editor)

Intersection (Euclidean geometry)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Intersection (Euclidean geometry)

In geometry, an intersection is a point, line, or curve common in two or more objects (such as lines, curves, planes, and surfaces). The most simple case in Euclidean geometry is the intersection points of two distinct lines, that is either one point or does not exist if lines are parallel.

Contents

Determination of the intersection of flats is a simple task of linear algebra, namely a system of linear equations. In general the determination of an intersection leads to non-linear equations, which can be solved numerically, for example using a Newton iteration. Intersection problems between a line and a conic section (circle, ellipse, parabola, ...) or a quadric (sphere, cylinder, hyperboloid, ...) lead to quadratic equations that can be easily solved. Intersections between quadrics lead to quartic equations that can be solved algebraically.

Two lines

For the determination of the intersection point of two non-parallel lines

  • a 1 x + b 1 y = c 1 ,   a 2 x + b 2 y = c 2
  • one gets from Cramer's rule for the coordinates of the intersection point ( x s , y s )

    x s = c 1 b 2 c 2 b 1 a 1 b 2 a 2 b 1 , y s = a 1 c 2 a 2 c 1 a 1 b 2 a 2 b 1 .  

    (In case of a 1 b 2 a 2 b 1 = 0 the lines are parallel.)

    If the lines are given by two points each, see next section.

    Two line segments

    For two non-parallel line segments ( x 1 , y 1 ) , ( x 2 , y 2 ) and ( x 3 , y 3 ) , ( x 4 , y 4 ) there is no need for an intersection point (see picture), because the intersection point ( x 0 , y 0 ) of the corresponding lines need not to be contained in the line segments. In order to check the situation one uses parametric representations of the lines:

    ( x ( s ) , y ( s ) ) = ( x 1 + s ( x 2 x 1 ) , y 1 + s ( y 2 y 1 ) ) , ( x ( t ) , y ( t ) ) = ( x 3 + t ( x 4 x 3 ) , y 3 + t ( y 4 y 3 ) ) .

    The line segments intersect only in a common point ( x 0 , y 0 ) of the corresponding lines if the corresponding parameters s 0 , t 0 fulfill the condition 0 s 0 , t 0 1 . The parametrs s 0 , t 0 are the solution of the linear system

    s ( x 2 x 1 ) t ( x 4 x 3 ) = x 3 x 1 , s ( y 2 y 1 ) t ( y 4 y 3 ) = y 3 y 1   .

    It can be solved using Cramer's rule (see above). If the condition 0 s 0 , t 0 1 is fulfilled one inserts s 0 or t 0 into the corresponding parametric representation and gets the intersection point ( x 0 , y 0 ) .

    Example: For the line segments ( 1 , 1 ) , ( 3 , 2 ) and ( 1 , 4 ) , ( 2 , 1 ) one gets the linear system

    2 s t = 0 s + 5 t = 3

    and s 0 = 3 11 , t 0 = 6 11 . That means: the lines intersect at point ( 17 11 , 14 11 ) .

    Remark: Considering lines (not segments!) determined by pairs of points, each, condition 0 s 0 , t 0 1 can be skipped and the method yield the intersection point of the lines (see above).

    A line and a circle

    For the intersection of

  • line a x + b y = c and circle x 2 + y 2 = r 2
  • one solves the line equation for x or y and substitutes it into the equation of the circle and gets for the solution (using the formula of a quadratic equation) ( x 1 , y 1 ) , ( x 2 , y 2 ) with

    x 1 / 2 = a c ± b r 2 ( a 2 + b 2 ) c 2 a 2 + b 2   , y 1 / 2 = b c a r 2 ( a 2 + b 2 ) c 2 a 2 + b 2   ,

    if r 2 ( a 2 + b 2 ) c 2 0   . If this condition holds with strict inequality, there are two intersection points; in this case the line is called a secant line of the circle, and the line segment connecting the intersection points is called a chord of the circle.

    If r 2 ( a 2 + b 2 ) c 2 = 0 holds, there exists only one intersection point and the line is tangent to the circle. If the weak inequality does not hold, the line does not intersect the circle.

    If the circle's midpoint is not the origin, see. The intersection of a line and a parabola or hyperbola may be treated analogously.

    Two circles

    The determination of the intersection points of two circles

  • ( x x 1 ) 2 + ( y y 1 ) 2 = r 1 2 ,   ( x x 2 ) 2 + ( y y 2 ) 2 = r 2 2
  • can be reduced to the previous case of intersecting a line and a circle. By subtraction of the two given equations one gets the line equation:

    2 ( x 2 x 1 ) x + 2 ( y 2 y 1 ) y = r 1 2 x 1 2 y 1 2 r 2 2 + x 2 2 + y 2 2 .

    The intersection of two disks (the interiors of the two circles) forms a shape called a lens.

    Two conic sections

    The problem of intersection of an ellipse/hyperbola/parabola with another conic section leads to a system of quadratic equations, which can be solved in special cases easily by elimination of one coordinate. Special properties of conic sections may be used to obtain a solution. In general the intersection points can be determined by solving the equation by a Newton iteration. If a) both conics are given implicitly (by an equation) a 2-dimensional Newton iteration b) one implicitly and the other parametrically given a 1-dimensional Newton iteration is necessary. See next section.

    Two curves

    Two curves in R 2 , which are continuously differentiable (i.e. there is no sharp bend), have an intersection point, if they have a point of the plane in common and have at this point

    a: different tangent lines (transversal intersection), or b: the tangent line in common and they are crossing each other (touching intersection, s. picture).

    If both the curves have a point S and the tangent line there in common but do not cross each other, they are just touching at point S.

    Because touching intersection appears rarely and is difficult to deal with, the following considerations omit this case. In any case below all necessary differential conditions are presupposed. The determination of intersection points always lead to 1 or 2 non-linear equations which can be solved by a Newton iteration. A list of the appearing cases follows:

  • If both curves are explicitly given: y = f 1 ( x ) ,   y = f 2 ( x ) , equalizing yields the equation
  • If both curves are parametrically given: C 1 : ( x 1 ( t ) , y 1 ( t ) ) ,   C 2 : ( x 2 ( s ) , y 2 ( s ) ) .
  • Equalizing yields two equations for two variables:
  • If one curve is parametrically and the other implicitly given: C 1 : ( x 1 ( t ) , y 1 ( t ) ) ,   C 2 : f ( x , y ) = 0.
  • This is beside the explicit case the simplest case. One has to insert the parametric representation of C 1 into the equation f ( x , y ) = 0 of curve C 2 and one gets the equation: f ( x ( t ) , y ( t ) ) = 0   .
  • If both curves are implicitly given: C 1 : f 1 ( x , y ) = 0 ,   C 2 : f 2 ( x , y ) = 0.
  • Here, an intersection point is a solution of the system

    Any Newton iteration needs convenient starting values, which can be derived by a visualization of both the curves. A parametrically or explicitly given curve can easily be visualized, because to any parameter t or x respectively it is easy to calculate the corresponding point. For implicitly given curves this task is not as easy. In this case one has to determine a curve point with help of starting values and an iteration. See .

    Examples:

    1: C 1 : ( t , t 3 ) and circle C 2 : ( x 1 ) 2 + ( y 1 ) 2 10 = 0 (s. picture). The Newton iteration t n + 1 := t n f ( t n ) f ( t n ) for function f ( t ) = ( t 1 ) 2 + ( t 3 1 ) 2 10 has to be done. As startvalues one can choose −1 and 1.5. The intersection points are: (−1.1073, −1.3578), (1.6011, 4.1046) 2: C 1 : f 1 ( x , y ) = x 4 + y 4 1 = 0 , C 2 : f 2 ( x , y ) = ( x 0.5 ) 2 + ( y 0.5 ) 2 1 = 0 (s. picture). The Newton iteration The linear system can be solved by Cramer's rule. The intersection points are (−0.3686, 0.9953) and (0.9953, −0.3686).

    Two polygons

    If one wants to determine the intersection points of two polygons, one can check the intersection of any pair of line segments of the polygons (see above). For polygons with a lot of segments this method is rather time consuming. In praxis one accelerates the intersection algorithm by using window tests. In this case one divides the polygons into small sub-polygons and determines the smallest window (rectangle with sides parallel to the coordinate axes) for any sub-polygon. Before starting the time consuming determination of the intersection point of two line segments any pair of windows is tested for common points. See.

    In space (three dimensions)

    In 3-dimensional space there are intersection points (common points) between curves and surfaces. In the following sections we consider transversal intersection only.

    A line and a plane

    The intersection of a line and a plane in general position in three dimensions is a point.

    Commonly a line in space is represented parametrically ( x ( t ) , y ( t ) , z ( t ) ) and a plane by an equation a x + b y + c z = d . Inserting the parameter representation into the equation yields the linear equation

    a x ( t ) + b y ( t ) + c z ( t ) = d   ,

    for parameter t 0 of the intersection point ( x ( t 0 ) , y ( t 0 ) , z ( t 0 ) ) .

    If the linear equation has no solution, the line either lies on the plane or is parallel to it.

    Three planes

    If a line is defined by two intersecting planes ε i :   n i x = d i ,   i = 1 , 2 and should be intersected by a third plane ε 3 :   n 3 x = d 3 , the common intersection point of the three planes has to be evaluated.

    Three planes ε i :   n i x = d i ,   i = 1 , 2 , 3 with linear independent normal vectors n 1 , n 2 , n 3 have the intersection point

    p 0 = d 1 ( n 2 × n 3 ) + d 2 ( n 3 × n 1 ) + d 3 ( n 1 × n 2 ) n 1 ( n 2 × n 3 )   .

    For the proof one should establish n i p 0 = d i ,   i = 1 , 2 , 3 , using the rules of a scalar triple product. If the scalar triple product equals to 0, then planes either do not have the triple intersection or it is a line (or a plane, if all three planes are the same).

    A curve and a surface

    Analogously to the plane case the following cases lead to non-linear systems, which can be solved using a 1- or 3-dimensional Newton iteration.

  • parametric curve C : ( x ( t ) , y ( t ) , z ( t ) and
  • parametric surface S : ( x ( u , v ) , y ( u , v ) , z ( u , v ) )   ,
  • parametric curve C : ( x ( t ) , y ( t ) , z ( t ) and
  • implicit surface S : f ( x , y , z ) = 0   .

    Example:

    parametric curve C : ( t , t 2 , t 3 ) und implicit surface S : x 4 + y 4 + z 4 1 = 0 (s. picture). The intersection points are: (−0.8587, 0.7374, −0.6332), (0.8587, 0.7374, 0.6332).

    A line–sphere intersection is a simple special case.

    Like the case of a line and a plane, the intersection of a curve and a surface in general position consists of discrete points, but a curve may be partly or totally contained in a surface.

    Two surfaces

    Two transversally intersecting surfaces give an intersection curve. The most simple case the intersection line of two non-parallel planes.

    References

    Intersection (Euclidean geometry) Wikipedia