updates/Maple17/Student - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : updates/Maple17/Student

Multivariate Calculus for Students

 

The Student package contains a lot of functionality that is useful in the classroom. For Maple 17, we added several new items of functionality, the most significant of which is maybe the introduction of Line and Plane objects in the MultivariateCalculus subpackage. These are explained in the current page.

The Line and Plane objects are meant for teaching simple high school (affine) geometry in two and three dimensions. The objects can be defined in many different ways; for example, a Line in three-dimensional space can be defined as:

– 

containing two points,

– 

containing a point and a direction,

– 

being the solution of two equations,

– 

having a parametric representation,

– 

containing a point and being orthogonal to a plane, or

– 

being contained in two planes.

Once the objects are constructed, one can find out the distance to other objects, their relative position, or the intersection between multiple objects.

For many applications, the lines and planes that the objects represent will be fully determined. However, Maple supports arbitrary algebraic expressions occurring in the coordinates of the parameters used to define the objects. For example, it can handle the line through the points 2,3,a and 1,a2+b,3.

Examples

withStudent:-MultivariateCalculus:

We construct two lines; the first contains the point 1,0,2 and the direction 2,2,1, the second the points 5,3,1 and 3,3,6. The Line and Plane objects understand lists as points and Vectors as directions.

l1:=Line1,0,2,2,2,1

l1:=<< Line 1 >>

(1)

l2:=Line5&comma;3&comma;1&comma;3&comma;3&comma;6

l2:=<< Line 2 >>

(2)

Let us see if l1 intersects l2.

Intersectsl1&comma;l2

true

(3)

pt:=GetIntersectionl1&comma;l2

pt:=4&comma;3&comma;72

(4)

The intersection is a point.

Containsl1&comma;pt

true

(5)

Containsl2&comma;pt

true

(6)

We can also find pt by obtaining equations for both lines (there are two for each) and solving them simultaneously. The default coordinate variables are x, y, and z; when constructing a line or plane, you can choose different variables.

eqns1:=GetRepresentationl1&comma;&apos;form&equals;equations&apos;

eqns1:=x&plus;y&equals;1&comma;12x&plus;z&equals;32

(7)

eqns2:=GetRepresentationl2&comma;&apos;form&equals;equations&apos;

eqns2:=y&equals;3&comma;52x&plus;z&equals;272

(8)

solveeqns1&cup;eqns2

x&equals;4&comma;y&equals;3&comma;z&equals;72

(9)

We can obtain various other representations of a line with the GetRepresentation command.

GetRepresentationl1

t&period;221&plus;102

(10)

GetRepresentationl1&comma;&apos;form&equals;combined_vector&apos;

1&plus;2t2t2&plus;t

(11)

GetRepresentationl1&comma;&apos;form&equals;parametric&apos;

x&equals;1&plus;2t&comma;y&equals;2t&comma;z&equals;2&plus;t

(12)

GetRepresentationl1&comma;&apos;form&equals;symmetric&apos;

x212 = y2 = z2

(13)

We construct a third line, parallel to l1.

l3:=Line0&comma;0&comma;0&comma;2&comma;2&comma;1

l3:=<< Line 3 >>

(14)

AreParallell1&comma;l3

true

(15)

What is the relative position of l3 with respect to l2?

AreParallell2&comma;l3

false

(16)

Intersectsl2&comma;l3

false

(17)

AreSkewl2&comma;l3

true

(18)

We can compute the (Euclidean) distance between a pair of lines using the Distance command. Intersecting lines are at distance 0.

Distancel1&comma;l2

0

(19)

Distancel1&comma;l3

1329

(20)

Distancel2&comma;l3

96565

(21)

The GetPlot command shows a visualization of the line.

GetPlotl1

In order to combine visualizations, one can use plots:-display. With all features of the visualizations turned on, it is a little crowded, so we turn some of them off.

plots:-displayseqGetPlotline&comma;&apos;showvector&equals;false&apos;&comma;&apos;showpoint&equals;false&apos;&comma;line&in;l1&comma;l2&comma;l3&comma;&apos;caption&apos;&equals;Three lines

Let's consider the plane containing l1 and l2.

p1:=Planel1&comma;l2

p1:=<< Plane 1 >>

(22)

What is the relative position of l3 and p1?

Intersectsp1&comma;l3

false

(23)

AreParallelp1&comma;l3

true

(24)

Distancep1&comma;l3

96565

(25)

The distance between p1 and l3 is the same as the distance between l2 and l3.  This is always the case when l3 is parallel to p1, which contains l2, but l2 is not parallel to l3.

Since l1 and l2 intersect, l2 also intersects the plane containing l1 and l3.

p2:=Planel1&comma;l3

p2:=<< Plane 2 >>

(26)

Intersectsp2&comma;l2

true

(27)

Now let us consider a family of lines. We let l4 be a line containing the point 1&comma;2&comma;2 and the direction a&comma;b&comma;1, for some values a and b.

l4:=Line1&comma;2&comma;2&comma;a&comma;b&comma;1

l4:=<< Line 4 >>

(28)

Intersectsl4&comma;l2

false

(29)

Distancel4&comma;l2

25a&plus;26b&plus;1029b2&plus;2&plus;5a2

(30)

Distancel4&comma;l3

2a&plus;5b&plus;6b&plus;22&plus;2&plus;a2&plus;2b&plus;2a2

(31)

If we can find values for a and b that make the numerators of both those distances zero, we get a line that intersects both l2 and l3.

solvenumer&equals;0&comma;numer&equals;0

a&equals;10673&comma;b&equals;13073

(32)

We now let l5 be the particular line with these values for a and b.

l5:=evall4&comma;

l5:=<< Line 5 >>

(33)

GetRepresentationl5

t&period;10673130731&plus;122

(34)

GetIntersectionl2&comma;l5

6613&comma;3&comma;2126

(35)

GetIntersectionl3&comma;l5

574&comma;574&comma;578

(36)

Additional examples can be found in the MultivariateCalculus Example Worksheet.

See Also

AreSkew, GetIntersection, GetRepresentation, Intersects, Line, Plane


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam