| Line 42: |
Line 42: |
| | While the dot product can be used in any number of dimensions, there is a special way of multiplying vectors which only exists in three dimensions (although it is a specific case of a [[Wedge Product|more general concept]]). It is called the '''cross product''' and written <math>\vec{u} \times \vec{v} \ </math>. The cross product is defined as having length equal to the area of the parallelogram borderd on two sides by <math>\vec{u} \ </math> and <math>\vec{v} \ </math>, and direction perpendicular to either vector, with a right handed orientation. This means that if we take our right hand, point the palm in the direction of <math>\vec{u} \ </math>, bend our knuckles so that they point in the direction of <math>\vec{v} \ </math>, then our thumb is already pointing in the direction of <math>\vec{u} \times \vec{v} \ </math>. This definition is not easy to calculate with, and shortly we will introduce a more convenient way of calculating these kinds of products. | | While the dot product can be used in any number of dimensions, there is a special way of multiplying vectors which only exists in three dimensions (although it is a specific case of a [[Wedge Product|more general concept]]). It is called the '''cross product''' and written <math>\vec{u} \times \vec{v} \ </math>. The cross product is defined as having length equal to the area of the parallelogram borderd on two sides by <math>\vec{u} \ </math> and <math>\vec{v} \ </math>, and direction perpendicular to either vector, with a right handed orientation. This means that if we take our right hand, point the palm in the direction of <math>\vec{u} \ </math>, bend our knuckles so that they point in the direction of <math>\vec{v} \ </math>, then our thumb is already pointing in the direction of <math>\vec{u} \times \vec{v} \ </math>. This definition is not easy to calculate with, and shortly we will introduce a more convenient way of calculating these kinds of products. |
| | | | |
| − | While we often write <math>\begin{pmatrix}x\\y\\z\end{pmatrix} \ </math> to describe a vector, we often find it more convenient to define three vectors <math>\vec{i}=\begin{pmatrix}1\\0\\0\end{pmatrix}, \vec{j}=\begin{pmatrix}0\\1\\0\end{pmatrix}, \ </math> and <math>\vec{k}=\begin{pmatrix}0\\0\\1\end{pmatrix} \ </math>, unit vectors which point along the positive <math>x, y, \ </math> and <math>z \ </math> axes, respectively. | + | While we often write <math>\vec{v} = \begin{pmatrix}x\\y\\z\end{pmatrix} \ </math> to describe a vector, we often find it more convenient to define three vectors <math>\vec{i}=\begin{pmatrix}1\\0\\0\end{pmatrix}, \vec{j}=\begin{pmatrix}0\\1\\0\end{pmatrix}, \ </math> and <math>\vec{k}=\begin{pmatrix}0\\0\\1\end{pmatrix} \ </math>, unit vectors which point along the positive <math>x, y, \ </math> and <math>z \ </math> axes, respectively. |
| | | | |
| | + | With these vectors, we can write our original vector <math>\vec{v}=x\vec{i} + y\vec{j} + z\vec{k} \ </math>. It means exactly the same thing as <math>\begin{pmatrix}x\\y\\z\end{pmatrix} \ </math>, but is a little friendlier to the printed page. As an additional notational convenience, we often write <math>\vec{v} = v_1 \vec{i} + v_2 \vec{j} + v_3 \vec{k} \ </math>, since keeping track of all the <math>x \ </math>'s and <math>a \ </math>'s would get unwieldy very fast if we are working with several vectors. |
| | | | |
| − | Hopefully, the student will remember the definition of the '''determinant''' of a matrix, because this will make calculating cross products much, much easier. | + | As we are about to see, these conveniences can make the calculation of the cross product relatively simple. Hopefully, the student will remember the definition of the '''determinant''' of a matrix, because this will make calculating cross products much, much easier. For those who are unfamiliar with the idea, we will review the concept. |
| | + | |
| | + | For a matrix <math>\begin{pmatrix}a&b\\c&d\end{pmatrix} \ </math>, we define the determinant <math>\begin{vmatrix}a&b\\c&d\end{vmatrix}</math> to be <math>ad - bc \ </math>. To compute the determinant of a larger square matrix, then, we choose any row of the matrix and take the left entry, and multiply that number by the determinant of the matrix formed by eliminating the first row and column of the original matrix. From this, we subtract the next entry in our row times the matrix formed by eliminating THAT row and column of the orginal matrix. Then we add the next term, and so on and so forth until we have a complete expansion. |
| | + | |
| | + | Below is an example of this technique, expanding along the first row. |
| | + | |
| | + | <math>\begin{vmatrix}a&b&c\\r&s&t\\x&y&z\end{vmatrix} = a\begin{vmatrix}s&t\\y&z\end{vmatrix} - b \begin{vmatrix}r&t\\x&z\end{vmatrix} + c \begin{vmatrix}r&s\\x&y\end{vmatrix}</math> |
| | + | |
| | + | Examine this equation, and make sure you understand how each of the matrices on the right hand side were formed. Once we have reached this point, we can use our definition of a 2x2 determinant to arrive at a value. |
| | + | |
| | + | Now, we finally arrive at a means of calculating the cross product of two vectors. It turns out that the definition we gave of cross product amounts to |
| | + | |
| | + | <math>\vec{u}\times\vec{v}=\begin{vmatrix}\vec{i}&\vec{j}&\vec{k}\\u_1&u_2&u_3\\v_1&v_2&v_3\end{vmatrix} |
| | + | |
| | + | Normally, we don't allow vectors (like <math>\vec{i} \ </math>) to be elements of a matrix or a determinant, but in this case, we make an exception because the formula is so useful and easy to remember. We will encounter a similar exception to the rules when we give an easy way to remember the formula for '''curl.''' |
| | | | |
| | ==Vector Functions== | | ==Vector Functions== |