Reuse an inaccurate scalar factor
Solve \(5x=10\) using the approximate factor 6 for the initial solution and every correction. Derive the error after \(k\) corrections and count how many bring absolute error below 0.002.
Worked solution
The starting value \(10/6\) leaves \(e_0=1/3\). The correction adds \(5e_k/6\), so \(e_{k+1}=e_k/6\) and \(e_k=1/(3\cdot6^k)\).
Two corrections give \(1/108\approx0.00926\). Three give \(1/648\approx0.00154\), below the threshold. Residuals must use the original factor 5 because the initial value solves the approximate equation exactly.
Try this calculation. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.
Scale the units
For \(A=\operatorname{diag}(1,1000)\), \(b=(1,1000)^T\), \(x=(0.99,1)^T\), compute the infinity norm of the residual and the maximum componentwise backward error. Repeat when the first row and its load are multiplied by 100.
Worked solution
Initially \(r=(0.01,0)^T\), hence its infinity norm is 0.01. The maximum row ratio is
Rescaling changes the first residual to 1 and its denominator to 199. The maximum absolute residual increases hundredfold, whereas the backward error remains \(1/199\). The two systems describe exactly the same solution.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.
Prescribe a weighted displacement
Minimise \((u_1^2+4u_2^2)/2\) subject to \(u_1+2u_2=3\). Using \(Ku+B^T\lambda=0\), determine the reduced stiffness equation, the multiplier and the stored energy. Compare that energy with the admissible state \((3,0)\).
Worked solution
With \(K=\operatorname{diag}(1,4)\), \(B=(1,2)\), the scalar compliance is \(1+4/4=2\). The reduced system is \(2\lambda=-3\). Back-substitution gives \(u=(1.5,0.75)^T\), satisfying the prescribed value.
The energy is
The competing state has energy 4.5. Positive definiteness on the constraint line guarantees that the stationary state is its unique minimum.
Explore the related calculation with adjustable inputs. Inspect the effective couplings obtained by eliminating an interior variable. The same substitution generates the Schur operator in the stated constrained system.
Reconstruct a displacement measured almost twice in the same direction
Two gauges measure b = Ax with A having rows (1, 0) and (1, 0.01). With b = (1.000, 1.010) find x. Each reading has independent standard deviation 0.001. Estimate the standard deviation of each displacement and their covariance. Evaluate a proposed third gauge measuring only the second displacement.
Worked solution
The first equation gives x₁ = b₁ and differencing gives x₂ = 100(b₂−b₁) = 1. The solution is (1, 1). A residual of zero follows automatically for an invertible square system, even though the second displacement is obtained by subtracting two close readings.
The covariance follows by propagating the independent reading errors. Var(x₁) = 10⁻⁶ and Var(x₂) = 10⁴(2 × 10⁻⁶) = 0.020, so the standard deviations are 0.001 and 0.1414. The covariance is −100 × 10⁻⁶ = −0.0001. An upward perturbation of the first gauge increases x₁ but decreases the reconstructed x₂.
A third independent reading of x₂ with the same standard deviation carries much more precision along the weak direction. Fuse the old x₂ estimate with this reading using inverse variance: the new variance is 1/(1/0.020 + 1/10⁻⁶) ≈ 9.9995 × 10⁻⁷. In the joint fit solve the overdetermined system by QR. Repeating the original two directions could improve repeatability, but would retain the poor geometry.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.