A linear combination is just scaling ingredients and adding them. Everything in this test keeps asking: can these ingredients build a target, are any ingredients redundant, and how many independent directions remain?
To test whether \(b\) is made from columns \(v_1,\dots,v_k\), solve \(c_1v_1+\cdots+c_kv_k=b\). Put the vectors as columns: \([v_1\;\cdots\;v_k]c=b\).
Row operations preserve solutions of a linear system. When testing independence, row-reduce the matrix whose columns are the vectors; a pivot in every vector-column means independent. A missing pivot means a free coefficient and dependence.
Is \((5,1)\) in the span of \((1,1)\) and \((2,-1)\)? Set \(a+2b=5\), \(a-b=1\). Subtract: \(3b=4\), so \(b=4/3\), \(a=7/3\). Yes: \((5,1)=\tfrac73(1,1)+\tfrac43(2,-1)\).
Trap: Don’t set up vectors as rows if coefficients represent the combination; make each listed vector a column.
A vector is a displacement. Dot product measures alignment; cross product makes a perpendicular vector whose length is area.
\(u\cdot v=\sum u_iv_i\), \(\|u\|=\sqrt{u\cdot u}\). Orthogonal iff dot product is zero. Unit vector in direction \(u\): \(u/\|u\|\).
Let \(u=(2,1,0)\), \(a=(1,1,0)\). Then \(u\cdot a=3\), \(a\cdot a=2\), so \(\operatorname{proj}_a u=\frac32(1,1,0)=(3/2,3/2,0)\). Orthogonal part: \(u-\operatorname{proj}_a u=(1/2,-1/2,0)\).
Denominator is \(a\cdot a=\|a\|^2\), not \(\|a\|\).
\((1,2,0)\times(0,1,1)=(2,-1,1)\); check by dotting with both inputs = 0. Its length is parallelogram area. A line: \(r=p+tv\). A plane: \(n\cdot(r-p)=0\); in \(ax+by+cz=d\), normal is \((a,b,c)\).
Swap cross-product order and the sign flips: \(u\times v=-(v\times u)\).
For \(u=(1,0,1),v=(1,2,-1)\), \(u\cdot v=0\), so orthogonal. \(\|u\|=\sqrt2\). Plane \(2x-y+3z=7\) has normal \((2,-1,3)\).
A vector space is a universe where adding allowed objects and scaling them never breaks the rules. A subspace is a smaller universe inside it that still contains zero and stays closed under those two operations.
\(W=\{(x,y,z):x+2y-z=0\}\). Zero is in \(W\). If \(u,v\) satisfy the equation, then \(a u+b v\) gives \(a(0)+b(0)=0\); closed. Thus subspace.
Line not through origin: zero fails. Vectors with all coordinates positive: multiplying by \(-1\) leaves set. Matrices with \(\det A=1\): not closed under scalar multiplication (\(0A\) has determinant 0). Degree-exactly-2 polynomials: zero is excluded.
\(N(A)=\{x:Ax=0\}\) is the nullspace and is a subspace of \(\mathbb R^n\). Why: \(A(au+bv)=aAv+bAu=0\). A nonhomogeneous solution set \(Ax=b\), \(b\ne0\), is generally an affine translate, not a subspace.
The span is the full set of outputs your chosen ingredients can build. Testing “does this target belong?” is a system-solving question.
Check whether \((1,2,3)\in\operatorname{span}\{(1,0,1),(0,1,1)\}\). Solve \(a(1,0,1)+b(0,1,1)=(1,2,3)\). Coordinates give \(a=1,b=2\); third coordinate checks \(a+b=3\). Yes, coefficients are \((1,2)\).
Put candidate vectors in columns of \(A\). To span \(\mathbb R^m\), every \(b\in\mathbb R^m\) must be reachable, equivalently \(Ax=b\) consistent for every \(b\), equivalently a pivot in every row. For square matrices: nonzero determinant is a shortcut.
Independent means no ingredient is redundant. Set a combination equal to zero: if the only recipe that makes zero is “use none,” the vectors are independent.
For \(v_1=(1,0,1),v_2=(0,1,1),v_3=(1,1,2)\), observe \(v_1+v_2-v_3=0\). Coefficients \((1,1,-1)\) are nontrivial, so dependent; also \(v_3=v_1+v_2\).
For three functions \(f,g,h\), form \(W(x)=\det\begin{bmatrix}f&g&h\\f'&g'&h'\\f''&g''&h''\end{bmatrix}\). To prove independence, find one point \(x_0\) where \(W(x_0)\ne0\). A zero at one point does not prove dependence; it only means this test didn’t certify independence.
Course-style example: \(f=1-2x^2,g=3+4x,h=7+2x\). At \(x=0\), columns are \((1,0,-4),(3,4,0),(7,2,0)\). Determinant \((-4)\det\begin{bmatrix}3&7\\4&2\end{bmatrix}=(-4)(6-28)=88\ne0\). Therefore independent.
A basis is a minimal complete set of directions: it spans the whole space and has no redundant vector. Once the basis is fixed, every vector has one unique coordinate recipe.
A set is a basis iff it is both independent and spanning. For exactly \(n\) vectors in an \(n\)-dimensional space, either property proves the other. Put vectors in columns: square matrix with nonzero determinant → basis for \(\mathbb R^n\).
Let \(b_1=(1,1),b_2=(1,-1)\). Write \((4,2)=c_1b_1+c_2b_2\): \(c_1+c_2=4\), \(c_1-c_2=2\). Hence \(c_1=3,c_2=1\), and coordinate vector is \([ (4,2)]_B=(3,1)\) in the stated order.
Coordinates are coefficients in the chosen ordered basis, not necessarily the vector’s usual components.
Dimension counts independent directions, not how many points or objects a space contains.
\(\dim\mathbb R^n=n\); \(\dim P_n=n+1\); \(\dim M_{m\times n}=mn\). Diagonal 3×3 matrices have dimension 3. Trace-zero 2×2 matrices have dimension 3.
Trace-zero matrices \(\begin{bmatrix}a&b\\c&d\end{bmatrix}\), with \(a+d=0\), have form \(\begin{bmatrix}a&b\\c&-a\end{bmatrix}=a\begin{bmatrix}1&0\\0&-1\end{bmatrix}+b\begin{bmatrix}0&1\\0&0\end{bmatrix}+c\begin{bmatrix}0&0\\1&0\end{bmatrix}\). The three displayed matrices are independent; dimension 3.
For \(\{1,x,x^2\}\), at zero the Wronskian matrix is \(\begin{bmatrix}1&0&0\\0&1&0\\0&0&2\end{bmatrix}\), determinant \(2\ne0\): independent.