Classroom
Tips and Techniques: Visualizing the
Plane Determined by Two Vectors at a Point in Space
Robert
J. Lopez
Emeritus Professor of Mathematics and Maple Fellow
Maplesoft
Introduction
This month's article amplifies my response to a colleague who recently asked me how Maple might be used to help students visualize the plane determined by two given vectors emanating from a point in . For this, we use functionalities from the VectorCalculus, Student[LinearAlgebra], and Physics packages. As such, this makes for an interesting application of the lessons learned in last month's article where, in the article "Vectors in the LinearAlgebra, VectorCalculus, and Physics Packages," we contrasted Maple's different implementations of vectors.
Initializations
> 

Initial Data
At the point
> 

determine the plane containing the span of the Vectors
> 


> 


Note our use of the RootedVector construct from the VectorCalculus package. This command accepts the root point as a Vector or as a list. In ensuing graphs, we will need the position vector to point so we anticipated this by entering the point as a Vector.
Tools from the VectorCalculus Package
Figure 1 provides a preliminary sketch of the Vectors U, V, , and P. The resultant is included as a prelude to conceptualizing the span of U and V.
> 


Figure 1 Preliminary sketch of the vectors and P

In Maple 11, the PlotVector command does not permit mapping different colors to the members of the list of Vectors being plotted. This shortcoming has been addressed in the forthcoming Maple 12.
In the typical multivariate calculus course, determining the equation of the plane containing U, V, and is a standard exercise, which starts with computing a normal to the plane.
> 

The vector
> 

lies in the required plane, and hence must be orthogonal to N. This condition gives the equation of the plane as
> 


(4.1) 
or as
> 


(4.2) 
or
> 


(4.3) 
or even as
> 

Alternatively, the equation of the plane can be given parametrically, via the equations in
The parameters and can be eliminated from the equations that is, from
> 


(4.4) 
either by solving the first two for and , then substituting into the third, or more directly by
> 

Figure 2 provides a graph of this plane, along with the Vectors and P. By graphing each Vector separately as an arrow data structure, we are able to colorcode the Vectors, with U in black, V in red, in green, and P in blue. Note, however, that the arrow command requires an explicit declaration of the location of any root point that is not the origin. The arrows obtained by could be replaced by the simpler PlotVector command used for Figure 1. In Maple 12, this simplicity will be accompanied with color coordination.

Figure 2 Graph of the plane and the vectors U, V, , and P, in black, red, green, and blue, respectively

Tools from the Student[LinearAlgebra] Package
Figure 3, drawn by the VectorSumPlot command in the Student[LinearAlgebra] package, contains a graph of the parallelogram of addition, with U in cyan, V in red, and the resultant, in black.
> 

sum = <0, 3/2, 4/3>




Figure 3 Parallelogram of vector addition showing U, V, and

By default, the root point for the VectorSumPlot command is the origin. We have use the translate command from the plottools package to move the root point to . We did not load the whole package because it also contains an arrow command that would conflict with the newer arrow command in the plots package.
Note, finally, that the VectorSumPlot command actually provides the expression for the resultant.
Figure 4 is drawn with the PlanePlot command from the Student[LinearAlgebra] package. The input to this command can be any data that determines a plane uniquely. Thus, it can be the equation of a plane, a normal vector, a point and normal, a point and two vectors parallel to the plane, or a parametric representation in the form of a vector. If just a normal vector is given, the plane passes through the origin. To determine the plane through three given points, two vectors parallel to the plane must first be obtained since the threepoint form of the plane is not supported by PlanePlot. Below, we illustrate the syntax for the parametric representation of a plane.
In Figure 4, we made the plane transparent through planeoptions .
> 

normal vector: <.9622504485e1, .7698003585, .8660254035> 
equation of plane: <.9622504485e1*x.7698003585*y+.8660254035*z = .962250448698988459>
point on plane nearest origin: <.6849315078e1, .5479452060, .6164383569>
basis vectors: <1., 1., 1.>, <1., .5000000000, .3333333333> 



Figure 4 Plane containing the vectors U and V and passing through point
The ancillary information provided by the PlanePlot command defaults to four digits. We raised that to ten with the SetDefault command in the Initializations section. Because of the mechanisms used to display this information, the only way to access it is via a copy/paste operation, which we apply to the equation of the plane.
> 


(5.1) 
Dividing through by the coefficient of leads to
> 

a form that compares favorably with our analytical results from a previous section.
Figure 5 provides a graph of this same plane generated from the parametric representation where This representation suggests the plane contains the span of U and V translated to the point .
> 

normal vector: <.3086067005, 2.468853598, 2.777460299>
equation of plane: <.3086067005*x2.468853598*y+2.777460299*z = 3.08606699923948114>
point on plane nearest origin: <.6849315083e1, .5479452055, .6164383563>
basis vectors: <2.160246899, 2.160246899, 2.160246899>, <3.207134902, 1.603567451, 1.069044966> 



Figure 5 Plane given by its parametric representation graphed with PlanePlot command. Transparency applied interactively.

The orientation of the normal vector can be arbitrary for this representation of the plane. As we did earlier, we copy and paste the equation of the plane, obtaining
> 


(5.2) 
which we cast into the form
> 

The basis vectors are actually multiples of U and V, as we discover after first copying and pasting, then normalizing.
Tools from the Physics Package
Initializations
> 
with(Physics:Vectors):
Setup(mathematicalnotation=true): 
As detailed in last month's column article, "Vectors in the LinearAlgebra, VectorCalculus, and Physics Packages," the Physics package provides for three types of vectors, summarized in Table 1.
Designation

Input (Text Mode)

Math Mode Representation

Basis Vector

_i, _j, _k


NonProjected Vector

A_


Projected Vector

2 *_i + 3 *_j + 5 *_k


Table 1 Vector types supported by the Physics package

If we let r be the generic position vector for any point on the plane, and P be the position vector for the point , the vector equation for the plane passing through point and containing the directions U and V can be written as
> 
q := (r_  P_).(U_ &x V_) = 0; 
The input expression can be converted to math mode by invoking the Context Menu for it, and selecting Convert To → 2D Math Input. The result is something like
depending on how Maple normalizes the expression. (Our equation for the plane is nothing more than the statement that the triplescalar (box) product between the coplanar vectors U, V, and must vanish. The Physics package converts such expressions to a normal form, so the output, equivalent to the input, is not necessarily in the exact same form.)
It is tedious to enter this directly in math mode. The trailing underscore must be preceded by the escape character: (\). The dot product can be entered as the alphabetic period or as the bold centered dot from the Common Symbols palette. The crossproduct symbol can also be entered from the Common Symbols palette, or can be typed as &x, in which case it is not replaced with the crossproduct symbol.
Having written a vector equation for the plane, one must now make substitutions into this formula. Again, typing in math mode is more tedious than typing in the text mode we use below, where we enter the vectors r, P, U, and V from the Initial Data section, above. The restart command we executed upon entering this present section erased from Maple's memory the previous values assigned to these symbols. However, there is no conversion routines to change a Vector to an object the Physics package recognizes as a projected vector, so this data would have to be reentered anyway.
> 


(6.1) 
Of course, this equation compares favorably with our earlier results, especially if we modify it as per
> 

In working with nonprojected vectors, the issue of substitution of the projected representations generally arises. The following stratagem is an attempt to make the substitution process a bit less tedious.
First, define the vectors
> 

Notice that T is a generic projected vector, and X is a "toplevel" Vector not specific to the Physics package. Ordinarily, T would have a trailing underscore, but we are using T as just a symbol, a placeholder, so we can dispense with the additional notation.
> 

The Equate command forms the equations arising from equating corresponding components. These equations are then used as substitution rules in T, which has the correct structure for a projected Physics vector, at which point substitutions can be made for the nonprojected Physics vectors.
Legal Notice: The copyright for this application is owned by the author(s). Neither Maplesoft nor the author are responsible for any errors contained within and are not liable for any damages resulting from the use of this material. This application is intended for noncommercial, nonprofit use only. Contact the author for permission if you wish to use this application in forprofit activities.