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 15 of 24

Control elimination while tracking its backward error

Derive pivoted LU, explain growth and connect residuals with componentwise or normwise errors.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

For A=[[0.001,1],[1,1]], eliminating without pivoting uses multiplier 1000, making intermediate numbers much larger than the inputs. Swapping rows first uses multiplier 0.001. Both are exact algebraic routes to the same solution, but their rounding behavior can differ sharply. Partial pivoting chooses the largest available magnitude in the current column to avoid dividing by an unnecessarily tiny pivot.

Predict

Predict whether bounded multipliers prove every later number stays small. They do not. Elimination repeatedly subtracts scaled pivot rows, and entries of the remaining matrix can grow. Partial pivoting is highly effective in many problems but has worst-case growth examples. A realistic analysis includes growth and conditioning rather than declaring any pivoted solve automatically accurate to machine precision.

Experiment

Compare the first elimination update.

StrategyPivotMultiplierRemaining second diagonal entry
No exchange0.0011000−999
Exchange rows10.0010.999

Compute these values directly. Add a right-hand side of your choice and apply the same row operations to it; modifying A without modifying b is a different, incorrect system.

Understand

Pivoted elimination produces PA=LU in exact arithmetic, with P a permutation, L unit lower triangular and U upper triangular. At step k, choose a maximum-magnitude pivot among remaining rows, exchange rows, and form multipliers aᵢₖ/aₖₖ. Their magnitudes are at most one. Update the trailing matrix and right-hand side consistently. If row exchanges occur after earlier columns have been processed, previously stored multipliers must move with those rows. A zero pivot after searching the entire remaining column signals rank deficiency in exact arithmetic; a tiny computed pivot requires scale-aware numerical interpretation.

Apply

Under standard rounding assumptions, elimination can often be interpreted as factoring A+ΔA, with a componentwise bound involving unit roundoff, problem size and the product |L||U|. Large U growth enlarges that bound. The computed solution’s residual r=b−Ax̂ provides an independent diagnostic. Relative perturbations to both A and b motivate η=‖r‖/(‖A‖‖x̂‖+‖b‖); relative right-hand-side-only error is instead ‖r‖/‖b‖. State the model and norm. Small backward error gives small forward error only when the system is sufficiently well conditioned. Near singularity, a tiny residual can accompany substantial coefficient error.

For repeated right-hand sides, retain the same factors only while A is unchanged. Apply the stored permutation to each new b, solve Ly=Pb, then Ux=y. This sequence is an exact algorithmic contract. A common implementation error is to permute the matrix during factorization but forget the right-hand side during subsequent solves. Test with a permutation matrix whose solution is known by inspection before moving to a difficult dense matrix.

Continue

Iterative refinement recomputes a residual, solves a correction equation and updates the solution. Higher-accuracy residual evaluation can improve the result, but success depends on the factorization and conditioning. Test a written implementation with known solutions, row exchanges at multiple stages, singular matrices and scale disparities. Count factorization separately from triangular solves, especially for repeated right-hand sides. Next, stationary iterations replace direct elimination by repeated residual corrections, with convergence governed by an iteration matrix rather than pivot choices.

Review calculus and linear algebra when a prerequisite needs practice. Continue to Make an iteration matrix explain convergence.

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.

For A=[[0.001,1],[1,1]], partial pivoting chooses which original row first? Enter 1 or 2.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Solve x+y=3 and 2x−y=0. Give x.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Explain the factorization PA=LU and what P records.

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.

Why does |l_ij|≤1 under partial pivoting not bound all entries of U by the original matrix entries?

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.

For residual r=b−Ax̂, interpret η=‖r‖/(‖A‖‖x̂‖+‖b‖) in a compatible norm.

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.

Describe iterative refinement and its limitations.

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.