<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.physicsbook.gatech.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JohnWasHere</id>
	<title>Physics Book - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.physicsbook.gatech.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JohnWasHere"/>
	<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/Special:Contributions/JohnWasHere"/>
	<updated>2026-11-25T06:27:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.7</generator>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Vectors&amp;diff=48436</id>
		<title>Vectors</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Vectors&amp;diff=48436"/>
		<updated>2026-11-25T03:17:47Z</updated>

		<summary type="html">&lt;p&gt;JohnWasHere: Fixed a slight discrepancy in the component form explanation.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;John Yang -- Fall 2026&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Vectors and units are used for precisely describing the physical world. A vector in introductory physics can be thought of as a quantity that has both &#039;&#039;&#039;magnitude&#039;&#039;&#039; (how big) and &#039;&#039;&#039;direction&#039;&#039;&#039; (which way). Many important physical quantities are vectors: displacement, velocity, acceleration, and force all need both size and direction to be specified. By representing these quantities as vectors, we can keep track of how they interact.&lt;br /&gt;
&lt;br /&gt;
Units, meanwhile, tell us what we are measuring. A number by itself has no physical meaning until we attach a unit such as meters (m), seconds (s), or newtons (N). Consistent use of units helps us spot mistakes, compare results, and communicate clearly. Together, vectors and units allow scientists, engineers, and programmers to build models and make inferences and predictions for real-world behavior and to do computations that are physically meaningful.&lt;br /&gt;
&lt;br /&gt;
In physics and engineering, vectors show up whenever we track motion, balance forces, or work with fields such as electric and magnetic fields. In computer science and related fields, vectors appear in computer graphics, simulations, game physics, machine learning, and data representation. Units give meaning to these values and ensure that all of these computations line up with real measurements. A strong grasp of both vectors and units is essential for problem solving, interpreting relations, and understanding of physics in general.&lt;br /&gt;
&lt;br /&gt;
[[File:wikivector.png]]&lt;br /&gt;
&lt;br /&gt;
===Notation Conventions===&lt;br /&gt;
&lt;br /&gt;
Introductory physics and pure mathematics often write the same vector concepts differently. Because this article bridges introductory physics and formal linear algebra, the table below summarizes both conventions and states the standard used on this page:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Concept !! Linear Algebra !! Introductory Physics !! Convention in This Article&lt;br /&gt;
|-&lt;br /&gt;
| Vector || &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; (plain italic; distinguished by context) || &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathbf{v}&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;\overrightarrow{AB}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; in abstract definitions; &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; in physics and &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Coordinate tuple (vector in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;) || &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\langle v_x, v_y, v_z \rangle&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Inner product (dot product) || &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\vec{u} \cdot \vec{v}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; (and &amp;lt;math&amp;gt;\vec{u} \cdot \vec{v}&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| Norm (magnitude) || &amp;lt;math&amp;gt;\|v\|&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;|\vec{v}|&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;\|\vec{v}\|_2&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\|v\|&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\|\vec{v}\|&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Unit vector || &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\|u\| = 1&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt;; standard basis &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\hat{x}, \hat{y}, \hat{z}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt; (or &amp;lt;math&amp;gt;\hat{x}, \hat{y}, \hat{z}&amp;lt;/math&amp;gt;)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important note on angle brackets (&amp;lt;math&amp;gt;\langle \cdot, \cdot \rangle&amp;lt;/math&amp;gt;):&#039;&#039;&#039; Many introductory physics textbooks and computational tools (including VPython&#039;s printed output) write coordinate vectors using angle brackets, such as &amp;lt;math&amp;gt;\vec{v} = \langle 3, -1, 2 \rangle&amp;lt;/math&amp;gt;, to visually separate vectors from points &amp;lt;math&amp;gt;(3, -1, 2)&amp;lt;/math&amp;gt;. In mathematics and nonintroductory physics, however, this is an &#039;&#039;&#039;abuse of notation&#039;&#039;&#039;: angle brackets &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; are reserved for the &#039;&#039;&#039;inner product&#039;&#039;&#039; of two vectors, which outputs a scalar rather than a vector. Writing both &amp;lt;math&amp;gt;\vec{v} = \langle v_x, v_y \rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; in the same setting creates ambiguity (especially in 2D, where both take two entries). To be unambiguous, this article strictly uses &#039;&#039;&#039;parentheses&#039;&#039;&#039; &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt; for coordinate tuples and &#039;&#039;&#039;angle brackets&#039;&#039;&#039; &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; exclusively for inner products.&lt;br /&gt;
&lt;br /&gt;
===Physical Examples and Visual Representation===&lt;br /&gt;
&lt;br /&gt;
====Position and Displacement====&lt;br /&gt;
&lt;br /&gt;
A point&#039;s location in 3D space is described by a &#039;&#039;&#039;position vector&#039;&#039;&#039; &amp;lt;math&amp;gt;\vec{r} \in \mathbf{R}^3&amp;lt;/math&amp;gt; measured from a chosen origin &amp;lt;math&amp;gt;(0, 0, 0)&amp;lt;/math&amp;gt;. Because position depends on where the origin is placed, a position vector is always anchored to a reference point. Given two position vectors &amp;lt;math&amp;gt;\vec{r}_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{r}_2&amp;lt;/math&amp;gt;, their difference&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta \vec{r} = \vec{r}_2 - \vec{r}_1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is the &#039;&#039;&#039;relative position&#039;&#039;&#039; (or &#039;&#039;&#039;displacement&#039;&#039;&#039;) vector pointing from point 1 to point 2. Unlike position itself, displacement is independent of the choice of origin, and its norm &amp;lt;math&amp;gt;\|\vec{r}_2 - \vec{r}_1\|&amp;lt;/math&amp;gt; equals the straight-line Euclidean distance between the two points.&lt;br /&gt;
&lt;br /&gt;
====Velocity====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Velocity&#039;&#039;&#039; is a vector that describes how fast and in what direction an object moves. Its magnitude is the &#039;&#039;&#039;speed&#039;&#039;&#039;, and it is usually measured in m/s. The velocity vector can be found by differentiating the position vector with respect to time (if the position function is differentiable, that is).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}(t) = \frac{d\vec{r}}{dt}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if &amp;lt;math&amp;gt;\vec{r}(t) = (t, 1, 0)\ \text{m}&amp;lt;/math&amp;gt;, then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}(t) = \frac{d\vec{r}}{dt} = (1, 0, 0)\ \text{m/s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The speed is the norm &amp;lt;math&amp;gt;\|\vec{v}(t)\| = \sqrt{1^2 + 0^2 + 0^2} = 1\ \text{m/s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Velwiki.png]]&lt;br /&gt;
&lt;br /&gt;
====Weight====&lt;br /&gt;
&lt;br /&gt;
Near Earth&#039;s surface, gravity exerts a downward force vector &amp;lt;math&amp;gt;\vec{F}_g&amp;lt;/math&amp;gt; on an object of mass &amp;lt;math&amp;gt;m &amp;gt; 0&amp;lt;/math&amp;gt;. Choosing a coordinate system with the positive &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis pointing upward,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{F}_g = (0, -mg, 0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;g \approx 9.8\ \text{m/s}^2&amp;lt;/math&amp;gt; is the magnitude of the gravitational field near Earth’s surface. &#039;&#039;&#039;Weight&#039;&#039;&#039; refers to the norm &amp;lt;math&amp;gt;\|\vec{F}_g\| = mg&amp;lt;/math&amp;gt; whereas &amp;lt;math&amp;gt;\vec{F}_g&amp;lt;/math&amp;gt; is the gravitational force vector.&lt;br /&gt;
&lt;br /&gt;
====Visualizing Vectors====&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, vectors are drawn as &#039;&#039;&#039;arrows&#039;&#039;&#039;: the length of the arrow represents the norm, and the direction of the arrow indicates which way it points. Mathematically, vectors in &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt; are invariant under parallel translation: sliding an arrow without changing its length or orientation produces the same vector. In physics, this invariance is useful because a vector does not always represent a literal displacement between two locations. It often describes a physical property defined at a single point (such as velocity, force, or an electric field). In diagrams, we anchor the tail of such a vector at the point where it acts.&lt;br /&gt;
&lt;br /&gt;
The example below shows a velocity vector for a ball moving to the right at 5 m/s.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorvisualrepresentation.png]]&lt;br /&gt;
&lt;br /&gt;
==Units and Measurement==&lt;br /&gt;
&lt;br /&gt;
===SI Base Units===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;International System of Units (SI)&#039;&#039;&#039; is the standard measurement system in science and engineering. It defines seven base units from which all other SI units are constructed:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;meter&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{m}&amp;lt;/math&amp;gt;) – length&lt;br /&gt;
* &#039;&#039;&#039;kilogram&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{kg}&amp;lt;/math&amp;gt;) – mass&lt;br /&gt;
* &#039;&#039;&#039;second&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{s}&amp;lt;/math&amp;gt;) – time&lt;br /&gt;
* &#039;&#039;&#039;ampere&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{A}&amp;lt;/math&amp;gt;) – electric current&lt;br /&gt;
* &#039;&#039;&#039;kelvin&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{K}&amp;lt;/math&amp;gt;) – thermodynamic temperature&lt;br /&gt;
* &#039;&#039;&#039;mole&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{mol}&amp;lt;/math&amp;gt;) – amount of substance&lt;br /&gt;
* &#039;&#039;&#039;candela&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{cd}&amp;lt;/math&amp;gt;) – luminous intensity&lt;br /&gt;
&lt;br /&gt;
All vector quantities in introductory physics carry combinations of these base units.&lt;br /&gt;
&lt;br /&gt;
===Derived Units===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Derived units&#039;&#039;&#039; are formed by combining SI base units through multiplication and division. Common examples include:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;newton&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{N} = \text{kg}\cdot\text{m/s}^2&amp;lt;/math&amp;gt;) – force&lt;br /&gt;
* &#039;&#039;&#039;joule&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{J} = \text{N}\cdot\text{m} = \text{kg}\cdot\text{m}^2/\text{s}^2&amp;lt;/math&amp;gt;) – energy and work&lt;br /&gt;
* &#039;&#039;&#039;watt&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{W} = \text{J/s}&amp;lt;/math&amp;gt;) – power&lt;br /&gt;
* &#039;&#039;&#039;tesla&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{T} = \text{N}\cdot\text{s}/(\text{C}\cdot\text{m}) = \text{kg}/(\text{A}\cdot\text{s}^2)&amp;lt;/math&amp;gt;) – magnetic field&lt;br /&gt;
&lt;br /&gt;
===Unit Conversion and Dimensional Consistency===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Unit conversion&#039;&#039;&#039; changes a quantity from one unit to another while representing the same physical amount (for example, converting from centimeters to meters or from kilometers per hour to meters per second). In multi-step physics problems, careful unit conversion is essential to avoid errors and to match the units expected in formulas. In vector calculations, dimensional consistency requires that every coordinate of a vector shares the same unit.&lt;br /&gt;
&lt;br /&gt;
==Formal Definition==&lt;br /&gt;
&lt;br /&gt;
===Vector Space Axioms===&lt;br /&gt;
&lt;br /&gt;
Formally, a &#039;&#039;&#039;vector&#039;&#039;&#039; (or &#039;&#039;&#039;point&#039;&#039;&#039;) is an element of a &#039;&#039;&#039;vector space&#039;&#039;&#039;. Let &amp;lt;math&amp;gt;\mathbf{F}&amp;lt;/math&amp;gt; denote either the field of real numbers &amp;lt;math&amp;gt;\mathbf{R}&amp;lt;/math&amp;gt; or the field of complex numbers &amp;lt;math&amp;gt;\mathbf{C}&amp;lt;/math&amp;gt; (in introductory physics, &amp;lt;math&amp;gt;\mathbf{F} = \mathbf{R}&amp;lt;/math&amp;gt;); elements of &amp;lt;math&amp;gt;\mathbf{F}&amp;lt;/math&amp;gt; are called &#039;&#039;&#039;scalars&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;vector space&#039;&#039;&#039; over &amp;lt;math&amp;gt;\mathbf{F}&amp;lt;/math&amp;gt; is a set &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; equipped with two operations:&lt;br /&gt;
* &#039;&#039;&#039;Addition&#039;&#039;&#039; (&amp;lt;math&amp;gt;V \times V \to V&amp;lt;/math&amp;gt;): assigns an element &amp;lt;math&amp;gt;u + v \in V&amp;lt;/math&amp;gt; to each pair &amp;lt;math&amp;gt;u, v \in V&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Scalar multiplication&#039;&#039;&#039; (&amp;lt;math&amp;gt;\mathbf{F} \times V \to V&amp;lt;/math&amp;gt;): assigns an element &amp;lt;math&amp;gt;\lambda v \in V&amp;lt;/math&amp;gt; to each &amp;lt;math&amp;gt;\lambda \in \mathbf{F}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v \in V&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
(Because both operations map back into &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt;, closure under addition and scalar multiplication is built directly into the definition.) These operations must satisfy the following axioms for all &amp;lt;math&amp;gt;u, v, w \in V&amp;lt;/math&amp;gt; and all &amp;lt;math&amp;gt;a, b \in \mathbf{F}&amp;lt;/math&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;Commutativity:&#039;&#039;&#039; &amp;lt;math&amp;gt;u + v = v + u&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Associativity:&#039;&#039;&#039; &amp;lt;math&amp;gt;(u + v) + w = u + (v + w)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(ab)v = a(bv)&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Additive identity:&#039;&#039;&#039; There exists an element &amp;lt;math&amp;gt;0 \in V&amp;lt;/math&amp;gt; (the &#039;&#039;&#039;zero vector&#039;&#039;&#039;, distinct from the scalar &amp;lt;math&amp;gt;0 \in \mathbf{F}&amp;lt;/math&amp;gt;) such that &amp;lt;math&amp;gt;v + 0 = v&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Additive inverse:&#039;&#039;&#039; For every &amp;lt;math&amp;gt;v \in V&amp;lt;/math&amp;gt;, there exists &amp;lt;math&amp;gt;w \in V&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;v + w = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Multiplicative identity:&#039;&#039;&#039; &amp;lt;math&amp;gt;1v = v&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Distributivity:&#039;&#039;&#039; &amp;lt;math&amp;gt;a(u + v) = au + av&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(a + b)v = av + bv&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From these axioms, we can prove that the additive identity &amp;lt;math&amp;gt;0 \in V&amp;lt;/math&amp;gt; is unique, every vector &amp;lt;math&amp;gt;v \in V&amp;lt;/math&amp;gt; has a unique additive inverse denoted &amp;lt;math&amp;gt;-v&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;(-1)v = -v&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;0v = 0&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;v \in V&amp;lt;/math&amp;gt; (do these as an exercise).&lt;br /&gt;
&lt;br /&gt;
In introductory physics, we almost always work in the real vector spaces &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt; (the plane) or &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; (ordinary 3D space), which are special cases of &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;—the set of all ordered lists of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; real numbers, such as &amp;lt;math&amp;gt;v = (v_x, v_y, v_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt;, with coordinate-wise addition and scalar multiplication. For example, &amp;lt;math&amp;gt;v = (1, 0, 0) \in \mathbf{R}^3&amp;lt;/math&amp;gt; is a vector of length &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; pointing along the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis.&lt;br /&gt;
&lt;br /&gt;
===Inner Products and Norms===&lt;br /&gt;
&lt;br /&gt;
A general vector space does not necessarily include a notion of length or angle. To introduce geometry, we equip a real vector space &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; with an &#039;&#039;&#039;inner product&#039;&#039;&#039;, which is a function assigning a real scalar &amp;lt;math&amp;gt;\langle u, v \rangle \in \mathbf{R}&amp;lt;/math&amp;gt; to each pair &amp;lt;math&amp;gt;u, v \in V&amp;lt;/math&amp;gt; such that, for all &amp;lt;math&amp;gt;u, v, w \in V&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\lambda \in \mathbf{R}&amp;lt;/math&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;Positive definiteness:&#039;&#039;&#039; &amp;lt;math&amp;gt;\langle v, v \rangle \ge 0&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;\langle v, v \rangle = 0&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;v = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Linearity in the first slot:&#039;&#039;&#039; &amp;lt;math&amp;gt;\langle u + w, v \rangle = \langle u, v \rangle + \langle w, v \rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle \lambda u, v \rangle = \lambda \langle u, v \rangle&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Symmetry:&#039;&#039;&#039; &amp;lt;math&amp;gt;\langle u, v \rangle = \langle v, u \rangle&amp;lt;/math&amp;gt; (which, combined with linearity in the first slot, also guarantees linearity in the second slot).&lt;br /&gt;
&lt;br /&gt;
A vector space equipped with an inner product is called an &#039;&#039;&#039;inner product space&#039;&#039;&#039;. In &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;, the standard &#039;&#039;&#039;Euclidean inner product&#039;&#039;&#039; (which we call the &#039;&#039;&#039;dot product&#039;&#039;&#039;) of &amp;lt;math&amp;gt;u = (u_1, \dots, u_n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v = (v_1, \dots, v_n)&amp;lt;/math&amp;gt; is defined by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle u, v \rangle = u_1 v_1 + u_2 v_2 + \cdots + u_n v_n = \sum_{i=1}^{n} u_i v_i&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the inner product, we define the &#039;&#039;&#039;norm&#039;&#039;&#039; (commonly called &#039;&#039;&#039;magnitude&#039;&#039;&#039; in physics) of a vector &amp;lt;math&amp;gt;v \in \mathbf{R}^n&amp;lt;/math&amp;gt; as the nonnegative scalar:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|v\| = \sqrt{\langle v, v \rangle} = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2} = \sqrt{\sum_{i=1}^{n} v_i^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In 3D Cartesian space, for &amp;lt;math&amp;gt;v = (v_x, v_y, v_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt;, this is the familiar Pythagorean formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|v\| = \sqrt{v_x^2 + v_y^2 + v_z^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;unit vector&#039;&#039;&#039; is a vector with norm &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;. For any nonzero vector &amp;lt;math&amp;gt;v \in \mathbf{R}^n&amp;lt;/math&amp;gt;, scaling &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; by the positive scalar &amp;lt;math&amp;gt;\frac{1}{\|v\|}&amp;lt;/math&amp;gt; yields a unit vector in the same direction (a process called &#039;&#039;&#039;normalization&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{v} = \frac{1}{\|v\|}v&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if &amp;lt;math&amp;gt;\vec{v} = (v_x, v_y, v_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt; is nonzero, then &amp;lt;math&amp;gt;\hat{v} = \frac{1}{\|\vec{v}\|}(v_x, v_y, v_z)&amp;lt;/math&amp;gt;. Note that unit vectors carry no physical units because the units of &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\|\vec{v}\|&amp;lt;/math&amp;gt; cancel.&lt;br /&gt;
&lt;br /&gt;
===Orthonormal Bases===&lt;br /&gt;
&lt;br /&gt;
Two vectors &amp;lt;math&amp;gt;u, v&amp;lt;/math&amp;gt; in an inner product space are called &#039;&#039;&#039;orthogonal&#039;&#039;&#039; if &amp;lt;math&amp;gt;\langle u, v \rangle = 0&amp;lt;/math&amp;gt;. A list of vectors &amp;lt;math&amp;gt;e_1, \dots, e_n&amp;lt;/math&amp;gt; is &#039;&#039;&#039;orthonormal&#039;&#039;&#039; if every vector has norm &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and every pair of distinct vectors is orthogonal (&amp;lt;math&amp;gt;\langle e_j, e_k \rangle = 0&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;j \neq k&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;standard basis&#039;&#039;&#039; of &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; is an &#039;&#039;&#039;orthonormal basis&#039;&#039;&#039; consisting of the three unit vectors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{x} = (1, 0, 0), \qquad \hat{y} = (0, 1, 0), \qquad \hat{z} = (0, 0, 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(also sometimes written &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt; in physics and engineering). We can think of a basis as a fundamental list of vectors for a vector space that gives each component its meaning. For the standard basis, our list gives each component a meaning that it is the x, y, or z direction. This basis is orthonormal, so every vector &amp;lt;math&amp;gt;v \in \mathbf{R}^3&amp;lt;/math&amp;gt; can be written uniquely as a linear combination whose coefficients are simply the inner products of &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; with each basis vector:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;v = \langle v, \hat{x} \rangle \hat{x} + \langle v, \hat{y} \rangle \hat{y} + \langle v, \hat{z} \rangle \hat{z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other coordinate systems use different local orthonormal bases that vary with position, such as &amp;lt;math&amp;gt;\hat{r}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\theta}&amp;lt;/math&amp;gt; in polar coordinates.&lt;br /&gt;
&lt;br /&gt;
===Direction and Angles===&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, scalar multiplication gives a direct geometric interpretation of direction: for a nonzero &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;, multiplying by &amp;lt;math&amp;gt;\lambda &amp;gt; 0&amp;lt;/math&amp;gt; scales its norm without changing its direction, while multiplying by &amp;lt;math&amp;gt;\lambda &amp;lt; 0&amp;lt;/math&amp;gt; reverses its direction (with &amp;lt;math&amp;gt;(-1)v = -v&amp;lt;/math&amp;gt; pointing directly opposite to &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;). The zero vector &amp;lt;math&amp;gt;0 = (0, \dots, 0)&amp;lt;/math&amp;gt; has norm &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; and &#039;&#039;&#039;no direction&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To quantify relative direction between any two nonzero vectors &amp;lt;math&amp;gt;u, v \in \mathbf{R}^n&amp;lt;/math&amp;gt;, we rely on the &#039;&#039;&#039;Cauchy–Schwarz inequality&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;|\langle u, v \rangle| \le \|u\|\|v\|&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Dividing by &amp;lt;math&amp;gt;\|u\|\|v\| &amp;gt; 0&amp;lt;/math&amp;gt; guarantees that &amp;lt;math&amp;gt;-1 \le \frac{\langle u, v \rangle}{\|u\|\|v\|} \le 1&amp;lt;/math&amp;gt;. Because of this, there exists a unique &#039;&#039;&#039;angle&#039;&#039;&#039; &amp;lt;math&amp;gt;\theta \in [0, \pi]&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; where:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\cos\theta = \frac{\langle u, v \rangle}{\|u\|\|v\|}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Two nonzero vectors are orthogonal (&amp;lt;math&amp;gt;\langle u, v \rangle = 0&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;\cos\theta = 0&amp;lt;/math&amp;gt;, meaning they are &#039;&#039;&#039;perpendicular&#039;&#039;&#039; (&amp;lt;math&amp;gt;\theta = \frac{\pi}{2}&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Unsigned angle vs. 2D polar direction angle:&#039;&#039;&#039; Notice that the inner-product angle &amp;lt;math&amp;gt;\theta = \arccos\left(\frac{\langle v, \hat{x}\rangle}{\|v\|}\right) = \arccos\left(\frac{v_x}{\|v\|}\right)&amp;lt;/math&amp;gt; always lies in &amp;lt;math&amp;gt;[0, \pi]&amp;lt;/math&amp;gt; and therefore cannot distinguish whether a 2D vector points above or below the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis (it loses the sign of &amp;lt;math&amp;gt;v_y&amp;lt;/math&amp;gt;). In introductory 2D physics, we instead specify a vector&#039;s full orientation using a &#039;&#039;&#039;signed polar direction angle&#039;&#039;&#039; &amp;lt;math&amp;gt;\phi \in (-\pi, \pi]&amp;lt;/math&amp;gt; (or &amp;lt;math&amp;gt;[0, 2\pi)&amp;lt;/math&amp;gt;) measured counterclockwise from the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis. For a nonzero vector &amp;lt;math&amp;gt;v = (v_x, v_y) \in \mathbf{R}^2&amp;lt;/math&amp;gt;:&lt;br /&gt;
* If &amp;lt;math&amp;gt;v_x &amp;gt; 0&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;\phi = \arctan\left(\frac{v_y}{v_x}\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;v_x &amp;lt; 0&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;\phi = \arctan\left(\frac{v_y}{v_x}\right) + \pi&amp;lt;/math&amp;gt; (or &amp;lt;math&amp;gt;-\pi&amp;lt;/math&amp;gt;, depending on the chosen branch) to place &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; in the second or third quadrant.&lt;br /&gt;
* If &amp;lt;math&amp;gt;v_x = 0&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;\phi = \frac{\pi}{2}&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;90^\circ&amp;lt;/math&amp;gt;) when &amp;lt;math&amp;gt;v_y &amp;gt; 0&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\phi = -\frac{\pi}{2}&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;270^\circ&amp;lt;/math&amp;gt;) when &amp;lt;math&amp;gt;v_y &amp;lt; 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Vector Operations==&lt;br /&gt;
&lt;br /&gt;
Vector addition and scalar multiplication are built into every vector space. The dot product and cross product add geometric structure for measuring projections, angles, areas, and orientations. Below, formulas are written in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; for introductory physics, with notes on how they generalize to &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Addition and Subtraction===&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;, vector addition is defined coordinate-wise. For &amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (b_x, b_y, b_z)&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} + \vec{b} = (a_x + b_x,\; a_y + b_y,\; a_z + b_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By the vector space axioms, addition is commutative (&amp;lt;math&amp;gt;\vec{a} + \vec{b} = \vec{b} + \vec{a}&amp;lt;/math&amp;gt;) and associative (&amp;lt;math&amp;gt;(\vec{a} + \vec{b}) + \vec{c} = \vec{a} + (\vec{b} + \vec{c})&amp;lt;/math&amp;gt;). Geometrically, placing the tail of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; at the head of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; yields the &#039;&#039;&#039;resultant&#039;&#039;&#039; vector &amp;lt;math&amp;gt;\vec{a} + \vec{b}&amp;lt;/math&amp;gt;, running from the tail of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; to the head of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectoraddition.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Every vector &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; has a unique additive inverse &amp;lt;math&amp;gt;-\vec{b} = (-1)\vec{b}&amp;lt;/math&amp;gt;, which has the same norm as &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; but points in the opposite direction. &#039;&#039;&#039;Vector subtraction&#039;&#039;&#039; is formally defined as adding this additive inverse; for 3-dimensional vectors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} - \vec{b} = \vec{a} + (-\vec{b}) = (a_x - b_x,\; a_y - b_y,\; a_z - b_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:IMG_0326.jpg|500px|Image: 500 pixels]]&lt;br /&gt;
&lt;br /&gt;
===Scalar Multiplication===&lt;br /&gt;
&lt;br /&gt;
For a scalar &amp;lt;math&amp;gt;\lambda \in \mathbf{R}&amp;lt;/math&amp;gt; and a vector &amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt;, scalar multiplication multiplies every coordinate by &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\lambda \vec{a} = (\lambda a_x,\; \lambda a_y,\; \lambda a_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This scales the norm by &amp;lt;math&amp;gt;|\lambda|&amp;lt;/math&amp;gt; (that is, &amp;lt;math&amp;gt;\|\lambda \vec{a}\| = |\lambda|\|\vec{a}\|&amp;lt;/math&amp;gt;). If &amp;lt;math&amp;gt;\lambda &amp;gt; 0&amp;lt;/math&amp;gt;, direction is preserved; if &amp;lt;math&amp;gt;\lambda &amp;lt; 0&amp;lt;/math&amp;gt;, direction is reversed; if &amp;lt;math&amp;gt;\lambda = 0&amp;lt;/math&amp;gt;, the result is the zero vector &amp;lt;math&amp;gt;\vec{0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorscalarmultiplication.png|400px]] [[File:IMG_0327.jpg|400px|Image: 400 pixels]]&lt;br /&gt;
&lt;br /&gt;
Vector spaces do not include a separate &amp;quot;division by a scalar&amp;quot; axiom (nor is division by a vector defined). Instead, because every nonzero scalar &amp;lt;math&amp;gt;\lambda \in \mathbf{R}&amp;lt;/math&amp;gt; has a unique multiplicative inverse &amp;lt;math&amp;gt;\frac{1}{\lambda} \in \mathbf{R}&amp;lt;/math&amp;gt;, dividing a vector by &amp;lt;math&amp;gt;\lambda \neq 0&amp;lt;/math&amp;gt; is simply scalar multiplication by &amp;lt;math&amp;gt;\frac{1}{\lambda}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{\vec{a}}{\lambda} = \frac{1}{\lambda}\vec{a} = \left(\frac{a_x}{\lambda},\; \frac{a_y}{\lambda},\; \frac{a_z}{\lambda}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dot Product===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;dot product&#039;&#039;&#039; (or &#039;&#039;&#039;scalar product&#039;&#039;&#039;) is the Euclidean inner product on &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (b_x, b_y, b_z)&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \cdot \vec{b} = \langle \vec{a}, \vec{b} \rangle = a_x b_x + a_y b_y + a_z b_z&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike scalar multiplication, the dot product takes two vectors and outputs a &#039;&#039;&#039;scalar&#039;&#039;&#039;. For nonzero vectors separated by angle &amp;lt;math&amp;gt;\theta \in [0, \pi]&amp;lt;/math&amp;gt;, it satisfies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \cdot \vec{b} = \|\vec{a}\|\|\vec{b}\|\cos\theta&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Geometrically, &amp;lt;math&amp;gt;\vec{a} \cdot \hat{b} = \|\vec{a}\|\cos\theta&amp;lt;/math&amp;gt; gives the signed projection of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; onto the direction of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;—which is why mechanical work by a constant force is written &amp;lt;math&amp;gt;W = \vec{F} \cdot \Delta\vec{r}&amp;lt;/math&amp;gt;. While the zero vector is formally orthogonal to every vector (&amp;lt;math&amp;gt;\vec{0} \cdot \vec{v} = 0&amp;lt;/math&amp;gt;), two &#039;&#039;&#039;nonzero&#039;&#039;&#039; vectors are perpendicular (&amp;lt;math&amp;gt;\theta = \frac{\pi}{2}&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;\vec{a} \cdot \vec{b} = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:IMG_0328.jpg|400px|Image: 400 pixels]]&lt;br /&gt;
&lt;br /&gt;
===Cross Product===&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, the &#039;&#039;&#039;cross product&#039;&#039;&#039; (or &#039;&#039;&#039;vector product&#039;&#039;&#039;) of &amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (b_x, b_y, b_z)&amp;lt;/math&amp;gt; is a new vector defined in components by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \times \vec{b} = (a_y b_z - a_z b_y,\; a_z b_x - a_x b_z,\; a_x b_y - a_y b_x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Written in the standard orthonormal basis &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt;, this is equivalently:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \times \vec{b} = (a_y b_z - a_z b_y)\hat{i} - (a_x b_z - a_z b_x)\hat{j} + (a_x b_y - a_y b_x)\hat{k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The cross product is bilinear (linear in each argument separately) and &#039;&#039;&#039;anticommutative&#039;&#039;&#039;—swapping the order reverses the sign: &amp;lt;math&amp;gt;\vec{b} \times \vec{a} = -(\vec{a} \times \vec{b})&amp;lt;/math&amp;gt;. In particular, &amp;lt;math&amp;gt;\vec{a} \times \vec{a} = \vec{0}&amp;lt;/math&amp;gt; for every vector &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A standard mnemonic for computing &amp;lt;math&amp;gt;\vec{a} \times \vec{b}&amp;lt;/math&amp;gt; is the formal determinant of a &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; symbolic matrix, expanded along the first row (observing the alternating &amp;lt;math&amp;gt;+, -, +&amp;lt;/math&amp;gt; signs of cofactor expansion):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \times \vec{b} = \begin{vmatrix}&lt;br /&gt;
\hat{i} &amp;amp; \hat{j} &amp;amp; \hat{k} \\&lt;br /&gt;
a_x &amp;amp; a_y &amp;amp; a_z \\&lt;br /&gt;
b_x &amp;amp; b_y &amp;amp; b_z&lt;br /&gt;
\end{vmatrix} = \begin{vmatrix} a_y &amp;amp; a_z \\ b_y &amp;amp; b_z \end{vmatrix}\hat{i} - \begin{vmatrix} a_x &amp;amp; a_z \\ b_x &amp;amp; b_z \end{vmatrix}\hat{j} + \begin{vmatrix} a_x &amp;amp; a_y \\ b_x &amp;amp; b_y \end{vmatrix}\hat{k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Expansionbyminors.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Online resources for checking computations:&lt;br /&gt;
* [https://www.symbolab.com/solver/vector-cross-product-calculator Symbolab step-by-step cross product calculator]&lt;br /&gt;
* [https://www.youtube.com/watch?v=e9T5p_Jwv5c Video explanation of the cross product]&lt;br /&gt;
&lt;br /&gt;
Geometrically, the norm of the cross product equals the &#039;&#039;&#039;area of the parallelogram&#039;&#039;&#039; spanned by &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{a} \times \vec{b}\| = \|\vec{a}\|\|\vec{b}\|\sin\theta&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\theta \in [0, \pi]&amp;lt;/math&amp;gt; is the angle between &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;. Its direction is orthogonal to both &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; and is uniquely determined by the [[Right Hand Rule]]. In introductory physics, the cross product governs rotational and electromagnetic phenomena such as torque (&amp;lt;math&amp;gt;\vec{\tau} = \vec{r} \times \vec{F}&amp;lt;/math&amp;gt;), angular momentum (&amp;lt;math&amp;gt;\vec{L} = \vec{r} \times \vec{p}&amp;lt;/math&amp;gt;), and the magnetic Lorentz force (&amp;lt;math&amp;gt;\vec{F}_B = q(\vec{v} \times \vec{B})&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
====Component Pattern (&amp;quot;X-Method&amp;quot;)====&lt;br /&gt;
&lt;br /&gt;
A fast computational pattern avoids writing out the full &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; determinant. Consider:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} = (3, -2, 4), \qquad \vec{b} = (-1, 6, 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compute &amp;lt;math&amp;gt;\vec{c} = \vec{a} \times \vec{b} = (c_x, c_y, c_z)&amp;lt;/math&amp;gt;, list each vector&#039;s components vertically and append the first component at the bottom:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{pmatrix} a_x \\ a_y \\ a_z \\ a_x \end{pmatrix} = \begin{pmatrix} 3 \\ -2 \\ 4 \\ 3 \end{pmatrix}, \qquad \begin{pmatrix} b_x \\ b_y \\ b_z \\ b_x \end{pmatrix} = \begin{pmatrix} -1 \\ 6 \\ 3 \\ -1 \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* For &amp;lt;math&amp;gt;c_x&amp;lt;/math&amp;gt;, cross-multiply rows 2 and 3 (&amp;lt;math&amp;gt;a_y b_z - a_z b_y&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[File:Cx.png]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_x = (-2)(3) - (4)(6) = -6 - 24 = -30&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* For &amp;lt;math&amp;gt;c_y&amp;lt;/math&amp;gt;, cross-multiply rows 3 and 4 (&amp;lt;math&amp;gt;a_z b_x - a_x b_z&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[File:Cy.png]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_y = (4)(-1) - (3)(3) = -4 - 9 = -13&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* For &amp;lt;math&amp;gt;c_z&amp;lt;/math&amp;gt;, cross-multiply rows 1 and 2 (&amp;lt;math&amp;gt;a_x b_y - a_y b_x&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[File:Cz.png]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_z = (3)(6) - (-2)(-1) = 18 - 2 = 16&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus &amp;lt;math&amp;gt;\vec{a} \times \vec{b} = (-30, -13, 16)&amp;lt;/math&amp;gt;. As a quick sanity check, verify orthogonality via the dot product: &amp;lt;math&amp;gt;\vec{a} \cdot \vec{c} = 3(-30) + (-2)(-13) + 4(16) = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Advanced Note: What the Cross Product Really Measures (and Why 3D Is Special)====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Advanced Note&amp;quot; data-collapsetext=&amp;quot;Hide Advanced Note&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Optional Reading (Geometric and Linear Algebra Interpretation)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At first glance, the component formula for &amp;lt;math&amp;gt;\vec{a} \times \vec{b}&amp;lt;/math&amp;gt; seems arbitrary, and it is unclear where the &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; determinant comes from. Two viewpoints make both completely transparent and explain what happens outside 3D.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Components as Signed Shadow Areas&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Look at the three components of &amp;lt;math&amp;gt;\vec{c} = \vec{a} \times \vec{b}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_x = a_y b_z - a_z b_y, \qquad c_y = a_z b_x - a_x b_z, \qquad c_z = a_x b_y - a_y b_x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In 2D, the expression &amp;lt;math&amp;gt;a_x b_y - a_y b_x&amp;lt;/math&amp;gt; is the &#039;&#039;&#039;signed area&#039;&#039;&#039; of the parallelogram spanned by &amp;lt;math&amp;gt;(a_x, a_y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_x, b_y)&amp;lt;/math&amp;gt; (positive if rotating from &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; is counterclockwise, negative if clockwise). Therefore, the three components of &amp;lt;math&amp;gt;\vec{a} \times \vec{b}&amp;lt;/math&amp;gt; can be seen as the signed areas of the &#039;&#039;&#039;shadows&#039;&#039;&#039; cast by the 3D parallelogram onto the three coordinate planes:&lt;br /&gt;
* &amp;lt;math&amp;gt;c_x&amp;lt;/math&amp;gt; is the signed area of the shadow on the &amp;lt;math&amp;gt;yz&amp;lt;/math&amp;gt;-plane (perpendicular to the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis).&lt;br /&gt;
* &amp;lt;math&amp;gt;c_y&amp;lt;/math&amp;gt; is the signed area of the shadow on the &amp;lt;math&amp;gt;zx&amp;lt;/math&amp;gt;-plane (perpendicular to the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis).&lt;br /&gt;
* &amp;lt;math&amp;gt;c_z&amp;lt;/math&amp;gt; is the signed area of the shadow on the &amp;lt;math&amp;gt;xy&amp;lt;/math&amp;gt;-plane (perpendicular to the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis).&lt;br /&gt;
&lt;br /&gt;
Then the formula &amp;lt;math&amp;gt;\|\vec{a} \times \vec{b}\| = \sqrt{c_x^2 + c_y^2 + c_z^2}&amp;lt;/math&amp;gt; is a 3D Pythagorean theorem for areas: the squared area of any tilted parallelogram equals the sum of the squared areas of its three coordinate-plane shadows.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. The Determinant Formula as Signed Volume&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Fix two vectors &amp;lt;math&amp;gt;\vec{a}, \vec{b} \in \mathbf{R}^3&amp;lt;/math&amp;gt;. For any third vector &amp;lt;math&amp;gt;\vec{v} = (v_x, v_y, v_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt;, the &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; determinant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V(\vec{v}) = \det\begin{pmatrix} v_x &amp;amp; v_y &amp;amp; v_z \\ a_x &amp;amp; a_y &amp;amp; a_z \\ b_x &amp;amp; b_y &amp;amp; b_z \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the &#039;&#039;&#039;signed volume&#039;&#039;&#039; of the parallelepiped spanned by &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;. Expanding along the first row shows that &amp;lt;math&amp;gt;V(\vec{v})&amp;lt;/math&amp;gt; is simply a linear combination of &amp;lt;math&amp;gt;v_x, v_y, v_z&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V(\vec{v}) = (a_y b_z - a_z b_y)v_x + (a_z b_x - a_x b_z)v_y + (a_x b_y - a_y b_x)v_z = \langle \vec{c}, \vec{v} \rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In linear algebra, the cross product &amp;lt;math&amp;gt;\vec{c} = \vec{a} \times \vec{b}&amp;lt;/math&amp;gt; is &#039;&#039;&#039;defined&#039;&#039;&#039; as the unique vector whose inner product with any &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; computes this signed volume: &amp;lt;math&amp;gt;\langle \vec{a} \times \vec{b}, \vec{v} \rangle = V(\vec{v})&amp;lt;/math&amp;gt;. This single equation explains every property of the cross product at once:&lt;br /&gt;
* &#039;&#039;&#039;Why the determinant works:&#039;&#039;&#039; Replacing &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;(\hat{i}, \hat{j}, \hat{k})&amp;lt;/math&amp;gt; is just a compact way of collecting the coefficients of &amp;lt;math&amp;gt;v_x, v_y, v_z&amp;lt;/math&amp;gt; into the vector &amp;lt;math&amp;gt;\vec{c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Orthogonality:&#039;&#039;&#039; Setting &amp;lt;math&amp;gt;\vec{v} = \vec{a}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\vec{v} = \vec{b}&amp;lt;/math&amp;gt; flattens the parallelepiped to volume &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;, so &amp;lt;math&amp;gt;\langle \vec{a} \times \vec{b}, \vec{a} \rangle = 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle \vec{a} \times \vec{b}, \vec{b} \rangle = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Magnitude = Base Area:&#039;&#039;&#039; Setting &amp;lt;math&amp;gt;\vec{v} = \hat{n}&amp;lt;/math&amp;gt; (the unit vector pointing in the direction of &amp;lt;math&amp;gt;\vec{a} \times \vec{b}&amp;lt;/math&amp;gt;) builds a parallelepiped of height &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; over the base spanned by &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;. Its volume equals &amp;lt;math&amp;gt;(\text{base area}) \times 1&amp;lt;/math&amp;gt;, while &amp;lt;math&amp;gt;\langle \vec{a} \times \vec{b}, \hat{n} \rangle = \|\vec{a} \times \vec{b}\|&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Right-hand rule:&#039;&#039;&#039; Setting &amp;lt;math&amp;gt;\vec{v} = \vec{a} \times \vec{b}&amp;lt;/math&amp;gt; gives volume &amp;lt;math&amp;gt;\|\vec{a} \times \vec{b}\|^2 &amp;gt; 0&amp;lt;/math&amp;gt; (for non-parallel &amp;lt;math&amp;gt;\vec{a}, \vec{b}&amp;lt;/math&amp;gt;), forcing &amp;lt;math&amp;gt;(\vec{a}, \vec{b}, \vec{a} \times \vec{b})&amp;lt;/math&amp;gt; to have positive (right-handed) orientation.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Why Two-Vector Cross Products Are Special to 3D (and the 7D Exception)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Suppose you have two non-parallel vectors &amp;lt;math&amp;gt;a, b \in \mathbf{R}^n&amp;lt;/math&amp;gt; and want a vector &amp;lt;math&amp;gt;v \in \mathbf{R}^n&amp;lt;/math&amp;gt; orthogonal to both. That means solving two linear equations—&amp;lt;math&amp;gt;\langle a, v \rangle = 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle b, v \rangle = 0&amp;lt;/math&amp;gt;—in &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; unknowns, leaving &amp;lt;math&amp;gt;n - 2&amp;lt;/math&amp;gt; free parameters:&lt;br /&gt;
* In &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;n = 2&amp;lt;/math&amp;gt;): &amp;lt;math&amp;gt;2 - 2 = 0&amp;lt;/math&amp;gt; free parameters. Only the zero vector is orthogonal to both &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;.&lt;br /&gt;
* In &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;n = 3&amp;lt;/math&amp;gt;): &amp;lt;math&amp;gt;3 - 2 = 1&amp;lt;/math&amp;gt; free parameter. All orthogonal vectors lie along a &#039;&#039;&#039;single line&#039;&#039;&#039;, so specifying magnitude and the right-hand rule picks out a unique vector.&lt;br /&gt;
* In &amp;lt;math&amp;gt;\mathbf{R}^4&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;n = 4&amp;lt;/math&amp;gt;): &amp;lt;math&amp;gt;4 - 2 = 2&amp;lt;/math&amp;gt; free parameters—an entire 2D plane of orthogonal vectors. For example, both &amp;lt;math&amp;gt;(0, 0, 1, 0)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(0, 0, 0, 1)&amp;lt;/math&amp;gt; (and every linear combination of them) are perpendicular to &amp;lt;math&amp;gt;(1, 0, 0, 0)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(0, 1, 0, 0)&amp;lt;/math&amp;gt;, so &amp;quot;perpendicular to both&amp;quot; no longer specifies a single direction.&lt;br /&gt;
&lt;br /&gt;
Physics uses the cross product to describe &#039;&#039;&#039;rotations and oriented planes&#039;&#039;&#039; (such as the plane of a spinning wheel or a current loop). Every rotation takes place &#039;&#039;in a 2D plane&#039;&#039;, not inherently &#039;&#039;around a line&#039;&#039;:&lt;br /&gt;
* In 2D, there is only &amp;lt;math&amp;gt;\binom{2}{2} = 1&amp;lt;/math&amp;gt; coordinate plane (&amp;lt;math&amp;gt;xy&amp;lt;/math&amp;gt;), so rotation is just a single signed scalar (clockwise or counterclockwise).&lt;br /&gt;
* In 3D, there are &amp;lt;math&amp;gt;\binom{3}{2} = 3&amp;lt;/math&amp;gt; coordinate planes (&amp;lt;math&amp;gt;yz, zx, xy&amp;lt;/math&amp;gt;)—which happens to equal the &amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt; coordinate axes (&amp;lt;math&amp;gt;x, y, z&amp;lt;/math&amp;gt;). This coincidence lets us pair each plane of rotation with its unique normal axis and package torque, angular momentum, and magnetic fields as 3D vectors.&lt;br /&gt;
* In 4D, there are &amp;lt;math&amp;gt;\binom{4}{2} = 6&amp;lt;/math&amp;gt; independent coordinate planes (&amp;lt;math&amp;gt;xy, xz, xw, yz, yw, zw&amp;lt;/math&amp;gt;), which cannot be stored in a 4-component vector. That is why in 4D relativity, angular momentum and the electromagnetic field are represented as &amp;lt;math&amp;gt;4 \times 4&amp;lt;/math&amp;gt; antisymmetric matrices (which have &amp;lt;math&amp;gt;6&amp;lt;/math&amp;gt; independent entries—one per coordinate plane) rather than 4-vectors.&lt;br /&gt;
&lt;br /&gt;
The signed-volume construction &amp;lt;math&amp;gt;\langle c, v \rangle = \det(v, v_1, \dots, v_{n-1})&amp;lt;/math&amp;gt; generalizes cleanly to any dimension &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; if you supply &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt; vectors instead of &amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt; (leaving &amp;lt;math&amp;gt;n - (n - 1) = 1&amp;lt;/math&amp;gt; perpendicular axis). In 2D, it takes &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; vector &amp;lt;math&amp;gt;(a_x, a_y)&amp;lt;/math&amp;gt; and returns &amp;lt;math&amp;gt;(-a_y, a_x)&amp;lt;/math&amp;gt; (a &amp;lt;math&amp;gt;90^\circ&amp;lt;/math&amp;gt; counterclockwise rotation); in 3D, it takes &amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt; vectors (the standard cross product); in 4D, it takes &amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt; vectors to determine a single perpendicular vector.&lt;br /&gt;
&lt;br /&gt;
Finally, what if we relax the requirement that orthogonality alone determine a unique line, and simply ask for &#039;&#039;any&#039;&#039; bilinear product of two vectors in &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;n \ge 2&amp;lt;/math&amp;gt;) that is orthogonal to both inputs and has norm equal to the parallelogram area (&amp;lt;math&amp;gt;\|a \times b\|^2 = \|a\|^2\|b\|^2 - \langle a, b \rangle^2&amp;lt;/math&amp;gt;)? Remarkably, such a cross product exists &#039;&#039;&#039;only in &amp;lt;math&amp;gt;n = 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n = 7&amp;lt;/math&amp;gt;&#039;&#039;&#039;. In &amp;lt;math&amp;gt;\mathbf{R}^7&amp;lt;/math&amp;gt;, the space orthogonal to two non-parallel vectors is &amp;lt;math&amp;gt;7 - 2 = 5&amp;lt;/math&amp;gt;-dimensional, so orthogonality does not select a direction; instead, a 7D cross product picks out a specific perpendicular vector using the multiplication table of the 8-dimensional &#039;&#039;&#039;octonions&#039;&#039;&#039; (just as the 3D cross product comes from the 4-dimensional &#039;&#039;&#039;quaternions&#039;&#039;&#039;). Because that choice depends on the octonion multiplication rule, the 7D cross product is not unique up to sign, is not preserved by all 7D rotations, and loses the general vector triple product identity (since octonion multiplication is non-associative).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Vector Product Identities===&lt;br /&gt;
&lt;br /&gt;
When combining dot products and cross products in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, two identities are particularly useful:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Orthogonality:&#039;&#039;&#039; &amp;lt;math&amp;gt;(\vec{w} \times \vec{v}) \cdot \vec{v} = 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(\vec{w} \times \vec{v}) \cdot \vec{w} = 0&amp;lt;/math&amp;gt;. Because &amp;lt;math&amp;gt;\vec{w} \times \vec{v}&amp;lt;/math&amp;gt; is orthogonal to both &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, its dot product with either vanishes.&lt;br /&gt;
# &#039;&#039;&#039;Scalar Triple Product:&#039;&#039;&#039; &amp;lt;math&amp;gt;\vec{a} \cdot (\vec{b} \times \vec{c}) = (\vec{a} \times \vec{b}) \cdot \vec{c} = \vec{b} \cdot (\vec{c} \times \vec{a})&amp;lt;/math&amp;gt;. This scalar equals the determinant of the &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; matrix whose rows (or columns) are &amp;lt;math&amp;gt;\vec{a}, \vec{b}, \vec{c}&amp;lt;/math&amp;gt;, and its absolute value equals the &#039;&#039;&#039;volume of the parallelepiped&#039;&#039;&#039; spanned by the vectors. Cyclic permutations of these vectors preserve the volume and swapping any two vectors flips the sign.&lt;br /&gt;
&lt;br /&gt;
==Representations of a Vector==&lt;br /&gt;
&lt;br /&gt;
A physical vector or an element of an abstract vector space &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; exists independently of any coordinate system. Once an ordered basis is chosen, it establishes a one-to-one correspondence (isomorphism &amp;lt;math&amp;gt;V \cong \mathbf{R}^n&amp;lt;/math&amp;gt;) that assigns each vector a unique list of coordinates. Depending on the problem, we choose whichever representation is most convenient; all carry identical information.&lt;br /&gt;
&lt;br /&gt;
===Magnitude and Direction Form===&lt;br /&gt;
&lt;br /&gt;
In this form, we specify:&lt;br /&gt;
* The norm (magnitude) &amp;lt;math&amp;gt;\|\vec{a}\|&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* The orientation (an angle, cardinal direction, or axis).&lt;br /&gt;
&lt;br /&gt;
For example, &amp;quot;a &amp;lt;math&amp;gt;5\ \text{m}&amp;lt;/math&amp;gt; displacement at &amp;lt;math&amp;gt;36.9^\circ&amp;lt;/math&amp;gt; above the horizontal&amp;quot; is in this form. This form is intuitive and often used in word problems and real-life descriptions.&lt;br /&gt;
&lt;br /&gt;
===Component Form===&lt;br /&gt;
&lt;br /&gt;
Once a basis is decided, we break the vector into components along the coordinate axes. In &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, &amp;lt;math&amp;gt;(4, 3, 0)&amp;lt;/math&amp;gt; means the vector extends 4 units along &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt;, 3 along &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;, and 0 along &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;. Most algebraic operations are done using component form. Computers also typically store vectors this way (at least in the abstract sense).&lt;br /&gt;
&lt;br /&gt;
===Unit Vector Form===&lt;br /&gt;
&lt;br /&gt;
Using the standard orthonormal basis &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt; (or alternatively written as &amp;lt;math&amp;gt;\hat{x}, \hat{y}, \hat{z}&amp;lt;/math&amp;gt;) of &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, every vector is written uniquely as a linear combination:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} = a_x \hat{i} + a_y \hat{j} + a_z \hat{k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, &amp;lt;math&amp;gt;(4, 3, 0) = 4\hat{i} + 3\hat{j}&amp;lt;/math&amp;gt;. Unit vector form and component form carry identical numerical information; basis form makes the underlying linear combination explicit, which can be useful when working in other bases.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorsdifferentforms.png]]&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; dimensions, specifying a vector always requires &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; numbers in the field (which in introductory physics is almost always the real numbers), regardless of the representation. In &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, Cartesian component form uses &amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt; coordinates &amp;lt;math&amp;gt;(a_x, a_y, a_z)&amp;lt;/math&amp;gt;, while spherical magnitude–direction form uses &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; norm and &amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt; angles &amp;lt;math&amp;gt;(\|\vec{a}\|, \theta, \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Converting Between Forms===&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt;, we convert between Cartesian components &amp;lt;math&amp;gt;(a_x, a_y)&amp;lt;/math&amp;gt; and polar magnitude–direction form &amp;lt;math&amp;gt;(\|\vec{a}\|, \phi)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\phi \in (-\pi, \pi]&amp;lt;/math&amp;gt; using the inner product and right-triangle trigonometry:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Components to magnitude and direction:&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;math&amp;gt;\|\vec{a}\| = \sqrt{\langle \vec{a}, \vec{a} \rangle} = \sqrt{a_x^2 + a_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\phi = \begin{cases} \arctan\!\left(\frac{a_y}{a_x}\right) &amp;amp; \text{if } a_x &amp;gt; 0, \\ \arctan\!\left(\frac{a_y}{a_x}\right) + \pi &amp;amp; \text{if } a_x &amp;lt; 0 \text{ and } a_y \ge 0, \\ \arctan\!\left(\frac{a_y}{a_x}\right) - \pi &amp;amp; \text{if } a_x &amp;lt; 0 \text{ and } a_y &amp;lt; 0, \\ \frac{\pi}{2} &amp;amp; \text{if } a_x = 0 \text{ and } a_y &amp;gt; 0, \\ -\frac{\pi}{2} &amp;amp; \text{if } a_x = 0 \text{ and } a_y &amp;lt; 0. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
:(For &amp;lt;math&amp;gt;\vec{a} = (0, 0)&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is undefined. This piecewise formula is equivalent to the two-argument function &amp;lt;math&amp;gt;\operatorname{atan2}(a_y, a_x)&amp;lt;/math&amp;gt; used in computing; to express &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[0, 2\pi)&amp;lt;/math&amp;gt; instead, add &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt; whenever &amp;lt;math&amp;gt;\phi &amp;lt; 0&amp;lt;/math&amp;gt;.)&lt;br /&gt;
* &#039;&#039;&#039;Magnitude and direction to components&#039;&#039;&#039; (via inner product projections onto the orthonormal basis &amp;lt;math&amp;gt;\hat{x}, \hat{y}&amp;lt;/math&amp;gt;):&lt;br /&gt;
:&amp;lt;math&amp;gt;a_x = \langle \vec{a}, \hat{x} \rangle = \|\vec{a}\|\cos\phi&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a_y = \langle \vec{a}, \hat{y} \rangle = \|\vec{a}\|\sin\phi&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vectors in VPython==&lt;br /&gt;
&lt;br /&gt;
In VPython (used in GlowScript), vectors are represented by the type &amp;lt;code&amp;gt;vec&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vector&amp;lt;/code&amp;gt;. The constructor takes three arguments: the x, y, and z components:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity = vec(3, -1, 2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a vector called &amp;lt;code&amp;gt;velocity&amp;lt;/code&amp;gt; with coordinates &amp;lt;math&amp;gt;(3, -1, 2)&amp;lt;/math&amp;gt;. (Note that when printed to the console, VPython displays vectors using angle brackets, e.g., &amp;lt;code&amp;gt;&amp;amp;lt;3, -1, 2&amp;amp;gt;&amp;lt;/code&amp;gt;, following introductory physics convention rather than inner-product notation.) &lt;br /&gt;
&lt;br /&gt;
In VPython&#039;s default view, &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt; points right, &amp;lt;math&amp;gt;+y&amp;lt;/math&amp;gt; points upward, and &amp;lt;math&amp;gt;+z&amp;lt;/math&amp;gt; points out of the screen toward the viewer.&lt;br /&gt;
&lt;br /&gt;
===Modifying Vectors===&lt;br /&gt;
&lt;br /&gt;
Individual components can be accessed or updated with &amp;lt;code&amp;gt;.x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;.z&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity.x = 5  # changes velocity from (3, -1, 2) to (5, -1, 2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Helpful Vector Functions===&lt;br /&gt;
&lt;br /&gt;
====Magnitude====&lt;br /&gt;
&lt;br /&gt;
VPython provides the &amp;lt;code&amp;gt;mag&amp;lt;/code&amp;gt; function to compute the magnitude (Euclidean norm) of a vector:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity = vec(3, -1, 2)&lt;br /&gt;
speed = mag(velocity)  # magnitude of velocity&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Normalize====&lt;br /&gt;
&lt;br /&gt;
To obtain a unit vector in the same direction (normalize a vector), use &amp;lt;code&amp;gt;norm&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
v = vec(5, 0, 0)&lt;br /&gt;
v_hat = norm(v)  # unit vector (1, 0, 0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Dot and Cross Product====&lt;br /&gt;
&lt;br /&gt;
The functions &amp;lt;code&amp;gt;dot&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;cross&amp;lt;/code&amp;gt; compute dot and cross products:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
a = vec(1, 2, 3)&lt;br /&gt;
b = vec(4, 5, 6)&lt;br /&gt;
dot_prod = dot(a, b)      # &amp;lt;a, b&amp;gt; = a · b&lt;br /&gt;
cross_prod = cross(a, b)  # a × b&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Visualization===&lt;br /&gt;
&lt;br /&gt;
To visualize vectors, VPython provides the &amp;lt;code&amp;gt;arrow&amp;lt;/code&amp;gt; object, specified by:&lt;br /&gt;
* &amp;lt;code&amp;gt;pos&amp;lt;/code&amp;gt; – tail position,&lt;br /&gt;
* &amp;lt;code&amp;gt;axis&amp;lt;/code&amp;gt; – direction and length of the arrow (a vector).&lt;br /&gt;
&lt;br /&gt;
Optional attributes include &amp;lt;code&amp;gt;shaftwidth&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;headwidth&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;headlength&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; (see the [https://www.glowscript.org/docs/VPythonDocs/arrow.html VPython arrow documentation]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity = vec(1, 1, 0)&lt;br /&gt;
origin = vec(0, 0, 0)&lt;br /&gt;
shaftwidth = 0.1&lt;br /&gt;
vel_arrow = arrow(pos=origin, axis=velocity,&lt;br /&gt;
                  shaftwidth=shaftwidth, color=color.red)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Arrow_viz.png]]&lt;br /&gt;
&#039;&#039;Output in VPython of a visualized vector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===A Computational Model===&lt;br /&gt;
&lt;br /&gt;
[https://trinket.io/glowscript/3d7c75ed91 Click here to run the interactive GlowScript computational model.]&lt;br /&gt;
&lt;br /&gt;
This model walks through basic vector operations step by step. It starts by defining vectors as arrows, then explores:&lt;br /&gt;
&lt;br /&gt;
* Addition and subtraction  &lt;br /&gt;
* Scalar multiplication  &lt;br /&gt;
* Magnitude and unit vectors  &lt;br /&gt;
* Dot and cross products  &lt;br /&gt;
&lt;br /&gt;
Each operation is shown both in formula form and using VPython shortcut functions. You can edit the vector values and rerun the code to see how the results change. Commenting out parts of the script can help you focus on one type of operation at a time.&lt;br /&gt;
&lt;br /&gt;
==Exercises and Solutions==&lt;br /&gt;
&lt;br /&gt;
===Very Simple===&lt;br /&gt;
&lt;br /&gt;
Given the vector &amp;lt;math&amp;gt;\vec{a} = (2.5, 7.4, 8.0)&amp;lt;/math&amp;gt;, find its norm (magnitude) and a unit vector in its direction.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, compute the Euclidean norm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{a}\| = \sqrt{2.5^2 + 7.4^2 + 8.0^2} = \sqrt{6.25 + 54.76 + 64} = \sqrt{125.01} \approx 11.18.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{a} = \frac{1}{\|\vec{a}\|}\vec{a} = \left(\frac{2.5}{\sqrt{125.01}},\; \frac{7.4}{\sqrt{125.01}},\; \frac{8.0}{\sqrt{125.01}}\right) \approx (0.224,\; 0.662,\; 0.716).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then the norm is about &amp;lt;math&amp;gt;11.18&amp;lt;/math&amp;gt;, and the unit vector in its direction is &amp;lt;math&amp;gt;(0.224, 0.662, 0.716)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Simple===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\vec{a} = (2, 4, 2)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (-1, 1, 3)&amp;lt;/math&amp;gt;. Find the norm of &amp;lt;math&amp;gt;\vec{a} - 2\vec{b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the combination coordinate-wise:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} - 2\vec{b} = (2, 4, 2) - 2(-1, 1, 3) = (2, 4, 2) - (-2, 2, 6) = (4, 2, -4).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now find its norm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|(4, 2, -4)\| = \sqrt{4^2 + 2^2 + (-4)^2} = \sqrt{16 + 4 + 16} = \sqrt{36} = 6.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Simple===&lt;br /&gt;
&lt;br /&gt;
Find the angle &amp;lt;math&amp;gt;\theta \in [0, \pi]&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;\vec{a} = (2, 5, -2)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (3, -4, -1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the inner product angle formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle \vec{a}, \vec{b} \rangle = \|\vec{a}\|\|\vec{b}\|\cos\theta \implies \theta = \arccos\!\left(\frac{\langle \vec{a}, \vec{b} \rangle}{\|\vec{a}\|\|\vec{b}\|}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the inner product:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle \vec{a}, \vec{b} \rangle = 2(3) + 5(-4) + (-2)(-1) = 6 - 20 + 2 = -12.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the norms:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{a}\| = \sqrt{2^2 + 5^2 + (-2)^2} = \sqrt{4 + 25 + 4} = \sqrt{33},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{b}\| = \sqrt{3^2 + (-4)^2 + (-1)^2} = \sqrt{9 + 16 + 1} = \sqrt{26}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\theta = \arccos\!\left(\frac{-12}{\sqrt{33}\sqrt{26}}\right) = \arccos\!\left(\frac{-12}{\sqrt{858}}\right) \approx 114.2^\circ.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Intermediate===&lt;br /&gt;
&lt;br /&gt;
An airplane is flying in still air at &amp;lt;math&amp;gt;240\ \text{m/s}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;35^\circ&amp;lt;/math&amp;gt; south of west. A wind begins blowing at &amp;lt;math&amp;gt;80\ \text{m/s}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;15^\circ&amp;lt;/math&amp;gt; east of north. What must the plane’s new velocity relative to the air be in order to keep the same overall trajectory? Give your answer in components with &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt; east and &amp;lt;math&amp;gt;+y&amp;lt;/math&amp;gt; north.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorsplaneproblem.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v}_{p,0}&amp;lt;/math&amp;gt; = original velocity of the plane (relative to air),&lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v}_w&amp;lt;/math&amp;gt; = wind velocity (relative to ground),&lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v}_{p,1}&amp;lt;/math&amp;gt; = new velocity of the plane relative to the air.&lt;br /&gt;
&lt;br /&gt;
With the wind blowing, the plane&#039;s velocity relative to the ground is &amp;lt;math&amp;gt;\vec{v}_{p,1} + \vec{v}_w&amp;lt;/math&amp;gt;. Requiring this resultant ground velocity to remain equal to &amp;lt;math&amp;gt;\vec{v}_{p,0}&amp;lt;/math&amp;gt; gives:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}_{p,1} + \vec{v}_w = \vec{v}_{p,0} \implies \vec{v}_{p,1} = \vec{v}_{p,0} - \vec{v}_w.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Express everything in components (&amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt; east, &amp;lt;math&amp;gt;+y&amp;lt;/math&amp;gt; north):&lt;br /&gt;
* &amp;lt;math&amp;gt;35^\circ&amp;lt;/math&amp;gt; south of west corresponds to &amp;lt;math&amp;gt;\phi = 180^\circ + 35^\circ = 215^\circ&amp;lt;/math&amp;gt; from the &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt;-axis:&lt;br /&gt;
:&amp;lt;math&amp;gt;\vec{v}_{p,0} = (240\cos 215^\circ,\; 240\sin 215^\circ)\ \text{m/s} \approx (-196.60,\; -137.66)\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;15^\circ&amp;lt;/math&amp;gt; east of north corresponds to &amp;lt;math&amp;gt;\phi = 90^\circ - 15^\circ = 75^\circ&amp;lt;/math&amp;gt; from the &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt;-axis:&lt;br /&gt;
:&amp;lt;math&amp;gt;\vec{v}_w = (80\cos 75^\circ,\; 80\sin 75^\circ)\ \text{m/s} \approx (20.71,\; 77.27)\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Subtract component-wise:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}_{p,1} = \vec{v}_{p,0} - \vec{v}_w \approx (-196.60,\; -137.66) - (20.71,\; 77.27) \approx (-217.3,\; -214.9)\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The plane must adjust its velocity relative to the air to approximately &amp;lt;math&amp;gt;(-217.3, -214.9)\ \text{m/s}&amp;lt;/math&amp;gt; to maintain its original ground velocity.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Intermediate===&lt;br /&gt;
&lt;br /&gt;
A mechanic applies a force &amp;lt;math&amp;gt;\vec{F} = (30,\; 20,\; -20)\ \text{N}&amp;lt;/math&amp;gt; to the end of a lever whose position vector relative to the pivot is &amp;lt;math&amp;gt;\vec{r} = (0.3,\; -0.4,\; 0.1)\ \text{m}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# Compute the torque vector &amp;lt;math&amp;gt;\vec{\tau} = \vec{r} \times \vec{F}&amp;lt;/math&amp;gt; about the pivot.&lt;br /&gt;
# Find the magnitude &amp;lt;math&amp;gt;\|\vec{\tau}\|&amp;lt;/math&amp;gt; of the torque.&lt;br /&gt;
# Verify using inner products that &amp;lt;math&amp;gt;\vec{\tau}&amp;lt;/math&amp;gt; is orthogonal to both &amp;lt;math&amp;gt;\vec{r}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{F}&amp;lt;/math&amp;gt;, and state what vector you would obtain if you mistakenly computed &amp;lt;math&amp;gt;\vec{F} \times \vec{r}&amp;lt;/math&amp;gt; instead.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Compute &amp;lt;math&amp;gt;\vec{\tau} = \vec{r} \times \vec{F}&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the determinant form (or component formula) with &amp;lt;math&amp;gt;\vec{r} = (0.3, -0.4, 0.1)\ \text{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{F} = (30, 20, -20)\ \text{N}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{\tau} = \begin{vmatrix} \hat{i} &amp;amp; \hat{j} &amp;amp; \hat{k} \\ 0.3 &amp;amp; -0.4 &amp;amp; 0.1 \\ 30 &amp;amp; 20 &amp;amp; -20 \end{vmatrix}\ \text{N}\cdot\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Expand component by component (keeping track of the minus sign on the &amp;lt;math&amp;gt;\hat{j}&amp;lt;/math&amp;gt; term):&lt;br /&gt;
* &amp;lt;math&amp;gt;\tau_x = (-0.4)(-20) - (0.1)(20) = 8 - 2 = 6\ \text{N}\cdot\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\tau_y = -\big[(0.3)(-20) - (0.1)(30)\big] = -(-6 - 3) = 9\ \text{N}\cdot\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\tau_z = (0.3)(20) - (-0.4)(30) = 6 - (-12) = 18\ \text{N}\cdot\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{\tau} = (6,\; 9,\; 18)\ \text{N}\cdot\text{m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Note: Although &amp;lt;math&amp;gt;\text{N}\cdot\text{m}&amp;lt;/math&amp;gt; has the same SI base units as the joule, torque is conventionally written in &amp;lt;math&amp;gt;\text{N}\cdot\text{m}&amp;lt;/math&amp;gt; to distinguish it from energy or work.)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Find the magnitude &amp;lt;math&amp;gt;\|\vec{\tau}\|&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{\tau}\| = \sqrt{6^2 + 9^2 + 18^2}\ \text{N}\cdot\text{m} = \sqrt{36 + 81 + 324}\ \text{N}\cdot\text{m} = \sqrt{441}\ \text{N}\cdot\text{m} = 21\ \text{N}\cdot\text{m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Verify orthogonality and anticommutativity:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Compute the inner product of &amp;lt;math&amp;gt;\vec{\tau}&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\vec{r}&amp;lt;/math&amp;gt; and with &amp;lt;math&amp;gt;\vec{F}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle \vec{\tau}, \vec{r} \rangle = 6(0.3) + 9(-0.4) + 18(0.1) = 1.8 - 3.6 + 1.8 = 0,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle \vec{\tau}, \vec{F} \rangle = 6(30) + 9(20) + 18(-20) = 180 + 180 - 360 = 0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since both inner products vanish, &amp;lt;math&amp;gt;\vec{\tau}&amp;lt;/math&amp;gt; is orthogonal to both &amp;lt;math&amp;gt;\vec{r}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{F}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Finally, because the cross product is anticommutative (&amp;lt;math&amp;gt;\vec{F} \times \vec{r} = -(\vec{r} \times \vec{F})&amp;lt;/math&amp;gt;), reversing the order flips every sign:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{F} \times \vec{r} = -\vec{\tau} = (-6,\; -9,\; -18)\ \text{N}\cdot\text{m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Challenging===&lt;br /&gt;
&lt;br /&gt;
Suppose &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; are two vectors in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; (or more generally &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;) such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u}\| = 3, \qquad \|\vec{u} + \vec{v}\| = 4, \qquad \|\vec{u} - \vec{v}\| = 6.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Without knowing any components of &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, find the norm &amp;lt;math&amp;gt;\|\vec{v}\|&amp;lt;/math&amp;gt; and the angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Recall that the square of a vector&#039;s norm equals the inner product of the vector with itself: &amp;lt;math&amp;gt;\|x\|^2 = \langle x, x \rangle&amp;lt;/math&amp;gt;. Expanding the squared norms of the sum and difference using the linearity and symmetry of the real inner product gives:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\|^2 = \langle \vec{u} + \vec{v},\; \vec{u} + \vec{v} \rangle = \|\vec{u}\|^2 + 2\langle \vec{u}, \vec{v} \rangle + \|\vec{v}\|^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u} - \vec{v}\|^2 = \langle \vec{u} - \vec{v},\; \vec{u} - \vec{v} \rangle = \|\vec{u}\|^2 - 2\langle \vec{u}, \vec{v} \rangle + \|\vec{v}\|^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Find &amp;lt;math&amp;gt;\|\vec{v}\|&amp;lt;/math&amp;gt; (Parallelogram Equality):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Adding the two equations cancels the &amp;lt;math&amp;gt;2\langle \vec{u}, \vec{v} \rangle&amp;lt;/math&amp;gt; cross-term:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\|^2 + \|\vec{u} - \vec{v}\|^2 = 2\left(\|\vec{u}\|^2 + \|\vec{v}\|^2\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substitute the given norms (&amp;lt;math&amp;gt;\|\vec{u}\| = 3&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\| = 4&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\|\vec{u} - \vec{v}\| = 6&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;4^2 + 6^2 = 2\left(3^2 + \|\vec{v}\|^2\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;16 + 36 = 2\left(9 + \|\vec{v}\|^2\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;52 = 18 + 2\|\vec{v}\|^2 \implies 2\|\vec{v}\|^2 = 34 \implies \|\vec{v}\|^2 = 17&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since a norm is always nonnegative:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{v}\| = \sqrt{17} \approx 4.12.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Find the angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Subtracting the second expansion from the first isolates the inner product:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\|^2 - \|\vec{u} - \vec{v}\|^2 = 4\langle \vec{u}, \vec{v} \rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;16 - 36 = 4\langle \vec{u}, \vec{v} \rangle \implies \langle \vec{u}, \vec{v} \rangle = -5&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Applying the inner product angle formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\cos\theta = \frac{\langle \vec{u}, \vec{v} \rangle}{\|\vec{u}\|\|\vec{v}\|} = \frac{-5}{3\sqrt{17}} \approx -0.4042&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\theta = \arccos\!\left(\frac{-5}{3\sqrt{17}}\right) \approx 113.8^\circ.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Geometric &amp;amp; physics note:&#039;&#039; Think of &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; as two adjacent sides of a parallelogram (for example, two forces acting on a particle); then &amp;lt;math&amp;gt;\vec{u} + \vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{u} - \vec{v}&amp;lt;/math&amp;gt; are its two diagonals. The identity &amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\|^2 + \|\vec{u} - \vec{v}\|^2 = 2(\|\vec{u}\|^2 + \|\vec{v}\|^2)&amp;lt;/math&amp;gt; is the &#039;&#039;&#039;parallelogram equality&#039;&#039;&#039;, which allows us to recover unknown norms and angles purely from length measurements—without ever choosing a coordinate system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Applications and History==&lt;br /&gt;
&lt;br /&gt;
===Applications Across Disciplines===&lt;br /&gt;
Vectors appear in many everyday and engineering contexts.&lt;br /&gt;
&lt;br /&gt;
Consider a desk. Its weight is a force vector pointing downward, the normal force from the floor is a vector pointing upward, and the forces among the desk’s parts can all be represented as vectors. Measurements such as the diagonal distance across the desktop can also be seen as vectors from one corner to another.&lt;br /&gt;
&lt;br /&gt;
Your motion can be described using vectors as well. Your &#039;&#039;&#039;position&#039;&#039;&#039; relative to some reference point can be written as a position vector. The difference between two position vectors is a displacement vector. &#039;&#039;&#039;Velocity&#039;&#039;&#039; describes how your position changes over time; it is the time derivative of the position vector, and its magnitude is your speed. &#039;&#039;&#039;Acceleration&#039;&#039;&#039; is the time derivative of velocity. All of these quantities can be broken into components, which makes it easier to analyze motion in each direction separately.&lt;br /&gt;
&lt;br /&gt;
Vectors and units appear across everyday physical situations and virtually every STEM field:&lt;br /&gt;
* &#039;&#039;&#039;Electromagnetism and Fields:&#039;&#039;&#039; Electric fields &amp;lt;math&amp;gt;\vec{E}&amp;lt;/math&amp;gt; and magnetic fields &amp;lt;math&amp;gt;\vec{B}&amp;lt;/math&amp;gt; are vector fields that assign a vector to every point in space, interacting with charges through operations like the Lorentz force &amp;lt;math&amp;gt;\vec{F} = q(\vec{E} + \vec{v} \times \vec{B})&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Engineering:&#039;&#039;&#039; Structural stress analysis, fluid dynamics, robotics kinematics, control theory, and phasor analysis in AC electrical circuits all depend on vector spaces and inner products.&lt;br /&gt;
* &#039;&#039;&#039;Computer Science and Graphics:&#039;&#039;&#039; 2D/3D rendering engines use vectors for positions, surface normals, lighting (via dot products), and coordinate transformations, while machine learning models represent data points as vectors in high-dimensional spaces &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Navigation:&#039;&#039;&#039; GPS receivers, aircraft, and ships continuously combine position, velocity, wind, and current vectors to compute headings and trajectories.&lt;br /&gt;
&lt;br /&gt;
===History===&lt;br /&gt;
&lt;br /&gt;
Ideas similar to vectors go back many centuries. Early uses treated them as directed line segments rather than abstract quantities. Hero of Alexandria’s work &#039;&#039;Mechanics&#039;&#039; in the first century AD contains one of the earliest known discussions of adding such directed segments.&lt;br /&gt;
&lt;br /&gt;
In the 18th and 19th centuries, several mathematicians used 2D vectors to represent complex numbers. Caspar Wessel, Jean-Robert Argand, Carl Friedrich Gauss, and William Rowan Hamilton all contributed to this viewpoint. One component represented the real part, and the other represented the imaginary part. Hamilton also introduced the term “vector.”&lt;br /&gt;
&lt;br /&gt;
August Ferdinand Möbius, in his 1827 book &#039;&#039;The Barycentric Calculus&#039;&#039;, formalized many vector ideas, including labeling vectors with letters and defining scalar multiplication. Hermann Grassmann, in his 1844 work &#039;&#039;Ausdehnungslehre&#039;&#039; (“The Calculus of Extension”), developed a more general theory of vectors in spaces of arbitrary dimension and laid foundations for linear algebra.&lt;br /&gt;
&lt;br /&gt;
The modern vector notation and conventions used in physics owe a lot to J. Willard Gibbs and Oliver Heaviside in the late 19th century. They refined vector methods and used them to express Maxwell’s equations of electromagnetism in the compact form we study today.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
===External Links===&lt;br /&gt;
* [http://ocw.mit.edu/courses/mathematics/18-02sc-multivariable-calculus-fall-2010/1.-vectors-and-matrices/part-a-vectors-determinants-and-planes/session-1-vectors/MIT18_02SC_notes_0.pdf MIT OpenCourseWare 18.02SC: Vectors and Matrices Notes]&lt;br /&gt;
* [https://www.glowscript.org/docs/VPythonDocs/vector.html VPython / GlowScript Vector Documentation]&lt;br /&gt;
* [https://www.physics.uoguelph.ca/tutorials/vectors/vectors.html University of Guelph: Introductory Vector Tutorial]&lt;br /&gt;
&lt;br /&gt;
===Further Reading===&lt;br /&gt;
* &#039;&#039;Linear Algebra Done Right&#039;&#039; – Sheldon Axler (2024)&lt;br /&gt;
* &#039;&#039;Vector Analysis&#039;&#039; – Josiah Willard Gibbs &amp;amp; Edwin Bidwell Wilson (1901)&lt;br /&gt;
* &#039;&#039;Introduction to Matrices and Vectors&#039;&#039; – Jacob T. Schwartz (1961)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* Axler, Sheldon. [https://linear.axler.net &#039;&#039;Linear Algebra Done Right&#039;&#039;] (4th ed., Springer, 2024).&lt;br /&gt;
* [https://mathinsight.org/vector_introduction Math Insight: An Introduction to Vectors]&lt;br /&gt;
* [https://mathinsight.org/definition/magnitude_vector Math Insight: Magnitude of a Vector]&lt;br /&gt;
* [https://www.mathsisfun.com/algebra/vectors.html Math is Fun: Vectors]&lt;br /&gt;
* [http://ocw.mit.edu/courses/mathematics/18-02sc-multivariable-calculus-fall-2010/1.-vectors-and-matrices/part-a-vectors-determinants-and-planes/session-1-vectors/MIT18_02SC_notes_0.pdf MIT OCW 18.02SC Multivariable Calculus: Session 1 Notes]&lt;br /&gt;
* [http://www.math.mcgill.ca/labute/courses/133f03/VectorHistory.html McGill University: Brief History of Vectors]&lt;br /&gt;
* [https://www.glowscript.org/docs/VPythonDocs/vector.html GlowScript / VPython Documentation: Vectors]&lt;br /&gt;
* [https://www.glowscript.org/docs/VPythonDocs/arrow.html GlowScript / VPython Documentation: Arrow]&lt;br /&gt;
* [https://www.britannica.com/science/vector-mathematics Encyclopædia Britannica: Vector (Mathematics)]&lt;br /&gt;
* [https://www.grc.nasa.gov/www/k-12/rocket/vectcomp.html NASA Glenn Research Center: Vector Components]&lt;br /&gt;
* [https://www.onlinemathlearning.com/dot-product.html Online Math Learning: Dot Product]&lt;br /&gt;
&lt;br /&gt;
[[Category: Geometry]]&lt;/div&gt;</summary>
		<author><name>JohnWasHere</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Vectors&amp;diff=48435</id>
		<title>Vectors</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Vectors&amp;diff=48435"/>
		<updated>2026-11-25T03:11:18Z</updated>

		<summary type="html">&lt;p&gt;JohnWasHere: Made dramatic changes to the organization, presentation and information contained in this page. There are new sections and a complete refactoring of all text. Issues with format visible in the original article have all been fixed.  Additions: - Gave formal definitions and working examples of all that an introductory physics student should know about vectors. There are multiple new sections on this. - Introduced slightly more advanced topics regarding vectors and their use in mathematics/physics.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;John Yang -- Fall 2026&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Vectors and units are used for precisely describing the physical world. A vector in introductory physics can be thought of as a quantity that has both &#039;&#039;&#039;magnitude&#039;&#039;&#039; (how big) and &#039;&#039;&#039;direction&#039;&#039;&#039; (which way). Many important physical quantities are vectors: displacement, velocity, acceleration, and force all need both size and direction to be specified. By representing these quantities as vectors, we can keep track of how they interact.&lt;br /&gt;
&lt;br /&gt;
Units, meanwhile, tell us what we are measuring. A number by itself has no physical meaning until we attach a unit such as meters (m), seconds (s), or newtons (N). Consistent use of units helps us spot mistakes, compare results, and communicate clearly. Together, vectors and units allow scientists, engineers, and programmers to build models and make inferences and predictions for real-world behavior and to do computations that are physically meaningful.&lt;br /&gt;
&lt;br /&gt;
In physics and engineering, vectors show up whenever we track motion, balance forces, or work with fields such as electric and magnetic fields. In computer science and related fields, vectors appear in computer graphics, simulations, game physics, machine learning, and data representation. Units give meaning to these values and ensure that all of these computations line up with real measurements. A strong grasp of both vectors and units is essential for problem solving, interpreting relations, and understanding of physics in general.&lt;br /&gt;
&lt;br /&gt;
[[File:wikivector.png]]&lt;br /&gt;
&lt;br /&gt;
===Notation Conventions===&lt;br /&gt;
&lt;br /&gt;
Introductory physics and pure mathematics often write the same vector concepts differently. Because this article bridges introductory physics and formal linear algebra, the table below summarizes both conventions and states the standard used on this page:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Concept !! Linear Algebra !! Introductory Physics !! Convention in This Article&lt;br /&gt;
|-&lt;br /&gt;
| Vector || &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; (plain italic; distinguished by context) || &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathbf{v}&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;\overrightarrow{AB}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; in abstract definitions; &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; in physics and &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Coordinate tuple (vector in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;) || &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\langle v_x, v_y, v_z \rangle&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Inner product (dot product) || &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\vec{u} \cdot \vec{v}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; (and &amp;lt;math&amp;gt;\vec{u} \cdot \vec{v}&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| Norm (magnitude) || &amp;lt;math&amp;gt;\|v\|&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;|\vec{v}|&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;\|\vec{v}\|_2&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\|v\|&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\|\vec{v}\|&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Unit vector || &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\|u\| = 1&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt;; standard basis &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\hat{x}, \hat{y}, \hat{z}&amp;lt;/math&amp;gt; || &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt; (or &amp;lt;math&amp;gt;\hat{x}, \hat{y}, \hat{z}&amp;lt;/math&amp;gt;)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important note on angle brackets (&amp;lt;math&amp;gt;\langle \cdot, \cdot \rangle&amp;lt;/math&amp;gt;):&#039;&#039;&#039; Many introductory physics textbooks and computational tools (including VPython&#039;s printed output) write coordinate vectors using angle brackets, such as &amp;lt;math&amp;gt;\vec{v} = \langle 3, -1, 2 \rangle&amp;lt;/math&amp;gt;, to visually separate vectors from points &amp;lt;math&amp;gt;(3, -1, 2)&amp;lt;/math&amp;gt;. In mathematics and nonintroductory physics, however, this is an &#039;&#039;&#039;abuse of notation&#039;&#039;&#039;: angle brackets &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; are reserved for the &#039;&#039;&#039;inner product&#039;&#039;&#039; of two vectors, which outputs a scalar rather than a vector. Writing both &amp;lt;math&amp;gt;\vec{v} = \langle v_x, v_y \rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; in the same setting creates ambiguity (especially in 2D, where both take two entries). To be unambiguous, this article strictly uses &#039;&#039;&#039;parentheses&#039;&#039;&#039; &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt; for coordinate tuples and &#039;&#039;&#039;angle brackets&#039;&#039;&#039; &amp;lt;math&amp;gt;\langle u, v \rangle&amp;lt;/math&amp;gt; exclusively for inner products.&lt;br /&gt;
&lt;br /&gt;
===Physical Examples and Visual Representation===&lt;br /&gt;
&lt;br /&gt;
====Position and Displacement====&lt;br /&gt;
&lt;br /&gt;
A point&#039;s location in 3D space is described by a &#039;&#039;&#039;position vector&#039;&#039;&#039; &amp;lt;math&amp;gt;\vec{r} \in \mathbf{R}^3&amp;lt;/math&amp;gt; measured from a chosen origin &amp;lt;math&amp;gt;(0, 0, 0)&amp;lt;/math&amp;gt;. Because position depends on where the origin is placed, a position vector is always anchored to a reference point. Given two position vectors &amp;lt;math&amp;gt;\vec{r}_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{r}_2&amp;lt;/math&amp;gt;, their difference&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta \vec{r} = \vec{r}_2 - \vec{r}_1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is the &#039;&#039;&#039;relative position&#039;&#039;&#039; (or &#039;&#039;&#039;displacement&#039;&#039;&#039;) vector pointing from point 1 to point 2. Unlike position itself, displacement is independent of the choice of origin, and its norm &amp;lt;math&amp;gt;\|\vec{r}_2 - \vec{r}_1\|&amp;lt;/math&amp;gt; equals the straight-line Euclidean distance between the two points.&lt;br /&gt;
&lt;br /&gt;
====Velocity====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Velocity&#039;&#039;&#039; is a vector that describes how fast and in what direction an object moves. Its magnitude is the &#039;&#039;&#039;speed&#039;&#039;&#039;, and it is usually measured in m/s. The velocity vector can be found by differentiating the position vector with respect to time (if the position function is differentiable, that is).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}(t) = \frac{d\vec{r}}{dt}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if &amp;lt;math&amp;gt;\vec{r}(t) = (t, 1, 0)\ \text{m}&amp;lt;/math&amp;gt;, then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}(t) = \frac{d\vec{r}}{dt} = (1, 0, 0)\ \text{m/s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The speed is the norm &amp;lt;math&amp;gt;\|\vec{v}(t)\| = \sqrt{1^2 + 0^2 + 0^2} = 1\ \text{m/s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Velwiki.png]]&lt;br /&gt;
&lt;br /&gt;
====Weight====&lt;br /&gt;
&lt;br /&gt;
Near Earth&#039;s surface, gravity exerts a downward force vector &amp;lt;math&amp;gt;\vec{F}_g&amp;lt;/math&amp;gt; on an object of mass &amp;lt;math&amp;gt;m &amp;gt; 0&amp;lt;/math&amp;gt;. Choosing a coordinate system with the positive &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis pointing upward,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{F}_g = (0, -mg, 0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;g \approx 9.8\ \text{m/s}^2&amp;lt;/math&amp;gt; is the magnitude of the gravitational field near Earth’s surface. &#039;&#039;&#039;Weight&#039;&#039;&#039; refers to the norm &amp;lt;math&amp;gt;\|\vec{F}_g\| = mg&amp;lt;/math&amp;gt; whereas &amp;lt;math&amp;gt;\vec{F}_g&amp;lt;/math&amp;gt; is the gravitational force vector.&lt;br /&gt;
&lt;br /&gt;
====Visualizing Vectors====&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, vectors are drawn as &#039;&#039;&#039;arrows&#039;&#039;&#039;: the length of the arrow represents the norm, and the direction of the arrow indicates which way it points. Mathematically, vectors in &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt; are invariant under parallel translation: sliding an arrow without changing its length or orientation produces the same vector. In physics, this invariance is useful because a vector does not always represent a literal displacement between two locations. It often describes a physical property defined at a single point (such as velocity, force, or an electric field). In diagrams, we anchor the tail of such a vector at the point where it acts.&lt;br /&gt;
&lt;br /&gt;
The example below shows a velocity vector for a ball moving to the right at 5 m/s.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorvisualrepresentation.png]]&lt;br /&gt;
&lt;br /&gt;
==Units and Measurement==&lt;br /&gt;
&lt;br /&gt;
===SI Base Units===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;International System of Units (SI)&#039;&#039;&#039; is the standard measurement system in science and engineering. It defines seven base units from which all other SI units are constructed:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;meter&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{m}&amp;lt;/math&amp;gt;) – length&lt;br /&gt;
* &#039;&#039;&#039;kilogram&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{kg}&amp;lt;/math&amp;gt;) – mass&lt;br /&gt;
* &#039;&#039;&#039;second&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{s}&amp;lt;/math&amp;gt;) – time&lt;br /&gt;
* &#039;&#039;&#039;ampere&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{A}&amp;lt;/math&amp;gt;) – electric current&lt;br /&gt;
* &#039;&#039;&#039;kelvin&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{K}&amp;lt;/math&amp;gt;) – thermodynamic temperature&lt;br /&gt;
* &#039;&#039;&#039;mole&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{mol}&amp;lt;/math&amp;gt;) – amount of substance&lt;br /&gt;
* &#039;&#039;&#039;candela&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{cd}&amp;lt;/math&amp;gt;) – luminous intensity&lt;br /&gt;
&lt;br /&gt;
All vector quantities in introductory physics carry combinations of these base units.&lt;br /&gt;
&lt;br /&gt;
===Derived Units===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Derived units&#039;&#039;&#039; are formed by combining SI base units through multiplication and division. Common examples include:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;newton&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{N} = \text{kg}\cdot\text{m/s}^2&amp;lt;/math&amp;gt;) – force&lt;br /&gt;
* &#039;&#039;&#039;joule&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{J} = \text{N}\cdot\text{m} = \text{kg}\cdot\text{m}^2/\text{s}^2&amp;lt;/math&amp;gt;) – energy and work&lt;br /&gt;
* &#039;&#039;&#039;watt&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{W} = \text{J/s}&amp;lt;/math&amp;gt;) – power&lt;br /&gt;
* &#039;&#039;&#039;tesla&#039;&#039;&#039; (&amp;lt;math&amp;gt;\text{T} = \text{N}\cdot\text{s}/(\text{C}\cdot\text{m}) = \text{kg}/(\text{A}\cdot\text{s}^2)&amp;lt;/math&amp;gt;) – magnetic field&lt;br /&gt;
&lt;br /&gt;
===Unit Conversion and Dimensional Consistency===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Unit conversion&#039;&#039;&#039; changes a quantity from one unit to another while representing the same physical amount (for example, converting from centimeters to meters or from kilometers per hour to meters per second). In multi-step physics problems, careful unit conversion is essential to avoid errors and to match the units expected in formulas. In vector calculations, dimensional consistency requires that every coordinate of a vector shares the same unit.&lt;br /&gt;
&lt;br /&gt;
==Formal Definition==&lt;br /&gt;
&lt;br /&gt;
===Vector Space Axioms===&lt;br /&gt;
&lt;br /&gt;
Formally, a &#039;&#039;&#039;vector&#039;&#039;&#039; (or &#039;&#039;&#039;point&#039;&#039;&#039;) is an element of a &#039;&#039;&#039;vector space&#039;&#039;&#039;. Let &amp;lt;math&amp;gt;\mathbf{F}&amp;lt;/math&amp;gt; denote either the field of real numbers &amp;lt;math&amp;gt;\mathbf{R}&amp;lt;/math&amp;gt; or the field of complex numbers &amp;lt;math&amp;gt;\mathbf{C}&amp;lt;/math&amp;gt; (in introductory physics, &amp;lt;math&amp;gt;\mathbf{F} = \mathbf{R}&amp;lt;/math&amp;gt;); elements of &amp;lt;math&amp;gt;\mathbf{F}&amp;lt;/math&amp;gt; are called &#039;&#039;&#039;scalars&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;vector space&#039;&#039;&#039; over &amp;lt;math&amp;gt;\mathbf{F}&amp;lt;/math&amp;gt; is a set &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; equipped with two operations:&lt;br /&gt;
* &#039;&#039;&#039;Addition&#039;&#039;&#039; (&amp;lt;math&amp;gt;V \times V \to V&amp;lt;/math&amp;gt;): assigns an element &amp;lt;math&amp;gt;u + v \in V&amp;lt;/math&amp;gt; to each pair &amp;lt;math&amp;gt;u, v \in V&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Scalar multiplication&#039;&#039;&#039; (&amp;lt;math&amp;gt;\mathbf{F} \times V \to V&amp;lt;/math&amp;gt;): assigns an element &amp;lt;math&amp;gt;\lambda v \in V&amp;lt;/math&amp;gt; to each &amp;lt;math&amp;gt;\lambda \in \mathbf{F}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v \in V&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
(Because both operations map back into &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt;, closure under addition and scalar multiplication is built directly into the definition.) These operations must satisfy the following axioms for all &amp;lt;math&amp;gt;u, v, w \in V&amp;lt;/math&amp;gt; and all &amp;lt;math&amp;gt;a, b \in \mathbf{F}&amp;lt;/math&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;Commutativity:&#039;&#039;&#039; &amp;lt;math&amp;gt;u + v = v + u&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Associativity:&#039;&#039;&#039; &amp;lt;math&amp;gt;(u + v) + w = u + (v + w)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(ab)v = a(bv)&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Additive identity:&#039;&#039;&#039; There exists an element &amp;lt;math&amp;gt;0 \in V&amp;lt;/math&amp;gt; (the &#039;&#039;&#039;zero vector&#039;&#039;&#039;, distinct from the scalar &amp;lt;math&amp;gt;0 \in \mathbf{F}&amp;lt;/math&amp;gt;) such that &amp;lt;math&amp;gt;v + 0 = v&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Additive inverse:&#039;&#039;&#039; For every &amp;lt;math&amp;gt;v \in V&amp;lt;/math&amp;gt;, there exists &amp;lt;math&amp;gt;w \in V&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;v + w = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Multiplicative identity:&#039;&#039;&#039; &amp;lt;math&amp;gt;1v = v&amp;lt;/math&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Distributivity:&#039;&#039;&#039; &amp;lt;math&amp;gt;a(u + v) = au + av&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(a + b)v = av + bv&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From these axioms, we can prove that the additive identity &amp;lt;math&amp;gt;0 \in V&amp;lt;/math&amp;gt; is unique, every vector &amp;lt;math&amp;gt;v \in V&amp;lt;/math&amp;gt; has a unique additive inverse denoted &amp;lt;math&amp;gt;-v&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;(-1)v = -v&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;0v = 0&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;v \in V&amp;lt;/math&amp;gt; (do these as an exercise).&lt;br /&gt;
&lt;br /&gt;
In introductory physics, we almost always work in the real vector spaces &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt; (the plane) or &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; (ordinary 3D space), which are special cases of &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;—the set of all ordered lists of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; real numbers, such as &amp;lt;math&amp;gt;v = (v_x, v_y, v_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt;, with coordinate-wise addition and scalar multiplication. For example, &amp;lt;math&amp;gt;v = (1, 0, 0) \in \mathbf{R}^3&amp;lt;/math&amp;gt; is a vector of length &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; pointing along the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis.&lt;br /&gt;
&lt;br /&gt;
===Inner Products and Norms===&lt;br /&gt;
&lt;br /&gt;
A general vector space does not necessarily include a notion of length or angle. To introduce geometry, we equip a real vector space &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; with an &#039;&#039;&#039;inner product&#039;&#039;&#039;, which is a function assigning a real scalar &amp;lt;math&amp;gt;\langle u, v \rangle \in \mathbf{R}&amp;lt;/math&amp;gt; to each pair &amp;lt;math&amp;gt;u, v \in V&amp;lt;/math&amp;gt; such that, for all &amp;lt;math&amp;gt;u, v, w \in V&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\lambda \in \mathbf{R}&amp;lt;/math&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;Positive definiteness:&#039;&#039;&#039; &amp;lt;math&amp;gt;\langle v, v \rangle \ge 0&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;\langle v, v \rangle = 0&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;v = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Linearity in the first slot:&#039;&#039;&#039; &amp;lt;math&amp;gt;\langle u + w, v \rangle = \langle u, v \rangle + \langle w, v \rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle \lambda u, v \rangle = \lambda \langle u, v \rangle&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Symmetry:&#039;&#039;&#039; &amp;lt;math&amp;gt;\langle u, v \rangle = \langle v, u \rangle&amp;lt;/math&amp;gt; (which, combined with linearity in the first slot, also guarantees linearity in the second slot).&lt;br /&gt;
&lt;br /&gt;
A vector space equipped with an inner product is called an &#039;&#039;&#039;inner product space&#039;&#039;&#039;. In &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;, the standard &#039;&#039;&#039;Euclidean inner product&#039;&#039;&#039; (which we call the &#039;&#039;&#039;dot product&#039;&#039;&#039;) of &amp;lt;math&amp;gt;u = (u_1, \dots, u_n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v = (v_1, \dots, v_n)&amp;lt;/math&amp;gt; is defined by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle u, v \rangle = u_1 v_1 + u_2 v_2 + \cdots + u_n v_n = \sum_{i=1}^{n} u_i v_i&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the inner product, we define the &#039;&#039;&#039;norm&#039;&#039;&#039; (commonly called &#039;&#039;&#039;magnitude&#039;&#039;&#039; in physics) of a vector &amp;lt;math&amp;gt;v \in \mathbf{R}^n&amp;lt;/math&amp;gt; as the nonnegative scalar:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|v\| = \sqrt{\langle v, v \rangle} = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2} = \sqrt{\sum_{i=1}^{n} v_i^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In 3D Cartesian space, for &amp;lt;math&amp;gt;v = (v_x, v_y, v_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt;, this is the familiar Pythagorean formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|v\| = \sqrt{v_x^2 + v_y^2 + v_z^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;unit vector&#039;&#039;&#039; is a vector with norm &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;. For any nonzero vector &amp;lt;math&amp;gt;v \in \mathbf{R}^n&amp;lt;/math&amp;gt;, scaling &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; by the positive scalar &amp;lt;math&amp;gt;\frac{1}{\|v\|}&amp;lt;/math&amp;gt; yields a unit vector in the same direction (a process called &#039;&#039;&#039;normalization&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{v} = \frac{1}{\|v\|}v&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if &amp;lt;math&amp;gt;\vec{v} = (v_x, v_y, v_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt; is nonzero, then &amp;lt;math&amp;gt;\hat{v} = \frac{1}{\|\vec{v}\|}(v_x, v_y, v_z)&amp;lt;/math&amp;gt;. Note that unit vectors carry no physical units because the units of &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\|\vec{v}\|&amp;lt;/math&amp;gt; cancel.&lt;br /&gt;
&lt;br /&gt;
===Orthonormal Bases===&lt;br /&gt;
&lt;br /&gt;
Two vectors &amp;lt;math&amp;gt;u, v&amp;lt;/math&amp;gt; in an inner product space are called &#039;&#039;&#039;orthogonal&#039;&#039;&#039; if &amp;lt;math&amp;gt;\langle u, v \rangle = 0&amp;lt;/math&amp;gt;. A list of vectors &amp;lt;math&amp;gt;e_1, \dots, e_n&amp;lt;/math&amp;gt; is &#039;&#039;&#039;orthonormal&#039;&#039;&#039; if every vector has norm &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and every pair of distinct vectors is orthogonal (&amp;lt;math&amp;gt;\langle e_j, e_k \rangle = 0&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;j \neq k&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;standard basis&#039;&#039;&#039; of &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; is an &#039;&#039;&#039;orthonormal basis&#039;&#039;&#039; consisting of the three unit vectors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{x} = (1, 0, 0), \qquad \hat{y} = (0, 1, 0), \qquad \hat{z} = (0, 0, 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(also sometimes written &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt; in physics and engineering). We can think of a basis as a fundamental list of vectors for a vector space that gives each component its meaning. For the standard basis, our list gives each component a meaning that it is the x, y, or z direction. This basis is orthonormal, so every vector &amp;lt;math&amp;gt;v \in \mathbf{R}^3&amp;lt;/math&amp;gt; can be written uniquely as a linear combination whose coefficients are simply the inner products of &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; with each basis vector:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;v = \langle v, \hat{x} \rangle \hat{x} + \langle v, \hat{y} \rangle \hat{y} + \langle v, \hat{z} \rangle \hat{z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other coordinate systems use different local orthonormal bases that vary with position, such as &amp;lt;math&amp;gt;\hat{r}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\theta}&amp;lt;/math&amp;gt; in polar coordinates.&lt;br /&gt;
&lt;br /&gt;
===Direction and Angles===&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, scalar multiplication gives a direct geometric interpretation of direction: for a nonzero &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;, multiplying by &amp;lt;math&amp;gt;\lambda &amp;gt; 0&amp;lt;/math&amp;gt; scales its norm without changing its direction, while multiplying by &amp;lt;math&amp;gt;\lambda &amp;lt; 0&amp;lt;/math&amp;gt; reverses its direction (with &amp;lt;math&amp;gt;(-1)v = -v&amp;lt;/math&amp;gt; pointing directly opposite to &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;). The zero vector &amp;lt;math&amp;gt;0 = (0, \dots, 0)&amp;lt;/math&amp;gt; has norm &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; and &#039;&#039;&#039;no direction&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To quantify relative direction between any two nonzero vectors &amp;lt;math&amp;gt;u, v \in \mathbf{R}^n&amp;lt;/math&amp;gt;, we rely on the &#039;&#039;&#039;Cauchy–Schwarz inequality&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;|\langle u, v \rangle| \le \|u\|\|v\|&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Dividing by &amp;lt;math&amp;gt;\|u\|\|v\| &amp;gt; 0&amp;lt;/math&amp;gt; guarantees that &amp;lt;math&amp;gt;-1 \le \frac{\langle u, v \rangle}{\|u\|\|v\|} \le 1&amp;lt;/math&amp;gt;. Because of this, there exists a unique &#039;&#039;&#039;angle&#039;&#039;&#039; &amp;lt;math&amp;gt;\theta \in [0, \pi]&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; where:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\cos\theta = \frac{\langle u, v \rangle}{\|u\|\|v\|}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Two nonzero vectors are orthogonal (&amp;lt;math&amp;gt;\langle u, v \rangle = 0&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;\cos\theta = 0&amp;lt;/math&amp;gt;, meaning they are &#039;&#039;&#039;perpendicular&#039;&#039;&#039; (&amp;lt;math&amp;gt;\theta = \frac{\pi}{2}&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Unsigned angle vs. 2D polar direction angle:&#039;&#039;&#039; Notice that the inner-product angle &amp;lt;math&amp;gt;\theta = \arccos\left(\frac{\langle v, \hat{x}\rangle}{\|v\|}\right) = \arccos\left(\frac{v_x}{\|v\|}\right)&amp;lt;/math&amp;gt; always lies in &amp;lt;math&amp;gt;[0, \pi]&amp;lt;/math&amp;gt; and therefore cannot distinguish whether a 2D vector points above or below the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis (it loses the sign of &amp;lt;math&amp;gt;v_y&amp;lt;/math&amp;gt;). In introductory 2D physics, we instead specify a vector&#039;s full orientation using a &#039;&#039;&#039;signed polar direction angle&#039;&#039;&#039; &amp;lt;math&amp;gt;\phi \in (-\pi, \pi]&amp;lt;/math&amp;gt; (or &amp;lt;math&amp;gt;[0, 2\pi)&amp;lt;/math&amp;gt;) measured counterclockwise from the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis. For a nonzero vector &amp;lt;math&amp;gt;v = (v_x, v_y) \in \mathbf{R}^2&amp;lt;/math&amp;gt;:&lt;br /&gt;
* If &amp;lt;math&amp;gt;v_x &amp;gt; 0&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;\phi = \arctan\left(\frac{v_y}{v_x}\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
* If &amp;lt;math&amp;gt;v_x &amp;lt; 0&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;\phi = \arctan\left(\frac{v_y}{v_x}\right) + \pi&amp;lt;/math&amp;gt; (or &amp;lt;math&amp;gt;-\pi&amp;lt;/math&amp;gt;, depending on the chosen branch) to place &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; in the second or third quadrant.&lt;br /&gt;
* If &amp;lt;math&amp;gt;v_x = 0&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;\phi = \frac{\pi}{2}&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;90^\circ&amp;lt;/math&amp;gt;) when &amp;lt;math&amp;gt;v_y &amp;gt; 0&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\phi = -\frac{\pi}{2}&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;270^\circ&amp;lt;/math&amp;gt;) when &amp;lt;math&amp;gt;v_y &amp;lt; 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Vector Operations==&lt;br /&gt;
&lt;br /&gt;
Vector addition and scalar multiplication are built into every vector space. The dot product and cross product add geometric structure for measuring projections, angles, areas, and orientations. Below, formulas are written in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; for introductory physics, with notes on how they generalize to &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Addition and Subtraction===&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;, vector addition is defined coordinate-wise. For &amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (b_x, b_y, b_z)&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} + \vec{b} = (a_x + b_x,\; a_y + b_y,\; a_z + b_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By the vector space axioms, addition is commutative (&amp;lt;math&amp;gt;\vec{a} + \vec{b} = \vec{b} + \vec{a}&amp;lt;/math&amp;gt;) and associative (&amp;lt;math&amp;gt;(\vec{a} + \vec{b}) + \vec{c} = \vec{a} + (\vec{b} + \vec{c})&amp;lt;/math&amp;gt;). Geometrically, placing the tail of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; at the head of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; yields the &#039;&#039;&#039;resultant&#039;&#039;&#039; vector &amp;lt;math&amp;gt;\vec{a} + \vec{b}&amp;lt;/math&amp;gt;, running from the tail of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; to the head of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectoraddition.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Every vector &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; has a unique additive inverse &amp;lt;math&amp;gt;-\vec{b} = (-1)\vec{b}&amp;lt;/math&amp;gt;, which has the same norm as &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; but points in the opposite direction. &#039;&#039;&#039;Vector subtraction&#039;&#039;&#039; is formally defined as adding this additive inverse; for 3-dimensional vectors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} - \vec{b} = \vec{a} + (-\vec{b}) = (a_x - b_x,\; a_y - b_y,\; a_z - b_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:IMG_0326.jpg|500px|Image: 500 pixels]]&lt;br /&gt;
&lt;br /&gt;
===Scalar Multiplication===&lt;br /&gt;
&lt;br /&gt;
For a scalar &amp;lt;math&amp;gt;\lambda \in \mathbf{R}&amp;lt;/math&amp;gt; and a vector &amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt;, scalar multiplication multiplies every coordinate by &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\lambda \vec{a} = (\lambda a_x,\; \lambda a_y,\; \lambda a_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This scales the norm by &amp;lt;math&amp;gt;|\lambda|&amp;lt;/math&amp;gt; (that is, &amp;lt;math&amp;gt;\|\lambda \vec{a}\| = |\lambda|\|\vec{a}\|&amp;lt;/math&amp;gt;). If &amp;lt;math&amp;gt;\lambda &amp;gt; 0&amp;lt;/math&amp;gt;, direction is preserved; if &amp;lt;math&amp;gt;\lambda &amp;lt; 0&amp;lt;/math&amp;gt;, direction is reversed; if &amp;lt;math&amp;gt;\lambda = 0&amp;lt;/math&amp;gt;, the result is the zero vector &amp;lt;math&amp;gt;\vec{0}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorscalarmultiplication.png|400px]] [[File:IMG_0327.jpg|400px|Image: 400 pixels]]&lt;br /&gt;
&lt;br /&gt;
Vector spaces do not include a separate &amp;quot;division by a scalar&amp;quot; axiom (nor is division by a vector defined). Instead, because every nonzero scalar &amp;lt;math&amp;gt;\lambda \in \mathbf{R}&amp;lt;/math&amp;gt; has a unique multiplicative inverse &amp;lt;math&amp;gt;\frac{1}{\lambda} \in \mathbf{R}&amp;lt;/math&amp;gt;, dividing a vector by &amp;lt;math&amp;gt;\lambda \neq 0&amp;lt;/math&amp;gt; is simply scalar multiplication by &amp;lt;math&amp;gt;\frac{1}{\lambda}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{\vec{a}}{\lambda} = \frac{1}{\lambda}\vec{a} = \left(\frac{a_x}{\lambda},\; \frac{a_y}{\lambda},\; \frac{a_z}{\lambda}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dot Product===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;dot product&#039;&#039;&#039; (or &#039;&#039;&#039;scalar product&#039;&#039;&#039;) is the Euclidean inner product on &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (b_x, b_y, b_z)&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \cdot \vec{b} = \langle \vec{a}, \vec{b} \rangle = a_x b_x + a_y b_y + a_z b_z&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike scalar multiplication, the dot product takes two vectors and outputs a &#039;&#039;&#039;scalar&#039;&#039;&#039;. For nonzero vectors separated by angle &amp;lt;math&amp;gt;\theta \in [0, \pi]&amp;lt;/math&amp;gt;, it satisfies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \cdot \vec{b} = \|\vec{a}\|\|\vec{b}\|\cos\theta&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Geometrically, &amp;lt;math&amp;gt;\vec{a} \cdot \hat{b} = \|\vec{a}\|\cos\theta&amp;lt;/math&amp;gt; gives the signed projection of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; onto the direction of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;—which is why mechanical work by a constant force is written &amp;lt;math&amp;gt;W = \vec{F} \cdot \Delta\vec{r}&amp;lt;/math&amp;gt;. While the zero vector is formally orthogonal to every vector (&amp;lt;math&amp;gt;\vec{0} \cdot \vec{v} = 0&amp;lt;/math&amp;gt;), two &#039;&#039;&#039;nonzero&#039;&#039;&#039; vectors are perpendicular (&amp;lt;math&amp;gt;\theta = \frac{\pi}{2}&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;\vec{a} \cdot \vec{b} = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:IMG_0328.jpg|400px|Image: 400 pixels]]&lt;br /&gt;
&lt;br /&gt;
===Cross Product===&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, the &#039;&#039;&#039;cross product&#039;&#039;&#039; (or &#039;&#039;&#039;vector product&#039;&#039;&#039;) of &amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (b_x, b_y, b_z)&amp;lt;/math&amp;gt; is a new vector defined in components by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \times \vec{b} = (a_y b_z - a_z b_y,\; a_z b_x - a_x b_z,\; a_x b_y - a_y b_x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Written in the standard orthonormal basis &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt;, this is equivalently:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \times \vec{b} = (a_y b_z - a_z b_y)\hat{i} - (a_x b_z - a_z b_x)\hat{j} + (a_x b_y - a_y b_x)\hat{k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The cross product is bilinear (linear in each argument separately) and &#039;&#039;&#039;anticommutative&#039;&#039;&#039;—swapping the order reverses the sign: &amp;lt;math&amp;gt;\vec{b} \times \vec{a} = -(\vec{a} \times \vec{b})&amp;lt;/math&amp;gt;. In particular, &amp;lt;math&amp;gt;\vec{a} \times \vec{a} = \vec{0}&amp;lt;/math&amp;gt; for every vector &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A standard mnemonic for computing &amp;lt;math&amp;gt;\vec{a} \times \vec{b}&amp;lt;/math&amp;gt; is the formal determinant of a &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; symbolic matrix, expanded along the first row (observing the alternating &amp;lt;math&amp;gt;+, -, +&amp;lt;/math&amp;gt; signs of cofactor expansion):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \times \vec{b} = \begin{vmatrix}&lt;br /&gt;
\hat{i} &amp;amp; \hat{j} &amp;amp; \hat{k} \\&lt;br /&gt;
a_x &amp;amp; a_y &amp;amp; a_z \\&lt;br /&gt;
b_x &amp;amp; b_y &amp;amp; b_z&lt;br /&gt;
\end{vmatrix} = \begin{vmatrix} a_y &amp;amp; a_z \\ b_y &amp;amp; b_z \end{vmatrix}\hat{i} - \begin{vmatrix} a_x &amp;amp; a_z \\ b_x &amp;amp; b_z \end{vmatrix}\hat{j} + \begin{vmatrix} a_x &amp;amp; a_y \\ b_x &amp;amp; b_y \end{vmatrix}\hat{k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Expansionbyminors.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Online resources for checking computations:&lt;br /&gt;
* [https://www.symbolab.com/solver/vector-cross-product-calculator Symbolab step-by-step cross product calculator]&lt;br /&gt;
* [https://www.youtube.com/watch?v=e9T5p_Jwv5c Video explanation of the cross product]&lt;br /&gt;
&lt;br /&gt;
Geometrically, the norm of the cross product equals the &#039;&#039;&#039;area of the parallelogram&#039;&#039;&#039; spanned by &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{a} \times \vec{b}\| = \|\vec{a}\|\|\vec{b}\|\sin\theta&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\theta \in [0, \pi]&amp;lt;/math&amp;gt; is the angle between &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;. Its direction is orthogonal to both &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; and is uniquely determined by the [[Right Hand Rule]]. In introductory physics, the cross product governs rotational and electromagnetic phenomena such as torque (&amp;lt;math&amp;gt;\vec{\tau} = \vec{r} \times \vec{F}&amp;lt;/math&amp;gt;), angular momentum (&amp;lt;math&amp;gt;\vec{L} = \vec{r} \times \vec{p}&amp;lt;/math&amp;gt;), and the magnetic Lorentz force (&amp;lt;math&amp;gt;\vec{F}_B = q(\vec{v} \times \vec{B})&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
====Component Pattern (&amp;quot;X-Method&amp;quot;)====&lt;br /&gt;
&lt;br /&gt;
A fast computational pattern avoids writing out the full &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; determinant. Consider:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} = (3, -2, 4), \qquad \vec{b} = (-1, 6, 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compute &amp;lt;math&amp;gt;\vec{c} = \vec{a} \times \vec{b} = (c_x, c_y, c_z)&amp;lt;/math&amp;gt;, list each vector&#039;s components vertically and append the first component at the bottom:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{pmatrix} a_x \\ a_y \\ a_z \\ a_x \end{pmatrix} = \begin{pmatrix} 3 \\ -2 \\ 4 \\ 3 \end{pmatrix}, \qquad \begin{pmatrix} b_x \\ b_y \\ b_z \\ b_x \end{pmatrix} = \begin{pmatrix} -1 \\ 6 \\ 3 \\ -1 \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* For &amp;lt;math&amp;gt;c_x&amp;lt;/math&amp;gt;, cross-multiply rows 2 and 3 (&amp;lt;math&amp;gt;a_y b_z - a_z b_y&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[File:Cx.png]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_x = (-2)(3) - (4)(6) = -6 - 24 = -30&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* For &amp;lt;math&amp;gt;c_y&amp;lt;/math&amp;gt;, cross-multiply rows 3 and 4 (&amp;lt;math&amp;gt;a_z b_x - a_x b_z&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[File:Cy.png]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_y = (4)(-1) - (3)(3) = -4 - 9 = -13&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* For &amp;lt;math&amp;gt;c_z&amp;lt;/math&amp;gt;, cross-multiply rows 1 and 2 (&amp;lt;math&amp;gt;a_x b_y - a_y b_x&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[File:Cz.png]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;c_z = (3)(6) - (-2)(-1) = 18 - 2 = 16&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus &amp;lt;math&amp;gt;\vec{a} \times \vec{b} = (-30, -13, 16)&amp;lt;/math&amp;gt;. As a quick sanity check, verify orthogonality via the dot product: &amp;lt;math&amp;gt;\vec{a} \cdot \vec{c} = 3(-30) + (-2)(-13) + 4(16) = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Advanced Note: What the Cross Product Really Measures (and Why 3D Is Special)====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Advanced Note&amp;quot; data-collapsetext=&amp;quot;Hide Advanced Note&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Optional Reading (Geometric and Linear Algebra Interpretation)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At first glance, the component formula for &amp;lt;math&amp;gt;\vec{a} \times \vec{b}&amp;lt;/math&amp;gt; seems arbitrary, and it is unclear where the &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; determinant comes from. Two viewpoints make both completely transparent and explain what happens outside 3D.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Components as Signed Shadow Areas&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Look at the three components of &amp;lt;math&amp;gt;\vec{c} = \vec{a} \times \vec{b}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_x = a_y b_z - a_z b_y, \qquad c_y = a_z b_x - a_x b_z, \qquad c_z = a_x b_y - a_y b_x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In 2D, the expression &amp;lt;math&amp;gt;a_x b_y - a_y b_x&amp;lt;/math&amp;gt; is the &#039;&#039;&#039;signed area&#039;&#039;&#039; of the parallelogram spanned by &amp;lt;math&amp;gt;(a_x, a_y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(b_x, b_y)&amp;lt;/math&amp;gt; (positive if rotating from &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; is counterclockwise, negative if clockwise). Therefore, the three components of &amp;lt;math&amp;gt;\vec{a} \times \vec{b}&amp;lt;/math&amp;gt; can be seen as the signed areas of the &#039;&#039;&#039;shadows&#039;&#039;&#039; cast by the 3D parallelogram onto the three coordinate planes:&lt;br /&gt;
* &amp;lt;math&amp;gt;c_x&amp;lt;/math&amp;gt; is the signed area of the shadow on the &amp;lt;math&amp;gt;yz&amp;lt;/math&amp;gt;-plane (perpendicular to the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis).&lt;br /&gt;
* &amp;lt;math&amp;gt;c_y&amp;lt;/math&amp;gt; is the signed area of the shadow on the &amp;lt;math&amp;gt;zx&amp;lt;/math&amp;gt;-plane (perpendicular to the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis).&lt;br /&gt;
* &amp;lt;math&amp;gt;c_z&amp;lt;/math&amp;gt; is the signed area of the shadow on the &amp;lt;math&amp;gt;xy&amp;lt;/math&amp;gt;-plane (perpendicular to the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis).&lt;br /&gt;
&lt;br /&gt;
Then the formula &amp;lt;math&amp;gt;\|\vec{a} \times \vec{b}\| = \sqrt{c_x^2 + c_y^2 + c_z^2}&amp;lt;/math&amp;gt; is a 3D Pythagorean theorem for areas: the squared area of any tilted parallelogram equals the sum of the squared areas of its three coordinate-plane shadows.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. The Determinant Formula as Signed Volume&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Fix two vectors &amp;lt;math&amp;gt;\vec{a}, \vec{b} \in \mathbf{R}^3&amp;lt;/math&amp;gt;. For any third vector &amp;lt;math&amp;gt;\vec{v} = (v_x, v_y, v_z) \in \mathbf{R}^3&amp;lt;/math&amp;gt;, the &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; determinant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V(\vec{v}) = \det\begin{pmatrix} v_x &amp;amp; v_y &amp;amp; v_z \\ a_x &amp;amp; a_y &amp;amp; a_z \\ b_x &amp;amp; b_y &amp;amp; b_z \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the &#039;&#039;&#039;signed volume&#039;&#039;&#039; of the parallelepiped spanned by &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;. Expanding along the first row shows that &amp;lt;math&amp;gt;V(\vec{v})&amp;lt;/math&amp;gt; is simply a linear combination of &amp;lt;math&amp;gt;v_x, v_y, v_z&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;V(\vec{v}) = (a_y b_z - a_z b_y)v_x + (a_z b_x - a_x b_z)v_y + (a_x b_y - a_y b_x)v_z = \langle \vec{c}, \vec{v} \rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In linear algebra, the cross product &amp;lt;math&amp;gt;\vec{c} = \vec{a} \times \vec{b}&amp;lt;/math&amp;gt; is &#039;&#039;&#039;defined&#039;&#039;&#039; as the unique vector whose inner product with any &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; computes this signed volume: &amp;lt;math&amp;gt;\langle \vec{a} \times \vec{b}, \vec{v} \rangle = V(\vec{v})&amp;lt;/math&amp;gt;. This single equation explains every property of the cross product at once:&lt;br /&gt;
* &#039;&#039;&#039;Why the determinant works:&#039;&#039;&#039; Replacing &amp;lt;math&amp;gt;(v_x, v_y, v_z)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;(\hat{i}, \hat{j}, \hat{k})&amp;lt;/math&amp;gt; is just a compact way of collecting the coefficients of &amp;lt;math&amp;gt;v_x, v_y, v_z&amp;lt;/math&amp;gt; into the vector &amp;lt;math&amp;gt;\vec{c}&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Orthogonality:&#039;&#039;&#039; Setting &amp;lt;math&amp;gt;\vec{v} = \vec{a}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\vec{v} = \vec{b}&amp;lt;/math&amp;gt; flattens the parallelepiped to volume &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;, so &amp;lt;math&amp;gt;\langle \vec{a} \times \vec{b}, \vec{a} \rangle = 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle \vec{a} \times \vec{b}, \vec{b} \rangle = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Magnitude = Base Area:&#039;&#039;&#039; Setting &amp;lt;math&amp;gt;\vec{v} = \hat{n}&amp;lt;/math&amp;gt; (the unit vector pointing in the direction of &amp;lt;math&amp;gt;\vec{a} \times \vec{b}&amp;lt;/math&amp;gt;) builds a parallelepiped of height &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; over the base spanned by &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;. Its volume equals &amp;lt;math&amp;gt;(\text{base area}) \times 1&amp;lt;/math&amp;gt;, while &amp;lt;math&amp;gt;\langle \vec{a} \times \vec{b}, \hat{n} \rangle = \|\vec{a} \times \vec{b}\|&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Right-hand rule:&#039;&#039;&#039; Setting &amp;lt;math&amp;gt;\vec{v} = \vec{a} \times \vec{b}&amp;lt;/math&amp;gt; gives volume &amp;lt;math&amp;gt;\|\vec{a} \times \vec{b}\|^2 &amp;gt; 0&amp;lt;/math&amp;gt; (for non-parallel &amp;lt;math&amp;gt;\vec{a}, \vec{b}&amp;lt;/math&amp;gt;), forcing &amp;lt;math&amp;gt;(\vec{a}, \vec{b}, \vec{a} \times \vec{b})&amp;lt;/math&amp;gt; to have positive (right-handed) orientation.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Why Two-Vector Cross Products Are Special to 3D (and the 7D Exception)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Suppose you have two non-parallel vectors &amp;lt;math&amp;gt;a, b \in \mathbf{R}^n&amp;lt;/math&amp;gt; and want a vector &amp;lt;math&amp;gt;v \in \mathbf{R}^n&amp;lt;/math&amp;gt; orthogonal to both. That means solving two linear equations—&amp;lt;math&amp;gt;\langle a, v \rangle = 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle b, v \rangle = 0&amp;lt;/math&amp;gt;—in &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; unknowns, leaving &amp;lt;math&amp;gt;n - 2&amp;lt;/math&amp;gt; free parameters:&lt;br /&gt;
* In &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;n = 2&amp;lt;/math&amp;gt;): &amp;lt;math&amp;gt;2 - 2 = 0&amp;lt;/math&amp;gt; free parameters. Only the zero vector is orthogonal to both &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;.&lt;br /&gt;
* In &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;n = 3&amp;lt;/math&amp;gt;): &amp;lt;math&amp;gt;3 - 2 = 1&amp;lt;/math&amp;gt; free parameter. All orthogonal vectors lie along a &#039;&#039;&#039;single line&#039;&#039;&#039;, so specifying magnitude and the right-hand rule picks out a unique vector.&lt;br /&gt;
* In &amp;lt;math&amp;gt;\mathbf{R}^4&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;n = 4&amp;lt;/math&amp;gt;): &amp;lt;math&amp;gt;4 - 2 = 2&amp;lt;/math&amp;gt; free parameters—an entire 2D plane of orthogonal vectors. For example, both &amp;lt;math&amp;gt;(0, 0, 1, 0)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(0, 0, 0, 1)&amp;lt;/math&amp;gt; (and every linear combination of them) are perpendicular to &amp;lt;math&amp;gt;(1, 0, 0, 0)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(0, 1, 0, 0)&amp;lt;/math&amp;gt;, so &amp;quot;perpendicular to both&amp;quot; no longer specifies a single direction.&lt;br /&gt;
&lt;br /&gt;
Physics uses the cross product to describe &#039;&#039;&#039;rotations and oriented planes&#039;&#039;&#039; (such as the plane of a spinning wheel or a current loop). Every rotation takes place &#039;&#039;in a 2D plane&#039;&#039;, not inherently &#039;&#039;around a line&#039;&#039;:&lt;br /&gt;
* In 2D, there is only &amp;lt;math&amp;gt;\binom{2}{2} = 1&amp;lt;/math&amp;gt; coordinate plane (&amp;lt;math&amp;gt;xy&amp;lt;/math&amp;gt;), so rotation is just a single signed scalar (clockwise or counterclockwise).&lt;br /&gt;
* In 3D, there are &amp;lt;math&amp;gt;\binom{3}{2} = 3&amp;lt;/math&amp;gt; coordinate planes (&amp;lt;math&amp;gt;yz, zx, xy&amp;lt;/math&amp;gt;)—which happens to equal the &amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt; coordinate axes (&amp;lt;math&amp;gt;x, y, z&amp;lt;/math&amp;gt;). This coincidence lets us pair each plane of rotation with its unique normal axis and package torque, angular momentum, and magnetic fields as 3D vectors.&lt;br /&gt;
* In 4D, there are &amp;lt;math&amp;gt;\binom{4}{2} = 6&amp;lt;/math&amp;gt; independent coordinate planes (&amp;lt;math&amp;gt;xy, xz, xw, yz, yw, zw&amp;lt;/math&amp;gt;), which cannot be stored in a 4-component vector. That is why in 4D relativity, angular momentum and the electromagnetic field are represented as &amp;lt;math&amp;gt;4 \times 4&amp;lt;/math&amp;gt; antisymmetric matrices (which have &amp;lt;math&amp;gt;6&amp;lt;/math&amp;gt; independent entries—one per coordinate plane) rather than 4-vectors.&lt;br /&gt;
&lt;br /&gt;
The signed-volume construction &amp;lt;math&amp;gt;\langle c, v \rangle = \det(v, v_1, \dots, v_{n-1})&amp;lt;/math&amp;gt; generalizes cleanly to any dimension &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; if you supply &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt; vectors instead of &amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt; (leaving &amp;lt;math&amp;gt;n - (n - 1) = 1&amp;lt;/math&amp;gt; perpendicular axis). In 2D, it takes &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; vector &amp;lt;math&amp;gt;(a_x, a_y)&amp;lt;/math&amp;gt; and returns &amp;lt;math&amp;gt;(-a_y, a_x)&amp;lt;/math&amp;gt; (a &amp;lt;math&amp;gt;90^\circ&amp;lt;/math&amp;gt; counterclockwise rotation); in 3D, it takes &amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt; vectors (the standard cross product); in 4D, it takes &amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt; vectors to determine a single perpendicular vector.&lt;br /&gt;
&lt;br /&gt;
Finally, what if we relax the requirement that orthogonality alone determine a unique line, and simply ask for &#039;&#039;any&#039;&#039; bilinear product of two vectors in &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;n \ge 2&amp;lt;/math&amp;gt;) that is orthogonal to both inputs and has norm equal to the parallelogram area (&amp;lt;math&amp;gt;\|a \times b\|^2 = \|a\|^2\|b\|^2 - \langle a, b \rangle^2&amp;lt;/math&amp;gt;)? Remarkably, such a cross product exists &#039;&#039;&#039;only in &amp;lt;math&amp;gt;n = 3&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;n = 7&amp;lt;/math&amp;gt;&#039;&#039;&#039;. In &amp;lt;math&amp;gt;\mathbf{R}^7&amp;lt;/math&amp;gt;, the space orthogonal to two non-parallel vectors is &amp;lt;math&amp;gt;7 - 2 = 5&amp;lt;/math&amp;gt;-dimensional, so orthogonality does not select a direction; instead, a 7D cross product picks out a specific perpendicular vector using the multiplication table of the 8-dimensional &#039;&#039;&#039;octonions&#039;&#039;&#039; (just as the 3D cross product comes from the 4-dimensional &#039;&#039;&#039;quaternions&#039;&#039;&#039;). Because that choice depends on the octonion multiplication rule, the 7D cross product is not unique up to sign, is not preserved by all 7D rotations, and loses the general vector triple product identity (since octonion multiplication is non-associative).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Vector Product Identities===&lt;br /&gt;
&lt;br /&gt;
When combining dot products and cross products in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, two identities are particularly useful:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Orthogonality:&#039;&#039;&#039; &amp;lt;math&amp;gt;(\vec{w} \times \vec{v}) \cdot \vec{v} = 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(\vec{w} \times \vec{v}) \cdot \vec{w} = 0&amp;lt;/math&amp;gt;. Because &amp;lt;math&amp;gt;\vec{w} \times \vec{v}&amp;lt;/math&amp;gt; is orthogonal to both &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, its dot product with either vanishes.&lt;br /&gt;
# &#039;&#039;&#039;Scalar Triple Product:&#039;&#039;&#039; &amp;lt;math&amp;gt;\vec{a} \cdot (\vec{b} \times \vec{c}) = (\vec{a} \times \vec{b}) \cdot \vec{c} = \vec{b} \cdot (\vec{c} \times \vec{a})&amp;lt;/math&amp;gt;. This scalar equals the determinant of the &amp;lt;math&amp;gt;3 \times 3&amp;lt;/math&amp;gt; matrix whose rows (or columns) are &amp;lt;math&amp;gt;\vec{a}, \vec{b}, \vec{c}&amp;lt;/math&amp;gt;, and its absolute value equals the &#039;&#039;&#039;volume of the parallelepiped&#039;&#039;&#039; spanned by the vectors. Cyclic permutations of these vectors preserve the volume and swapping any two vectors flips the sign.&lt;br /&gt;
&lt;br /&gt;
==Representations of a Vector==&lt;br /&gt;
&lt;br /&gt;
A physical vector or an element of an abstract vector space &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; exists independently of any coordinate system. Once an ordered basis is chosen, it establishes a one-to-one correspondence (isomorphism &amp;lt;math&amp;gt;V \cong \mathbf{R}^n&amp;lt;/math&amp;gt;) that assigns each vector a unique list of coordinates. Depending on the problem, we choose whichever representation is most convenient; all carry identical information.&lt;br /&gt;
&lt;br /&gt;
===Magnitude and Direction Form===&lt;br /&gt;
&lt;br /&gt;
In this form, we specify:&lt;br /&gt;
* The norm (magnitude) &amp;lt;math&amp;gt;\|\vec{a}\|&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* The orientation (an angle, cardinal direction, or axis).&lt;br /&gt;
&lt;br /&gt;
For example, &amp;quot;a &amp;lt;math&amp;gt;5\ \text{m}&amp;lt;/math&amp;gt; displacement at &amp;lt;math&amp;gt;36.9^\circ&amp;lt;/math&amp;gt; above the horizontal&amp;quot; is in this form. This form is intuitive and often used in word problems and real-life descriptions.&lt;br /&gt;
&lt;br /&gt;
===Component Form===&lt;br /&gt;
&lt;br /&gt;
Once a basis is decided, we break the vector into components along the coordinate axes. In &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} = (a_x, a_y, a_z)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, &amp;lt;math&amp;gt;(4, 3, 0)&amp;lt;/math&amp;gt; means the vector extends 2 units along &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt;, 0 along &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;, and 3 along &amp;lt;math&amp;gt;-z&amp;lt;/math&amp;gt;. Most algebraic operations are done using component form. Computers also typically store vectors this way (at least in the abstract sense).&lt;br /&gt;
&lt;br /&gt;
===Unit Vector Form===&lt;br /&gt;
&lt;br /&gt;
Using the standard orthonormal basis &amp;lt;math&amp;gt;\hat{i}, \hat{j}, \hat{k}&amp;lt;/math&amp;gt; (or alternatively written as &amp;lt;math&amp;gt;\hat{x}, \hat{y}, \hat{z}&amp;lt;/math&amp;gt;) of &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, every vector is written uniquely as a linear combination:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} = a_x \hat{i} + a_y \hat{j} + a_z \hat{k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, &amp;lt;math&amp;gt;(4, 3, 0) = 4\hat{i} + 3\hat{j}&amp;lt;/math&amp;gt;. Unit vector form and component form carry identical numerical information; basis form makes the underlying linear combination explicit, which can be useful when working in other bases.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorsdifferentforms.png]]&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; dimensions, specifying a vector always requires &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; numbers in the field (which in introductory physics is almost always the real numbers), regardless of the representation. In &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt;, Cartesian component form uses &amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt; coordinates &amp;lt;math&amp;gt;(a_x, a_y, a_z)&amp;lt;/math&amp;gt;, while spherical magnitude–direction form uses &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; norm and &amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt; angles &amp;lt;math&amp;gt;(\|\vec{a}\|, \theta, \phi)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Converting Between Forms===&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;math&amp;gt;\mathbf{R}^2&amp;lt;/math&amp;gt;, we convert between Cartesian components &amp;lt;math&amp;gt;(a_x, a_y)&amp;lt;/math&amp;gt; and polar magnitude–direction form &amp;lt;math&amp;gt;(\|\vec{a}\|, \phi)&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\phi \in (-\pi, \pi]&amp;lt;/math&amp;gt; using the inner product and right-triangle trigonometry:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Components to magnitude and direction:&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;math&amp;gt;\|\vec{a}\| = \sqrt{\langle \vec{a}, \vec{a} \rangle} = \sqrt{a_x^2 + a_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\phi = \begin{cases} \arctan\!\left(\frac{a_y}{a_x}\right) &amp;amp; \text{if } a_x &amp;gt; 0, \\ \arctan\!\left(\frac{a_y}{a_x}\right) + \pi &amp;amp; \text{if } a_x &amp;lt; 0 \text{ and } a_y \ge 0, \\ \arctan\!\left(\frac{a_y}{a_x}\right) - \pi &amp;amp; \text{if } a_x &amp;lt; 0 \text{ and } a_y &amp;lt; 0, \\ \frac{\pi}{2} &amp;amp; \text{if } a_x = 0 \text{ and } a_y &amp;gt; 0, \\ -\frac{\pi}{2} &amp;amp; \text{if } a_x = 0 \text{ and } a_y &amp;lt; 0. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
:(For &amp;lt;math&amp;gt;\vec{a} = (0, 0)&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is undefined. This piecewise formula is equivalent to the two-argument function &amp;lt;math&amp;gt;\operatorname{atan2}(a_y, a_x)&amp;lt;/math&amp;gt; used in computing; to express &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;[0, 2\pi)&amp;lt;/math&amp;gt; instead, add &amp;lt;math&amp;gt;2\pi&amp;lt;/math&amp;gt; whenever &amp;lt;math&amp;gt;\phi &amp;lt; 0&amp;lt;/math&amp;gt;.)&lt;br /&gt;
* &#039;&#039;&#039;Magnitude and direction to components&#039;&#039;&#039; (via inner product projections onto the orthonormal basis &amp;lt;math&amp;gt;\hat{x}, \hat{y}&amp;lt;/math&amp;gt;):&lt;br /&gt;
:&amp;lt;math&amp;gt;a_x = \langle \vec{a}, \hat{x} \rangle = \|\vec{a}\|\cos\phi&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a_y = \langle \vec{a}, \hat{y} \rangle = \|\vec{a}\|\sin\phi&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vectors in VPython==&lt;br /&gt;
&lt;br /&gt;
In VPython (used in GlowScript), vectors are represented by the type &amp;lt;code&amp;gt;vec&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vector&amp;lt;/code&amp;gt;. The constructor takes three arguments: the x, y, and z components:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity = vec(3, -1, 2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a vector called &amp;lt;code&amp;gt;velocity&amp;lt;/code&amp;gt; with coordinates &amp;lt;math&amp;gt;(3, -1, 2)&amp;lt;/math&amp;gt;. (Note that when printed to the console, VPython displays vectors using angle brackets, e.g., &amp;lt;code&amp;gt;&amp;amp;lt;3, -1, 2&amp;amp;gt;&amp;lt;/code&amp;gt;, following introductory physics convention rather than inner-product notation.) &lt;br /&gt;
&lt;br /&gt;
In VPython&#039;s default view, &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt; points right, &amp;lt;math&amp;gt;+y&amp;lt;/math&amp;gt; points upward, and &amp;lt;math&amp;gt;+z&amp;lt;/math&amp;gt; points out of the screen toward the viewer.&lt;br /&gt;
&lt;br /&gt;
===Modifying Vectors===&lt;br /&gt;
&lt;br /&gt;
Individual components can be accessed or updated with &amp;lt;code&amp;gt;.x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;.z&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity.x = 5  # changes velocity from (3, -1, 2) to (5, -1, 2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Helpful Vector Functions===&lt;br /&gt;
&lt;br /&gt;
====Magnitude====&lt;br /&gt;
&lt;br /&gt;
VPython provides the &amp;lt;code&amp;gt;mag&amp;lt;/code&amp;gt; function to compute the magnitude (Euclidean norm) of a vector:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity = vec(3, -1, 2)&lt;br /&gt;
speed = mag(velocity)  # magnitude of velocity&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Normalize====&lt;br /&gt;
&lt;br /&gt;
To obtain a unit vector in the same direction (normalize a vector), use &amp;lt;code&amp;gt;norm&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
v = vec(5, 0, 0)&lt;br /&gt;
v_hat = norm(v)  # unit vector (1, 0, 0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Dot and Cross Product====&lt;br /&gt;
&lt;br /&gt;
The functions &amp;lt;code&amp;gt;dot&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;cross&amp;lt;/code&amp;gt; compute dot and cross products:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
a = vec(1, 2, 3)&lt;br /&gt;
b = vec(4, 5, 6)&lt;br /&gt;
dot_prod = dot(a, b)      # &amp;lt;a, b&amp;gt; = a · b&lt;br /&gt;
cross_prod = cross(a, b)  # a × b&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Visualization===&lt;br /&gt;
&lt;br /&gt;
To visualize vectors, VPython provides the &amp;lt;code&amp;gt;arrow&amp;lt;/code&amp;gt; object, specified by:&lt;br /&gt;
* &amp;lt;code&amp;gt;pos&amp;lt;/code&amp;gt; – tail position,&lt;br /&gt;
* &amp;lt;code&amp;gt;axis&amp;lt;/code&amp;gt; – direction and length of the arrow (a vector).&lt;br /&gt;
&lt;br /&gt;
Optional attributes include &amp;lt;code&amp;gt;shaftwidth&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;headwidth&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;headlength&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; (see the [https://www.glowscript.org/docs/VPythonDocs/arrow.html VPython arrow documentation]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
velocity = vec(1, 1, 0)&lt;br /&gt;
origin = vec(0, 0, 0)&lt;br /&gt;
shaftwidth = 0.1&lt;br /&gt;
vel_arrow = arrow(pos=origin, axis=velocity,&lt;br /&gt;
                  shaftwidth=shaftwidth, color=color.red)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Arrow_viz.png]]&lt;br /&gt;
&#039;&#039;Output in VPython of a visualized vector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===A Computational Model===&lt;br /&gt;
&lt;br /&gt;
[https://trinket.io/glowscript/3d7c75ed91 Click here to run the interactive GlowScript computational model.]&lt;br /&gt;
&lt;br /&gt;
This model walks through basic vector operations step by step. It starts by defining vectors as arrows, then explores:&lt;br /&gt;
&lt;br /&gt;
* Addition and subtraction  &lt;br /&gt;
* Scalar multiplication  &lt;br /&gt;
* Magnitude and unit vectors  &lt;br /&gt;
* Dot and cross products  &lt;br /&gt;
&lt;br /&gt;
Each operation is shown both in formula form and using VPython shortcut functions. You can edit the vector values and rerun the code to see how the results change. Commenting out parts of the script can help you focus on one type of operation at a time.&lt;br /&gt;
&lt;br /&gt;
==Exercises and Solutions==&lt;br /&gt;
&lt;br /&gt;
===Very Simple===&lt;br /&gt;
&lt;br /&gt;
Given the vector &amp;lt;math&amp;gt;\vec{a} = (2.5, 7.4, 8.0)&amp;lt;/math&amp;gt;, find its norm (magnitude) and a unit vector in its direction.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, compute the Euclidean norm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{a}\| = \sqrt{2.5^2 + 7.4^2 + 8.0^2} = \sqrt{6.25 + 54.76 + 64} = \sqrt{125.01} \approx 11.18.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{a} = \frac{1}{\|\vec{a}\|}\vec{a} = \left(\frac{2.5}{\sqrt{125.01}},\; \frac{7.4}{\sqrt{125.01}},\; \frac{8.0}{\sqrt{125.01}}\right) \approx (0.224,\; 0.662,\; 0.716).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then the norm is about &amp;lt;math&amp;gt;11.18&amp;lt;/math&amp;gt;, and the unit vector in its direction is &amp;lt;math&amp;gt;(0.224, 0.662, 0.716)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Simple===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\vec{a} = (2, 4, 2)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (-1, 1, 3)&amp;lt;/math&amp;gt;. Find the norm of &amp;lt;math&amp;gt;\vec{a} - 2\vec{b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the combination coordinate-wise:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} - 2\vec{b} = (2, 4, 2) - 2(-1, 1, 3) = (2, 4, 2) - (-2, 2, 6) = (4, 2, -4).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now find its norm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|(4, 2, -4)\| = \sqrt{4^2 + 2^2 + (-4)^2} = \sqrt{16 + 4 + 16} = \sqrt{36} = 6.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Simple===&lt;br /&gt;
&lt;br /&gt;
Find the angle &amp;lt;math&amp;gt;\theta \in [0, \pi]&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;\vec{a} = (2, 5, -2)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = (3, -4, -1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the inner product angle formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle \vec{a}, \vec{b} \rangle = \|\vec{a}\|\|\vec{b}\|\cos\theta \implies \theta = \arccos\!\left(\frac{\langle \vec{a}, \vec{b} \rangle}{\|\vec{a}\|\|\vec{b}\|}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the inner product:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle \vec{a}, \vec{b} \rangle = 2(3) + 5(-4) + (-2)(-1) = 6 - 20 + 2 = -12.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the norms:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{a}\| = \sqrt{2^2 + 5^2 + (-2)^2} = \sqrt{4 + 25 + 4} = \sqrt{33},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{b}\| = \sqrt{3^2 + (-4)^2 + (-1)^2} = \sqrt{9 + 16 + 1} = \sqrt{26}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\theta = \arccos\!\left(\frac{-12}{\sqrt{33}\sqrt{26}}\right) = \arccos\!\left(\frac{-12}{\sqrt{858}}\right) \approx 114.2^\circ.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Intermediate===&lt;br /&gt;
&lt;br /&gt;
An airplane is flying in still air at &amp;lt;math&amp;gt;240\ \text{m/s}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;35^\circ&amp;lt;/math&amp;gt; south of west. A wind begins blowing at &amp;lt;math&amp;gt;80\ \text{m/s}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;15^\circ&amp;lt;/math&amp;gt; east of north. What must the plane’s new velocity relative to the air be in order to keep the same overall trajectory? Give your answer in components with &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt; east and &amp;lt;math&amp;gt;+y&amp;lt;/math&amp;gt; north.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorsplaneproblem.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v}_{p,0}&amp;lt;/math&amp;gt; = original velocity of the plane (relative to air),&lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v}_w&amp;lt;/math&amp;gt; = wind velocity (relative to ground),&lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v}_{p,1}&amp;lt;/math&amp;gt; = new velocity of the plane relative to the air.&lt;br /&gt;
&lt;br /&gt;
With the wind blowing, the plane&#039;s velocity relative to the ground is &amp;lt;math&amp;gt;\vec{v}_{p,1} + \vec{v}_w&amp;lt;/math&amp;gt;. Requiring this resultant ground velocity to remain equal to &amp;lt;math&amp;gt;\vec{v}_{p,0}&amp;lt;/math&amp;gt; gives:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}_{p,1} + \vec{v}_w = \vec{v}_{p,0} \implies \vec{v}_{p,1} = \vec{v}_{p,0} - \vec{v}_w.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Express everything in components (&amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt; east, &amp;lt;math&amp;gt;+y&amp;lt;/math&amp;gt; north):&lt;br /&gt;
* &amp;lt;math&amp;gt;35^\circ&amp;lt;/math&amp;gt; south of west corresponds to &amp;lt;math&amp;gt;\phi = 180^\circ + 35^\circ = 215^\circ&amp;lt;/math&amp;gt; from the &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt;-axis:&lt;br /&gt;
:&amp;lt;math&amp;gt;\vec{v}_{p,0} = (240\cos 215^\circ,\; 240\sin 215^\circ)\ \text{m/s} \approx (-196.60,\; -137.66)\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;15^\circ&amp;lt;/math&amp;gt; east of north corresponds to &amp;lt;math&amp;gt;\phi = 90^\circ - 15^\circ = 75^\circ&amp;lt;/math&amp;gt; from the &amp;lt;math&amp;gt;+x&amp;lt;/math&amp;gt;-axis:&lt;br /&gt;
:&amp;lt;math&amp;gt;\vec{v}_w = (80\cos 75^\circ,\; 80\sin 75^\circ)\ \text{m/s} \approx (20.71,\; 77.27)\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Subtract component-wise:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}_{p,1} = \vec{v}_{p,0} - \vec{v}_w \approx (-196.60,\; -137.66) - (20.71,\; 77.27) \approx (-217.3,\; -214.9)\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The plane must adjust its velocity relative to the air to approximately &amp;lt;math&amp;gt;(-217.3, -214.9)\ \text{m/s}&amp;lt;/math&amp;gt; to maintain its original ground velocity.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Intermediate===&lt;br /&gt;
&lt;br /&gt;
A mechanic applies a force &amp;lt;math&amp;gt;\vec{F} = (30,\; 20,\; -20)\ \text{N}&amp;lt;/math&amp;gt; to the end of a lever whose position vector relative to the pivot is &amp;lt;math&amp;gt;\vec{r} = (0.3,\; -0.4,\; 0.1)\ \text{m}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# Compute the torque vector &amp;lt;math&amp;gt;\vec{\tau} = \vec{r} \times \vec{F}&amp;lt;/math&amp;gt; about the pivot.&lt;br /&gt;
# Find the magnitude &amp;lt;math&amp;gt;\|\vec{\tau}\|&amp;lt;/math&amp;gt; of the torque.&lt;br /&gt;
# Verify using inner products that &amp;lt;math&amp;gt;\vec{\tau}&amp;lt;/math&amp;gt; is orthogonal to both &amp;lt;math&amp;gt;\vec{r}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{F}&amp;lt;/math&amp;gt;, and state what vector you would obtain if you mistakenly computed &amp;lt;math&amp;gt;\vec{F} \times \vec{r}&amp;lt;/math&amp;gt; instead.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Compute &amp;lt;math&amp;gt;\vec{\tau} = \vec{r} \times \vec{F}&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the determinant form (or component formula) with &amp;lt;math&amp;gt;\vec{r} = (0.3, -0.4, 0.1)\ \text{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{F} = (30, 20, -20)\ \text{N}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{\tau} = \begin{vmatrix} \hat{i} &amp;amp; \hat{j} &amp;amp; \hat{k} \\ 0.3 &amp;amp; -0.4 &amp;amp; 0.1 \\ 30 &amp;amp; 20 &amp;amp; -20 \end{vmatrix}\ \text{N}\cdot\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Expand component by component (keeping track of the minus sign on the &amp;lt;math&amp;gt;\hat{j}&amp;lt;/math&amp;gt; term):&lt;br /&gt;
* &amp;lt;math&amp;gt;\tau_x = (-0.4)(-20) - (0.1)(20) = 8 - 2 = 6\ \text{N}\cdot\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\tau_y = -\big[(0.3)(-20) - (0.1)(30)\big] = -(-6 - 3) = 9\ \text{N}\cdot\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;\tau_z = (0.3)(20) - (-0.4)(30) = 6 - (-12) = 18\ \text{N}\cdot\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{\tau} = (6,\; 9,\; 18)\ \text{N}\cdot\text{m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;(Note: Although &amp;lt;math&amp;gt;\text{N}\cdot\text{m}&amp;lt;/math&amp;gt; has the same SI base units as the joule, torque is conventionally written in &amp;lt;math&amp;gt;\text{N}\cdot\text{m}&amp;lt;/math&amp;gt; to distinguish it from energy or work.)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Find the magnitude &amp;lt;math&amp;gt;\|\vec{\tau}\|&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{\tau}\| = \sqrt{6^2 + 9^2 + 18^2}\ \text{N}\cdot\text{m} = \sqrt{36 + 81 + 324}\ \text{N}\cdot\text{m} = \sqrt{441}\ \text{N}\cdot\text{m} = 21\ \text{N}\cdot\text{m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Verify orthogonality and anticommutativity:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Compute the inner product of &amp;lt;math&amp;gt;\vec{\tau}&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\vec{r}&amp;lt;/math&amp;gt; and with &amp;lt;math&amp;gt;\vec{F}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle \vec{\tau}, \vec{r} \rangle = 6(0.3) + 9(-0.4) + 18(0.1) = 1.8 - 3.6 + 1.8 = 0,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle \vec{\tau}, \vec{F} \rangle = 6(30) + 9(20) + 18(-20) = 180 + 180 - 360 = 0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since both inner products vanish, &amp;lt;math&amp;gt;\vec{\tau}&amp;lt;/math&amp;gt; is orthogonal to both &amp;lt;math&amp;gt;\vec{r}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{F}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Finally, because the cross product is anticommutative (&amp;lt;math&amp;gt;\vec{F} \times \vec{r} = -(\vec{r} \times \vec{F})&amp;lt;/math&amp;gt;), reversing the order flips every sign:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{F} \times \vec{r} = -\vec{\tau} = (-6,\; -9,\; -18)\ \text{N}\cdot\text{m}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Challenging===&lt;br /&gt;
&lt;br /&gt;
Suppose &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; are two vectors in &amp;lt;math&amp;gt;\mathbf{R}^3&amp;lt;/math&amp;gt; (or more generally &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;) such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u}\| = 3, \qquad \|\vec{u} + \vec{v}\| = 4, \qquad \|\vec{u} - \vec{v}\| = 6.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Without knowing any components of &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, find the norm &amp;lt;math&amp;gt;\|\vec{v}\|&amp;lt;/math&amp;gt; and the angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Show Solution&amp;quot; data-collapsetext=&amp;quot;Hide Solution&amp;quot; style=&amp;quot;border:1px solid #a2a9b1; padding:8px; background:#f8f9fa;&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Recall that the square of a vector&#039;s norm equals the inner product of the vector with itself: &amp;lt;math&amp;gt;\|x\|^2 = \langle x, x \rangle&amp;lt;/math&amp;gt;. Expanding the squared norms of the sum and difference using the linearity and symmetry of the real inner product gives:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\|^2 = \langle \vec{u} + \vec{v},\; \vec{u} + \vec{v} \rangle = \|\vec{u}\|^2 + 2\langle \vec{u}, \vec{v} \rangle + \|\vec{v}\|^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u} - \vec{v}\|^2 = \langle \vec{u} - \vec{v},\; \vec{u} - \vec{v} \rangle = \|\vec{u}\|^2 - 2\langle \vec{u}, \vec{v} \rangle + \|\vec{v}\|^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Find &amp;lt;math&amp;gt;\|\vec{v}\|&amp;lt;/math&amp;gt; (Parallelogram Equality):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Adding the two equations cancels the &amp;lt;math&amp;gt;2\langle \vec{u}, \vec{v} \rangle&amp;lt;/math&amp;gt; cross-term:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\|^2 + \|\vec{u} - \vec{v}\|^2 = 2\left(\|\vec{u}\|^2 + \|\vec{v}\|^2\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substitute the given norms (&amp;lt;math&amp;gt;\|\vec{u}\| = 3&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\| = 4&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\|\vec{u} - \vec{v}\| = 6&amp;lt;/math&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;4^2 + 6^2 = 2\left(3^2 + \|\vec{v}\|^2\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;16 + 36 = 2\left(9 + \|\vec{v}\|^2\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;52 = 18 + 2\|\vec{v}\|^2 \implies 2\|\vec{v}\|^2 = 34 \implies \|\vec{v}\|^2 = 17&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since a norm is always nonnegative:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{v}\| = \sqrt{17} \approx 4.12.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Find the angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; between &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Subtracting the second expansion from the first isolates the inner product:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\|^2 - \|\vec{u} - \vec{v}\|^2 = 4\langle \vec{u}, \vec{v} \rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;16 - 36 = 4\langle \vec{u}, \vec{v} \rangle \implies \langle \vec{u}, \vec{v} \rangle = -5&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Applying the inner product angle formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\cos\theta = \frac{\langle \vec{u}, \vec{v} \rangle}{\|\vec{u}\|\|\vec{v}\|} = \frac{-5}{3\sqrt{17}} \approx -0.4042&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\theta = \arccos\!\left(\frac{-5}{3\sqrt{17}}\right) \approx 113.8^\circ.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Geometric &amp;amp; physics note:&#039;&#039; Think of &amp;lt;math&amp;gt;\vec{u}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; as two adjacent sides of a parallelogram (for example, two forces acting on a particle); then &amp;lt;math&amp;gt;\vec{u} + \vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{u} - \vec{v}&amp;lt;/math&amp;gt; are its two diagonals. The identity &amp;lt;math&amp;gt;\|\vec{u} + \vec{v}\|^2 + \|\vec{u} - \vec{v}\|^2 = 2(\|\vec{u}\|^2 + \|\vec{v}\|^2)&amp;lt;/math&amp;gt; is the &#039;&#039;&#039;parallelogram equality&#039;&#039;&#039;, which allows us to recover unknown norms and angles purely from length measurements—without ever choosing a coordinate system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Applications and History==&lt;br /&gt;
&lt;br /&gt;
===Applications Across Disciplines===&lt;br /&gt;
Vectors appear in many everyday and engineering contexts.&lt;br /&gt;
&lt;br /&gt;
Consider a desk. Its weight is a force vector pointing downward, the normal force from the floor is a vector pointing upward, and the forces among the desk’s parts can all be represented as vectors. Measurements such as the diagonal distance across the desktop can also be seen as vectors from one corner to another.&lt;br /&gt;
&lt;br /&gt;
Your motion can be described using vectors as well. Your &#039;&#039;&#039;position&#039;&#039;&#039; relative to some reference point can be written as a position vector. The difference between two position vectors is a displacement vector. &#039;&#039;&#039;Velocity&#039;&#039;&#039; describes how your position changes over time; it is the time derivative of the position vector, and its magnitude is your speed. &#039;&#039;&#039;Acceleration&#039;&#039;&#039; is the time derivative of velocity. All of these quantities can be broken into components, which makes it easier to analyze motion in each direction separately.&lt;br /&gt;
&lt;br /&gt;
Vectors and units appear across everyday physical situations and virtually every STEM field:&lt;br /&gt;
* &#039;&#039;&#039;Electromagnetism and Fields:&#039;&#039;&#039; Electric fields &amp;lt;math&amp;gt;\vec{E}&amp;lt;/math&amp;gt; and magnetic fields &amp;lt;math&amp;gt;\vec{B}&amp;lt;/math&amp;gt; are vector fields that assign a vector to every point in space, interacting with charges through operations like the Lorentz force &amp;lt;math&amp;gt;\vec{F} = q(\vec{E} + \vec{v} \times \vec{B})&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Engineering:&#039;&#039;&#039; Structural stress analysis, fluid dynamics, robotics kinematics, control theory, and phasor analysis in AC electrical circuits all depend on vector spaces and inner products.&lt;br /&gt;
* &#039;&#039;&#039;Computer Science and Graphics:&#039;&#039;&#039; 2D/3D rendering engines use vectors for positions, surface normals, lighting (via dot products), and coordinate transformations, while machine learning models represent data points as vectors in high-dimensional spaces &amp;lt;math&amp;gt;\mathbf{R}^n&amp;lt;/math&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Navigation:&#039;&#039;&#039; GPS receivers, aircraft, and ships continuously combine position, velocity, wind, and current vectors to compute headings and trajectories.&lt;br /&gt;
&lt;br /&gt;
===History===&lt;br /&gt;
&lt;br /&gt;
Ideas similar to vectors go back many centuries. Early uses treated them as directed line segments rather than abstract quantities. Hero of Alexandria’s work &#039;&#039;Mechanics&#039;&#039; in the first century AD contains one of the earliest known discussions of adding such directed segments.&lt;br /&gt;
&lt;br /&gt;
In the 18th and 19th centuries, several mathematicians used 2D vectors to represent complex numbers. Caspar Wessel, Jean-Robert Argand, Carl Friedrich Gauss, and William Rowan Hamilton all contributed to this viewpoint. One component represented the real part, and the other represented the imaginary part. Hamilton also introduced the term “vector.”&lt;br /&gt;
&lt;br /&gt;
August Ferdinand Möbius, in his 1827 book &#039;&#039;The Barycentric Calculus&#039;&#039;, formalized many vector ideas, including labeling vectors with letters and defining scalar multiplication. Hermann Grassmann, in his 1844 work &#039;&#039;Ausdehnungslehre&#039;&#039; (“The Calculus of Extension”), developed a more general theory of vectors in spaces of arbitrary dimension and laid foundations for linear algebra.&lt;br /&gt;
&lt;br /&gt;
The modern vector notation and conventions used in physics owe a lot to J. Willard Gibbs and Oliver Heaviside in the late 19th century. They refined vector methods and used them to express Maxwell’s equations of electromagnetism in the compact form we study today.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
===External Links===&lt;br /&gt;
* [http://ocw.mit.edu/courses/mathematics/18-02sc-multivariable-calculus-fall-2010/1.-vectors-and-matrices/part-a-vectors-determinants-and-planes/session-1-vectors/MIT18_02SC_notes_0.pdf MIT OpenCourseWare 18.02SC: Vectors and Matrices Notes]&lt;br /&gt;
* [https://www.glowscript.org/docs/VPythonDocs/vector.html VPython / GlowScript Vector Documentation]&lt;br /&gt;
* [https://www.physics.uoguelph.ca/tutorials/vectors/vectors.html University of Guelph: Introductory Vector Tutorial]&lt;br /&gt;
&lt;br /&gt;
===Further Reading===&lt;br /&gt;
* &#039;&#039;Linear Algebra Done Right&#039;&#039; – Sheldon Axler (2024)&lt;br /&gt;
* &#039;&#039;Vector Analysis&#039;&#039; – Josiah Willard Gibbs &amp;amp; Edwin Bidwell Wilson (1901)&lt;br /&gt;
* &#039;&#039;Introduction to Matrices and Vectors&#039;&#039; – Jacob T. Schwartz (1961)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* Axler, Sheldon. [https://linear.axler.net &#039;&#039;Linear Algebra Done Right&#039;&#039;] (4th ed., Springer, 2024).&lt;br /&gt;
* [https://mathinsight.org/vector_introduction Math Insight: An Introduction to Vectors]&lt;br /&gt;
* [https://mathinsight.org/definition/magnitude_vector Math Insight: Magnitude of a Vector]&lt;br /&gt;
* [https://www.mathsisfun.com/algebra/vectors.html Math is Fun: Vectors]&lt;br /&gt;
* [http://ocw.mit.edu/courses/mathematics/18-02sc-multivariable-calculus-fall-2010/1.-vectors-and-matrices/part-a-vectors-determinants-and-planes/session-1-vectors/MIT18_02SC_notes_0.pdf MIT OCW 18.02SC Multivariable Calculus: Session 1 Notes]&lt;br /&gt;
* [http://www.math.mcgill.ca/labute/courses/133f03/VectorHistory.html McGill University: Brief History of Vectors]&lt;br /&gt;
* [https://www.glowscript.org/docs/VPythonDocs/vector.html GlowScript / VPython Documentation: Vectors]&lt;br /&gt;
* [https://www.glowscript.org/docs/VPythonDocs/arrow.html GlowScript / VPython Documentation: Arrow]&lt;br /&gt;
* [https://www.britannica.com/science/vector-mathematics Encyclopædia Britannica: Vector (Mathematics)]&lt;br /&gt;
* [https://www.grc.nasa.gov/www/k-12/rocket/vectcomp.html NASA Glenn Research Center: Vector Components]&lt;br /&gt;
* [https://www.onlinemathlearning.com/dot-product.html Online Math Learning: Dot Product]&lt;br /&gt;
&lt;br /&gt;
[[Category: Geometry]]&lt;/div&gt;</summary>
		<author><name>JohnWasHere</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:Wikivector.png&amp;diff=48428</id>
		<title>File:Wikivector.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:Wikivector.png&amp;diff=48428"/>
		<updated>2026-11-25T00:53:18Z</updated>

		<summary type="html">&lt;p&gt;JohnWasHere: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>JohnWasHere</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Vectors&amp;diff=48427</id>
		<title>Vectors</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Vectors&amp;diff=48427"/>
		<updated>2026-11-24T22:13:46Z</updated>

		<summary type="html">&lt;p&gt;JohnWasHere: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;John Yang -- Fall 2026&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Vectors and Units Introduction==&lt;br /&gt;
&lt;br /&gt;
Vectors and units are core tools for describing the physical world in a precise, quantitative way. A vector is a quantity that has both **magnitude** (how big) and **direction** (which way). Many important physical quantities are vectors: displacement, velocity, acceleration, and force all need both size and direction to be completely specified. By representing these quantities as vectors, we can keep track of how they combine, cancel, and interact in one, two, or three dimensions.&lt;br /&gt;
&lt;br /&gt;
Units, meanwhile, tell us **what** we are measuring. A number by itself has no physical meaning until we attach a unit such as meters (m), seconds (s), or newtons (N). Consistent use of units helps us spot mistakes, compare results, and communicate clearly. Together, vectors and units allow scientists, engineers, and programmers to build models that match real-world behavior and to carry out calculations that remain physically meaningful.&lt;br /&gt;
&lt;br /&gt;
In physics and engineering, vectors show up whenever we track motion, balance forces, or work with fields such as electric and magnetic fields. In computer science and related fields, vectors appear in computer graphics, simulations, game physics, machine learning, and data representation. Units ensure that all of these computations line up with real measurements rather than just abstract numbers. A strong grasp of both vectors and units is essential for solving problems, interpreting formulas, and understanding how different parts of a system relate to each other.&lt;br /&gt;
&lt;br /&gt;
Vectors are usually written using boldface letters or an arrow, such as &#039;&#039;&#039;v&#039;&#039;&#039; or &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;. You may also see a vector written as a directed segment like &amp;lt;math&amp;gt;\overrightarrow{AB}&amp;lt;/math&amp;gt;. Common vector quantities include displacement, velocity, force, and acceleration. Units provide the scale for these quantities and are based on standard systems like SI. For example, meters (m) measure length, kilograms (kg) measure mass, seconds (s) measure time, and newtons (N) measure force.&lt;br /&gt;
&lt;br /&gt;
[[File:2d3dvec.png|2D vector vs 3D vector]][[File:smallvector.png]]&lt;br /&gt;
&lt;br /&gt;
==Unit Vector==&lt;br /&gt;
&lt;br /&gt;
A **unit vector** is a vector whose magnitude is exactly 1 (one unit) but that still points in a particular direction. Unit vectors are useful for representing direction independently of size. They are often used to define coordinate directions (such as the x, y, and z axes) and to rewrite any vector as “magnitude × direction.”&lt;br /&gt;
&lt;br /&gt;
[[File:unitvecexp.png]]&lt;br /&gt;
&lt;br /&gt;
==Magnitude==&lt;br /&gt;
&lt;br /&gt;
The **magnitude** of a vector is the length or size of the vector. For a vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, the magnitude is written as &amp;lt;math&amp;gt;|\vec{v}|&amp;lt;/math&amp;gt;. Magnitude is always a non-negative scalar. In 2D and 3D, it is usually computed with the Pythagorean theorem, using the vector’s components.&lt;br /&gt;
&lt;br /&gt;
[[File:vec3.png]]&lt;br /&gt;
&lt;br /&gt;
==Direction==&lt;br /&gt;
&lt;br /&gt;
The **direction** of a vector describes how it is oriented in space. It can be specified relative to axes (such as the angle from the positive x-axis), using unit vectors, or using geometric descriptions (like “30° above the horizontal” or “to the south”).&lt;br /&gt;
&lt;br /&gt;
[[File:directionvec.png]]&lt;br /&gt;
[[File:vec10.png]]&lt;br /&gt;
&lt;br /&gt;
==Addition and Subtraction==&lt;br /&gt;
&lt;br /&gt;
Vectors can be added or subtracted to form new vectors. Geometrically, we often use the **head-to-tail method** or the **parallelogram rule**. In component form, vector addition and subtraction are done by adding or subtracting corresponding components.&lt;br /&gt;
&lt;br /&gt;
[[File:vec4.png]]&lt;br /&gt;
&lt;br /&gt;
==Scalar Multiplication==&lt;br /&gt;
&lt;br /&gt;
**Scalar multiplication** means multiplying a vector by a scalar (a regular number). This produces a new vector in the same or opposite direction, but with its magnitude scaled by the scalar. This is used to stretch, shrink, or reverse vectors in many physical and mathematical problems.&lt;br /&gt;
&lt;br /&gt;
[[File:vec5.png]]&lt;br /&gt;
&lt;br /&gt;
==Dot Product==&lt;br /&gt;
&lt;br /&gt;
The **dot product** (or scalar product) of two vectors produces a scalar. It can be written in terms of components or in terms of magnitudes and the cosine of the angle between the vectors. Dot products are used to find angles between vectors, project one vector onto another, and calculate physical quantities such as work.&lt;br /&gt;
&lt;br /&gt;
[[File:vec7.png]]&lt;br /&gt;
&lt;br /&gt;
==Cross Product==&lt;br /&gt;
&lt;br /&gt;
The **cross product** (or vector product) of two vectors in 3D produces a new vector that is perpendicular to both original vectors. Its magnitude equals the product of the magnitudes of the two vectors times the sine of the angle between them. Cross products appear in torque, angular momentum, and magnetic force, among other topics in rotational and field-based physics.&lt;br /&gt;
&lt;br /&gt;
[[File:vec8.png]]&lt;br /&gt;
&lt;br /&gt;
For two vectors &amp;lt;math&amp;gt;\vec{A}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{B}&amp;lt;/math&amp;gt;, the magnitude of the cross product is&lt;br /&gt;
&amp;lt;math&amp;gt;|\vec{A}\times\vec{B}| = |\vec{A}|\;|\vec{B}|\sin(\theta)&amp;lt;/math&amp;gt;,  &lt;br /&gt;
where &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; is the angle between them. The direction follows the **right-hand rule**.&lt;br /&gt;
&lt;br /&gt;
Some useful properties of the cross product:&lt;br /&gt;
&lt;br /&gt;
* It is **not commutative**: &amp;lt;math&amp;gt;\vec{A}\times\vec{B} \neq \vec{B}\times\vec{A}&amp;lt;/math&amp;gt;. In fact, &amp;lt;math&amp;gt;\vec{A}\times\vec{B} = -(\vec{B}\times\vec{A})&amp;lt;/math&amp;gt;.&lt;br /&gt;
* It is **distributive** over addition: &amp;lt;math&amp;gt;\vec{A}\times(\vec{B} + \vec{C}) = \vec{A}\times\vec{B} + \vec{A}\times\vec{C}&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The cross product of a vector with itself is zero: &amp;lt;math&amp;gt;\vec{A}\times\vec{A} = \vec{0}&amp;lt;/math&amp;gt;, since the angle between a vector and itself is 0 and &amp;lt;math&amp;gt;\sin(0) = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==SI Units==&lt;br /&gt;
&lt;br /&gt;
The **International System of Units (SI)** is the main measurement system used in science and engineering. It specifies seven base units from which all other units are built:&lt;br /&gt;
&lt;br /&gt;
* meter (m) – length  &lt;br /&gt;
* kilogram (kg) – mass  &lt;br /&gt;
* second (s) – time  &lt;br /&gt;
* ampere (A) – electric current  &lt;br /&gt;
* kelvin (K) – temperature  &lt;br /&gt;
* mole (mol) – amount of substance  &lt;br /&gt;
* candela (cd) – luminous intensity  &lt;br /&gt;
&lt;br /&gt;
All physical vector quantities you encounter in this class will use combinations of these units.&lt;br /&gt;
&lt;br /&gt;
[[File:vec11.png]]&lt;br /&gt;
&lt;br /&gt;
==Derived Units==&lt;br /&gt;
&lt;br /&gt;
**Derived units** are units formed by combining base units through multiplication and division. For example:&lt;br /&gt;
&lt;br /&gt;
* newton (N) = kg·m/s&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; (force)  &lt;br /&gt;
* joule (J) = N·m (energy)  &lt;br /&gt;
* watt (W) = J/s (power)  &lt;br /&gt;
&lt;br /&gt;
These units describe more complex physical quantities but are always traceable back to the SI base units.&lt;br /&gt;
&lt;br /&gt;
==Conversion==&lt;br /&gt;
&lt;br /&gt;
**Unit conversion** means changing a quantity from one set of units to another while representing the same physical amount. For example, converting from centimeters to meters or from kilometers per hour to meters per second. In multi-step physics problems, careful unit conversion is essential to avoid errors and to match the units expected in formulas.&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
&lt;br /&gt;
Vectors and units appear in many areas:&lt;br /&gt;
&lt;br /&gt;
* **Physics:** describing motion, forces, fields (electric, magnetic, gravitational), and momentum.  &lt;br /&gt;
* **Engineering:** analyzing structures, designing mechanical systems, working with fluid flow, and modeling electrical circuits.  &lt;br /&gt;
* **Computer Graphics:** representing positions, directions, lighting, and transformations in 2D and 3D scenes.  &lt;br /&gt;
* **Navigation:** expressing position, velocity, and direction in GPS systems and for aircraft or ships.&lt;br /&gt;
&lt;br /&gt;
Understanding how vectors and units work together lets us build accurate models and interpret real-world data correctly.&lt;br /&gt;
&lt;br /&gt;
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
==What is a Vector?==&lt;br /&gt;
&lt;br /&gt;
In mathematics and physics, a **vector** is a quantity that has both a magnitude and a direction.&lt;br /&gt;
&lt;br /&gt;
In coordinates, we often write a vector as a list of components. For example, in a 3D coordinate system, we might write:&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = \langle v_x, v_y, v_z \rangle&amp;lt;/math&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Here:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;v_x&amp;lt;/math&amp;gt; is the x-component of the vector,  &lt;br /&gt;
* &amp;lt;math&amp;gt;v_y&amp;lt;/math&amp;gt; is the y-component,  &lt;br /&gt;
* &amp;lt;math&amp;gt;v_z&amp;lt;/math&amp;gt; is the z-component.&lt;br /&gt;
&lt;br /&gt;
A vector can also be written as a boldface letter, such as &#039;&#039;&#039;a&#039;&#039;&#039;, or with an arrow, like &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt;. The specific letter used often reflects the quantity: &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; for velocity, &amp;lt;math&amp;gt;\vec{r}&amp;lt;/math&amp;gt; for position, etc. Individual components of a vector are written with subscripts, such as &amp;lt;math&amp;gt;c_x&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;q_y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====Example of a Simple Vector====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = \langle 1, 0, 0 \rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This vector has magnitude 1 and points along the positive x-direction in 3D space.&lt;br /&gt;
&lt;br /&gt;
===Magnitude===&lt;br /&gt;
&lt;br /&gt;
The **magnitude** (or length) of a vector tells us how large the vector is.&lt;br /&gt;
&lt;br /&gt;
We denote the magnitude of &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; using vertical bars:&lt;br /&gt;
&amp;lt;math&amp;gt;|\vec{v}|&amp;lt;/math&amp;gt;. You might also see notations such as &amp;lt;math&amp;gt;\overline{v}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\lVert\vec{v}\rVert_2&amp;lt;/math&amp;gt; (the Euclidean norm).&lt;br /&gt;
&lt;br /&gt;
In a 3D system, if&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = \langle v_x, v_y, v_z \rangle&amp;lt;/math&amp;gt;,  &lt;br /&gt;
then its magnitude is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\lVert \vec{v} \rVert = \sqrt{v_x^2 + v_y^2 + v_z^2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More generally, in n dimensions,&lt;br /&gt;
&amp;lt;math&amp;gt;\lVert \vec{v} \rVert = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The magnitude carries the units of the quantity being represented. For example, the magnitude of a velocity vector is speed and has units of m/s.&lt;br /&gt;
&lt;br /&gt;
Note that a vector does not always represent a literal “arrow in space” between two locations. Often, a vector describes a property at a single point (like electric field at a location) or in an abstract space, even though the mathematics is the same.&lt;br /&gt;
&lt;br /&gt;
[[File:IMG_0325613.jpg|400px|Image: 400 pixels]]&lt;br /&gt;
&lt;br /&gt;
====Unit Vector====&lt;br /&gt;
&lt;br /&gt;
If we divide a nonzero vector by its magnitude, we obtain a **unit vector** in the same direction:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{v} = \frac{\vec{v}}{\lVert \vec{v} \rVert}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For example, if &amp;lt;math&amp;gt;\vec{v} = \langle v_x, v_y, v_z \rangle&amp;lt;/math&amp;gt;, then&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{v} = \frac{1}{\lVert\vec{v}\rVert}\langle v_x, v_y, v_z \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unit vectors are written with a “hat,” such as &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt;. In many coordinate systems, there are standard unit vectors. In 3D Cartesian coordinates, the unit vectors along the axes are&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{x} = \langle 1, 0, 0 \rangle, \quad \hat{y} = \langle 0, 1, 0 \rangle, \quad \hat{z} = \langle 0, 0, 1 \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other coordinate systems use different unit vectors, like &amp;lt;math&amp;gt;\hat{r}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\theta}&amp;lt;/math&amp;gt; in polar coordinates.&lt;br /&gt;
&lt;br /&gt;
===Direction===&lt;br /&gt;
&lt;br /&gt;
The **direction** of a vector tells us which way it points.&lt;br /&gt;
&lt;br /&gt;
In 2D, we usually measure direction by an angle from the positive x-axis. For a vector &amp;lt;math&amp;gt;\vec{v} = \langle v_x, v_y \rangle&amp;lt;/math&amp;gt;, the direction angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; can be computed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\theta = \arctan\left(\frac{v_y}{v_x}\right)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
keeping track of the correct quadrant.&lt;br /&gt;
&lt;br /&gt;
===Simple Examples of Vector Quantities===&lt;br /&gt;
&lt;br /&gt;
====Position====&lt;br /&gt;
&lt;br /&gt;
A point’s position can be written as a vector. If we have two position vectors, subtracting them gives the **relative position** from one point to the other. The magnitude of this relative position vector gives the straight-line distance between the two points. A common special case is the position relative to the origin, where the origin is at &amp;lt;math&amp;gt;\langle 0,0,0\rangle&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====Velocity====&lt;br /&gt;
&lt;br /&gt;
**Velocity** is a vector that describes how fast and in what direction an object moves. Its magnitude is the **speed**, and it is usually measured in m/s. The velocity vector can be found by differentiating the position vector with respect to time.&lt;br /&gt;
&lt;br /&gt;
For example, let &amp;lt;math&amp;gt;\vec{r}(t) = \langle t, 1, 0 \rangle\ \text{m}&amp;lt;/math&amp;gt;. Then the velocity is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v}(t) = \frac{d\vec{r}}{dt} = \langle 1, 0, 0 \rangle\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The speed is the magnitude of &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, which in this case is 1 m/s.&lt;br /&gt;
&lt;br /&gt;
[[File:Velwiki.png]]&lt;br /&gt;
&lt;br /&gt;
====Weight (Force of Gravity)====&lt;br /&gt;
&lt;br /&gt;
Weight is the gravitational force acting on an object; it is a vector that typically points downward. We often write the gravitational force as &amp;lt;math&amp;gt;\vec{F_g}&amp;lt;/math&amp;gt;. In a coordinate system where +y is upward, we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{F_g} = \langle 0, -mg, 0 \rangle,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is the mass of the object and &amp;lt;math&amp;gt;g = 9.8~\text{m/s}^2&amp;lt;/math&amp;gt; is the magnitude of the gravitational field near Earth’s surface. The magnitude &amp;lt;math&amp;gt;|\vec{F_g}| = mg&amp;lt;/math&amp;gt; is the weight of the object.&lt;br /&gt;
&lt;br /&gt;
===Visually Representing Vectors===&lt;br /&gt;
&lt;br /&gt;
Vectors are often drawn as **arrows**. The length of the arrow represents the magnitude, and the direction of the arrow shows which way the vector points. If a vector is tied to a particular location, the tail of the arrow is drawn at that point.&lt;br /&gt;
&lt;br /&gt;
The example below shows a velocity vector for a ball moving to the right at 5 m/s.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorvisualrepresentation.png]]&lt;br /&gt;
&lt;br /&gt;
==Vector Operations==&lt;br /&gt;
&lt;br /&gt;
We can perform several operations on vectors, both with other vectors and with scalars. These operations are used constantly in physics and engineering. To keep the notation simple, we will describe them for 3D vectors, but they generalize naturally to higher dimensions.&lt;br /&gt;
&lt;br /&gt;
===Addition===&lt;br /&gt;
&lt;br /&gt;
For vectors &amp;lt;math&amp;gt;\vec{a} = \langle a_x, a_y, a_z \rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = \langle b_x, b_y, b_z \rangle&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} + \vec{b} = \langle a_x + b_x,\; a_y + b_y,\; a_z + b_z \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Geometrically, we place the tail of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; at the head of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt;. The vector from the tail of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; to the head of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; is the **resultant** &amp;lt;math&amp;gt;\vec{a} + \vec{b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectoraddition.png|600px]]&lt;br /&gt;
&lt;br /&gt;
===Subtraction===&lt;br /&gt;
&lt;br /&gt;
Vector subtraction can be viewed as adding the negative of a vector. We have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} - \vec{b} = \vec{a} + (-\vec{b}) = \langle a_x - b_x,\; a_y - b_y,\; a_z - b_z \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Component-wise, we subtract each component of &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; from the corresponding component of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:IMG_0326.jpg|500px|Image: 500 pixels]]&lt;br /&gt;
&lt;br /&gt;
===Multiplication by Scalar===&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; is a scalar and &amp;lt;math&amp;gt;\vec{a} = \langle a_x, a_y, a_z \rangle&amp;lt;/math&amp;gt;, then&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;k \vec{a} = \langle k a_x,\; k a_y,\; k a_z \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Multiplying by a positive scalar changes the magnitude but keeps the direction the same. Multiplying by a negative scalar flips the direction as well.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorscalarmultiplication.png|400px]]                           [[File:IMG_0327.jpg|400px|Image: 400 pixels]]&lt;br /&gt;
&lt;br /&gt;
===Division by Scalar===&lt;br /&gt;
&lt;br /&gt;
Dividing a vector by a nonzero scalar is equivalent to multiplying by its reciprocal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{\vec{a}}{k} = \langle \frac{a_x}{k},\; \frac{a_y}{k},\; \frac{a_z}{k} \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This operation shrinks or enlarges the vector’s magnitude while preserving (or reversing, if k is negative) its direction.&lt;br /&gt;
&lt;br /&gt;
===Dot Product (also called Scalar Product)===&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;\vec{a} = \langle a_x, a_y, a_z \rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = \langle b_x, b_y, b_z \rangle&amp;lt;/math&amp;gt;, the dot product is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a}\cdot\vec{b} = a_x b_x + a_y b_y + a_z b_z.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result is a scalar. The dot product measures how much two vectors “line up” with each other. A key property is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a}\cdot\vec{b} = |\vec{a}|\;|\vec{b}|\cos(\theta),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; is the angle between &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;. If the dot product is zero, the vectors are perpendicular.&lt;br /&gt;
&lt;br /&gt;
[[File:IMG_0328.jpg|400px|Image: 400 pixels]]&lt;br /&gt;
&lt;br /&gt;
===Cross Product (also called Vector Product)===&lt;br /&gt;
&lt;br /&gt;
One component-based definition of the cross product (the one often found on formula sheets) is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \times \vec{b} = \langle a_yb_z - a_zb_y,\; a_zb_x - a_xb_z,\; a_xb_y - a_yb_x \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may also see it written as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} \times \vec{b} = (a_yb_z - a_zb_y)\hat{i} - (a_zb_x - a_xb_z)\hat{j} + (a_xb_y - a_yb_x)\hat{k}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although this looks complicated, the key idea is that the cross product of two 3D vectors is a new vector that is orthogonal to both of them. The order matters: changing the order flips the sign.&lt;br /&gt;
&lt;br /&gt;
A common way to remember the formula is through the determinant of a 3×3 matrix:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{vmatrix}&lt;br /&gt;
\hat{i} &amp;amp; \hat{j} &amp;amp; \hat{k} \\&lt;br /&gt;
a_x &amp;amp; a_y &amp;amp; a_z \\&lt;br /&gt;
b_x &amp;amp; b_y &amp;amp; b_z&lt;br /&gt;
\end{vmatrix}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can expand this determinant using cofactor expansion. Remember that the &amp;lt;math&amp;gt;\hat{j}&amp;lt;/math&amp;gt; term has a minus sign.&lt;br /&gt;
&lt;br /&gt;
[[File:Expansionbyminors.png|400px]]&lt;br /&gt;
&lt;br /&gt;
You can also use online tools or videos to check your work:&lt;br /&gt;
&lt;br /&gt;
* Cross product step-by-step calculator: [https://www.symbolab.com/solver/vector-cross-product-calculator  https://www.symbolab.com/solver/vector-cross-product-calculator]  &lt;br /&gt;
* Video explanation: [https://www.youtube.com/watch?v=e9T5p_Jwv5c https://www.youtube.com/watch?v=e9T5p_Jwv5c]&lt;br /&gt;
&lt;br /&gt;
The magnitude of the cross product satisfies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;|\vec{a}\times\vec{b}| = |\vec{a}|\;|\vec{b}|\sin(\theta)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; is the angle between &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;. Its direction is perpendicular to the plane of &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; and is chosen using the [[Right Hand Rule]]. In 2D, the usual cross product is not defined.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;For more mathematically-advanced students&amp;lt;/b&amp;gt;, we can connect this to linear algebra. Let &amp;lt;math&amp;gt;A \in \mathbb{R}^{m \times n}&amp;lt;/math&amp;gt; be a matrix, and consider its **null space**:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\operatorname{Null}(A) = \{ \vec{v} \in \mathbb{R}^n \mid A\vec{v} = \vec{0} \}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The null space is the set of all vectors that are orthogonal to every row of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;. Writing the rows as &amp;lt;math&amp;gt;\vec{a}_1,\ldots,\vec{a}_m&amp;lt;/math&amp;gt;, the equation &amp;lt;math&amp;gt;A\vec{v}=\vec{0}&amp;lt;/math&amp;gt; expands to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{bmatrix}\vec{a}_1 \\ \vec{a}_2 \\ \vdots \\ \vec{a}_m\end{bmatrix}\vec{v} = \begin{bmatrix}\vec{a}_1 \cdot \vec{v} \\ \vec{a}_2 \cdot \vec{v} \\ \vdots \\ \vec{a}_m \cdot \vec{v}\end{bmatrix} = \begin{bmatrix}0 \\ 0 \\ \vdots \\ 0\end{bmatrix}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So every vector in the null space is perpendicular to each row, and therefore to the whole row space.&lt;br /&gt;
&lt;br /&gt;
For two vectors &amp;lt;math&amp;gt;\vec{a}, \vec{b} \in \mathbb{R}^3&amp;lt;/math&amp;gt; that are not multiples of each other, think of them as the rows of a 2×3 matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;. The null space of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; consists of all vectors orthogonal to both &amp;lt;math&amp;gt;\vec{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt;. The cross product &amp;lt;math&amp;gt;\vec{a}\times\vec{b}&amp;lt;/math&amp;gt; is (up to scaling and orientation) the unique nonzero vector in this null space once we fix the magnitude and choose a direction using the right-hand rule. This is another way to see why the cross product is perpendicular to both original vectors. In higher dimensions, the null space can have more than one dimension, so there isn’t a single unique “cross product direction” in the same way.&lt;br /&gt;
&lt;br /&gt;
====Another Cross Product Trick====&lt;br /&gt;
&lt;br /&gt;
Here is a pattern-based way to compute the cross product quickly, using components.&lt;br /&gt;
&lt;br /&gt;
Suppose&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} = \langle 3, -2, 4 \rangle, \quad \vec{b} = \langle -1, 6, 3 \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We want &amp;lt;math&amp;gt;\vec{c} = \vec{a} \times \vec{b} = \langle c_x, c_y, c_z \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Arrange the components vertically and repeat the first component at the bottom:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{vmatrix}&lt;br /&gt;
a_x \\&lt;br /&gt;
a_y \\&lt;br /&gt;
a_z \\&lt;br /&gt;
a_x&lt;br /&gt;
\end{vmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{vmatrix}&lt;br /&gt;
3 \\&lt;br /&gt;
-2 \\&lt;br /&gt;
4 \\&lt;br /&gt;
3&lt;br /&gt;
\end{vmatrix}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{vmatrix}&lt;br /&gt;
b_x \\&lt;br /&gt;
b_y \\&lt;br /&gt;
b_z \\&lt;br /&gt;
b_x&lt;br /&gt;
\end{vmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{vmatrix}&lt;br /&gt;
-1 \\&lt;br /&gt;
6 \\&lt;br /&gt;
3 \\&lt;br /&gt;
-1&lt;br /&gt;
\end{vmatrix}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To find &amp;lt;math&amp;gt;c_x&amp;lt;/math&amp;gt;, draw an “X” connecting &amp;lt;math&amp;gt;a_y&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;b_z&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_z&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;b_y&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Cx.png]]&lt;br /&gt;
&lt;br /&gt;
Then compute&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_x = a_y b_z - a_z b_y = (-2)(3) - (4)(6) = -6 - 24 = -30.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;c_y&amp;lt;/math&amp;gt;, use &amp;lt;math&amp;gt;a_z&amp;lt;/math&amp;gt; with the bottom &amp;lt;math&amp;gt;b_x&amp;lt;/math&amp;gt; and the bottom &amp;lt;math&amp;gt;a_x&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;b_z&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Cy.png]]&lt;br /&gt;
&lt;br /&gt;
So&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_y = a_z b_x - a_x b_z = (4)(-1) - (3)(3) = -4 - 9 = -13.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;c_z&amp;lt;/math&amp;gt;, connect &amp;lt;math&amp;gt;a_x&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;b_y&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_y&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;b_x&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
[[File:Cz.png]]&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_z = a_x b_y - a_y b_x = (3)(6) - (-2)(-1) = 18 - 2 = 16.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a}\times\vec{b} = \langle -30, -13, 16 \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With practice, you may not need to draw the X each time and can compute the components directly from the pattern.&lt;br /&gt;
&lt;br /&gt;
==Equations Involving Vector Operations==&lt;br /&gt;
&lt;br /&gt;
You may sometimes encounter equations that mix dot products and cross products. Two useful facts:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;math&amp;gt;(\vec{w} \times \vec{v}) \cdot \vec{v} = 0&amp;lt;/math&amp;gt;, because &amp;lt;math&amp;gt;\vec{w} \times \vec{v}&amp;lt;/math&amp;gt; is perpendicular to both &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;, so its dot product with either original vector is zero.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;math&amp;gt;\vec{a} \cdot (\vec{b} \times \vec{c}) = (\vec{a} \times \vec{b}) \cdot \vec{c}&amp;lt;/math&amp;gt;. This identity, called the scalar triple product identity, can be useful if one cross product is easier to compute than the other. Note that the cross product part is still order-sensitive, while the dot product is commutative.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Forms==&lt;br /&gt;
&lt;br /&gt;
There are several common ways to describe a vector, all containing the same information.&lt;br /&gt;
&lt;br /&gt;
===Magnitude and Direction Form===&lt;br /&gt;
&lt;br /&gt;
In this form, we specify:&lt;br /&gt;
&lt;br /&gt;
* The magnitude (length), and  &lt;br /&gt;
* A description of the direction (cardinal direction, angle, or axis).&lt;br /&gt;
&lt;br /&gt;
For example, “a 5 m vector at 60° above the horizontal” is in magnitude and direction form. This form is intuitive and often used in word problems and real-life descriptions.&lt;br /&gt;
&lt;br /&gt;
===Component Form===&lt;br /&gt;
&lt;br /&gt;
Here, we break the vector into components along the coordinate axes. In 3D, a vector is written as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\langle a_x, a_y, a_z \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, &amp;lt;math&amp;gt;\langle 2, 0, -3 \rangle&amp;lt;/math&amp;gt; means the vector extends 2 units in +x, 0 units in y, and 3 units in -z. Most algebraic operations (like dot and cross products) are done using component form. Programming languages also typically store vectors in this way.&lt;br /&gt;
&lt;br /&gt;
===Unit Vector Form===&lt;br /&gt;
&lt;br /&gt;
In unit vector form, we write a vector as a combination of unit vectors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{i}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\hat{j}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\hat{k}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\hat{x}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\hat{y}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\hat{z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For instance, the vector &amp;lt;math&amp;gt;\langle 2, 0, -3 \rangle&amp;lt;/math&amp;gt; can be written as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;2\hat{i} - 3\hat{k}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unit vector form and component form contain the same numerical information; they just use different notation.&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorsdifferentforms.png]]&lt;br /&gt;
&lt;br /&gt;
In n dimensions, a vector always needs n numbers to describe it fully. In 3D, magnitude–direction form uses 1 number for magnitude and 2 angles for direction, while component or unit-vector form uses 3 components.&lt;br /&gt;
&lt;br /&gt;
===Converting Between Forms===&lt;br /&gt;
&lt;br /&gt;
We can move between forms using trigonometry and the Pythagorean theorem.&lt;br /&gt;
&lt;br /&gt;
* For a 2D vector &amp;lt;math&amp;gt;\vec{a} = \langle a_x, a_y \rangle&amp;lt;/math&amp;gt;, the magnitude is&lt;br /&gt;
  &amp;lt;math&amp;gt;|\vec{a}| = \sqrt{a_x^2 + a_y^2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The direction angle from the positive x-axis is&lt;br /&gt;
  &amp;lt;math&amp;gt;\theta = \tan^{-1}\left(\frac{a_y}{a_x}\right)&amp;lt;/math&amp;gt; (with quadrant checks).&lt;br /&gt;
&lt;br /&gt;
* Given magnitude &amp;lt;math&amp;gt;|\vec{a}|&amp;lt;/math&amp;gt; and angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;, the components are&lt;br /&gt;
  &amp;lt;math&amp;gt;a_x = |\vec{a}|\cos\theta&amp;lt;/math&amp;gt;,&lt;br /&gt;
  &amp;lt;math&amp;gt;a_y = |\vec{a}|\sin\theta&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Vectors in VPython==&lt;br /&gt;
&lt;br /&gt;
In VPython (used in GlowScript), vectors are represented by the type &amp;lt;code&amp;gt;vec&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vector&amp;lt;/code&amp;gt;. The constructor takes three arguments: the x, y, and z components.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;velocity = vec(3, -1, 2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a vector called &amp;lt;code&amp;gt;velocity&amp;lt;/code&amp;gt; with components (3, -1, 2).&lt;br /&gt;
&lt;br /&gt;
In VPython’s default view, +x points to the right, +y points upward, and +z points out of the screen toward the viewer.&lt;br /&gt;
&lt;br /&gt;
===Modifying Vectors===&lt;br /&gt;
&lt;br /&gt;
You can access or modify individual components using &amp;lt;code&amp;gt;.x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;.z&amp;lt;/code&amp;gt;. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;velocity.x = 5&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
changes the x-component from 3 to 5.&lt;br /&gt;
&lt;br /&gt;
===Helpful Vector Functions===&lt;br /&gt;
&lt;br /&gt;
====Magnitude====&lt;br /&gt;
&lt;br /&gt;
VPython provides the &amp;lt;code&amp;gt;mag&amp;lt;/code&amp;gt; function to compute the magnitude of a vector:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
velocity = vec(3, -1, 2)&lt;br /&gt;
speed = mag(velocity)  # magnitude of velocity&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Normalize====&lt;br /&gt;
&lt;br /&gt;
To obtain a unit vector in the same direction (normalize a vector), use &amp;lt;code&amp;gt;norm&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
v = vec(5, 0, 0)&lt;br /&gt;
v_hat = norm(v)  # v_hat = &amp;lt;1, 0, 0&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Dot and Cross Product====&lt;br /&gt;
&lt;br /&gt;
The functions &amp;lt;code&amp;gt;dot&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;cross&amp;lt;/code&amp;gt; compute dot and cross products:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
a = vec(1, 2, 3)&lt;br /&gt;
b = vec(4, 5, 6)&lt;br /&gt;
dot_prod = dot(a, b)      # a · b&lt;br /&gt;
cross_prod = cross(a, b)  # a × b&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Visualization===&lt;br /&gt;
&lt;br /&gt;
To visualize vectors, VPython provides the &amp;lt;code&amp;gt;arrow&amp;lt;/code&amp;gt; object. You specify:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;pos&amp;lt;/code&amp;gt; – tail position,  &lt;br /&gt;
* &amp;lt;code&amp;gt;axis&amp;lt;/code&amp;gt; – direction and length of the arrow (a vector).&lt;br /&gt;
&lt;br /&gt;
Optional parameters include &amp;lt;code&amp;gt;shaftwidth&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;headwidth&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;headlength&amp;lt;/code&amp;gt;. You can also change attributes like &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt;. See more details [https://www.glowscript.org/docs/VPythonDocs/arrow.html here].&lt;br /&gt;
&lt;br /&gt;
Example of a velocity vector arrow at the origin:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
velocity = vec(1, 1, 0)&lt;br /&gt;
origin = vec(0, 0, 0)&lt;br /&gt;
shaftwidth = 0.1&lt;br /&gt;
vel_arrow = arrow(pos=origin, axis=velocity,&lt;br /&gt;
                  shaftwidth=shaftwidth, color=color.red)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Arrow_viz.png]]&lt;br /&gt;
&#039;&#039;Output in VPython of Visualized Vector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==A Computational Model==&lt;br /&gt;
&lt;br /&gt;
[https://trinket.io/glowscript/3d7c75ed91 Click here to run the interactive computational model.]&lt;br /&gt;
&lt;br /&gt;
This model walks through basic vector operations step by step. It starts by defining vectors as arrows, then explores:&lt;br /&gt;
&lt;br /&gt;
* Addition and subtraction  &lt;br /&gt;
* Scalar multiplication  &lt;br /&gt;
* Magnitude and unit vectors  &lt;br /&gt;
* Dot and cross products  &lt;br /&gt;
&lt;br /&gt;
Each operation is shown both in formula form and using VPython shortcut functions. You can edit the vector values and rerun the code to see how the results change. Commenting out parts of the script can help you focus on one type of operation at a time.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
===Very Simple===&lt;br /&gt;
&lt;br /&gt;
Vector &amp;lt;math&amp;gt;\vec{a} = \langle 2.5, 7.4, 8.0 \rangle&amp;lt;/math&amp;gt;. Find its magnitude and a unit vector in its direction.&lt;br /&gt;
&lt;br /&gt;
**Solution:**&lt;br /&gt;
&lt;br /&gt;
First, find the magnitude:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;|\vec{a}| = \sqrt{2.5^2 + 7.4^2 + 8.0^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;= \sqrt{6.25 + 54.76 + 64}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;= \sqrt{125.01} \approx 11.18.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now form the unit vector:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{a} = \frac{\vec{a}}{|\vec{a}|} = \left\langle \frac{2.5}{11.18}, \frac{7.4}{11.18}, \frac{8.0}{11.18} \right\rangle \approx \langle 0.224, 0.662, 0.716 \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the magnitude is about 11.18, and the direction can be described by the unit vector &amp;lt;math&amp;gt;\langle 0.224, 0.662, 0.716 \rangle&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Simple===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\vec{a} = \langle 2, 4, 2 \rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b} = \langle -1, 1, 3 \rangle&amp;lt;/math&amp;gt;. Find the magnitude of &amp;lt;math&amp;gt;\vec{a} - 2\vec{b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
**Solution:**&lt;br /&gt;
&lt;br /&gt;
Compute the combination:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a} - 2\vec{b} = \langle 2, 4, 2 \rangle - 2\langle -1, 1, 3 \rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;= \langle 2, 4, 2 \rangle - \langle -2, 2, 6 \rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;= \langle 4, 2, -4 \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now find the magnitude:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;|\langle 4, 2, -4 \rangle| = \sqrt{4^2 + 2^2 + (-4)^2} = \sqrt{16 + 4 + 16} = \sqrt{36} = 6.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Intermediate===&lt;br /&gt;
&lt;br /&gt;
An airplane is flying in still air at 240 m/s, 35° south of west. A wind blows at 80 m/s, 15° east of north. What must the plane’s new velocity relative to the air be in order to keep the same overall trajectory? Give your answer in components (with +x east and +y north).&lt;br /&gt;
&lt;br /&gt;
[[File:Vectorsplaneproblem.png]]&lt;br /&gt;
&lt;br /&gt;
**Solution:**&lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v_{p,0}}&amp;lt;/math&amp;gt; = original velocity of the plane (relative to air),  &lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v_w}&amp;lt;/math&amp;gt; = wind velocity (relative to ground),  &lt;br /&gt;
* &amp;lt;math&amp;gt;\vec{v_{p,1}}&amp;lt;/math&amp;gt; = new plane velocity (relative to air).&lt;br /&gt;
&lt;br /&gt;
We want the **resultant ground velocity** of the plane to stay equal to &amp;lt;math&amp;gt;\vec{v_{p,0}}&amp;lt;/math&amp;gt;. The velocity relative to the ground is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v_{p,1}} + \vec{v_w}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So we require&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v_{p,1}} + \vec{v_w} = \vec{v_{p,0}}&amp;lt;/math&amp;gt;  &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \vec{v_{p,1}} = \vec{v_{p,0}} - \vec{v_w}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Express everything in components:&lt;br /&gt;
&lt;br /&gt;
Take +x as east and +y as north.&lt;br /&gt;
&lt;br /&gt;
35° south of west corresponds to 215° from the +x-axis:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v_{p,0}} = \langle 240\cos(215^\circ),\; 240\sin(215^\circ) \rangle \approx \langle -196.6,\; -137.7 \rangle\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
15° east of north corresponds to 75° from the +x-axis:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v_w} = \langle 80\cos(75^\circ),\; 80\sin(75^\circ) \rangle \approx \langle 20.7,\; 77.3 \rangle\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now subtract:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v_{p,1}} = \vec{v_{p,0}} - \vec{v_w} = \langle -196.6, -137.7 \rangle - \langle 20.7, 77.3 \rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;= \langle -217.3,\; -214.9 \rangle\ \text{m/s}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the plane must adjust its airspeed to approximately &amp;lt;math&amp;gt;\langle -217.3,\; -214.9 \rangle&amp;lt;/math&amp;gt; m/s relative to the air to keep its original track.&lt;br /&gt;
&lt;br /&gt;
===Difficult===&lt;br /&gt;
&lt;br /&gt;
Find the angle between the vectors &amp;lt;math&amp;gt;\langle 2, 5, -2 \rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\langle 3, -4, -1 \rangle&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
**Solution:**&lt;br /&gt;
&lt;br /&gt;
Use the dot product formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a}\cdot\vec{b} = |\vec{a}|\;|\vec{b}|\cos\theta.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\theta = \cos^{-1}\left(\frac{\vec{a}\cdot\vec{b}}{|\vec{a}|\;|\vec{b}|}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the numerator:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{a}\cdot\vec{b} = 2(3) + 5(-4) + (-2)(-1) = 6 - 20 + 2 = -12.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the magnitudes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;|\vec{a}| = \sqrt{2^2 + 5^2 + (-2)^2} = \sqrt{4 + 25 + 4} = \sqrt{33},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;|\vec{b}| = \sqrt{3^2 + (-4)^2 + (-1)^2} = \sqrt{9 + 16 + 1} = \sqrt{26}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\theta = \cos^{-1}\left(\frac{-12}{\sqrt{33}\sqrt{26}}\right) = \cos^{-1}\left(\frac{-12}{\sqrt{858}}\right) \approx 114^\circ.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Connectedness==&lt;br /&gt;
&lt;br /&gt;
Vectors appear in many everyday and engineering contexts.&lt;br /&gt;
&lt;br /&gt;
Consider a desk. Its weight is a force vector pointing downward, the normal force from the floor is a vector pointing upward, and the forces among the desk’s parts can all be represented as vectors. Measurements such as the diagonal distance across the desktop can also be seen as vectors from one corner to another.&lt;br /&gt;
&lt;br /&gt;
Your motion can be described using vectors as well. Your **position** relative to some reference point can be written as a position vector. The difference between two position vectors is a displacement vector. **Velocity** describes how your position changes over time; it is the time derivative of the position vector, and its magnitude is your speed. **Acceleration** is the time derivative of velocity. All of these quantities can be broken into components, which makes it easier to analyze motion in each direction separately.&lt;br /&gt;
&lt;br /&gt;
In Physics 2 and beyond, vectors are everywhere. The electric field, magnetic field, many forces, and other quantities are all vector fields. For example, the magnetic force on a charged particle is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{F} = q\;\vec{v} \times \vec{B},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which combines a cross product of two vectors and a scalar multiplication.&lt;br /&gt;
&lt;br /&gt;
Even outside physics, vectors are central. In engineering, they are used for stress analysis, fluid flow, and control systems. In computer science, vectors appear in graphics, simulations, robotics, and machine learning (where data points are often vectors in high-dimensional spaces). Virtually any physical or abstract quantity that has both “how much” and “which way” can be modeled as a vector.&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
&lt;br /&gt;
Ideas similar to vectors go back many centuries. Early uses treated them as directed line segments rather than abstract quantities. Hero of Alexandria’s work &amp;lt;i&amp;gt;Mechanics&amp;lt;/i&amp;gt; in the first century AD contains one of the earliest known discussions of adding such directed segments.&lt;br /&gt;
&lt;br /&gt;
In the 18th and 19th centuries, several mathematicians used 2D vectors to represent complex numbers. Caspar Wessel, Jean-Robert Argand, Carl Friedrich Gauss, and William Rowan Hamilton all contributed to this viewpoint. One component represented the real part, and the other represented the imaginary part. Hamilton also introduced the term “vector.”&lt;br /&gt;
&lt;br /&gt;
August Ferdinand Möbius, in his 1827 book &amp;lt;i&amp;gt;The Barycentric Calculus&amp;lt;/i&amp;gt;, formalized many vector ideas, including labeling vectors with letters and defining scalar multiplication. Hermann Grassmann, in his 1844 work &amp;lt;i&amp;gt;Ausdehnungslehre&amp;lt;/i&amp;gt; (“The Calculus of Extension”), developed a more general theory of vectors in spaces of arbitrary dimension and laid foundations for linear algebra.&lt;br /&gt;
&lt;br /&gt;
The modern vector notation and conventions used in physics owe a lot to J. Willard Gibbs and Oliver Heaviside in the late 19th century. They refined vector methods and used them to express Maxwell’s equations of electromagnetism in the compact form we study today.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
===External Links===&lt;br /&gt;
&lt;br /&gt;
Mathematical computations on vectors (MIT OCW notes):  &lt;br /&gt;
[http://ocw.mit.edu/courses/mathematics/18-02sc-multivariable-calculus-fall-2010/1.-vectors-and-matrices/part-a-vectors-determinants-and-planes/session-1-vectors/MIT18_02SC_notes_0.pdf http://ocw.mit.edu/courses/mathematics/18-02sc-multivariable-calculus-fall-2010/1.-vectors-and-matrices/part-a-vectors-determinants-and-planes/session-1-vectors/MIT18_02SC_notes_0.pdf]&lt;br /&gt;
&lt;br /&gt;
Computational work with vectors in VPython:  &lt;br /&gt;
[http://vpython.org/contents/docs/vector.html http://vpython.org/contents/docs/vector.html]&lt;br /&gt;
&lt;br /&gt;
Basic vector introduction:  &lt;br /&gt;
[https://www.physics.uoguelph.ca/tutorials/vectors/vectors.html https://www.physics.uoguelph.ca/tutorials/vectors/vectors.html]&lt;br /&gt;
&lt;br /&gt;
===Further Reading===&lt;br /&gt;
&lt;br /&gt;
* *Vector Analysis* – Josiah Willard Gibbs  &lt;br /&gt;
* *Introduction to Matrices and Vectors* – Jacob T. Schwartz  &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
[https://mathinsight.org/definition/magnitude_vector https://mathinsight.org/definition/magnitude_vector]  &lt;br /&gt;
[https://www.mathsisfun.com/algebra/vectors.html https://www.mathsisfun.com/algebra/vectors.html]  &lt;br /&gt;
[http://ocw.mit.edu/courses/mathematics/18-02sc-multivariable-calculus-fall-2010/1.-vectors-and-matrices/part-a-vectors-determinants-and-planes/session-1-vectors/MIT18_02SC_notes_0.pdf http://ocw.mit.edu/courses/mathematics/18-02sc-multivariable-calculus-fall-2010/1.-vectors-and-matrices/part-a-vectors-determinants-and-planes/session-1-vectors/MIT18_02SC_notes_0.pdf]  &lt;br /&gt;
[http://mathinsight.org/vector_introduction http://mathinsight.org/vector_introduction]  &lt;br /&gt;
[http://www.math.mcgill.ca/labute/courses/133f03/VectorHistory.html http://www.math.mcgill.ca/labute/courses/133f03/VectorHistory.html]  &lt;br /&gt;
[https://www.glowscript.org/docs/VPythonDocs/vector.html https://www.glowscript.org/docs/VPythonDocs/vector.html]  &lt;br /&gt;
[https://www.glowscript.org/docs/VPythonDocs/arrow.html https://www.glowscript.org/docs/VPythonDocs/arrow.html]  &lt;br /&gt;
[https://www.britannica.com/science/vector-mathematics https://www.britannica.com/science/vector-mathematics]  &lt;br /&gt;
[https://www.grc.nasa.gov/www/k-12/rocket/vectcomp.html https://www.grc.nasa.gov/www/k-12/rocket/vectcomp.html]  &lt;br /&gt;
[https://www.onlinemathlearning.com/dot-product.html https://www.onlinemathlearning.com/dot-product.html]&lt;br /&gt;
&lt;br /&gt;
[[Category: Geometry]]&lt;/div&gt;</summary>
		<author><name>JohnWasHere</name></author>
	</entry>
</feed>