Split a vector into parallel and perpendicular parts
Derive orthogonal projection and explain why it gives the nearest point.
Loading your saved responses…
Try
Project b=(3,1) onto the line spanned by u=(1,1). The closest point is p=(2,2), with residual r=(1,−1). Their dot product u·r is zero, so the error points perpendicular to the allowed line.
Predict
Predict why the numerator alone cannot be the projection coefficient. The dot product x·y is Σxᵢyᵢ, and ||x||=√(x·x). If u is not a unit vector, its squared norm must divide the coefficient. Orthogonal means dot product zero; orthonormal means pairwise orthogonal with each norm one.
Experiment
Compute b·u=4 and u·u=2, giving coefficient 2. Compare candidate points (1,1),(2,2),(3,3): their squared distances from b are 4,2,4. Then verify the residual dot product, which provides a general nearest-point certificate rather than a three-point search.
Orthogonal projection drawn with equal coordinate scales. b=(3,1), p=(2,2) and residual b−p=(1,−1). The dashed residual segment is perpendicular to the line y=x.
Understand
Worked derivation: a point on the line is p=tu. Requiring (b−tu)·u=0 yields t=(b·u)/(u·u), valid for u≠0. For any other point q on the line, b−q=(b−p)+(p−q), a sum of orthogonal vectors. Squaring norms gives ||b−q||²=||b−p||²+||p−q||², proving p uniquely minimizes distance.
The same argument works for a subspace when the residual is orthogonal to every direction in that subspace. An orthonormal basis qᵢ gives p=Σ(b·qᵢ)qᵢ. The zero subspace has projection zero; it requires no invalid division by a zero direction.
Invalid shortcut: subtract (b·u)u for any u. That formula assumes ||u||=1.
Apply
Separate the projection vector, its scalar coefficient and the residual. Check orthogonality and reconstruction b=p+r. For exact irrational norms, keep a symbolic expression in a written response; the rational checker does not accept square-root expressions.
Continue
Depth: the Cauchy–Schwarz inequality |x·y|≤||x||||y|| follows from nonnegative squared norms and supports angle definitions. General inner products can weight coordinates differently; this lesson uses the ordinary Euclidean dot product.
Apply · explain · revise
Practice and reasoning
Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.
Find the dot product of (2,−1,3) and (4,5,0).
Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.
Project b=(3,1) onto span{u=(1,1)}. Enter the first coordinate of the projection.
Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.
For nonzero u, the residual b−projᵤb is:
Projection onto the subspace {0} is:
Derive p=((b·u)/(u·u))u for nonzero u by requiring b−p orthogonal to u.
Structure your argument and preserve revisions
These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.
Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.
Prove that the orthogonal projection p onto a subspace W minimizes distance from b, assuming b−p is orthogonal to every vector in W.
Structure your argument and preserve revisions
These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.
Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.
Reflect and continue
Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.