CalcWorldHub
Free online calculator · no signup

Linear system normwise backward error calculator

Assess an already computed linear-system solution using a scale-normalized residual rather than solving the equations again.

4,000 tools
Linear system normwise backward error calculator — Matrix entries, row-major, Right-hand side, Computed solution and calculation method
Linear system normwise backward error calculator: inputs and calculation method.

How to use this calculator

Assess an already computed linear-system solution using a scale-normalized residual rather than solving the equations again.

  1. Enter Matrix entries, row-major, Right-hand side, Computed solution. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Linear system normwise backward error explained

Measure how closely an approximate solution satisfies a linear system relative to the matrix, solution, and right-hand-side scales. A small backward error describes a nearby solved system, not necessarily small forward solution error.

Normwise backward error0.002
Normwise backward error: 0.001961 in the worked scenario.

Inputs, symbols, and units

a — Matrix entries, row-major
Square matrix, entered row by row; 2–10 rows are supported. Use comma-separated values in the stated order.
b — Right-hand side
One equation right-hand side per matrix row. Use comma-separated values in the stated order.
x — Computed solution
Approximate solution to assess, in unknown order. Use comma-separated values in the stated order.

Formula and method

η∞=||Ax−b||∞/(||A||∞||x||∞+||b||∞).

Rows and right-hand sides must use compatible scales. A small backward error says the computed result solves a nearby equation, not necessarily that it is close to the true solution of an ill-conditioned system.

A worked scenario

Matrix entries, row-major = [4, 1, 0, 1, 3, 1, 0, 1, 2]; Right-hand side = [1, 2, 3]; Computed solution = [0.22, 0.12, 1.44].

  • Normwise backward error: 0.001961
  • Infinity residual norm: 0.02 equation units
  • Matrix infinity norm: 5

For the displayed three-equation system, the candidate (0.22,0.12,1.44) leaves a maximum equation residual of 0.02.

Assumptions and edge cases

Mixed-unit equations should be nondimensionalized. This page does not estimate condition number or convert a backward error into a forward-error bound.

Reading the outputs

Backward error is dimensionless. Residual is in right-hand-side units; the infinity matrix norm is the maximum absolute row sum.

Frequently asked questions

Why can a tiny residual accompany a wrong answer?

An ill-conditioned matrix can turn small equation changes into large solution changes.

Can equations be rescaled?

Yes, but the chosen normwise measure changes with row scaling.

Do I enter the exact solution?

Enter the approximate solution you want to assess.

How do I use the Linear system normwise backward error calculator?

Enter Matrix entries, row-major, Right-hand side, Computed solution. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Linear system normwise backward error?

Matrix entries, row-major = [4, 1, 0, 1, 3, 1, 0, 1, 2]; Right-hand side = [1, 2, 3]; Computed solution = [0.22, 0.12, 1.44]. Normwise backward error: 0.001961 Infinity residual norm: 0.02 equation units Matrix infinity norm: 5 For the displayed three-equation system, the candidate (0.22,0.12,1.44) leaves a maximum equation residual of 0.02.