Exploring Analyic Geometry with Mathematica® |
|||||
| Home | Contents | Commands | Packages | Explorations | Reference |
| Tour | Lines | Circles | Conics | Analysis | Tangents |
Parabola Through Four Points
pb4pts.html
Exploration
Describe a method for finding the two parabolas passing through four points. Show that the technique produces the correct results for the points (2,1), (-1,1), (-2,-1) and (4,-3) by plotting the parabola and the four points.
Approach
Form a quadratic, parameterized by the variable k, representing the pencil of quadratics passing through the four points. The first three coefficients of the quadratic, a, b, and c must satisfy the relationship
because the quadratic is a parabola. Solve the equation for k.
Initialize
To initialize Descarta2D, select the input cell bracket and press SHIFT-Enter.
This initialization assumes that the Descarta2D software has been copied into one of the standard directories for AddOns which are on the Mathematica search path, $Path.
<<Descarta2D`
Solution
Define a function that implements the approach.
Quadratic2D[
p1:Point2D[{x1_,y1_}],
p2:Point2D[{x2_,y2_}],
p3:Point2D[{x3_,y3_}],
p4:Point2D[{x4_,y4_}],
Parabola2D] :=
Module[{q1,k,a,b,c},
q1=Quadratic2D[p1,p2,p3,p4,k,Pencil2D];
{a,b,c}=List @@ Take[q1,3];
ans=Solve[b^2==4*a*c,k];
Map[(q1 /. #)&, ans] ];
Discussion
The following is a numerical example using the points specified.
pts={p1=Point2D[2,1],
p2=Point2D[-1,1],
p3=Point2D[-2,-1],
p4=Point2D[4,-3]};
q1=Quadratic2D[p1,p2,p3,p4,Parabola2D] //N
par1=Map[Loci2D,q1]
Sketch2D[{pts,par1},CurveLength2D->20]
Graphics saved as "pb4pts01.eps".