Content for this platform is still under development by Cal Poly Pomona Professors. Please check back soon.
Tap to browse classes and lessons

Video

Vector Operations

~10 min read·Updated Jun 25, 2026

Disclaimer: This lesson content is provided for testing and demonstration. It is intended to check typography, mathematical rendering, page layout, scrolling, and navigation.


Vector Operations


Vectors describe quantities that have both magnitude and direction. A two-dimensional vector can be written as v=vx,vy\mathbf{v}=\langle v_x,v_y\rangle, and a three-dimensional vector can be written as v=vx,vy,vz\mathbf{v}=\langle v_x,v_y,v_z\rangle.


Magnitude of a Vector


The magnitude of a vector measures its length. For v=vx,vy\mathbf{v}=\langle v_x,v_y\rangle, the magnitude is:

v=vx2+vy2.\lVert\mathbf{v}\rVert=\sqrt{v_x^2+v_y^2}.


For a three-dimensional vector, the magnitude includes the zz-component:

v=vx2+vy2+vz2.\lVert\mathbf{v}\rVert=\sqrt{v_x^2+v_y^2+v_z^2}.

For example, if v=3,4\mathbf{v}=\langle 3,4\rangle, then:


v=32+42=25=5.\lVert\mathbf{v}\rVert=\sqrt{3^2+4^2}=\sqrt{25}=5.

Direction of a Vector


The direction angle of a two-dimensional vector can be found from its components:


θ=atan2(vy,vx).\theta=\operatorname{atan2}(v_y,v_x).

For v=3,4\mathbf{v}=\langle 3,4\rangle, the direction angle is:


θ=tan1(43)53.1.\theta=\tan^{-1}\left(\frac{4}{3}\right)\approx53.1^\circ.

Vector Addition


Vectors are added component by component. If a=ax,ay\mathbf{a}=\langle a_x,a_y\rangle and b=bx,by\mathbf{b}=\langle b_x,b_y\rangle, then:

a+b=ax+bx,  ay+by.\mathbf{a}+\mathbf{b}=\langle a_x+b_x,\;a_y+b_y\rangle.


For example, if a=2,5\mathbf{a}=\langle2,5\rangle and b=4,1\mathbf{b}=\langle4,-1\rangle, then:

a+b=2+4,  51=6,4.\mathbf{a}+\mathbf{b}=\langle2+4,\;5-1\rangle=\langle6,4\rangle.


Vector Subtraction

Vector subtraction is also performed component by component:


ab=axbx,  ayby.\mathbf{a}-\mathbf{b}=\langle a_x-b_x,\;a_y-b_y\rangle.

This can also be understood as adding the opposite of the second vector:


ab=a+(b).\mathbf{a}-\mathbf{b}=\mathbf{a}+(-\mathbf{b}).


Scalar Multiplication


Multiplying a vector by a scalar changes its magnitude and may reverse its direction if the scalar is negative. For scalar kk and vector v\mathbf{v}:


kv=kvx,  kvy.k\mathbf{v}=\langle kv_x,\;kv_y\rangle.


If v=3,2\mathbf{v}=\langle3,-2\rangle, then:

2v=6,4.2\mathbf{v}=\langle6,-4\rangle.


Unit Vectors


A unit vector has magnitude 11. The unit vector in the direction of a nonzero vector v\mathbf{v} is:


v^=vv.\widehat{\mathbf{v}}=\frac{\mathbf{v}}{\lVert\mathbf{v}\rVert}.

For v=3,4\mathbf{v}=\langle3,4\rangle, the unit vector is:


v^=35,45.\widehat{\mathbf{v}}=\left\langle\frac35,\frac45\right\rangle.

The standard Cartesian unit vectors are:


i=1,0,0,j=0,1,0,k=0,0,1.\mathbf{i}=\langle1,0,0\rangle,\qquad\mathbf{j}=\langle0,1,0\rangle,\qquad\mathbf{k}=\langle0,0,1\rangle.


Using these unit vectors, a three-dimensional vector can be written as:

v=vxi+vyj+vzk.\mathbf{v}=v_x\mathbf{i}+v_y\mathbf{j}+v_z\mathbf{k}.


Resolving a Vector Into Components

If a vector has magnitude VV and direction angle θ\theta, its rectangular components are:


Vx=Vcosθ.V_x=V\cos\theta.

Vy=Vsinθ.V_y=V\sin\theta.


For a force of 100 N100\text{ N} acting at 3030^\circ above the horizontal:


Fx=100cos3086.6 N.F_x=100\cos30^\circ\approx86.6\text{ N}.

Fy=100sin30=50 N.F_y=100\sin30^\circ=50\text{ N}.

Therefore, the force vector is:

F=86.6,50 N.\mathbf{F}=\langle86.6,50\rangle\text{ N}.


Resultant Vectors


The resultant vector is the sum of two or more vectors:


R=i=1nvi.\mathbf{R}=\sum_{i=1}^{n}\mathbf{v}_i.

In component form:

Rx=i=1nvx,i,Ry=i=1nvy,i.R_x=\sum_{i=1}^{n}v_{x,i},\qquad R_y=\sum_{i=1}^{n}v_{y,i}.


The magnitude of the resultant is:


R=Rx2+Ry2.\lVert\mathbf{R}\rVert=\sqrt{R_x^2+R_y^2}.


The direction of the resultant can be found using:

θR=atan2(Ry,Rx).\theta_R=\operatorname{atan2}(R_y,R_x).


Dot Product

The dot product combines two vectors to produce a scalar. For vectors in three dimensions:

ab=axbx+ayby+azbz.\mathbf{a}\cdot\mathbf{b}=a_xb_x+a_yb_y+a_zb_z.


The dot product can also be written in terms of the angle between the vectors:

ab=abcosθ.\mathbf{a}\cdot\mathbf{b}=\lVert\mathbf{a}\rVert\lVert\mathbf{b}\rVert\cos\theta.

For a=2,3\mathbf{a}=\langle2,3\rangle and b=4,1\mathbf{b}=\langle4,-1\rangle:


ab=(2)(4)+(3)(1)=5.\mathbf{a}\cdot\mathbf{b}=(2)(4)+(3)(-1)=5.

Two nonzero vectors are perpendicular when their dot product is zero:


ab=0.\mathbf{a}\cdot\mathbf{b}=0.

Angle Between Two Vectors


For two nonzero vectors, the angle between them is:


θ=cos1(abab).\theta=\cos^{-1}\left(\frac{\mathbf{a}\cdot\mathbf{b}}{\lVert\mathbf{a}\rVert\lVert\mathbf{b}\rVert}\right).


A positive dot product indicates an acute angle. A zero dot product indicates a right angle. A negative dot product indicates an obtuse angle.

Vector Projection


The scalar projection of a\mathbf{a} onto b\mathbf{b} is:

compba=abb.\operatorname{comp}_{\mathbf{b}}\mathbf{a}=\frac{\mathbf{a}\cdot\mathbf{b}}{\lVert\mathbf{b}\rVert}.


The vector projection of a\mathbf{a} onto b\mathbf{b} is:

projba=abb2b.\operatorname{proj}_{\mathbf{b}}\mathbf{a}=\frac{\mathbf{a}\cdot\mathbf{b}}{\lVert\mathbf{b}\rVert^2}\mathbf{b}.


Cross Product


The cross product applies to three-dimensional vectors and produces a vector perpendicular to the two original vectors:


a×b=ijkaxayazbxbybz.\mathbf{a}\times\mathbf{b}=\begin{vmatrix}\mathbf{i} & \mathbf{j} & \mathbf{k}\\a_x & a_y & a_z\\b_x & b_y & b_z\end{vmatrix}.


Expanding the determinant gives:

a×b=aybzazby,  azbxaxbz,  axbyaybx.\mathbf{a}\times\mathbf{b}=\left\langle a_yb_z-a_zb_y,\;a_zb_x-a_xb_z,\;a_xb_y-a_yb_x\right\rangle.

The magnitude of the cross product is:


a×b=absinθ.\lVert\mathbf{a}\times\mathbf{b}\rVert=\lVert\mathbf{a}\rVert\lVert\mathbf{b}\rVert\sin\theta.

This magnitude is also the area of the parallelogram formed by the two vectors:


Aparallelogram=a×b.A_{\text{parallelogram}}=\lVert\mathbf{a}\times\mathbf{b}\rVert.


The area of the corresponding triangle is half that value:


A=12a×b.A_{\triangle}=\frac12\lVert\mathbf{a}\times\mathbf{b}\rVert.


Equilibrium of a Particle


A particle is in equilibrium when the sum of all forces acting on it is zero:


F=0.\sum\mathbf{F}=\mathbf{0}.


In two dimensions, this gives two scalar equations:


Fx=0.\sum F_x=0.


Fy=0.\sum F_y=0.


In three dimensions, a third equation is also required:


Fz=0.\sum F_z=0.


Motion and Displacement

Displacement is the change between final and initial position vectors:


Δr=rfri.\Delta\mathbf{r}=\mathbf{r}_f-\mathbf{r}_i.

Average velocity is displacement divided by elapsed time:


vavg=ΔrΔt.\mathbf{v}_{\mathrm{avg}}=\frac{\Delta\mathbf{r}}{\Delta t}.


Average acceleration is change in velocity divided by elapsed time:


aavg=ΔvΔt.\mathbf{a}_{\mathrm{avg}}=\frac{\Delta\mathbf{v}}{\Delta t}.


Summary


Vector operations provide a systematic way to analyze quantities with magnitude and direction. The most important operations include addition, subtraction, scalar multiplication, normalization, dot products, cross products, and projections.


Three core relationships are:


a+b=ax+bx,  ay+by.\mathbf{a}+\mathbf{b}=\langle a_x+b_x,\;a_y+b_y\rangle.


ab=abcosθ.\mathbf{a}\cdot\mathbf{b}=\lVert\mathbf{a}\rVert\lVert\mathbf{b}\rVert\cos\theta.


a×b=absinθ.\lVert\mathbf{a}\times\mathbf{b}\rVert=\lVert\mathbf{a}\rVert\lVert\mathbf{b}\rVert\sin\theta.

Lesson recap

You finished “Vector Operations

Chapter 1 · Force Vectors - 1 of 6 lessons complete.

Questions about this lesson

Ask a question tied to “Vector Operations.”

Was this lesson helpful?