# Vectors

**Vectors** are used in engineering mechanics to represent quantities that have both a **magnitude** and a **direction**. Many engineering quantities, such as forces, displacements, velocities, and accelerations, will need to be represented as vectors for analysis. Vector quantities contrast with **scalar** values (such as mass, area, or speed) which have a magnitude but no direction.

When dealing with vectors in equations, engineers commonly denote something as a vector by putting an arrow over the variable. Variables without an arrow over top of them represent a scalar quantity, or simply the magnitude of that vector quantity.

Vector Quantity: | \[\vec{F}\] |

Scalar Quantity: | \[F\] |

In contrast with scalar quantities, we cannot add, subtract, multiply or divide them by simply adding, subtracting, multiplying or dividing the magnitudes. The directions will also play a critical role in solving equations that contain vector quantities.

## Vector Representation:

To represent a vector quantity, we will generally have two options. These two options are:

**Magnitude and Direction Form**: Where the magnitude is given as a single quantity and the direction is given via an angle or combination of angles.**Component Form**: Where the magnitude and direction are given through component magnitudes in each coordinate direction.

The magnitude and direction form of vector quantities are often used at the start and end of a problem. This is because it is often easier to measure things likes forces and velocities as a magnitude and direction at the start of a problem, and it is often easier to visualize the final result as a magnitude and direction at the end. Vectors represented as a magnitude and direction need to be shown visually through the use of an arrow, where the magnitude is the length of the arrow, and the direction is shown through the arrow head and an angle or angles relative to some known axes or other direction.

The component form of a vector is often used in middle of the problem because it is far easier to do math with vector quantities in component form. Vectors can be represented in component form in one of two ways. First we can use square brackets to indicate a vector, with the x, y, and possibly z components separated by commas. Alternatively, we can write out a vector in component form using the magnitudes in front of unit vectors to indicate directions (generally the i, j, and k unit vectors for the x, y , and z directions respectively). Neither of these component forms relies on a visual depiction of the vector as with the magnitude and direction form, though it is important to clearly identify the coordinate system in earlier diagrams.

With Brackets: | \[\vec{F}=\left [ 3, 4, 5 \right ]\] |

With Unit Vectors: | \[\vec{F}=3\hat{i}+4\hat{j}+5\hat{k}\] |

## Converting Between Vector Representations in 2D

For our analysis, we will often find it advantageous to have the vectors in one form or the other, and will therefore need to convert the vector from a magnitude and direction to component form or vice versa. To do this we will use right triangles and trigonometry.

### Going from a magnitude and direction to component form

To go from a magnitude and direction to component form we will first draw a right triangle with the hypotenuse being the original vector. The horizontal arm of the triangle will then be the x component of the vector while the vertical arm is the y component of the vector. If we know the angle of the vector with respect to either horizontal or vertical, we can use the sine and cosine relationship to find the x and y components.

It is important to remember that how we measure the angle will affect the sine and cosine relationships. Multiplying the magnitude by the sine will always give us the opposite leg and multiplying the magnitude by the cosine will always give us the adjacent leg.

### Going from component form to a magnitude and direction

To find the magnitude and the direction of a vector using components, we will use the same process in reverse. We will draw the components as the legs of a right triangle, where the hypotenuse of the triangle shows the magnitude and direction of the vector.

To find the magnitude of the vector we will use the Pythagorean Theorem, taking the square root of the sum of the squares of each component. To find the angle, we can easily use the inverse tangent function, relating the opposite and adjacent legs of our right triangle.

If we know the magnitude of the hypotenuse, we can also use the inverse sine and cosine functions in place of the inverse tangent function to find the angle. As with the previous conversion, it is important to clearly identify the opposite leg, the adjacent leg, and the hypotenuse in our diagrams and to think of these when applying the inverse trig functions.

## Converting Between Vector Representations in 2D

In three dimensions, we will have either three components (x, y, and z) for component form or a magnitude and two angles for the direction in magnitude and direction form. To convert between forms we will need to draw in two sets of right triangles. The hypotenuse of the first triangle will be the original vector and one of the legs will be one of the three components. The other leg will then be the hypotenuse of the second triangle. The legs of this second triangle will then be the remaining two components as shown in the diagram below. Use sine and cosine relationships to find the magnitude of each component along the way. This general process of two consecutive right triangles will always hold true, but depending on angles that are given or chosen which components end up being which leg can vary. Carefully plotting everything out in a diagram is important for this reason.

To go from component form back to a magnitude and direction, we will use the 3D form of the Pythagorean Theorem (the magnitude will be the square root of the sum of the three components squared) and we can again use the inverse trig functions to find the angles. We simply need to work backwards through the two right triangles in our problem, so again it is important to carefully draw out your diagrams.

### Alternative method for finding components of 3D vectors

Sometimes, as with the tension in a cable, the geometry of the cable is given in component form rather than as angles. In cases such as this we could use geometry to figure out the angles and then use those angles to figure out the components, but there is a mathematical shortcut that will allow us to solve for the components more quickly involving the ratio of lengths. Specifically, the ratios of the components of the cable length to the overall length of the cable will be the same as the ratio of the corresponding force components to the overall magnitude of the force.

To use this method we will first need to find the overall length of the cable (or other physical geometric feature) using the Pythagorean Theorem. Once we have that overall length, we find a ratio by taking the x component of the length divided by the overall length. To find the x component of the force, we simply multiply the overall magnitude of the force by this ratio of lengths (Lx/L). The process for the y and z components follows a similar path, except the ratios would include the y and z component lengths instead of the x component.