Intersecting Plane Curves - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Information : Updates : Maple 17 : Intersecting Plane Curves

Intersecting plane curves

For Maple17, a new command, intersectcurves, has been added to the algcurves package.

withalgcurves:

Given two plane curves expressed as polynomials in two variables,

c1:=x3+2y2+x:c2x2y21:

The intersectcurves command computes the points of intersection along with their multiplicities. Each set of intersection points is expressed as a list containing three values. The first two are irreducible polynomials, the second of which is in only one of the variables. The third value is either 0 or 1. When the third value is 1, the point is affine; when the third value is 0, it is a point in the projective plane (at infinity).

intersectcurvesc1,c2,x,y

2,1+x,y,1,2,1+x,y,1,1,2+x,y23,1

(1)

This is to be interpreted as follows. There are two intersection points of multiplicity 2, namely, (1,0) and (-1,0), indicating that they are points where the curves intersect tangentially. In addition, there are two intersection points of multiplicity 1, namely, 2,3 and 2,3. We can see all intersection points graphically with a simple implicit plot.

withplots:

implicitplotc1,c2,x=3..3,y=3..3,gridrefine=3,scaling=constrained,color=Red,Blue

The following example illustrates the case when there are intersection points at infinity.

d1:=x2yy1:d2:=x2x:

intersectcurvesd1,d2,x,y

1,x,y+1,1,5,x,1,0

(2)

implicitplotd1,d2,x=3..3,y=3..3,gridrefine=3,scaling=constrained,color=Red,Blue

There is one affine intersection point (0,-1) of multiplicity 1, plus one intersection point at infinity, of multiplicity 5. The tangent at this point is the line x=0. Each of the two blue vertical lines intersects each of the two asymptotes of the red curve at the infinite point 0,1,0. All but one of these intersections have multiplicity 1, and the exceptional one, between the blue line and the asymptote to the red curve at x=1, comes from a tangential intersection, of multiplicity 2.

We can perform a change of coordinates in order to plot this in the affine plane. First, we homogenize the equations, introducing a third variable z, and then we substitute y=1 in order to move the intersection point that was previously at infinity to the origin.

h1  evalx2yyz2z3, y=1 ;h2  evalx2xz, y=1

h1:=z3+x2z2

h2:=x2xz

(3)

implicitploth1,h2,x=1.5..1.5,z=1.5..1.5,gridrefine=3,scaling=constrained,color=Red,Blue

intersectcurvesh1,h2,x,z

5,x,z,1,1,x,z+1,1

(4)

After the coordinate transformation, all intersection points (of h1 and h2) are visible in the plot and there are no intersection points at infinity.

See Also

intersectcurves