Skip to main content
Physics LibreTexts

9.3: Vector Arithmetic- Algebraic Methods

  • Page ID
    92169
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Although the graphical methods just described give a good intuitive picture of the mathematical operations, they can be a bit tedious to draw. A much more convenient and accurate alternative is the set of algebraic methods, which involve working with numbers instead of graphs. Before we can do that, though, we need to find a way to quantify a vector—to change it from a graph of an arrow to a set of numbers we can work with.

    clipboard_e2bca8b9ac023c3ebc75d1f04b85e38af.png
    Figure \(\PageIndex{1}\): Cartesian components of a vector.

    Rectangular Form

    One idea would be to keep track of the coordinates of the head and tail of the vector. But remember that we are free to move a vector around whereever we want, as long as the direction and magnitude remain unchanged. So let’s choose to always put the tail of the vector at the origin—that way, we only have to keep track of the head of the vector, and we cut our work in half. A vector can then be completely specified by just giving the coordinates of its head.

    There’s a little bit of a different way of writing this, though. We begin by defining two unit vectors (vectors with magnitude 1): i is a unit vector in the x direction, and j is a unit vector in the y direction. (In three dimensions, we add a third unit vector k in the ´ direction.)

    Referring to Fig. \(\PageIndex{1}\), let Ax be the projection of vector A onto the x-axis, and let Ay by its projection onto the y-axis. Then, recalling the rules for the multiplication of a vector by a scalar, A xi is a vector pointing in the x-direction, and whose length is equal to the projection A x. Similarly, Ay j is a vector pointing in the y-direction, and whose length is equal to the projection Ay . Then by the parallelogram rule for adding two vectors, vector A is the sum of vectors Axi and Ayj (Fig. \(\PageIndex{1}\)). This means we can write a vector A as
    \[
    \mathbf{A}=A_{x} \mathbf{i}+A_{y} \mathbf{j}
    \]

    or, if we're working in three dimensions,

    \[
    \mathbf{A}=A_{x} \mathbf{i}+A_{y} \mathbf{j}+A_{z} \mathbf{k} .
    \]

    Eq. ( \(\PageIndex{1}\)) or ( \(\PageIndex{2}\)) is called the rectangular or cartesian \(^{1}\) form of vector \(\mathbf{A}\).

    Magnitude

    The magnitude of a vector is a measure of its total "length." It is indicated with absolute value signs around the vector ( \(|\mathbf{A}|\) in type, or \(|\vec{A}|\) in handwriting), or more simply by just writing the name of the vector in regular type ( \(A\); no boldface or arrow). In terms of rectangular components, the magnitude of a vector is simply given by the Pythagorean theorem:

    \[
    |\mathbf{A}|=A=\sqrt{A_{x}^{2}+A_{y}^{2}+A_{z}^{2}}
    \]

    Example. The magnitude of vector \(\mathbf{A}=2 \mathbf{i}+5 \mathbf{j}\) is

    \[
    |\mathbf{A}|=A=\sqrt{2^{2}+5^{2}}=\sqrt{29}=5.3852 \notag
    \]

    Polar Form

    Instead of giving the \(x\) and \(y\) coordinates of the head of the vector, an alternative form is to give the magnitude and direction of the vector. This is called the polar form of a vector, and is indicated by the notation

    \[
    \mathbf{A}=A \angle \theta
    \]

    where \(A\) is the magnitude of the vector, and \(\theta\) is the direction, measured counterclockwise from the \(+x\) axis.

    By convention, in polar form, we always take the magnitude of a vector as positive. If the magnitude comes out negative (as the result of a calculation, for example), then we can make it positive by changing its sign and adding \(180^{\circ}\) to the direction.

    Converting between the rectangular and polar forms of a vector is fairly straightforward. To convert from polar to rectangular form, we use the definitions of the sine and \(\operatorname{cosine~to~get~} \sin \theta=\mathrm{opp} / \mathrm{hyp}=A_{y} / A\), and \(\cos \theta=\mathrm{adj} / \mathrm{hyp}=A_{x} / A\). Therefore to convert from polar to rectangular form, we use

    \[
    \begin{align}
    & A_{x}=A \cos \theta \\[6pt]
    & A_{y}=A \sin \theta
    \end{align}
    \]

    To go the other way (rectangular to polar form), we just invert these equations to solve for \(A\) and \(\theta\). To solve for \(A\), take the sum of the squares of both equations and add; to solve for \(\theta\), divide the \(A_{y}\) equation by the \(A_{x}\) equation. The results are

    \[
    \begin{align}
    A & =\sqrt{A_{x}^{2}+A_{y}^{2}} \\[6pt]
    \tan \theta & =\frac{A_{y}}{A_{x}}
    \end{align}
    \]

    To find \(\theta\), you must take the arctangent of the right-hand side of Eq. \(\PageIndex{8}\). But be careful: to get the angle in the correct quadrant, you first compute the right-hand side of Eq. (\(\PageIndex{8}\)), then use the arctangent (TAN \({ }^{-1}\) ) function on your calculator. If \(A_{x}>0\), then the calculator shows \(\theta\). But if \(A_{x}<0\), you must remember to add \(180^{\circ}\) ( \(\pi \mathrm{rad}\) ) to the calculator's answer to get \(\theta\) in the correct quadrant.

    It is also possible to write three-dimensional vectors in polar form, but this requires a magnitude and two angles. We won't have any need to write three-dimensional vectors in polar form for this course.

    Example \(\PageIndex{1}\)

    Polar to rectangular. Convert the vector \(\mathbf{A}=7 \angle 40^{\circ}\) from polar form to rectangular form:

    Solution

    \[
    \begin{align}
    & A_{x}=A \cos \theta=7 \cos 40^{\circ}=5.3623 \\[6pt]
    & A_{y}=A \sin \theta=7 \sin 40^{\circ}=4.4995
    \end{align}
    \]

    so the rectangular form is \(\mathbf{A}=5.3623 \mathbf{i}+4.4995 \mathbf{j}\)

    Example \(\PageIndex{2}\)

    Rectangular to polar. Convert the vector \(\mathbf{B}=-4 \mathbf{i}+8 \mathbf{j}\) from rectangular form to polar form:

    Solution

    \[
    \begin{align}
    |\mathbf{B}| & =\sqrt{B_{x}^{2}+B_{y}^{2}}=\sqrt{(-4)^{2}+8^{2}}=\sqrt{16+64}=\sqrt{80}=8.9443 \\[6pt]
    \tan \theta & =\frac{B_{y}}{B_{x}}=\frac{8}{-4}=-2 \quad \Rightarrow \quad \theta=116.565^{\circ}
    \end{align}
    \]

    so the polar form is \(8.9443 \angle 116.565^{\circ}\).

    Notice that to find \(\theta\), we take the inverse tangent of -2 and the calculator returns \(-63.435^{\circ}\). But because the denominator ( -4 ) is negative, we add \(180^{\circ}\) to the calculator's answer: \(-63.435^{\circ}+180^{\circ}=116.565^{\circ}\). If the denominator had been positive, we would not have added this \(180^{\circ}\). For example, the rectangular vector \(\mathbf{C}=4 \mathbf{i}-8 \mathbf{j}\) would be \(8.9443 \angle-64.435^{\circ}\) in polar form.

    Vector Equality

    In order for two vectors to be equal, they must have the same magnitude and point in the same direction. This means that each of their components must be equal. For example, if \(\mathbf{A}=\mathbf{B}\), then all of the following must be true:

    \[
    \begin{align}
    A_{x} & =B_{x} \\[6pt]
    A_{y} & =B_{y} \\[6pt]
    A_{z} & =B_{z}
    \end{align}
    \]

    Addition

    Now we're ready to describe the algebraic method for the addition of two vectors. First, both vectors must be in rectangular (cartesian) form - you cannot add vectors in polar form. If you're given two vector in polar form and must add them, you must first convert them to rectangular form using Eq. (\(\PageIndex{5}\)-\(\PageIndex{6}\)).

    Once the vectors are in rectangular form, you simply add the two vectors component by component: the \(x\)-component of the sum is the sum of the \(x\) components, etc.:

    \[
    \begin{align}
    \mathbf{A} & =A_{x} \mathbf{i}+A_{y} \mathbf{j}+A_{z} \mathbf{k} \notag \\[6pt]
    +\mathbf{B} & =B_{x} \mathbf{i}+B_{y} \mathbf{j}+B_{z} \mathbf{k} \notag \\[6pt]
    \hline \mathbf{A}+\mathbf{B} & =\left(A_{x}+B_{x}\right) \mathbf{i}+\left(A_{y}+B_{y}\right) \mathbf{j}+\left(A_{z}+B_{z}\right) \mathbf{k} \notag
    \end{align} \notag
    \]

    Subtraction

    Just as with addition, vectors must be in rectangular (cartesian) form before they can be subtracted. Vector subtraction is similar to vector addition: you simply subtract the two vectors component by component:

    \[
    \begin{align}
    \mathbf{A} & =A_{x} \mathbf{i}+A_{y} \mathbf{j}+A_{z} \mathbf{k} \notag \\[6pt]
    -\mathbf{B} & =B_{x} \mathbf{i}+B_{y} \mathbf{j}+B_{z} \mathbf{k} \notag \\[6pt]
    \hline \mathbf{A}-\mathbf{B} & =\left(A_{x}-B_{x}\right) \mathbf{i}+\left(A_{y}-B_{y}\right) \mathbf{j}+\left(A_{z}-B_{z}\right) \mathbf{k} \notag
    \end{align} \notag
    \]

    Scalar Multiplication

    Multiplication of a vector by a scalar may be done in either rectangular or polar form. In rectangular form, you multiply each component of the vector by the scalar. For example, given the vector \(\mathbf{A}\) and scalar \(c\) :

    \[
    \begin{align}
    c \mathbf{A} & =c\left(A_{x} \mathbf{i}+A_{y} \mathbf{j}+A_{z} \mathbf{k}\right) \\[6pt]
    & =c A_{x} \mathbf{i}+c A_{y} \mathbf{j}+c A_{z} \mathbf{k}
    \end{align}
    \]

    It's even simpler in polar form: if the vector \(\mathbf{A}=A \angle \theta\), then

    \[
    c \mathbf{A}=(c A) \angle \theta .
    \]

    It's conventional to keep the vector magnitude positive, so if \(c A<0\), you should change the sign of the magnitude \(c A\), then add \(180^{\circ}\) ( \(\pi\) radians) to the angle \(\theta\).

    Example \(\PageIndex{3}\)

    Addition. Add the vectors \(\mathbf{A}=6 \mathbf{i}-9 \mathbf{j}\) and \(\mathbf{B}=2 \mathbf{i}+12 \mathbf{j}\) :

    Solution

    \[
    \begin{align}
    \mathbf{A} & =6 \mathbf{i}-9 \mathbf{j} \notag \\[6pt]
    +\mathbf{B} & =2 \mathbf{i}+12 \mathbf{j} \notag \\[6pt]
    \hline \mathbf{A}+\mathbf{B} & =8 \mathbf{i}+3 \mathbf{j} \notag
    \end{align} \notag
    \]

    Example \(\PageIndex{4}\)

    Subtraction. Subtract the vectors \(\mathbf{A}=6 \mathbf{i}-9 \mathbf{j}\) and \(\mathbf{B}=2 \mathbf{i}+12 \mathbf{j}\) :

    Solution

    \[
    \begin{align}
    \mathbf{A} & =6 \mathbf{i}-9 \mathbf{j} \notag \\[6pt]
    -\mathbf{B} & =2 \mathbf{i}+12 \mathbf{j} \notag \\[6pt]
    \hline \mathbf{A}-\mathbf{B} & =4 \mathbf{i}-21 \mathbf{j} \notag
    \end{align} \notag
    \]

    Example \(\PageIndex{5}\)

    Scalar multiplication. Multiply the vector \(\mathbf{A}=6 \mathbf{i}-9 \mathbf{j}\) by 5 :

    Solution

    \[5 \times(6 \mathbf{i}-9 \mathbf{j})=30 \mathbf{i}-45 \mathbf{j} \notag \]


    \({ }^{1}\) The name cartesian is from Cartesius, the Latin form of the name of the French mathematician René Descartes, the founder of analytic geometry.


    9.3: Vector Arithmetic- Algebraic Methods is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by LibreTexts.