# Waves/Vectors

Waves : 2 and 3 Dimension Waves 1 - 2 - 3 - 4 - 5 - 6 - 7 Problems

## Math Tutorial -- Vectors

Figure 1: Displacement vectors in a plane.
Vector ${\mbox{A}}$ represents the displacement of George from Mary, while vector ${\mbox{B}}$ represents the displacement of Paul from George. Vector ${\mbox{C}}$ represents the displacement of Paul from Mary and ${\mbox{C}}={\mbox{A}}+{\mbox{B}}$. The quantities $A_{x}$, $A_{y}$, etc., represent the Cartesian components of the vectors.
Before we can proceed further we need to explore the idea of a vector. A vector is a quantity which expresses both magnitude and direction. Graphically we represent a vector as an arrow. In typeset notation a vector is represented by a boldface character, while in handwriting an arrow is drawn over the character representing the vector.
Figure 1 shows some examples of displacement vectors, i. e., vectors which represent the displacement of one object from another, and introduces the idea of vector addition. The tail of vector ${\mbox{B}}$ is collocated with the head of vector ${\mbox{A}}$, and the vector which stretches from the tail of ${\mbox{A}}$ to the head of ${\mbox{B}}$ is the sum of ${\mbox{A}}$ and ${\mbox{B}}$, called ${\mbox{C}}$ in figure 1.
Figure 2: Definition sketch for the angle $\theta$ representing the orientation of a two dimensional vector.
The quantities $A_{x}$, $A_{y}$, etc., represent the Cartesian components of the vectors in figure 2. A vector can be represented either by its Cartesian components, which are just the projections of the vector onto the Cartesian coordinate axes, or by its direction and magnitude. The direction of a vector in two dimensions is generally represented by the counterclockwise angle of the vector relative to the $x$ axis, as shown in figure 2. Conversion from one form to the other is given by the equations
    $A=(A_{x}^{2}+A_{y}^{2})^{1/2}\qquad \theta =\tan ^{-1}(A_{y}/A_{x}),$
    $A_{x}=A\cos(\theta )\qquad A_{y}=A\sin(\theta ),$
where $A$ is the magnitude of the vector. A vector magnitude is sometimes represented by absolute value notation: $A\equiv \vert {\mbox{A}}\vert$.
Notice that the inverse tangent gives a result which is ambiguous relative to adding or subtracting integer multiples of $\pi$. Thus the quadrant in which the angle lies must be resolved by independently examining the signs of $A_{x}$ and $A_{y}$ and choosing the appropriate value of $\theta$.
To add two vectors, ${\mbox{A}}$ and ${\mbox{B}}$, it is easiest to convert them to Cartesian component form. The components of the sum ${\mbox{C}}={\mbox{A}}+{\mbox{B}}$ are then just the sums of the components:
    $C_{x}=A_{x}+B_{x}\qquad C_{y}=A_{y}+B_{y}.$
Subtraction of vectors is done similarly, e. g., if ${\mbox{A}}={\mbox{C}}-{\mbox{B}}$, then
    $A_{x}=C_{x}-B_{x}\qquad A_{y}=C_{y}-B_{y}.$
A unit vector is a vector of unit length. One can always construct a unit vector from an ordinary vector by dividing the vector by its length: ${\mbox{n}}={\mbox{A}}/\vert {\mbox{A}}\vert$. This division operation is carried out by dividing each of the vector components by the number in the denominator. Alternatively, if the vector is expressed in terms of length and direction, the magnitude of the vector is divided by the denominator and the direction is unchanged.
Unit vectors can be used to define a Cartesian coordinate system. Conventionally, ${\mbox{i}}$, ${\mbox{j}}$, and ${\mbox{k}}$ indicate the $x$, $y$, and $z$ axes of such a system. Note that ${\mbox{i}}$, ${\mbox{j}}$, and ${\mbox{k}}$ are mutually perpendicular. Any vector can be represented in terms of unit vectors and its Cartesian components: ${\mbox{A}}=A_{x}{\mbox{i}}+A_{y}{\mbox{j}}+A_{z}{\mbox{k}}$. An alternate way to represent a vector is as list of components: ${\mbox{A}}=(A_{x},A_{y},A_{z})$. We tend to use the latter representation since it is somewhat more economical notation.
There are two ways to multiply two vectors, yielding respectively what are known as the dot product and the cross product. The cross product yields another vector while the dot product yields a number. Here we will discuss only the dot product.
Figure 3: Definition sketch for dot product.
Given vectors ${\mbox{A}}$ and ${\mbox{B}}$, the dot product of the two is defined
    ${\mbox{A}}\cdot {\mbox{B}}\equiv \vert {\mbox{A}}\vert \vert {\mbox{B}}\vert \cos \theta ,$
where $\theta$ is the angle between the two vectors. An alternate expression for the dot product exists in terms of the Cartesian components of the vectors:
    ${\mbox{A}}\cdot {\mbox{B}}=A_{x}B_{x}+A_{y}B_{y}.$
It is easy to show that this is equivalent to the cosine form of the dot product when the $x$ axis lies along one of the vectors, as in figure 3. Notice in particular that $A_{x}=\vert {\mbox{A}}\vert \cos \theta$, while $B_{x}=\vert {\mbox{B}}\vert$ and $B_{y}=0$. Thus, ${\mbox{A}}\cdot {\mbox{B}}=\vert {\mbox{A}}\vert \cos \theta \vert {\mbox{B}}\vert$ in this case, which is identical to the form given above.
By the law of cosines we can also see that
    $\mathbf {A} \cdot \mathbf {B} ={\frac {1}{2}}\left(|\mathbf {A} +\mathbf {B} |^{2}-|\mathbf {A} |^{2}-|\mathbf {B} |^{2}\right)$
which is an alternate coordinate-free expression for the dot product.
Figure 4: Definition figure for rotated coordinate system. The vector ${\mbox{R}}$ has components $X$ and $Y$ in the unprimed coordinate system and components $X'$ and $Y'$ in the primed coordinate system.
All that remains to be proven for equation (2.6) to hold in general is to show that it yields the same answer regardless of how the Cartesian coordinate system is oriented relative to the vectors. To do this, we must show that $A_{x}B_{x}+A_{y}B_{y}=A_{x}'B_{x}'+A_{y}'B_{y}'$, where the primes indicate components in a coordinate system rotated from the original coordinate system.
This can be shown nearly instantly by applying the pythagorean theorem. Due to the fact that R is invariant and represents the hypotenuse for both triangles (X, X', Y and Y') we can conclude:
$|R|^{2}=X^{2}+Y^{2}{\mbox{ and }}|R|^{2}=X'^{2}+Y'^{2}\Rightarrow X^{2}+Y^{2}=X'^{2}+Y'^{2}$
Since the dot product can be written solely in terms of magnitudes, as we did above, if the magnitude of a vector is invariant the dot product of two vectors must also be invariant.
To deduce a general formula for X' and Y' you will have to do a bit more thinking:
Figure 2.4 shows the vector ${\mbox{R}}$ resolved in two coordinate systems rotated with respect to each other. From this figure it is clear that $X'=A+B$. Focusing on the shaded triangles, we see that $A=X\cos \theta$ and $B=Y\sin \theta$. Thus, we find $X'=X\cos \theta +Y\sin \theta$. Similar reasoning shows that $Y'=-X\sin \theta +Y\cos \theta$ (Just imagine to rotate the constructs in the image further 90° without changing the axis-names. You will instantly notice that in the second quadrant X is negative while Y positive).
Thus, the new and old coordinates are related by
    ${\begin{pmatrix}X^{\prime }\\Y^{\prime }\end{pmatrix}}={\begin{pmatrix}X\cos \theta +Y\sin \theta \\-X\sin \theta +Y\cos \theta \end{pmatrix}}$
This is true of the position vector. We can use it to extend the notion of vector to concepts other than position by stating that a pair of numbers is a vector if and only if its values change in exactly this way under rotation.
Substituting this relation into our earlier expression for the dot product and using the trigonometric identity $\cos ^{2}\theta +\sin ^{2}\theta =1$ results in
    ${\begin{matrix}A_{x}'B_{x}'+A_{y}'B_{y}'&=&&(A_{x}\cos \theta +A_{y}\sin \theta )(B_{x}\cos \theta +B_{y}\sin \theta )\\&&+&(-A_{x}\sin \theta +A_{y}\cos \theta )(-B_{x}\sin \theta +B_{y}\cos \theta )\\&=&&A_{x}B_{x}+A_{y}B_{y}\end{matrix}}$
which proves the complete equivalence of the two forms of the dot product quoted above. (Multiply out the above expression to verify this.)
A numerical quantity which doesn't depend on which coordinate system is being used is called a scalar. The dot product of two vectors is a scalar. However, the components of a vector, taken individually, are not scalars, since the components change as the coordinate system changes. Since the laws of physics cannot depend on the choice of coordinate system being used, we insist that physical laws be expressed in terms of scalars and vectors, but not in terms of the components of vectors.
In three dimensions the cosine form of the dot product remains the same, while the component form is
    ${\mbox{A}}\cdot {\mbox{B}}=A_{x}B_{x}+A_{y}B_{y}+A_{z}B_{z}.$