Skip to main content
Mathematics LibreTexts

5.3: Visualizing Vectors- Vectors in Three Dimensions

  • Page ID
    63404
  • \( \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}}\)

    Learning Objectives
    • T/F: The viewpoint of the reader makes a difference in how vectors in 3D look.
    • T/F: If two vectors are not near each other, then they will not appear to be near each other when graphed.
    • T/F: The parallelogram law only applies to adding vectors in 2D.

    We ended the last section by stating we could extend the ideas of drawing 2D vectors to drawing 3D vectors. Once we understand how to properly draw these vectors, addition and subtraction is relatively easy. We’ll also discuss how to find the length of a vector in 3D.

    We start with the basics of drawing a vector in 3D. Instead of having just the traditional \(x\) and \(y\) axes, we now add a third axis, the \(z\) axis. Without any additional vectors, a generic 3D coordinate system can be seen in Figure \(\PageIndex{1}\).

    clipboard_eb5f42429d9b725ec632ab152c2b4ee2d.png

    Figure \(\PageIndex{1}\): The 3D coordinate system

    In 2D, the point \((2,1)\) refers to going 2 units in the \(x\) direction followed by 1 unit in the \(y\) direction. In 3D, each point is referenced by 3 coordinates. The point \((4,2,3)\) is found by going 4 units in the \(x\) direction, \(2\) units in the \(y\) direction, and 3 units in the \(z\) direction.

    How does one sketch a vector on this coordinate system? As one might expect, we can sketch the vector \(\vec{v}=\left[\begin{array}{c}{1}\\{2}\\{3}\end{array}\right]\) by drawing an arrow from the origin (the point (0,0,0)) to the point \((1,2,3)\).\(^{1}\) The only “tricky” part comes from the fact that we are trying to represent three dimensional space on a two dimensional sheet of paper. However, it isn’t really hard. We’ll discover a good way of approaching this in the context of an example.

    Example \(\PageIndex{1}\)

    Sketch the following vectors with their origin at the origin.

    \[\vec{v}=\left[\begin{array}{c}{2}\\{1}\\{3}\end{array}\right]\quad\text{and}\quad\vec{u}=\left[\begin{array}{c}{1}\\{3}\\{-1}\end{array}\right] \nonumber \]

    Solution

    We’ll start with \(\vec{v}\) first. Starting at the origin, move \(2\) units in the \(x\) direction. This puts us at the point \((2,0,0)\) on the \(x\) axis. Then, move \(1\) unit in the \(y\) direction. (In our method of drawing, this means moving \(1\) unit directly to the right. Of course, we don’t have a grid to follow, so we have to make a good approximation of this distance.) Finally, we move \(3\) units in the \(z\) direction. (Again, in our drawing, this means going straight “up” \(3\) units, and we must use our best judgment in a sketch to measure this.)

    This allows us to locate the point \((2,1,3)\); now we draw an arrow from the origin to this point. In Figure \(\PageIndex{2}\) we have all \(4\) stages of this sketch. The dashed lines show us moving down the \(x\) axis in (a); in (b) we move over in the \(y\) direction; in (c) we move up in the \(z\) direction, and finally in (d) the arrow is drawn.

    clipboard_e7ca7a1fc809bb445d00914add2d4207f.png

    Figure \(\PageIndex{2}\): Stages of sketching the vector \(\vec{v}\) for Example \(\PageIndex{1}\).

    Drawing the dashed lines help us find our way in our representation of three dimensional space. Without them, it is hard to see how far in each direction the vector is supposed to have gone.

    To draw \(\vec{u}\), we follow the same procedure we used to draw \(\vec{v}\). We first locate the point \((1,3,-1)\), then draw the appropriate arrow. In Figure \(\PageIndex{3}\) we have \(\vec{u}\) drawn along with \(\vec{v}\). We have used different dashed and dotted lines for each vector to help distinguish them.

    Notice that this time we had to go in the negative \(z\) direction; this just means we moved down one unit instead of up a unit.

    clipboard_e4a9d969fc8f7e7f4390ca854dcd67029.png

    Figure \(\PageIndex{3}\): Vectors \(\vec{v}\) and \(\vec{u}\) in Example \(\PageIndex{1}\).

    As in 2D, we don’t usually draw the zero vector,

    \[\vec{0}=\left[\begin{array}{c}{0}\\{0}\\{0}\end{array}\right]. \nonumber \]

    It doesn’t point anywhere. It is a conceptually important vector that does not have a terribly interesting visualization.

    Our method of drawing 3D objects on a flat surface – a 2D surface – is pretty clever. It isn’t perfect, though; visually, drawing vectors with negative components (especially negative \(x\) coordinates) can look a bit odd. Also, two very different vectors can point to the same place. We’ll highlight this with our next two examples.

    Example \(\PageIndex{2}\)

    Sketch the vector \(\vec{v}=\left[\begin{array}{c}{-3}\\{-1}\\{2}\end{array}\right].\)

    Solution

    We use the same procedure we used in Example \(\PageIndex{1}\). Starting at the origin, we move in the negative \(x\) direction \(3\) units, then \(1\) unit in the negative \(y\) direction, and then finally up \(2\) units in the \(z\) direction to find the point \((-3,-1,2)\). We follow by drawing an arrow. Our sketch is found in Figure \(\PageIndex{4}\); \(\vec{v}\) is drawn in two coordinate systems, once with the helpful dashed lines, and once without. The second drawing makes it pretty clear that the dashed lines truly are helpful.

    clipboard_e7e8f4476c673f5c9c63a4c48286ea417.png

    Figure \(\PageIndex{4}\): Vector \(\vec{v}\) in Example \(\PageIndex{2}\).

    Example \(\PageIndex{3}\)

    Draw the vectors \(\vec{v}=\left[\begin{array}{c}{2}\\{4}\\{2}\end{array}\right]\) and \(\vec{u}=\left[\begin{array}{c}{-2}\\{1}\\{-1}\end{array}\right]\) on the same coordinate system.

    Solution

    We follow the steps we’ve taken before to sketch these vectors, shown in Figure \(\PageIndex{5}\). The dashed lines are aides for \(\vec{v}\) and the dotted lines are aids for \(\vec{u}\). We again include the vectors without the dashed and dotted lines; but without these, it is very difficult to tell which vector is which!

    clipboard_e9d2ea9ffd1dd087c5fd939ad27ab3338.png

    Figure \(\PageIndex{5}\): Vectors \(\vec{v}\) and \(\vec{u}\) in Example \(\PageIndex{3}\).

    Our three examples have demonstrated that we have a pretty clever, albeit imperfect, method for drawing 3D vectors. The vectors in Example \(\PageIndex{3}\) look similar because of our viewpoint. In Figure \(\PageIndex{6}\) (a), we have rotated the coordinate axes, giving the vectors a different appearance. (Vector \(\vec{v}\) now looks like it lies on the \(y\) axis.)

    Another important factor in how things look is the scale we use for the \(x\), \(y\), and \(z\) axes. In 2D, it is easy to make the scale uniform for both axes; in 3D, it can be a bit tricky to make the scale the same on the axes that are “slanted.” Figure \(\PageIndex{6}\) (b) again shows the same \(2\) vectors found in Example \(\PageIndex{3}\), but this time the scale of the \(x\) axis is a bit different. The end result is that again the vectors appear a bit different than they did before. These facts do not necessarily pose a big problem; we must merely be aware of these facts and not make judgments about 3D objects based on one 2D image.\(^{2}\)

    clipboard_ed51f7ccebff46a5e73158f49b5d749cb.png

    Figure \(\PageIndex{6}\): Vectors \(\vec{v}\) and \(\vec{u}\) in Example \(\PageIndex{3}\) with a different viewpoint (a) and \(x\) axis scale (b).

    We now investigate properties of vector arithmetic: what happens (i.e., how do we draw) when we add 3D vectors and multiply by a scalar? How do we compute the length of a 3D vector?

    Vector Addition and Subtraction

    In 2D, we saw that we could add vectors together graphically using the Parallelogram Law. Does the same apply for adding vectors in 3D? We investigate in an example.

    Example \(\PageIndex{4}\)

    Let \(\vec{v}=\left[\begin{array}{c}{2}\\{1}\\{3}\end{array}\right]\) and \(\vec{u}=\left[\begin{array}{c}{1}\\{3}\\{-1}\end{array}\right]\). Sketch \(\vec{v}+\vec{u}\).

    Solution

    We sketched each of these vectors previously in Example \(\PageIndex{1}\). We sketch them, along with \(\vec{v}+\vec{u} = \left[\begin{array}{c}{3}\\{4}\\{2}\end{array}\right]\), in Figure \(\PageIndex{7}\) (a). (We use loosely dashed lines for \(\vec{v}+\vec{u}\).)

    Does the Parallelogram Law still hold? In Figure \(\PageIndex{7}\) (b), we draw additional representations of \(\vec{v}\) and \(\vec{u}\) to form a parallelogram (without all the dotted lines), which seems to affirm the fact that the Parallelogram Law does indeed hold.

    clipboard_ea813b42840dfbf8541e5edce3944c45c.png

    Figure \(\PageIndex{7}\): Vectors \(\vec{v}\), \(\vec{u}\), and \(\vec{v}+\vec{u}\) Example \(\PageIndex{4}\).

    We also learned that in 2D, we could subtract vectors by drawing a vector from the tip of one vector to the other.\(^{3}\) Does this also work in 3D? We’ll investigate again with an example, using the familiar vectors \(\vec{v}\) and \(\vec{u}\) from before.

    Example \(\PageIndex{5}\)

    Let \(\vec{v}=\left[\begin{array}{c}{2}\\{1}\\{3}\end{array}\right]\) and \(\vec{u}=\left[\begin{array}{c}{1}\\{3}\\{-1}\end{array}\right]\). Sketch \(\vec{v}-\vec{u}\).

    Solution

    It is simple to compute that \(\vec{v}-\vec{u}=\left[\begin{array}{c}{1}\\{-2}\\{4}\end{array}\right]\). All three of these vectors are sketched in Figure \(\PageIndex{8}\) (a), where again \(\vec{v}\) is guided by the dashed, \(\vec{u}\) by the dotted, and \(\vec{v}-\vec{u}\) by the loosely dashed lines.

    Does the 2D subtraction rule still hold? That is, can we draw \(\vec{v} -\vec{u}\) by drawing an arrow from the tip of \(\vec{u}\) to the tip of \(\vec{v}\)? In Figure \(\PageIndex{8}\) (b), we translate the drawing of \(\vec{v}-\vec{u}\) to the tip of \(\vec{u}\), and sure enough, it looks like it works. (And in fact, it really does.)

    clipboard_e121dfae3ea79f74197ba6d75cc5e1931.png

    Figure \(\PageIndex{8}\): Vectors \(\vec{v}\), \(\vec{u}\), and \(\vec{v}-\vec{u}\) from Example \(\PageIndex{5}\).

    The previous two examples highlight the fact that even in 3D, we can sketch vectors without explicitly knowing what they are. We practice this one more time in the following example.

    Example \(\PageIndex{6}\)

    Vectors \(\vec{v}\) and \(\vec{u}\) are drawn in Figure \(\PageIndex{9}\). Using this drawing, sketch the vectors \(\vec{v}+\vec{u}\) and \(\vec{v}-\vec{u}\).

    clipboard_e34b2cc05eb5023bc633c6265f09aed5d.png

    Figure \(\PageIndex{9}\): Vectors \(\vec{v}\) and \(\vec{u}\) for Example \(\PageIndex{6}\).

    Solution

    Using the Parallelogram Law, we draw \(\vec{v}+\vec{u}\) by first drawing a gray version of \(\vec{u}\) coming from the tip of \(\vec{v}\); \(\vec{v}+\vec{u}\) is drawn dashed in Figure \(\PageIndex{10}\).

    To draw \(\vec{v}-\vec{u}\), we draw a dotted arrow from the tip of \(\vec{u}\) to the tip of \(\vec{v}\).

    clipboard_ecfc189d0e35cc7f9184bf58041dc911c.png

    Figure \(\PageIndex{10}\): Vectors \(\vec{v}\), \(\vec{u}\), \(\vec{v}+\vec{u}\) and \(\vec{v}-\vec{u}\) for Example \(\PageIndex{6}\).

    Scalar Multiplication

    Given a vector \(\vec{v}\) in 3D, what does the vector \(2\vec{v}\) look like? How about \(-\vec{v}\)? After learning about vector addition and subtraction in 3D, we are probably gaining confidence in working in 3D and are tempted to say that \(2\vec{v}\) is a vector twice as long as \(\vec{v}\), pointing in the same direction, and \(-\vec{v}\) is a vector of the same length as \(\vec{v}\), pointing in the opposite direction. We would be right. We demonstrate this in the following example.

    Example \(\PageIndex{7}\)

    Sketch \(\vec{v}\), \(2\vec{v}\), and \(-\vec{v}\), where

    \[\vec{v}=\left[\begin{array}{c}{1}\\{2}\\{3}\end{array}\right]. \nonumber \]

    Solution

    clipboard_e73485a3b570137c428a14f4477c682e4.png

    Figure \(\PageIndex{11}\): Sketching scalar multiples of \(\vec{v}\) in Example \(\PageIndex{7}\).

    It is easy to compute

    \[2\vec{v}=\left[\begin{array}{c}{2}\\{4}\\{6}\end{array}\right]\quad\text{and}\quad -\vec{v}=\left[\begin{array}{c}{-1}\\{-2}\\{-3}\end{array}\right]. \nonumber \]

    These are drawn in Figure \(\PageIndex{11}\). This figure is, in many ways, a mess, with all the dashed and dotted lines. They are useful though. Use them to see how each vector was formed, and note that \(2\vec{v}\) at least looks twice as long as \(\vec{v}\), and it looks like \(-\vec{v}\) points in the opposite direction.\(^{4}\)

    Vector Length

    How do we measure the length of a vector in 3D? In 2D, we were able to answer this question by using the Pythagorean Theorem. Does the Pythagorean Theorem apply in 3D? In a sense, it does.

    Consider the vector \(\vec{v}=\left[\begin{array}{c}{1}\\{2}\\{3}\end{array}\right]\), as drawn in Figure \(\PageIndex{12}\) (a), with guiding dashed lines. Now look at part (b) of the same figure. Note how two lengths of the dashed lines have now been drawn gray, and another dotted line has been added.

    clipboard_e2fac8a1c18e10dd76c3761f022ed5d91.png

    Figure \(\PageIndex{12}\): Computing the length of \(\vec{v}\)

    These gray dashed and dotted lines form a right triangle with the dotted line forming the hypotenuse. We can find the length of the dotted line using the Pythagorean Theorem.

    \[\text{length of the dotted line} = \sqrt{ \text{sum of the squares of the dashed line lengths}} \nonumber \]

    That is, the length of the dotted line = \(\sqrt{1^2 + 2^2} = \sqrt{5}\).

    Now consider this: the vector \(\vec{v}\) is the hypotenuse of another right triangle: the one formed by the dotted line and the vertical dashed line. Again, we employ the Pythagorean Theorem to find its length.

    \[\text{length of } \vec{v} = \sqrt{ \text{(length of dashed gray line)}^2 + \text{(length of black dashed line)}^2} \nonumber \]

    Thus, the length of \(\vec{v}\) is (recall, we denote the length of \(\vec{v}\) with \(||\vec{v}||\)):

    \[\begin{align}\begin{aligned} ||\vec{v}|| &= \sqrt{\text{(length of gray line)}^2 + \text{(length of black line)}^2} \\ &= \sqrt{ \sqrt{5}^2 + 3^2}\\ &= \sqrt{ 5 + 3^2}\\\end{aligned}\end{align} \nonumber \]

    Let’s stop for a moment and think: where did this \(5\) come from in the previous equation? It came from finding the length of the gray dashed line – it came from \(1^2+2^2\). Let’s substitute that into the previous equation:

    \[\begin{align}\begin{aligned} ||\vec{v}|| &= \sqrt{5+ 3^2} \\ &= \sqrt{1^2+2^2+3^2}\\ &= \sqrt{14}\\\end{aligned}\end{align} \nonumber \]

    The key comes from the middle equation: \(||\vec{v}|| = \sqrt{1^2+2^2+3^2}\). Do those numbers 1, 2, and 3 look familiar? They are the component values of \(\vec{v}\)! This is very similar to the definition of the length of a 2D vector. After formally defining this, we’ll practice with an example.

    Definition: 3D Vector Length

    Let

    \[\vec{v}=\left[\begin{array}{c}{x_{1}}\\{x_{2}}\\{x_{3}}\end{array}\right]. \nonumber \]

    The length of \(\vec{v}\), denoted \(||\vec{v}||\), is

    \[||\vec{v}||=\sqrt{x_{1}^{2}+x_{2}^{2}+x_{3}^{2}}. \nonumber \]

    Example \(\PageIndex{8}\)

    Find the lengths of vectors \(\vec{v}\) and \(\vec{u}\), where

    \[\vec{v}=\left[\begin{array}{c}{2}\\{-3}\\{5}\end{array}\right]\quad\text{and}\quad\vec{u}=\left[\begin{array}{c}{-4}\\{7}\\{0}\end{array}\right]. \nonumber \]

    Solution

    We apply Definition 3D Vector Length to each vector:

    \[\begin{align}\begin{aligned} ||\vec{v}|| &= \sqrt{2^2 + (-3)^2 + 5^2} \\ &= \sqrt{4 + 9 + 25}\\ &= \sqrt{38}\\ \\ ||\vec{u}|| &= \sqrt{(-4)^2 + 7^2 + 0^2}\\ &= \sqrt{16+49}\\ &= \sqrt{65}\end{aligned}\end{align} \nonumber \] Here we end our investigation into the world of graphing vectors. Extensions into graphing 4D vectors and beyond can be done, but they truly are confusing and not really done except for abstract purposes.

    There are further things to explore, though. Just as in 2D, we can transform 3D space by matrix multiplication. Doing this properly – rotating, stretching, shearing, etc. – allows one to manipulate 3D space and create incredible computer graphics.

    Footnotes

    [1] Of course, we don’t have to start at the origin; all that really matters is that the tip of the arrow is \(1\) unit in the \(x\) direction, \(2\) units in the \(y\) direction, and \(3\) units in the \(z\) direction from the origin of the arrow.

    [2] The human brain uses both eyes to convey 3D, or depth, information. With one eye closed (or missing), we can have a very hard time with “depth perception.” Two objects that are far apart can seem very close together. A simple example of this problem is this: close one eye, and place your index finger about a foot above this text, directly above this WORD. See if you were correct by dropping your finger straight down. Did you actually hit the proper spot? Try it again with both eyes, and you should see a noticeable difference in your accuracy.

    Looking at 3D objects on paper is a bit like viewing the world with one eye closed.

    [3] Recall that it is important which vector we used for the origin and which was used for the tip.

    [4] Our previous work showed that looks can be deceiving, but it is indeed true in this case.


    This page titled 5.3: Visualizing Vectors- Vectors in Three Dimensions is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Gregory Hartman et al. via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.