GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Index
  • Notations
  • Help?
  • Citing
  • Customize
  • Annotate
  • About the Project

This view

  • Original page
  • New address

GeezerVison is showing dlmf.nist.gov — DLMF: §3.2 Linear Algebra ‣ Areas ‣ Chapter 3 Numerical Methods

DLMF
  • Index
  • Notations
  • Help?
  • Citing
  • Customize
  • AnnotateUnAnnotate
  • About the Project
3 Numerical MethodsAreas3.1 Arithmetics and Error Measures3.3 Interpolation

§3.2 Linear Algebra

ⓘ
Keywords:
linear algebra, matrix
Permalink:
http://dlmf.nist.gov/3.2
See also:
Annotations for Ch.3
Contents
  1. §3.2(i) Gaussian Elimination
  2. §3.2(ii) Gaussian Elimination for a Tridiagonal Matrix
  3. §3.2(iii) Condition of Linear Systems
  4. §3.2(iv) Eigenvalues and Eigenvectors
  5. §3.2(v) Condition of Eigenvalues
  6. §3.2(vi) Lanczos Tridiagonalization of a Symmetric Matrix
  7. §3.2(vii) Computation of Eigenvalues

§3.2(i) Gaussian Elimination

ⓘ
Keywords:
Gaussian elimination, augmented, back substitution, factorization, forward elimination, matrix, multipliers, triangular decomposition
Referenced by:
§1.2(vi)
Permalink:
http://dlmf.nist.gov/3.2.i
See also:
Annotations for §3.2 and Ch.3

To solve the system

3.2.1 𝐀⁢𝐱=𝐛,
ⓘ
Referenced by:
§3.2(iii), §3.2(iii)
Permalink:
http://dlmf.nist.gov/3.2.E1
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(i), §3.2 and Ch.3

with Gaussian elimination, where 𝐀 is a nonsingular n×n matrix and 𝐛 is an n×1 vector, we start with the augmented matrix

3.2.2 [a11⋯a1⁢nb1⋮⋱⋮⋮an⁢1⋯an⁢nbn].
ⓘ
Permalink:
http://dlmf.nist.gov/3.2.E2
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(i), §3.2 and Ch.3

By repeatedly subtracting multiples of each row from the subsequent rows we obtain a matrix of the form

3.2.3 [u11u12⋯u1⁢ny10u22⋯u2⁢ny2⋮⋱⋱⋮⋮0⋯0un⁢nyn].
ⓘ
Referenced by:
§3.2(i)
Permalink:
http://dlmf.nist.gov/3.2.E3
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(i), §3.2 and Ch.3

During this reduction process we store the multipliers ℓj⁢k that are used in each column to eliminate other elements in that column. This yields a lower triangular matrix of the form

3.2.4 𝐋=[10⋯0ℓ211⋯0⋮⋱⋱⋮ℓn⁢1⋯ℓn,n−11].
ⓘ
Symbols:
ℓj⁢k: multipliers
Referenced by:
§1.2(vi)
Permalink:
http://dlmf.nist.gov/3.2.E4
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(i), §3.2 and Ch.3

If we denote by 𝐔 the upper triangular matrix comprising the elements uj⁢k in (3.2.3), then we have the factorization, or triangular decomposition,

3.2.5 𝐀=𝐋⁢𝐔.
ⓘ
Referenced by:
§3.2(i), §3.2(ii)
Permalink:
http://dlmf.nist.gov/3.2.E5
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(i), §3.2 and Ch.3

With 𝐲=[y1,y2,…,yn]T the process of solution can then be regarded as first solving the equation 𝐋⁢𝐲=𝐛 for 𝐲 (forward elimination), followed by the solution of 𝐔⁢𝐱=𝐲 for 𝐱 (back substitution).

For more details see Golub and Van Loan (1996, pp. 87–100).

Example

ⓘ
Keywords:
Gaussian elimination, multipliers, partial pivoting, pivot (or pivot element)
See also:
Annotations for §3.2(i), §3.2 and Ch.3
3.2.6 [123231312]=[100210351]⁢[1230−1−50018].
ⓘ
Permalink:
http://dlmf.nist.gov/3.2.E6
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(i), §3.2(i), §3.2 and Ch.3

In solving 𝐀⁢𝐱=[1,1,1]T, we obtain by forward elimination 𝐲=[1,−1,3]T, and by back substitution 𝐱=[16,16,16]T.

In practice, if any of the multipliers ℓj⁢k are unduly large in magnitude compared with unity, then Gaussian elimination is unstable. To avoid instability the rows are interchanged at each elimination step in such a way that the absolute value of the element that is used as a divisor, the pivot element, is not less than that of the other available elements in its column. Then |ℓj⁢k|≤1 in all cases. This modification is called Gaussian elimination with partial pivoting.

For more information on pivoting see Golub and Van Loan (1996, pp. 109–123).

Iterative Refinement

ⓘ
Keywords:
Gaussian elimination, iterative refinement, residual vector
See also:
Annotations for §3.2(i), §3.2 and Ch.3

When the factorization (3.2.5) is available, the accuracy of the computed solution 𝐱 can be improved with little extra computation. Because of rounding errors, the residual vector 𝐫=𝐛−𝐀⁢𝐱 is nonzero as a rule. We solve the system 𝐀⁢𝛿𝐱=𝐫 for 𝛿𝐱, taking advantage of the existing triangular decomposition of 𝐀 to obtain an improved solution 𝐱+𝛿𝐱.

§3.2(ii) Gaussian Elimination for a Tridiagonal Matrix

ⓘ
Keywords:
Gaussian elimination, matrix, tridiagonal, tridiagonal systems
Referenced by:
§3.6(iv), §3.7(iii)
Permalink:
http://dlmf.nist.gov/3.2.ii
See also:
Annotations for §3.2 and Ch.3

Tridiagonal matrices are ones in which the only nonzero elements occur on the main diagonal and two adjacent diagonals. Thus

3.2.7 𝐀=[b1c10a2b2c2⋱⋱⋱an−1bn−1cn−10anbn].
ⓘ
Referenced by:
§1.2(vi)
Permalink:
http://dlmf.nist.gov/3.2.E7
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(ii), §3.2 and Ch.3

Assume that 𝐀 can be factored as in (3.2.5), but without partial pivoting. Then

3.2.8 𝐋=[100ℓ210⋱⋱⋱ℓn−1100ℓn1],
ⓘ
Defines:
ℓj⁢k: elements of 𝐋 (locally)
Permalink:
http://dlmf.nist.gov/3.2.E8
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(ii), §3.2 and Ch.3
3.2.9 𝐔=[d1u100d2u2⋱⋱⋱0dn−1un−100dn],
ⓘ
Defines:
uj: elements (locally)
Symbols:
dj: coefficient
Permalink:
http://dlmf.nist.gov/3.2.E9
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(ii), §3.2 and Ch.3

where uj=cj, j=1,2,…,n−1, d1=b1, and

3.2.10 ℓj =aj/dj−1,
dj =bj−ℓj⁢cj−1,
j=2,…,n.
ⓘ
Defines:
dj: coefficient (locally)
Symbols:
ℓj⁢k: elements of 𝐋
Permalink:
http://dlmf.nist.gov/3.2.E10
Encodings:
TeX, TeX, pMML, pMML, png, png
See also:
Annotations for §3.2(ii), §3.2 and Ch.3

Forward elimination for solving 𝐀⁢𝐱=𝐟 then becomes y1=f1,

3.2.11 yj=fj−ℓj⁢yj−1,
j=2,…,n,
ⓘ
Symbols:
ℓj⁢k: elements of 𝐋 and fi: element
Permalink:
http://dlmf.nist.gov/3.2.E11
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(ii), §3.2 and Ch.3

and back substitution is xn=yn/dn, followed by

3.2.12 xj=(yj−uj⁢xj+1)/dj,
j=n−1,…,1.
ⓘ
Symbols:
uj: elements and dj: coefficient
Permalink:
http://dlmf.nist.gov/3.2.E12
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(ii), §3.2 and Ch.3

For more information on solving tridiagonal systems see Golub and Van Loan (1996, pp. 152–160).

§3.2(iii) Condition of Linear Systems

ⓘ
Keywords:
Euclidean, a posteriori, condition number, condition numbers, conditioning of linear systems, error bounds, linear algebra, matrix, norms, of arbitrary order, of matrices, of vectors, vector
Referenced by:
§1.2(vi)
Permalink:
http://dlmf.nist.gov/3.2.iii
See also:
Annotations for §3.2 and Ch.3

The p-norm of a vector 𝐱=[x1,…,xn]T is given by

3.2.13 ‖𝐱‖p =(∑j=1n|xj|p)1/p,
p=1,2,…,
‖𝐱‖∞ =max1≤j≤n⁡|xj|.
ⓘ
Referenced by:
§3.2(iv)
Permalink:
http://dlmf.nist.gov/3.2.E13
Encodings:
TeX, TeX, pMML, pMML, png, png
See also:
Annotations for §3.2(iii), §3.2 and Ch.3

The Euclidean norm is the case p=2.

The p-norm of a matrix 𝐀=[aj⁢k] is

3.2.14 ‖𝐀‖p=max𝐱≠𝟎⁡‖𝐀⁢𝐱‖p‖𝐱‖p.
ⓘ
Referenced by:
§3.2(iii)
Permalink:
http://dlmf.nist.gov/3.2.E14
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(iii), §3.2 and Ch.3

The cases p=1,2, and ∞ are the most important:

3.2.15 ‖𝐀‖1 =max1≤k≤n⁢∑j=1n|aj⁢k|,
‖𝐀‖∞ =max1≤j≤n⁢∑k=1n|aj⁢k|,
‖𝐀‖2 =ρ⁡(𝐀⁢𝐀T),
ⓘ
Permalink:
http://dlmf.nist.gov/3.2.E15
Encodings:
TeX, TeX, TeX, pMML, pMML, pMML, png, png, png
See also:
Annotations for §3.2(iii), §3.2 and Ch.3

where ρ⁡(𝐀⁢𝐀T) is the largest of the absolute values of the eigenvalues of the matrix 𝐀⁢𝐀T; see §3.2(iv). (We are assuming that the matrix 𝐀 is real; if not 𝐀T is replaced by 𝐀H, the transpose of the complex conjugate of 𝐀.)

The sensitivity of the solution vector 𝐱 in (3.2.1) to small perturbations in the matrix 𝐀 and the vector 𝐛 is measured by the condition number

3.2.16 κ⁡(𝐀)=‖𝐀‖p⁢‖𝐀−1‖p,
ⓘ
Defines:
κ⁡(𝐀): condition number (locally)
Permalink:
http://dlmf.nist.gov/3.2.E16
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(iii), §3.2 and Ch.3

where ‖⋅‖p is one of the matrix norms. For any norm (3.2.14) we have κ⁡(𝐀)≥1. The larger the value κ⁡(𝐀), the more ill-conditioned the system.

Let 𝐱∗ denote a computed solution of the system (3.2.1), with 𝐫=𝐛−𝐀⁢𝐱∗ again denoting the residual. Then we have the a posteriori error bound

3.2.17 ‖𝐱∗−𝐱‖p‖𝐱‖p≤κ⁡(𝐀)⁢‖𝐫‖p‖𝐛‖p.
ⓘ
Symbols:
κ⁡(𝐀): condition number
Permalink:
http://dlmf.nist.gov/3.2.E17
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(iii), §3.2 and Ch.3

For further information see Brezinski (1999) and Trefethen and Bau (1997, Chapter 3).

§3.2(iv) Eigenvalues and Eigenvectors

ⓘ
Keywords:
characteristic, characteristic polynomial, eigenvalues, eigenvectors, left, matrix, multiplicity, nondefective, normalized, polynomials, right
Notes:
See Young and Gregory (1988, pp. 741–743).
Referenced by:
§1.2(vi), item (d), §3.2(iii)
Permalink:
http://dlmf.nist.gov/3.2.iv
See also:
Annotations for §3.2 and Ch.3

If 𝐀 is an n×n matrix, then a real or complex number λ is called an eigenvalue of 𝐀, and a nonzero vector 𝐱 a corresponding (right) eigenvector, if

3.2.18 𝐀⁢𝐱=λ⁢𝐱.
ⓘ
Symbols:
λ: eigenvalue
Permalink:
http://dlmf.nist.gov/3.2.E18
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(iv), §3.2 and Ch.3

A nonzero vector 𝐲 is called a left eigenvector of 𝐀 corresponding to the eigenvalue λ if 𝐲T⁢𝐀=λ⁢𝐲T or, equivalently, 𝐀T⁢𝐲=λ⁢𝐲. A normalized eigenvector has Euclidean norm 1; compare (3.2.13) with p=2.

The polynomial

3.2.19 pn⁡(λ)=det[λ⁢𝐈−𝐀]
ⓘ
Symbols:
det: determinant and λ: eigenvalue
Permalink:
http://dlmf.nist.gov/3.2.E19
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(iv), §3.2 and Ch.3

is called the characteristic polynomial of 𝐀 and its zeros are the eigenvalues of 𝐀. The multiplicity of an eigenvalue is its multiplicity as a zero of the characteristic polynomial (§3.8(i)). To an eigenvalue of multiplicity m, there correspond m linearly independent eigenvectors provided that 𝐀 is nondefective, that is, 𝐀 has a complete set of n linearly independent eigenvectors.

§3.2(v) Condition of Eigenvalues

ⓘ
Keywords:
condition numbers, conditioning, eigenvalues, linear algebra, matrix
Notes:
See Wilkinson (1988, Chapter 2, §§8–10).
Permalink:
http://dlmf.nist.gov/3.2.v
See also:
Annotations for §3.2 and Ch.3

If 𝐀 is nondefective and λ is a simple zero of pn⁡(λ), then the sensitivity of λ to small perturbations in the matrix 𝐀 is measured by the condition number

3.2.20 κ⁡(λ)=1|𝐲T⁢𝐱|,
ⓘ
Symbols:
κ⁡(𝐀): condition number and λ: eigenvalue
Permalink:
http://dlmf.nist.gov/3.2.E20
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(v), §3.2 and Ch.3

where 𝐱 and 𝐲 are the normalized right and left eigenvectors of 𝐀 corresponding to the eigenvalue λ. Because |𝐲T⁢𝐱|=|cos⁡θ|, where θ is the angle between 𝐲T and 𝐱 we always have κ⁡(λ)≥1. When 𝐀 is a symmetric matrix, the left and right eigenvectors coincide, yielding κ⁡(λ)=1, and the calculation of its eigenvalues is a well-conditioned problem.

§3.2(vi) Lanczos Tridiagonalization of a Symmetric Matrix

ⓘ
Keywords:
Lanczos tridiagonalization of a symmetric matrix, Lanczos vectors, matrix, symmetric, tridiagonalization
Notes:
See Wilkinson (1988, pp. 394–395 and 423).
Referenced by:
§29.20(i), §29.20(ii), §3.5(vi), §3.5(vi), §3.7(iv), §30.16(i), Erratum (V1.1.0) for Subsection 3.2(vi), Erratum (V1.1.3) for Subsection 3.2(vi)
Permalink:
http://dlmf.nist.gov/3.2.vi
Addition (effective with 1.1.3):
A paragraph was added just below (3.2.23) treating the case of 𝐒-orthogonality.
Clarification (effective with 1.1.0):
The introductory material for this subsection has been improved to be more explicit, namely it is indicated that 𝐀 is an n×n symmetric matrix, α1=𝐯1T⁢𝐀⁢𝐯1 and β1=0; (3.2.21) has been has been updated so that 𝐯jT⁢𝐯k=δj,k, j,k=1,2,…,n; and a paragraph has been added at the end of the subsection on how Lanczos’ method is related to Gauss quadrature considered in §3.5(v).
See also:
Annotations for §3.2 and Ch.3

Let 𝐀 be an n×n symmetric matrix. Define the Lanczos vectors 𝐯j and coefficients αj and βj by 𝐯0=𝟎, a normalized vector 𝐯1 (perhaps chosen randomly), α1=𝐯1T⁢𝐀⁢𝐯1, β1=0, and for j=1,2,…,n−1 by the recursive scheme

3.2.21 𝐮 =𝐀⁢𝐯j−αj⁢𝐯j−βj⁢𝐯j−1,
βj+1 =‖𝐮‖2,
𝐯j+1 =𝐮/βj+1,
αj+1 =𝐯j+1T⁢𝐀⁢𝐯j+1.
ⓘ
Symbols:
αj: matrix and βj: matrix
Referenced by:
§3.2(vi), §3.2(vi)
Permalink:
http://dlmf.nist.gov/3.2.E21
Encodings:
TeX, TeX, TeX, TeX, pMML, pMML, pMML, pMML, png, png, png, png
Modification (effective with 1.1.0):
This equation has been modified to make the recursion scheme more clear to the user.
See also:
Annotations for §3.2(vi), §3.2 and Ch.3

Then 𝐯jT⁢𝐯k=δj,k, j,k=1,2,…,n. The tridiagonal matrix

3.2.22 𝐁=[α1β20β2α2β3⋱⋱⋱βn−1αn−1βn0βnαn]
ⓘ
Symbols:
αj: matrix and βj: matrix
Referenced by:
§3.2(vi)
Permalink:
http://dlmf.nist.gov/3.2.E22
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(vi), §3.2 and Ch.3

has the same eigenvalues as 𝐀. Its characteristic polynomial can be obtained from the recursion

3.2.23 pk+1⁡(λ)=(λ−αk+1)⁢pk⁡(λ)−βk+12⁢pk−1⁡(λ),
k=0,1,…,n−1,
ⓘ
Defines:
pk⁡(λ): characteristic polynomial (locally)
Symbols:
αj: matrix, βj: matrix and λ: eigenvalue
Referenced by:
§3.2(vi), §3.2(vi), Erratum (V1.1.3) for Subsection 3.2(vi)
Permalink:
http://dlmf.nist.gov/3.2.E23
Encodings:
TeX, pMML, png
See also:
Annotations for §3.2(vi), §3.2 and Ch.3

with p−1⁡(λ)=0, p0⁡(λ)=1.

In the case that the orthogonality condition is replaced by 𝐒-orthogonality, that is, 𝐯jT⁢𝐒⁢𝐯k=δj,k, j,k=1,2,…,n, for some positive definite matrix 𝐒 with Cholesky decomposition 𝐒=𝐋T⁢𝐋, then the details change as follows. Start with 𝐯0=𝟎, vector 𝐯1 such that 𝐯1T⁢𝐒⁢𝐯1=1, α1=𝐯1T⁢𝐀⁢𝐯1, β1=0. Then for j=1,2,…,n−1

3.2.24 𝐮 =(𝐀−αj⁢𝐒)⁢𝐯j−βj⁢𝐒⁢𝐯j−1,
βj+1 =‖(𝐋−1)T⁢𝐮‖2,
𝐯j+1 =𝐋−1⁢(𝐋−1)T⁢𝐮/βj+1,
αj+1 =𝐯j+1T⁢𝐀⁢𝐯j+1.
ⓘ
Defines:
αj: matrix (locally) and βj: matrix (locally)
Permalink:
http://dlmf.nist.gov/3.2.E24
Encodings:
TeX, TeX, TeX, TeX, pMML, pMML, pMML, pMML, png, png, png, png
See also:
Annotations for §3.2(vi), §3.2 and Ch.3

For more details see Guan et al. (2007).

For numerical information see Stewart (2001, pp. 347–368).

Lanczos’ method is related to Gauss quadrature considered in §3.5(v). When the matrix 𝐀 is replaced by a scalar x, the recurrence relation in the first line of (3.2.21) with 𝐮=βj+1⁢𝐯j+1 is similar to the one in (3.5.30_5). Also, the recurrence relations in (3.2.23) and (3.5.30) are similar, as well as the matrix 𝐁 in (3.2.22) and the Jacobi matrix 𝐉n in (3.5.31).

§3.2(vii) Computation of Eigenvalues

ⓘ
Keywords:
computation, eigenvalues, linear algebra, matrix
Referenced by:
§1.2(vi), §30.16(i)
Permalink:
http://dlmf.nist.gov/3.2.vii
See also:
Annotations for §3.2 and Ch.3

Many methods are available for computing eigenvalues; see Golub and Van Loan (1996, Chapters 7, 8), Trefethen and Bau (1997, Chapter 5), and Wilkinson (1988, Chapters 8, 9).

3.1 Arithmetics and Error Measures3.3 Interpolation
© 2010–2026 NIST / Disclaimer / Feedback; Version 1.2.8; Release date 2026-09-15.
NIST

Site Privacy Accessibility Privacy Program Copyrights Vulnerability Disclosure No Fear Act Policy FOIA Environmental Policy Scientific Integrity Information Quality Standards Commerce.gov Science.gov USA.gov

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.