Chapter 1: Vectors, Lines and Planes
Section 1.3: Dot Product
|
Example 1.3.2
|
|
If and ,
b)
|
Obtain , the angle between A and B
|
d)
|
Obtain the scalar projection of B on A
|
e)
|
Obtain the vector projection of B on A
|
f)
|
Obtain the component of B orthogonal to A
|
g)
|
For A, obtain direction cosines, angles, and numbers.
|
|
|
|
|
Solution
|
|
|
Mathematical Solution
|
|
|
Part (a)
|
|
=
|
|
Part (b)
|
|
radians
|
|
Part (c)
|
|
In Part (b), the norm of A was found to be by computing .
In Section 1.1, the norm was defined as the square root of the sum of the squares of the components. Hence, calculate
|
|
Part (d)
|
|
•
|
The vectors A, B, and are drawn in Figure 1.3.2(a).
|
•
|
The vectors A and B are drawn in red and green, respectively. The vector projection of B on A, namely, , which is collinear with A, is drawn as an arrow having a black outline and residing within the arrow representing A.
|
•
|
The scalar projection of B on A is the length of the vector projection, that is
|
= =
|
|
Figure 1.3.2(a) Vectors A, B, and
|
|
|
|
|
|
|
|
Part (e)
|
|
The vector , the vector projection of B on A, is shown in Figure 1.3.2(a). It is obtained by the following calculation.
= =
|
|
Part (f)
|
|
The component of B orthogonal to A is the vector , shown in blue in Figure 1.3.1(a). It is obtained by the following calculation.
= =
|
|
Part (g)
|
|
The direction cosines for A are the components of = .
Direction Cosines
|
Direction Angles (in radians)
|
|
|
|
|
|
|
|
|
A common multiple of the direction cosines yields a set of direction numbers. Hence, the components of A itself constitute a set of direction numbers.
|
|
|
Maple Solution - Interactive
|
|
|
Part (a)
|
|
Data entry
|
•
|
Context Panel: Assign Name
|
|
|
•
|
Context Panel: Assign Name
|
|
|
Compute the dot product
|
•
|
Common Symbols palette: Dot-product operator.
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
|
|
Although Figure 1.3.2(a) could be constructed interactively, its construction is tedious. Below, in the section where a coded solution is given, Maple commands for drawing the figure more efficiently are given.
|
|
Part (b)
|
|
Begin by installing the Student MultivariateCalculus package since it contains an Angle command, which then becomes available in the Context Panel.
•
|
Tools≻Load Package: Student Multivariate Calculus
|
|
Loading Student:-MultivariateCalculus
|
•
|
Form a sequence of the names of the two vectors.
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Student Multivariate Calculus≻Lines & Planes≻Angle
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
=
|
|
|
|
|
Part (c)
|
|
With the Student MultivariateCalculus package installed, the norm of A can be accessed via the Context Panel or via the notation , as per the note on norms in Section 1.1.
Obtain the square of the 2-norm via standard math notation
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
•
|
Common Symbols palette: Dot-product operator
|
|
=
|
•
|
Expression palette: Square root template
|
•
|
Common Symbols palette: Dot-product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
Obtain the 2-norm via the Context Panel
|
•
|
Write the name A.
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Student Multivariate Calculus≻Norm
|
|
=
|
|
|
There is no Context Panel option for obtaining the square of the norm. Hence, the alternate calculation shows instead of .
|
|
Part (d)
|
|
Implement = using math notation for the norm
|
•
|
Common Symbols palette: Dot product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
=
|
Implement = using Context Panel for the norm
|
•
|
Write the name A.
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Student Multivariate Calculus≻Norm
|
|
=
|
•
|
Common Symbols palette: Dot-product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
=
|
Implement = as to avoid norm notation
|
•
|
Common Symbols palette: Dot product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
=
|
|
|
|
|
Part (e)
|
|
The
task template, implemented in Table 1.3.2(a), provides a solution for both and , and in addition, draws a graph of B and its two components.
Tools≻Tasks≻Browse: Linear Algebra≻Visualizations≻Projection Plot onto 1-D
|
Projection onto 1-D Subspace
|
Vector to be projected
Project onto
|
|
|
|
|
|
|
Table 1.3.2(a) Projection Plot onto 1-D task template
|
|
|
Table 1.3.2(b) implements the calculation of via the recipe listed in Table 1.3.1.
•
|
Common Symbols palette: Dot product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
Table 1.3.1(b) Computation of via the recipe listed in Table 1.3.1.
|
|
|
Table 1.3.2(c) implements the calculation of via the Projection option in the Context Panel, an option available only when the Student MultivariateCalculus package is installed.
•
|
Write a sequence of the names of the vectors.
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Student Multivariate Calculus≻Lines & Planes≻Projection
|
|
=
|
Table 1.3.2(c) Computation of via the Projection option in the Context Panel
|
|
|
|
|
Part (f)
|
|
Calculate
|
•
|
Common Symbols palette: Dot-product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
|
|
Compare this result to that provided in Table 1.3.2(a).
|
|
Part (g)
|
|
•
|
Type the name A.
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Student Multivariate Calculus≻Normalize
|
•
|
Context Panel: Assign to a Name≻T
|
|
=
|
•
|
Set each direction cosine equal to the appropriate component of T, the normalization of A.
|
•
|
Context Panel: Solve≻Solve
|
•
|
Context Panel: Select Element≻1
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
|
|
|
|
|
Note: The symbol is a special mathematical quantity, which Maple therefore does not treat the same as it would a plane name. Here, it was converted to an atomic identifier, which freezes it as a name distinct from its meaning as a special symbol.
|
|
|
Maple Solution - Coded
|
|
|
Part (a)
|
|
As per Table 1.3.2, the Student MultivariateCalculus package contains a DotProduct command defined over the real numbers.
For completeness and clarity, the Coded solutions begin with the execution of a restart command.
Initialize
|
|
|
•
|
Install the Student MultivariateCalculus package.
|
|
|
•
|
Define the vectors A and B.
|
|
|
Compute
|
|
=
|
|
|
The following code will draw the vectors in Figure 1.3.2(a). The additional text was added to the figure interactively via the Drawing toolbar.
|
|
Part (b)
|
|
Recall that the Student MultivariateCalculus package was installed in Part (a).
Compute via the Angle command
|
=
|
Compute from first principles
|
=
|
|
|
|
|
Part (c)
|
|
Recall that the Student MultivariateCalculus package was installed in Part (a).
|
|
Part (d)
|
|
Recall that the Student MultivariateCalculus package was installed in Part (a).
|
|
Part (e)
|
|
Recall that the Student MultivariateCalculus package was installed in Part (a).
Compute via the Projection command in the Student MultivariateCalculus package
|
=
|
Compute from first principles
|
=
|
|
|
|
|
Part (f)
|
|
Recall that the Student MultivariateCalculus package was installed in Part (a).
Compute via the Projection command in the Student MultivariateCalculus package
|
=
|
Compute from first principles
|
=
|
|
|
|
|
Part (g)
|
|
Recall that the Student MultivariateCalculus package was installed in Part (a).
Use the Normalize command to obtain the vector .
|
|
Direction Cosines
|
Direction Angles
|
|
=
|
|
=
|
|
=
|
|
|
|
|
|
|
<< Previous Example Section 1.3
Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
|