Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 14 of 16

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.

Split a vector into parallel and perpendicular parts: visual explanationA point b lies below the diagonal line y=x. Its nearest point p is on that line, joined to b by a perpendicular dashed segment.p=(2,2)b=(3,1)span(1,1)0
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:

Your response

Projection onto the subspace {0} is:

Your response

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.