| Line 26: |
Line 26: |
| | Vectors are the bread and butter of multivariable calculus because they pack multiple variables into a single, easily manipulated quantity. Let's look at some more specific examples. | | Vectors are the bread and butter of multivariable calculus because they pack multiple variables into a single, easily manipulated quantity. Let's look at some more specific examples. |
| | | | |
| − | In our first descriptions, we used a coordinate system you should be familiar with call "polar coordinates." If you aren't familiar with this system, we will review them shortly. When using Cartesian coordinates, vectors are very, very familiar. The point <math>(x,y) \ </math> has position vector, or put more simply, ''is'' the vector written <math>\begin{pmatrix}x\\y\end{pmatrix} \ </math>. See illustration at right. Unlike variables which may be numbers, like <math>a, x, \ </math> etc., vectors are usually written <math>\vec{v} \ </math> or <math>\mathbf{v} \ </math>. While the latter is common in print and online, we will use the former since it is more easily duplicated in handwriting. | + | In our first descriptions, we used a coordinate system you should be familiar with call "polar coordinates." If you aren't familiar with this system, we will review them shortly. When using Cartesian coordinates, vectors are very, very familiar. The point <math>(x,y) \ </math> has position vector, or put more simply, ''is'' the vector written <math>\begin{pmatrix}x\\y\end{pmatrix} \ </math>. See illustration at right. Unlike variables which may be numbers, like <math>a, x, \ </math> etc., vectors are usually written <math>\vec{w} \ </math> or <math>\mathbf{v} \ </math>. While the latter is common in print and online, we will use the former since it is more easily duplicated in handwriting. |
| | | | |
| − | In three dimensional space we use three variables to write down a vector. In Cartesian coordinates, this would look like <math>\vec{v} = \begin{pmatrix}x\\y\\z\end{pmatrix} \ </math>. | + | In three dimensional space we use three variables to write down a vector. In Cartesian coordinates, this would look like <math>\vec{w} = \begin{pmatrix}x\\y\\z\end{pmatrix} \ </math>. |
| | | | |
| − | We can, if we wish, talk about just the length of the vector - this is its absolute value, or <math>\left\| \vec{v} \right\| \ </math>. For a vector written in Cartesian coordinates, the Pythagorean theorem tells us this is just <math>\sqrt{x^2 + y^2} \ </math>. | + | We can, if we wish, talk about just the length of the vector - this is its absolute value, or <math>\left\| \vec{w} \right\| \ </math>. For a vector written in Cartesian coordinates, the Pythagorean theorem tells us this is just <math>\sqrt{x^2 + y^2} \ </math>. |
| | | | |
| | Vectors can be added and subtracted, just like numbers. See the illustration below. | | Vectors can be added and subtracted, just like numbers. See the illustration below. |
| Line 38: |
Line 38: |
| | Multiplication by a number is also simple: the vectors direction is unchanged, but its length is multiplied by that number. Again, in Cartesian coordinates, this becomes simple: <math>c\begin{pmatrix}a\\b\end{pmatrix} = \begin{pmatrix}ca\\cb\end{pmatrix} \ </math>. | | Multiplication by a number is also simple: the vectors direction is unchanged, but its length is multiplied by that number. Again, in Cartesian coordinates, this becomes simple: <math>c\begin{pmatrix}a\\b\end{pmatrix} = \begin{pmatrix}ca\\cb\end{pmatrix} \ </math>. |
| | | | |
| − | There are two ways to multiply a vector by another vector. In two dimensions, we can perform only one, which is called the '''dot product''' or in more advanced terminology, '''inner product.''' Given two vectors, this dot product is how far one vector goes in the direction of the other, using the other as the "unit" of length. It is defined <math>\vec{u} \cdot \vec{v} = \left\|\vec{u}\right\| \left\|\vec{v}\right\| \cos(\theta) \ </math>, where <math>\theta \ </math> is the angle between <math>\vec{u} \ </math> and <math>\vec{v} \ </math>. As before, this takes a particularly simple form in Cartesian coordinates: <math>\begin{pmatrix}x\\y\end{pmatrix} \cdot \begin{pmatrix}a\\b\end{pmatrix} =xa+by \ </math>. This expression is similar for the three dimensional case: <math>\begin{pmatrix}x\\y\\z\end{pmatrix} \cdot \begin{pmatrix}a\\b\\c\end{pmatrix} = xa+yb+zc \ </math>. | + | There are two ways to multiply a vector by another vector. In two dimensions, we can perform only one, which is called the '''dot product''' or in more advanced terminology, '''inner product.''' Given two vectors, this dot product is how far one vector goes in the direction of the other, using the other as the "unit" of length. It is defined <math>\vec{u} \cdot \vec{w} = \left\|\vec{u}\right\| \left\|\vec{w}\right\| \cos(\theta) \ </math>, where <math>\theta \ </math> is the angle between <math>\vec{u} \ </math> and <math>\vec{w} \ </math>. As before, this takes a particularly simple form in Cartesian coordinates: <math>\begin{pmatrix}x\\y\end{pmatrix} \cdot \begin{pmatrix}a\\b\end{pmatrix} =xa+by \ </math>. This expression is similar for the three dimensional case: <math>\begin{pmatrix}x\\y\\z\end{pmatrix} \cdot \begin{pmatrix}a\\b\\c\end{pmatrix} = xa+yb+zc \ </math>. |
| | | | |
| − | 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{w} \ </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{w} \ </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{w} \ </math>, then our thumb is already pointing in the direction of <math>\vec{u} \times \vec{w} \ </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>\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. | + | While we often write <math>\vec{w} = \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. | + | With these vectors, we can write our original vector <math>\vec{w}=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{w} = w_1 \vec{i} + w_2 \vec{j} + w_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. |
| | | | |
| | 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. | | 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. |
| Line 58: |
Line 58: |
| | 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 | | 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} \ </math> | + | <math>\vec{u}\times\vec{w}=\begin{vmatrix}\vec{i}&\vec{j}&\vec{k}\\u_1&u_2&u_3\\w_1&w_2&w_3\end{vmatrix} \ </math> |
| | | | |
| | 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.''' | | 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.''' |
| Line 66: |
Line 66: |
| | Before, we described scalar functions as taking a point in space and ascribing a number to it - for example, <math>f(x,y,z) = x^2 + y^2 +z^2 \ </math>. With our new notation, we can describe this as <math>f(\vec{r}) = \vec{r} \cdot \vec{r} \ </math>, which is a scalar function written with vectors. | | Before, we described scalar functions as taking a point in space and ascribing a number to it - for example, <math>f(x,y,z) = x^2 + y^2 +z^2 \ </math>. With our new notation, we can describe this as <math>f(\vec{r}) = \vec{r} \cdot \vec{r} \ </math>, which is a scalar function written with vectors. |
| | | | |
| − | There is another class of functions, though, which return not numbers but vectors. These are vector functions, and they are useful for describing many phenomenon, most notably flows, winds, and heat dispersion. For example, at every point in the ocean, the water is moving with both a speed and a direction. If we have some vector <math>\vec{r} \ </math> which can be used to desrcibe points in the ocean, we can write a function <math>f(\vec{r}) = \vec{v} \ </math>, which will give us the velocity vector of the water at <math>\vec{r} \ </math>. Very often, we use <math>\vec{r} \ </math> as a variable vector describing a position or location, <math>\vec{v} \ </math> for velocity, and later we'll encounter <math>\vec{a} \ </math> for acceleration. | + | There is another class of functions, though, which return not numbers but vectors. These are vector functions, and they are useful for describing many phenomenon, most notably flows, winds, and heat dispersion. For example, at every point in the ocean, the water is moving with both a speed and a direction. If we have some vector <math>\vec{r} \ </math> which can be used to desrcibe points in the ocean, we can write a function <math>f(\vec{r}) = \vec{w} \ </math>, which will give us the velocity vector of the water at <math>\vec{r} \ </math>. Very often, we use <math>\vec{r} \ </math> as a variable vector describing a position or location, <math>\vec{w} \ </math> for velocity, and later we'll encounter <math>\vec{a} \ </math> for acceleration. |
| | | | |
| | =Coordinate Systems= | | =Coordinate Systems= |