Skip to main content

Vectors in 3D — Diagnostic Tests

Unit Tests

UT-1: Scalar and Vector Products

Question: a=(211)\mathbf{a} = \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix}, b=(132)\mathbf{b} = \begin{pmatrix} 1 \\ 3 \\ 2 \end{pmatrix}. (a) Calculate ab\mathbf{a} \cdot \mathbf{b}. (b) Calculate a×b\mathbf{a} \times \mathbf{b}. (c) Find the angle between a\mathbf{a} and b\mathbf{b}. (d) Verify that a×b\mathbf{a} \times \mathbf{b} is perpendicular to both a\mathbf{a} and b\mathbf{b}.

Solution:

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

(b) a×b=(1(2)(1)(3)(1)(1)2(2)2(3)1(1))=(555)\mathbf{a} \times \mathbf{b} = \begin{pmatrix} 1(2) - (-1)(3) \\ (-1)(1) - 2(2) \\ 2(3) - 1(1) \end{pmatrix} = \begin{pmatrix} 5 \\ -5 \\ 5 \end{pmatrix}.

(c) a=4+1+1=6|\mathbf{a}| = \sqrt{4+1+1} = \sqrt{6}. b=1+9+4=14|\mathbf{b}| = \sqrt{1+9+4} = \sqrt{14}. cosθ=LB3RB◆◆LB614RB=LB3RB◆◆LB84RB=LB3RB◆◆LB221RB=LB21RB◆◆LB14RB\cos\theta = \frac◆LB◆3◆RB◆◆LB◆\sqrt{6}\sqrt{14}◆RB◆ = \frac◆LB◆3◆RB◆◆LB◆\sqrt{84}◆RB◆ = \frac◆LB◆3◆RB◆◆LB◆2\sqrt{21}◆RB◆ = \frac◆LB◆\sqrt{21}◆RB◆◆LB◆14◆RB◆. θ=arccos(LB21RB◆◆LB14RB)49.1\theta = \arccos\left(\frac◆LB◆\sqrt{21}◆RB◆◆LB◆14◆RB◆\right) \approx 49.1^\circ.

(d) a(a×b)=2(5)+1(5)+(1)(5)=1055=0\mathbf{a} \cdot (\mathbf{a} \times \mathbf{b}) = 2(5) + 1(-5) + (-1)(5) = 10 - 5 - 5 = 0 \checkmark. b(a×b)=1(5)+3(5)+2(5)=515+10=0\mathbf{b} \cdot (\mathbf{a} \times \mathbf{b}) = 1(5) + 3(-5) + 2(5) = 5 - 15 + 10 = 0 \checkmark.

UT-2: Equation of a Plane

Question: A plane passes through points A(1,0,2)A(1, 0, 2), B(3,1,1)B(3, 1, -1), and C(0,2,1)C(0, 2, 1). (a) Find the normal vector to the plane. (b) Find the Cartesian equation of the plane. (c) Find the distance from the origin to the plane. (d) Determine whether the point D(1,1,1)D(1, 1, 1) lies on the plane.

Solution:

(a) AB=(213)\overrightarrow{AB} = \begin{pmatrix} 2 \\ 1 \\ -3 \end{pmatrix}, AC=(121)\overrightarrow{AC} = \begin{pmatrix} -1 \\ 2 \\ -1 \end{pmatrix}. n=AB×AC=(1(1)(3)(2)(3)(1)2(1)2(2)1(1))=(555)\mathbf{n} = \overrightarrow{AB} \times \overrightarrow{AC} = \begin{pmatrix} 1(-1) - (-3)(2) \\ (-3)(-1) - 2(-1) \\ 2(2) - 1(-1) \end{pmatrix} = \begin{pmatrix} 5 \\ 5 \\ 5 \end{pmatrix}.

(b) Using A(1,0,2)A(1,0,2): 5(x1)+5(y0)+5(z2)=05(x-1) + 5(y-0) + 5(z-2) = 0. Simplifying: x+y+z=3x + y + z = 3.

(c) Distance =LB0+0+03RB◆◆LB1+1+1RB=LB3RB◆◆LB3RB=3= \frac◆LB◆|0 + 0 + 0 - 3|◆RB◆◆LB◆\sqrt{1+1+1}◆RB◆ = \frac◆LB◆3◆RB◆◆LB◆\sqrt{3}◆RB◆ = \sqrt{3}.

(d) 1+1+1=31 + 1 + 1 = 3 \checkmark. DD lies on the plane.

UT-3: Volume of a Parallelepiped

Question: a=(301)\mathbf{a} = \begin{pmatrix} 3 \\ 0 \\ -1 \end{pmatrix}, b=(121)\mathbf{b} = \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix}, c=(014)\mathbf{c} = \begin{pmatrix} 0 \\ -1 \\ 4 \end{pmatrix}. (a) Calculate the scalar triple product a(b×c)\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c}). (b) What does the sign tell you? (c) Calculate the volume of the parallelepiped formed by a\mathbf{a}, b\mathbf{b}, c\mathbf{c}. (d) Calculate the area of the parallelogram formed by a\mathbf{a} and b\mathbf{b}.

Solution:

(a) b×c=(2(4)1(1)1(0)1(4)1(1)2(0))=(941)\mathbf{b} \times \mathbf{c} = \begin{pmatrix} 2(4) - 1(-1) \\ 1(0) - 1(4) \\ 1(-1) - 2(0) \end{pmatrix} = \begin{pmatrix} 9 \\ -4 \\ -1 \end{pmatrix}. a(b×c)=3(9)+0(4)+(1)(1)=27+0+1=28\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c}) = 3(9) + 0(-4) + (-1)(-1) = 27 + 0 + 1 = 28.

(b) The positive sign indicates that a\mathbf{a}, b\mathbf{b}, c\mathbf{c} form a right-handed set (in that order).

(c) Volume =a(b×c)=28= |\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c})| = 28 cubic units.

(d) Area =a×b= |\mathbf{a} \times \mathbf{b}|. a×b=(0(1)(1)(2)(1)(1)3(1)3(2)0(1))=(246)\mathbf{a} \times \mathbf{b} = \begin{pmatrix} 0(-1) - (-1)(2) \\ (-1)(1) - 3(1) \\ 3(2) - 0(1) \end{pmatrix} = \begin{pmatrix} 2 \\ -4 \\ 6 \end{pmatrix}. a×b=4+16+36=56=214|\mathbf{a} \times \mathbf{b}| = \sqrt{4 + 16 + 36} = \sqrt{56} = 2\sqrt{14}.


Integration Tests

IT-1: Lines and Planes Combined (with Matrices)

Question: (a) Find the vector equation of the line through P(1,2,1)P(1, 2, -1) with direction d=(213)\mathbf{d} = \begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix}. (b) Find the point of intersection of the line r=(101)+t(211)\mathbf{r} = \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} + t\begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} with the plane 2xy+z=52x - y + z = 5. (c) Find the shortest distance from the point Q(3,1,2)Q(3, 1, -2) to the plane x+y+2z=4x + y + 2z = 4. (d) Find the angle between the planes x+2y+2z=5x + 2y + 2z = 5 and 2xy+2z=12x - y + 2z = 1.

Solution:

(a) r=(121)+t(213)\mathbf{r} = \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix} + t\begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix}, i.e., x=1+2tx = 1+2t, y=2ty = 2-t, z=1+3tz = -1+3t.

(b) Substituting into the plane: 2(1+2t)(0+t)+(1t)=52(1+2t) - (0+t) + (1-t) = 5. 2+4tt+1t=52 + 4t - t + 1 - t = 5. 2t=22t = 2, t=1t = 1. Point: (310)\begin{pmatrix} 3 \\ 1 \\ 0 \end{pmatrix}.

(c) Distance =LB3+1+2(2)4RB◆◆LB1+1+4RB=LB3+144RB◆◆LB6RB=LB4RB◆◆LB6RB=LB26RB◆◆LB3RB= \frac◆LB◆|3 + 1 + 2(-2) - 4|◆RB◆◆LB◆\sqrt{1+1+4}◆RB◆ = \frac◆LB◆|3 + 1 - 4 - 4|◆RB◆◆LB◆\sqrt{6}◆RB◆ = \frac◆LB◆4◆RB◆◆LB◆\sqrt{6}◆RB◆ = \frac◆LB◆2\sqrt{6}◆RB◆◆LB◆3◆RB◆.

(d) Normal to plane 1: n1=(122)\mathbf{n}_1 = \begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix}. Normal to plane 2: n2=(212)\mathbf{n}_2 = \begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix}. cosθ=LBn1n2RB◆◆LBn1n2RB=LB22+4RB◆◆LB99RB=49\cos\theta = \frac◆LB◆\mathbf{n}_1 \cdot \mathbf{n}_2◆RB◆◆LB◆|\mathbf{n}_1||\mathbf{n}_2|◆RB◆ = \frac◆LB◆2-2+4◆RB◆◆LB◆\sqrt{9}\sqrt{9}◆RB◆ = \frac{4}{9}. θ=arccos(4/9)63.6\theta = \arccos(4/9) \approx 63.6^\circ.

IT-2: Vectors and Geometry (with Polar Coordinates)

Question: Points AA, BB, CC have position vectors a=(100)\mathbf{a} = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix}, b=(231)\mathbf{b} = \begin{pmatrix} 2 \\ 3 \\ 1 \end{pmatrix}, c=(014)\mathbf{c} = \begin{pmatrix} 0 \\ 1 \\ 4 \end{pmatrix}. (a) Calculate the area of triangle ABCABC. (b) Find the Cartesian equation of the plane through AA, BB, CC. (c) Find the acute angle between AB\overrightarrow{AB} and AC\overrightarrow{AC}. (d) Find the volume of the tetrahedron OABCOABC where OO is the origin.

Solution:

(a) AB=(131)\overrightarrow{AB} = \begin{pmatrix} 1 \\ 3 \\ 1 \end{pmatrix}, AC=(114)\overrightarrow{AC} = \begin{pmatrix} -1 \\ 1 \\ 4 \end{pmatrix}. AB×AC=(1214+11+3)=(1154)\overrightarrow{AB} \times \overrightarrow{AC} = \begin{pmatrix} 12 - 1 \\ 4 + 1 \\ 1 + 3 \end{pmatrix} = \begin{pmatrix} 11 \\ 5 \\ 4 \end{pmatrix}. Area =12121+25+16=12162=LB92RB◆◆LB2RB= \frac{1}{2}\sqrt{121 + 25 + 16} = \frac{1}{2}\sqrt{162} = \frac◆LB◆9\sqrt{2}◆RB◆◆LB◆2◆RB◆.

(b) Normal n=AB×AC=(1154)\mathbf{n} = \overrightarrow{AB} \times \overrightarrow{AC} = \begin{pmatrix} 11 \\ 5 \\ 4 \end{pmatrix}. Plane through A(1,0,0)A(1,0,0): 11(x1)+5y+4z=011(x-1) + 5y + 4z = 0, i.e., 11x+5y+4z=1111x + 5y + 4z = 11.

(c) AB=1+9+1=11|\overrightarrow{AB}| = \sqrt{1+9+1} = \sqrt{11}. AC=1+1+16=18|\overrightarrow{AC}| = \sqrt{1+1+16} = \sqrt{18}. cosθ=LBABACRB◆◆LBABACRB=LB1+3+4RB◆◆LB1118RB=LB6RB◆◆LB198RB=LB6RB◆◆LB322RB=LB2RB◆◆LB22RB\cos\theta = \frac◆LB◆\overrightarrow{AB} \cdot \overrightarrow{AC}◆RB◆◆LB◆|\overrightarrow{AB}||\overrightarrow{AC}|◆RB◆ = \frac◆LB◆-1+3+4◆RB◆◆LB◆\sqrt{11}\sqrt{18}◆RB◆ = \frac◆LB◆6◆RB◆◆LB◆\sqrt{198}◆RB◆ = \frac◆LB◆6◆RB◆◆LB◆3\sqrt{22}◆RB◆ = \frac◆LB◆2◆RB◆◆LB◆\sqrt{22}◆RB◆. θ=arccos(LB2RB◆◆LB22RB)64.8\theta = \arccos\left(\frac◆LB◆2◆RB◆◆LB◆\sqrt{22}◆RB◆\right) \approx 64.8^\circ.

(d) Volume =16a(b×c)= \frac{1}{6}|\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c})|. b×c=(1214003)=(1143)\mathbf{b} \times \mathbf{c} = \begin{pmatrix} 12-1 \\ 4-0 \\ 0-3 \end{pmatrix} = \begin{pmatrix} 11 \\ 4 \\ -3 \end{pmatrix}. a(b×c)=1(11)+0(4)+0(3)=11\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c}) = 1(11) + 0(4) + 0(-3) = 11. Volume =116= \frac{11}{6} cubic units.

IT-3: Applications in Mechanics (with Differential Equations)

Question: A force F=(3t21)\mathbf{F} = \begin{pmatrix} 3t \\ 2 \\ -1 \end{pmatrix} N acts on a particle of mass 2 kg. At t=0t = 0, the particle is at (010)\begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} m with velocity (102)\begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} m/s. (a) Find the acceleration. (b) Find the velocity as a function of time. (c) Find the position as a function of time. (d) Calculate the kinetic energy at t=2t = 2.

Solution:

(a) a=LBFRB◆◆LBmRB=(1.5t10.5)\mathbf{a} = \frac◆LB◆\mathbf{F}◆RB◆◆LB◆m◆RB◆ = \begin{pmatrix} 1.5t \\ 1 \\ -0.5 \end{pmatrix} m/s2^2.

(b) v=(102)+0t(1.5s10.5s)ds=(102)+(0.75t2t0.25t2)=(1+0.75t2t20.25t2)\mathbf{v} = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} + \int_0^t \begin{pmatrix} 1.5s \\ 1 \\ -0.5s \end{pmatrix}\,ds = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} + \begin{pmatrix} 0.75t^2 \\ t \\ -0.25t^2 \end{pmatrix} = \begin{pmatrix} 1+0.75t^2 \\ t \\ 2-0.25t^2 \end{pmatrix}.

(c) r=(010)+0t(1+0.75s2s20.25s2)ds=(010)+(t+0.25t30.5t22tt3/12)\mathbf{r} = \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} + \int_0^t \begin{pmatrix} 1+0.75s^2 \\ s \\ 2-0.25s^2 \end{pmatrix}\,ds = \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} + \begin{pmatrix} t + 0.25t^3 \\ 0.5t^2 \\ 2t - t^3/12 \end{pmatrix}.

(d) At t=2t = 2: v=(1+3221)=(421)\mathbf{v} = \begin{pmatrix} 1+3 \\ 2 \\ 2-1 \end{pmatrix} = \begin{pmatrix} 4 \\ 2 \\ 1 \end{pmatrix}. KE=12×2×(16+4+1)=21\text{KE} = \frac{1}{2} \times 2 \times (16+4+1) = 21 J.