Chapter 1: Vectors, Lines and Planes
Section 1.3: Dot Product
|
Example 1.3.3
|
|
Using the law of cosines, verify the equivalence of and
|
|
|
|
Solution
|
|
|
Mathematical Solution
|
|
•
|
Apply the law of cosines, namely,
|
to the triangle formed by the vectors A (in red), B (in green), and (in black) in Figure 1.3.3(a). The angle is formed by the vectors A and B.
•
|
Setting , , and in the law of cosines leads to the following.
|
|
|
Figure 1.3.3(a) Triangle formed by vectors A, B, and
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Maple Solution - Interactive
|
|
Load the Student LinearAlgebra package so that the norm of a vector defaults to the Euclidean norm. Then define the A and B as generic vectors in .
Initialize
|
•
|
Tools≻Load Package: Student Multivariate Calculus
|
|
Loading Student:-MultivariateCalculus
|
•
|
Context Panel: Assign Name
|
|
|
•
|
Context Panel: Assign Name
|
|
|
Obtain the dot product of A and B
|
•
|
Common Symbols palette: Dot-product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
Write the law of cosines in the form .
Apply this to the vectors A, B, and in the triangle in Figure 1.3.3(a).
|
•
|
Write the expression corresponding to the numerator and press the Enter key.
|
•
|
Context Panel: Expand≻Expand
|
•
|
Using the equation label (implement with Control L), divide the expanded expression by 2
|
|
| (1) |
|
|
|
In terms of components, and using the law of cosines, these calculations show that
|
|
Maple Solution - Coded
|
|
The following calculations will establish that
, as per the remarks above about the use of the law of cosines.
Initialize
|
•
|
Install the Student MultivariateCalculus package.
|
|
|
•
|
Define the vectors A and B.
|
|
|
Compute the dot product
|
|
| (2) |
|
Obtain , , and
|
•
|
Apply the Norm command to vectors A, B, and .
|
|
| (3) |
|
| (4) |
|
| (5) |
|
Combine to obtain
|
•
|
Use equation labels and apply the expand command.
|
|
| (6) |
|
|
|
|
|
|
<< 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
|