Unit 6 explained answers · unfinished learning resource. Attempt the Unit 6 tasks first. Accept equivalent correct bases, signs, normalizations and exact solution routes. Distinguish a scalar coefficient from a fitted vector and use residual b−Ax consistently. Give valid later method credit after an arithmetic error without penalizing the same propagated error twice, but identify conclusions no longer supported. Quiz and project rubrics are separate, unpiloted point groups, not a course grade or certification. No numerical score establishes measured learning or real-world truth.
Readiness
R1. The two original columns (1,1,0),(1,0,1) are independent: a zero combination forces both coefficients to zero from the last two rows. They are a column-space basis and rank is 2. To produce (2,1,0), the last rows force x₁=1,x₂=0, but the first row would then give 1 rather than 2. Thus b is outside the image; the exact system is inconsistent.
R2. Twice the first equation minus the second gives 3x₁=4, so x₁=4/3 and x₂=1/3. Verification: 8/3+1/3=3 and 4/3+2/3=2. The coefficient matrix has determinant 3, so this solution is unique.
R3. The kernel is span{(−1,1)}. Both output coordinates state x₁+x₂=4, so all solutions are (4−t,t), t real. Either one of the two equal output coordinates determines that sum; the repeated equation does not separate the two inputs.
R4. A basis is an independent spanning list, so the two stated vectors form a basis of the declared subspace, of dimension 2. They do not span R³, whose dimension is 3. Nonzero vectors alone would not guarantee independence.
Guided tasks
G1. u·v=2−2+0=0, ||u||=3, ||v||=sqrt(5). Their sum is (3,1,2), with norm sqrt(14). Thus ||u+v||²=14=9+5. They are nonzero orthogonal vectors and therefore independent; alternatively dot a proposed zero combination with each vector to force its coefficient to vanish.
G2. The raw dot products are 8 and 18. Divide by squared norms 4 and 9 to get coefficients 2 and 2. Indeed 2(2,0)+2(0,3)=(4,6). Raw dot products directly give coordinates only for an orthonormal basis, not this merely orthogonal one.
G3. b·u=3 and u·u=2, so p=(3/2,3/2,0). The residual is (1/2,−1/2,0), its squared norm is 1/2, and r·u=0. The larger plane contains an additional direction and has a different projection with squared residual 1/3. A nearest point depends on the subspace allowed; the smaller line cannot achieve a lower minimum than a plane containing it.
G4. u₁=(1,0,1), and u₂=(1,1,0)−(1/2)(1,0,1)=(1/2,1,−1/2). Normalize to q₁=(1,0,1)/sqrt(2), q₂=(1,2,−1)/sqrt(6). Their dot product is zero and their squared norms are 1. Since a₃=a₁+a₂, subtracting its components in these two directions leaves zero. Skip that remainder; zero has no normalized version. The span is two-dimensional, not three-dimensional just because three vectors were supplied.
G5. AᵀA=[2 1;1 2] and Aᵀb=(1,1), so x̂=(1/3,1/3). The fitted vector is (2/3,1/3,1/3); r=(−2/3,2/3,2/3), with squared norm 4/3. Dotting r with columns (1,1,0),(1,0,1) gives zero in both cases. Since the columns are independent, these coefficients are unique.
G6. Each fitted vector is (s,s), where s=x₁+x₂. Minimize (1−s)²+(3−s)²=2(s−2)²+2. Thus p=(2,2), r=(−1,1) and minimum squared residual is 2. All coefficient vectors are (2−t,t), t real. AᵀA=[2 2;2 2] is singular because the original columns coincide; it has no inverse. The normal equations still consistently require x₁+x₂=2, and the closest fitted vector is unique.
G7. The Q columns have squared norms 1 and dot product zero. In QR, column 1 is sqrt(2)q₁=(1,1,0). Column 2 is q₁/sqrt(2)+sqrt(3/2)q₂=(1/2,1/2,0)+(1/2,−1/2,1)=(1,0,1). Hence A=QR. For b=(0,1,1), Qᵀb=(1/sqrt(2),1/sqrt(6)). The second triangular equation gives x₂=1/3, then the first gives x₁=1/3, agreeing with G5. QQᵀ has image the two-dimensional column space in R³ and kills its perpendicular direction (1,−1,−1), so it is not I₃.
G8. A_ε(1,1)=(2,ε) and A_ε(0,2)=(2,2ε). At ε=1/1000 the output change is (0,1/1000), norm 1/1000, while the input change is (−1,1), norm sqrt(2). The normal matrix is [1 1;1 1+ε²], determinant ε²=1/1000000. If arithmetic rounds 1+ε² to 1, that formed matrix becomes singular despite exact full rank of A_ε. This is conditional on precision, not a report of an actual machine test. QR can avoid this particular normal-matrix formation but cannot remove the input sensitivity already demonstrated by the exact data pairs.
Independent practice
I1. u·v=3+12+12=27, ||u||=3 and ||v||=9, so |u·v|=27=||u|| ||v||. Equality is explained by v=3u. For w, u·w=2−2=0, ||w||=sqrt(5); the bound is strict, 0<3sqrt(5). Both u and w are nonzero and orthogonal, hence independent.
I2. b·u=2−2+0=0 while ||u||²=9. Thus p=0 and r=b=(1,2,0), with norm sqrt(5). The input is perpendicular to the entire allowed line; its nearest point on that line is the origin, not itself.
I3. b·n=6 and n·n=3, so the removed component is 2n=(2,2,2). Hence p=(−1,0,1), whose coordinate sum is zero. For any w in W, r·w=2(w₁+w₂+w₃)=0, so the residual is perpendicular to W. The nearest-vector theorem applies, and the distance is ||r||=2sqrt(3).
I4. u₁=(1,1), u₂=(2,0)−1(1,1)=(1,−1). Thus q₁=(1,1)/sqrt(2), q₂=(1,−1)/sqrt(2). The appended vector (3,1) lies in their span, indeed (3,1)=(1,1)+(2,0). Its remainder is zero, whose norm is zero; division is invalid. The existing pair already spans R².
I5. AᵀA=[2 1;1 2], Aᵀb=(3,4), giving x̂=(2/3,5/3). Then p=(2/3,5/3,7/3), r=(1/3,1/3,−1/3), and ||r||²=1/3. Aᵀr=(r₁+r₃,r₂+r₃)=(0,0). The original columns are independent, or det(AᵀA)=3≠0, so coefficients are unique. The fitted vector is uniquely nearest by orthogonal projection.
I6. Use A=[1 0;1 1;1 2] and b=(1,2,2). The normal matrix is [3 3;3 5] and right side (5,6), giving c=7/6,d=1/2. Fitted values are (7/6,5/3,13/6), with residuals (−1/6,1/3,−1/6) and squared sum 1/6. Their sum is zero, and their t-weighted sum is 0+1/3−2/6=0, verifying Aᵀr=0. The criterion assigns equal cost to squared vertical discrepancies in the supplied y units; it does not establish the true functional form, error mechanism, causal dependence or predictive reliability.
I7. The image is span{u}, u=(1,2,0). Since b·u=1 and u·u=5, p=(1/5,2/5,0). The fitted scalar multiple requires x₁+2x₂=1/5, so all minimizers are (1/5−2t,t), t real. The residual is (4/5,−2/5,3), perpendicular to u because 4/5−4/5=0. Its squared norm is 16/25+4/25+9=49/5. Every fitted third coordinate is zero, so the third observed coordinate 3 can never be matched by this design matrix. That algebra does not explain why the observation or model took this form.
I8. Write b=p+r. Then b·r=p·r+r·r=||r||² because p is in the subspace and r is perpendicular to it. For b=(1,1), projection onto the horizontal axis gives p=(1,0), r=(0,1); p·r=0 but b·r=1. In fact b and r are orthogonal only when r=0.
Homework
H1. Expand ||b−tu||²=||b||²−2t(b·u)+t²||u||² and complete the square as in B1. Since ||u||²>0 for u≠0, the unique minimum occurs at t=(b·u)/||u||². If u is replaced by cu with c≠0, the projection becomes ((c b·u)/(c²||u||²))cu, which simplifies to the same vector. The coefficient changes by 1/c. For u=0 the formula divides by zero; projection onto {0} is instead defined directly as zero.
H2. Pᵀ=(QQᵀ)ᵀ=QQᵀ=P. Also P²=Q(QᵀQ)Qᵀ=QQᵀ=P. Finally Qᵀ(I−P)b=Qᵀb−(QᵀQ)Qᵀb=0, proving residual orthogonality to all columns and their span. For B=[1 1;0 0], multiplication gives B²=B, but B(0,1)=(1,0). Its image is the horizontal axis, whose nearest point to (0,1) is zero. Distance to B(0,1) is sqrt(2), whereas distance to zero is 1. The residual (−1,1) is not perpendicular to the horizontal axis. Idempotence without the orthogonal structure does not supply nearestness.
H3. If Az=0, then AᵀAz=0. Conversely, AᵀAz=0 gives 0=zᵀAᵀAz=||Az||², so Az=0. Thus AᵀA is invertible exactly when ker A={0}, equivalently full column rank. Projection onto the finite-dimensional image always supplies a unique closest p; by membership in the image it has at least one coefficient preimage. Every minimizer maps to p, and their complete set is one preimage plus ker A. This is a singleton exactly when the kernel is zero. In the deficient case the coefficients vary while p does not.
H4. If one residual e is copied as another equal-weight coordinate, its contribution changes from e² to 2e²; the fit can move to reduce that more heavily weighted discrepancy. Multiplying a measurement equation and its reported value by c scales that residual contribution to c²e². Thus an unweighted objective is tied to the stated units and list of coordinates. Deliberate weighting may be justified by an explicitly chosen cost or error model, but copying data does not establish independent evidence or such a justification. Normal equations certify minimization of that chosen objective, not which instrument, person or assumption caused disagreement.
Quiz key and local rubric: 30 points
Q1 (8). b·u=4 and u·u=9, so p=(4/9,8/9,8/9). Then r=(14/9,1/9,−8/9), and r·u=(14+2−16)/9=0. The squared distance is (196+1+64)/81=29/9. For any z in the line, ||b−z||²=||r||²+||p−z||², uniquely minimized when z=p.
Rubric: coefficient/projection 2; residual 1; orthogonality check 1; squared distance 2; nearestness and uniqueness argument 2. Total 8.
Q2 (8). u₁=(1,0,1), u₂=(0,1,1)−(1/2)u₁=(−1/2,1,1/2). Thus Q has columns (1,0,1)/sqrt(2), (−1,2,1)/sqrt(6). Their dot product is zero and squared norms are 1. R=[sqrt(2) 1/sqrt(2);0 sqrt(3/2)]. Its first reconstructed column is a₁. Its second is (1/2,0,1/2)+(−1/2,1,1/2)=(0,1,1)=a₂. This verifies A=QR.
Rubric: orthogonal remainder 2; normalized columns 2; orthonormality check 1; correct R 1; both reconstructed columns 2. Total 8.
Q3 (8). A=[1 −1;1 0;1 1], b=(0,1,3). Then AᵀA=diag(3,2), Aᵀb=(4,3), so c=4/3,d=3/2. Fitted values are (−1/6,4/3,17/6); residuals (1/6,−1/3,1/6) have squared sum 1/6. Their sum and t-weighted sum both vanish, so Aᵀr=0. The two columns are independent, equivalently the normal matrix has determinant 6, so coefficients are unique.
Rubric: design/normal equations 2; coefficients 1; fitted values and residuals 2 (one each); squared residual 1; orthogonality 1; uniqueness justification 1. Total 8.
Q4 (6). Every fit has form (x₁+x₂,0), so the objective is (3−x₁−x₂)²+4. Its minimum is 4, achieved exactly when x₁+x₂=3. All minimizers are (3−t,t), with fitted vector (3,0) and residual (0,2). AᵀA=[1 1;1 1] is singular, but the image is a line with a unique nearest point. Only the coefficient representation is nonunique.
Rubric: complete coefficient family 2; fitted vector and residual 1; minimum squared residual 1; rank/unique-fit versus nonunique-coefficient explanation 2. Total 6.
Project key and local rubric: 40 points
P1 (10). Set A=[1 0;0 1;1 1], x=(r,b), y=(13,12,26). The rows predict red, blue and their sum. Exact first and second equations would force the third to be 25, not 26, so no exact solution exists. The selected unrestricted real objective is (r−13)²+(b−12)²+(r+b−26)². Its normal equations are [2 1;1 2]x=(39,38), giving r=40/3, b=37/3. This is a declared approximation criterion, not an integer kit-count reconstruction.
Rubric: design matrix/row meanings 2; exact inconsistency 2; domain/objective disclosure 2; derived normal equations 2; solved totals 2. Total 10.
P2 (10). The fitted records are (40/3,37/3,77/3). Use e for the residual to avoid confusing it with the red-total variable r: e=(−1/3,−1/3,1/3). Thus ||e||²=1/3 and Aᵀe=(e₁+e₃,e₂+e₃)=(0,0). Projection gives unique fitted records; the two original columns are independent and det(AᵀA)=3, so their coefficients are unique too. These are optimal reconciled totals for the chosen objective. The calculation does not establish true counts, equal error reliability, the faulty record, or the failure of a particular physical assumption.
Rubric: fitted vector and residual 3 (1+2); squared residual 1; normal orthogonality check 2; both uniqueness claims with reasons 2; correct model/causal limitation 2. Total 10.
P3 (10). The copied design is [1 0;0 1;1 1;1 1], giving normal matrix [3 2;2 3] and right side (65,64). The new fit is (67/5,62/5), rather than (40/3,37/3). Each reconciled total increases by 1/15. The four fitted records are (67/5,62/5,129/5,129/5) and residuals are (−2/5,−2/5,1/5,1/5). The new objective is
(r−13)²+(b−12)²+2(r+b−26)².
It doubles the sum record's weight, so the totals move closer to its demand of 26. A copied reading adds no independent information. To prefer this weighting, one needs a reason for counting that discrepancy twice, such as an explicitly chosen cost, not the existence of a duplicate. The new minimum is 2/5 over four terms; it is not directly an improvement/worsening comparison with the old three-term minimum because the objectives differ.
Rubric: copied design/normal equations 2; new solution and comparison 3 (2+1); weighted objective 2; information/weighting justification and no invalid cross-objective claim 3. Total 10.
P4 (10). Substituting r=α+γ,b=β+γ gives B=[1 0 1;0 1 1;1 1 2]. Its third column is the sum of its first two, and ker B=span{(−1,−1,1)}. Its image equals the original image because its first two columns are the original ones and the third adds no direction. Therefore the same unique fitted records and minimum 1/3 apply. To produce them, α+γ=40/3 and β+γ=37/3, so all minimizing triples are
(α,β,γ)=(40/3−t,37/3−t,t), t real.
These are complete by setting t=γ. Requiring all three entries nonnegative gives t≥0, t≤40/3 and t≤37/3, hence 0≤t≤37/3. This interval is nonempty, so the same unrestricted minimum remains attainable under this particular restriction. It does not imply that arbitrary nonnegative least-squares constraints always preserve the unrestricted minimum.
Rubric: new design and kernel 3 (2+1); same-image/fitted-vector/objective reasoning 2; complete minimizing family 2; exact nonnegative interval 2; attainment and qualified interpretation 1. Total 10.
Delayed follow-through
D1. Use A=[1 0;0 1;1 −1], b=(4,1,1). Exact first two records would imply third record 3, not 1. The normal matrix is [2 −1;−1 2] and right side (5,0), giving x̂=(10/3,5/3). Fitted records are (10/3,5/3,5/3), residual e=(2/3,−2/3,−2/3) and squared residual 4/3. Aᵀe=(e₁+e₃,e₂−e₃)=(0,0). Full column rank gives unique coefficients. The fit establishes the least-squares answer under this objective, not whether a sensor, transcription, model assumption or another cause produced the conflict.
D2. A personal correction should identify and repair the unsupported step; a counterexample can help when applicable. For the supplied claim, A=[1 1;1 1], b=(1,3) has singular AᵀA but unique closest fitted vector (2,2). Its minimizing coefficients are (2−t,t), t real. A singular normal matrix prevents the inverse formula and unique coefficients, not existence or uniqueness of the projected output in this unrestricted finite-dimensional setting.