Misplaced Pages

Rayleigh–Ritz method

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Method for approximating eigenvalues
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Rayleigh–Ritz method" – news · newspapers · books · scholar · JSTOR (June 2024) (Learn how and when to remove this message)

The Rayleigh–Ritz method is a direct numerical method of approximating eigenvalues, originated in the context of solving physical boundary value problems and named after Lord Rayleigh and Walther Ritz.

In this method, an infinite-dimensional linear operator is approximated by a finite-dimensional compression, on which we can use an eigenvalue algorithm.

It is used in all applications that involve approximating eigenvalues and eigenvectors, often under different names. In quantum mechanics, where a system of particles is described using a Hamiltonian, the Ritz method uses trial wave functions to approximate the ground state eigenfunction with the lowest energy. In the finite element method context, mathematically the same algorithm is commonly called the Ritz-Galerkin method. The Rayleigh–Ritz method or Ritz method terminology is typical in mechanical and structural engineering to approximate the eigenmodes and resonant frequencies of a structure.

Naming and attribution

The name of the method and its origin story have been debated by historians. It has been called Ritz method after Walther Ritz, since the numerical procedure has been published by Walther Ritz in 1908-1909. According to A. W. Leissa, Lord Rayleigh wrote a paper congratulating Ritz on his work in 1911, but stating that he himself had used Ritz's method in many places in his book and in another publication. This statement, although later disputed, and the fact that the method in the trivial case of a single vector results in the Rayleigh quotient make the case for the name Rayleigh–Ritz method. According to S. Ilanko, citing Richard Courant, both Lord Rayleigh and Walther Ritz independently conceived the idea of utilizing the equivalence between boundary value problems of partial differential equations on the one hand and problems of the calculus of variations on the other hand for numerical calculation of the solutions, by substituting for the variational problems simpler approximating extremum problems in which a finite number of parameters need to be determined. Ironically for the debate, the modern justification of the algorithm drops the calculus of variations in favor of the simpler and more general approach of orthogonal projection as in Galerkin method named after Boris Galerkin, thus leading also to the Ritz-Galerkin method naming.

Method

Let T {\displaystyle T} be a linear operator on a Hilbert space H {\displaystyle {\mathcal {H}}} , with inner product ( , ) {\displaystyle (\cdot ,\cdot )} . Now consider a finite set of functions L = { φ 1 , . . . , φ n } {\displaystyle {\mathcal {L}}=\{\varphi _{1},...,\varphi _{n}\}} . Depending on the application these functions may be:

One could use the orthonormal basis generated from the eigenfunctions of the operator, which will produce diagonal approximating matrices, but in this case we would have already had to calculate the spectrum.

We now approximate T {\displaystyle T} by T L {\displaystyle T_{\mathcal {L}}} , which is defined as the matrix with entries

( T L ) i , j = ( T φ i , φ j ) . {\displaystyle (T_{\mathcal {L}})_{i,j}=(T\varphi _{i},\varphi _{j}).}

and solve the eigenvalue problem T L u = λ u {\displaystyle T_{\mathcal {L}}u=\lambda u} . It can be shown that the matrix T L {\displaystyle T_{\mathcal {L}}} is the compression of T {\displaystyle T} to L {\displaystyle {\mathcal {L}}} .

For differential operators (such as Sturm-Liouville operators), the inner product ( , ) {\displaystyle (\cdot ,\cdot )} can be replaced by the weak formulation A ( , ) {\displaystyle {\mathcal {A}}(\cdot ,\cdot )} .

If a subset of the orthonormal basis was used to find the matrix, the eigenvectors of T L {\displaystyle T_{\mathcal {L}}} will be linear combinations of orthonormal basis functions, and as a result they will be approximations of the eigenvectors of T {\displaystyle T} .

Properties

Spectral pollution

It is possible for the Rayleigh–Ritz method to produce values which do not converge to actual values in the spectrum of the operator as the truncation gets large. These values are known as spectral pollution. In some cases (such as for the Schrödinger equation), there is no approximation which both includes all eigenvalues of the equation, and contains no pollution.

The spectrum of the compression (and thus pollution) is bounded by the numerical range of the operator; in many cases it is bounded by a subset of the numerical range known as the essential numerical range.

For matrix eigenvalue problems

In numerical linear algebra, the Rayleigh–Ritz method is commonly applied to approximate an eigenvalue problem A x = λ x {\displaystyle A\mathbf {x} =\lambda \mathbf {x} } for the matrix A C N × N {\displaystyle A\in \mathbb {C} ^{N\times N}} of size N {\displaystyle N} using a projected matrix of a smaller size m < N {\displaystyle m<N} , generated from a given matrix V C N × m {\displaystyle V\in \mathbb {C} ^{N\times m}} with orthonormal columns. The matrix version of the algorithm is the most simple:

  1. Compute the m × m {\displaystyle m\times m} matrix V A V {\displaystyle V^{*}AV} , where V {\displaystyle V^{*}} denotes the complex-conjugate transpose of V {\displaystyle V}
  2. Solve the eigenvalue problem V A V y i = μ i y i {\displaystyle V^{*}AV\mathbf {y} _{i}=\mu _{i}\mathbf {y} _{i}}
  3. Compute the Ritz vectors x ~ i = V y i {\displaystyle {\tilde {\mathbf {x} }}_{i}=V\mathbf {y} _{i}} and the Ritz value λ ~ i = μ i {\displaystyle {\tilde {\lambda }}_{i}=\mu _{i}}
  4. Output approximations ( λ ~ i , x ~ i ) {\displaystyle ({\tilde {\lambda }}_{i},{\tilde {\mathbf {x} }}_{i})} , called the Ritz pairs, to eigenvalues and eigenvectors of the original matrix A {\displaystyle A} .

If the subspace with the orthonormal basis given by the columns of the matrix V C N × m {\displaystyle V\in \mathbb {C} ^{N\times m}} contains k m {\displaystyle k\leq m} vectors that are close to eigenvectors of the matrix A {\displaystyle A} , the Rayleigh–Ritz method above finds k {\displaystyle k} Ritz vectors that well approximate these eigenvectors. The easily computable quantity A x ~ i λ ~ i x ~ i {\displaystyle \|A{\tilde {\mathbf {x} }}_{i}-{\tilde {\lambda }}_{i}{\tilde {\mathbf {x} }}_{i}\|} determines the accuracy of such an approximation for every Ritz pair.

In the easiest case m = 1 {\displaystyle m=1} , the N × m {\displaystyle N\times m} matrix V {\displaystyle V} turns into a unit column-vector v {\displaystyle v} , the m × m {\displaystyle m\times m} matrix V A V {\displaystyle V^{*}AV} is a scalar that is equal to the Rayleigh quotient ρ ( v ) = v A v / v v {\displaystyle \rho (v)=v^{*}Av/v^{*}v} , the only i = 1 {\displaystyle i=1} solution to the eigenvalue problem is y i = 1 {\displaystyle y_{i}=1} and μ i = ρ ( v ) {\displaystyle \mu _{i}=\rho (v)} , and the only one Ritz vector is v {\displaystyle v} itself. Thus, the Rayleigh–Ritz method turns into computing of the Rayleigh quotient if m = 1 {\displaystyle m=1} .

Another useful connection to the Rayleigh quotient is that μ i = ρ ( v i ) {\displaystyle \mu _{i}=\rho (v_{i})} for every Ritz pair ( λ ~ i , x ~ i ) {\displaystyle ({\tilde {\lambda }}_{i},{\tilde {\mathbf {x} }}_{i})} , allowing to derive some properties of Ritz values μ i {\displaystyle \mu _{i}} from the corresponding theory for the Rayleigh quotient. For example, if A {\displaystyle A} is a Hermitian matrix, its Rayleigh quotient (and thus its every Ritz value) is real and takes values within the closed interval of the smallest and largest eigenvalues of A {\displaystyle A} .

Example

The matrix A = [ 2 0 0 0 2 1 0 1 2 ] {\displaystyle A={\begin{bmatrix}2&0&0\\0&2&1\\0&1&2\end{bmatrix}}} has eigenvalues 1 , 2 , 3 {\displaystyle 1,2,3} and the corresponding eigenvectors x λ = 1 = [ 0 1 1 ] , x λ = 2 = [ 1 0 0 ] , x λ = 3 = [ 0 1 1 ] . {\displaystyle \mathbf {x} _{\lambda =1}={\begin{bmatrix}0\\1\\-1\end{bmatrix}},\quad \mathbf {x} _{\lambda =2}={\begin{bmatrix}1\\0\\0\end{bmatrix}},\quad \mathbf {x} _{\lambda =3}={\begin{bmatrix}0\\1\\1\end{bmatrix}}.} Let us take V = [ 0 0 1 0 0 1 ] , {\displaystyle V={\begin{bmatrix}0&0\\1&0\\0&1\end{bmatrix}},} then V A V = [ 2 1 1 2 ] {\displaystyle V^{*}AV={\begin{bmatrix}2&1\\1&2\end{bmatrix}}} with eigenvalues 1 , 3 {\displaystyle 1,3} and the corresponding eigenvectors y μ = 1 = [ 1 1 ] , y μ = 3 = [ 1 1 ] , {\displaystyle \mathbf {y} _{\mu =1}={\begin{bmatrix}1\\-1\end{bmatrix}},\quad \mathbf {y} _{\mu =3}={\begin{bmatrix}1\\1\end{bmatrix}},} so that the Ritz values are 1 , 3 {\displaystyle 1,3} and the Ritz vectors are x ~ λ ~ = 1 = [ 0 1 1 ] , x ~ λ ~ = 3 = [ 0 1 1 ] . {\displaystyle \mathbf {\tilde {x}} _{{\tilde {\lambda }}=1}={\begin{bmatrix}0\\1\\-1\end{bmatrix}},\quad \mathbf {\tilde {x}} _{{\tilde {\lambda }}=3}={\begin{bmatrix}0\\1\\1\end{bmatrix}}.} We observe that each one of the Ritz vectors is exactly one of the eigenvectors of A {\displaystyle A} for the given V {\displaystyle V} as well as the Ritz values give exactly two of the three eigenvalues of A {\displaystyle A} . A mathematical explanation for the exact approximation is based on the fact that the column space of the matrix V {\displaystyle V} happens to be exactly the same as the subspace spanned by the two eigenvectors x λ = 1 {\displaystyle \mathbf {x} _{\lambda =1}} and x λ = 3 {\displaystyle \mathbf {x} _{\lambda =3}} in this example.

For matrix singular value problems

Truncated singular value decomposition (SVD) in numerical linear algebra can also use the Rayleigh–Ritz method to find approximations to left and right singular vectors of the matrix M C M × N {\displaystyle M\in \mathbb {C} ^{M\times N}} of size M × N {\displaystyle M\times N} in given subspaces by turning the singular value problem into an eigenvalue problem.

Using the normal matrix

The definition of the singular value σ {\displaystyle \sigma } and the corresponding left and right singular vectors is M v = σ u {\displaystyle Mv=\sigma u} and M u = σ v {\displaystyle M^{*}u=\sigma v} . Having found one set (left of right) of approximate singular vectors and singular values by applying naively the Rayleigh–Ritz method to the Hermitian normal matrix M M C N × N {\displaystyle M^{*}M\in \mathbb {C} ^{N\times N}} or M M C M × M {\displaystyle MM^{*}\in \mathbb {C} ^{M\times M}} , whichever one is smaller size, one could determine the other set of left of right singular vectors simply by dividing by the singular values, i.e., u = M v / σ {\displaystyle u=Mv/\sigma } and v = M u / σ {\displaystyle v=M^{*}u/\sigma } . However, the division is unstable or fails for small or zero singular values.

An alternative approach, e.g., defining the normal matrix as A = M M C N × N {\displaystyle A=M^{*}M\in \mathbb {C} ^{N\times N}} of size N × N {\displaystyle N\times N} , takes advantage of the fact that for a given N × m {\displaystyle N\times m} matrix W C N × m {\displaystyle W\in \mathbb {C} ^{N\times m}} with orthonormal columns the eigenvalue problem of the Rayleigh–Ritz method for the m × m {\displaystyle m\times m} matrix W A W = W M M W = ( M W ) M W {\displaystyle W^{*}AW=W^{*}M^{*}MW=(MW)^{*}MW} can be interpreted as a singular value problem for the N × m {\displaystyle N\times m} matrix M W {\displaystyle MW} . This interpretation allows simple simultaneous calculation of both left and right approximate singular vectors as follows.

  1. Compute the N × m {\displaystyle N\times m} matrix M W {\displaystyle MW} .
  2. Compute the thin, or economy-sized, SVD M W = U Σ V h , {\displaystyle MW=\mathbf {U} \Sigma \mathbf {V} _{h},} with N × m {\displaystyle N\times m} matrix U {\displaystyle \mathbf {U} } , m × m {\displaystyle m\times m} diagonal matrix Σ {\displaystyle \Sigma } , and m × m {\displaystyle m\times m} matrix V h {\displaystyle \mathbf {V} _{h}} .
  3. Compute the matrices of the Ritz left U = U {\displaystyle U=\mathbf {U} } and right V h = V h W {\displaystyle V_{h}=\mathbf {V} _{h}W^{*}} singular vectors.
  4. Output approximations U , Σ , V h {\displaystyle U,\Sigma ,V_{h}} , called the Ritz singular triplets, to selected singular values and the corresponding left and right singular vectors of the original matrix M {\displaystyle M} representing an approximate Truncated singular value decomposition (SVD) with left singular vectors restricted to the column-space of the matrix W {\displaystyle W} .

The algorithm can be used as a post-processing step where the matrix W {\displaystyle W} is an output of an eigenvalue solver, e.g., such as LOBPCG, approximating numerically selected eigenvectors of the normal matrix A = M M {\displaystyle A=M^{*}M} .

Example

The matrix M = [ 1 0 0 0 0 2 0 0 0 0 3 0 0 0 0 4 0 0 0 0 ] {\displaystyle M={\begin{bmatrix}1&0&0&0\\0&2&0&0\\0&0&3&0\\0&0&0&4\\0&0&0&0\end{bmatrix}}} has its normal matrix A = M M = [ 1 0 0 0 0 4 0 0 0 0 9 0 0 0 0 16 ] , {\displaystyle A=M^{*}M={\begin{bmatrix}1&0&0&0\\0&4&0&0\\0&0&9&0\\0&0&0&16\\\end{bmatrix}},} singular values 1 , 2 , 3 , 4 {\displaystyle 1,2,3,4} and the corresponding thin SVD A = [ 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 ] [ 4 0 0 0 0 3 0 0 0 0 2 0 0 0 0 1 ] [ 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 ] , {\displaystyle A={\begin{bmatrix}0&0&0&1\\0&0&1&0\\0&1&0&0\\1&0&0&0\\0&0&0&0\end{bmatrix}}{\begin{bmatrix}4&0&0&0\\0&3&0&0\\0&0&2&0\\0&0&0&1\end{bmatrix}}{\begin{bmatrix}0&0&0&1\\0&0&1&0\\0&1&0&0\\1&0&0&0\end{bmatrix}},} where the columns of the first multiplier from the complete set of the left singular vectors of the matrix A {\displaystyle A} , the diagonal entries of the middle term are the singular values, and the columns of the last multiplier transposed (although the transposition does not change it) [ 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 ] = [ 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 ] {\displaystyle {\begin{bmatrix}0&0&0&1\\0&0&1&0\\0&1&0&0\\1&0&0&0\end{bmatrix}}^{*}\quad =\quad {\begin{bmatrix}0&0&0&1\\0&0&1&0\\0&1&0&0\\1&0&0&0\end{bmatrix}}} are the corresponding right singular vectors.

Let us take W = [ 1 / 2 1 / 2 1 / 2 1 / 2 0 0 0 0 ] {\displaystyle W={\begin{bmatrix}1/{\sqrt {2}}&1/{\sqrt {2}}\\1/{\sqrt {2}}&-1/{\sqrt {2}}\\0&0\\0&0\end{bmatrix}}} with the column-space that is spanned by the two exact right singular vectors [ 0 1 1 0 0 0 0 0 ] {\displaystyle {\begin{bmatrix}0&1\\1&0\\0&0\\0&0\end{bmatrix}}} corresponding to the singular values 1 and 2.

Following the algorithm step 1, we compute M W = [ 1 / 2 1 / 2 2 2 0 0 0 0 ] , {\displaystyle MW={\begin{bmatrix}1/{\sqrt {2}}&1/{\sqrt {2}}\\{\sqrt {2}}&-{\sqrt {2}}\\0&0\\0&0\end{bmatrix}},} and on step 2 its thin SVD M W = U Σ V h {\displaystyle MW=\mathbf {U} {\Sigma }\mathbf {V} _{h}} with U = [ 0 1 1 0 0 0 0 0 0 0 ] , Σ = [ 2 0 0 1 ] , V h = [ 1 / 2 1 / 2 1 / 2 1 / 2 ] . {\displaystyle \mathbf {U} ={\begin{bmatrix}0&1\\1&0\\0&0\\0&0\\0&0\end{bmatrix}},\quad \Sigma ={\begin{bmatrix}2&0\\0&1\end{bmatrix}},\quad \mathbf {V} _{h}={\begin{bmatrix}1/{\sqrt {2}}&-1/{\sqrt {2}}\\1/{\sqrt {2}}&1/{\sqrt {2}}\end{bmatrix}}.} Thus we already obtain the singular values 2 and 1 from Σ {\displaystyle \Sigma } and from U {\displaystyle \mathbf {U} } the corresponding two left singular vectors u {\displaystyle u} as [ 0 , 1 , 0 , 0 , 0 ] {\displaystyle ^{*}} and [ 1 , 0 , 0 , 0 , 0 ] {\displaystyle ^{*}} , which span the column-space of the matrix W {\displaystyle W} , explaining why the approximations are exact for the given W {\displaystyle W} .

Finally, step 3 computes the matrix V h = V h W {\displaystyle V_{h}=\mathbf {V} _{h}W^{*}} V h = [ 1 / 2 1 / 2 1 / 2 1 / 2 ] [ 1 / 2 1 / 2 0 0 1 / 2 1 / 2 0 0 ] = [ 0 1 0 0 1 0 0 0 ] {\displaystyle \mathbf {V} _{h}={\begin{bmatrix}1/{\sqrt {2}}&-1/{\sqrt {2}}\\1/{\sqrt {2}}&1/{\sqrt {2}}\end{bmatrix}}\,{\begin{bmatrix}1/{\sqrt {2}}&1/{\sqrt {2}}&0&0\\1/{\sqrt {2}}&-1/{\sqrt {2}}&0&0\end{bmatrix}}={\begin{bmatrix}0&1&0&0\\1&0&0&0\end{bmatrix}}} recovering from its rows the two right singular vectors v {\displaystyle v} as [ 0 , 1 , 0 , 0 ] {\displaystyle ^{*}} and [ 1 , 0 , 0 , 0 ] {\displaystyle ^{*}} . We validate the first vector: M v = σ u {\displaystyle Mv=\sigma u} [ 1 0 0 0 0 2 0 0 0 0 3 0 0 0 0 4 0 0 0 0 ] [ 0 1 0 0 ] = 2 [ 0 1 0 0 0 ] {\displaystyle {\begin{bmatrix}1&0&0&0\\0&2&0&0\\0&0&3&0\\0&0&0&4\\0&0&0&0\end{bmatrix}}\,{\begin{bmatrix}0\\1\\0\\0\end{bmatrix}}=\,2\,{\begin{bmatrix}0\\1\\0\\0\\0\end{bmatrix}}} and M u = σ v {\displaystyle M^{*}u=\sigma v} [ 1 0 0 0 0 0 2 0 0 0 0 0 3 0 0 0 0 0 4 0 ] [ 0 1 0 0 0 ] = 2 [ 0 1 0 0 ] . {\displaystyle {\begin{bmatrix}1&0&0&0&0\\0&2&0&0&0\\0&0&3&0&0\\0&0&0&4&0\end{bmatrix}}\,{\begin{bmatrix}0\\1\\0\\0\\0\end{bmatrix}}=\,2\,{\begin{bmatrix}0\\1\\0\\0\end{bmatrix}}.} Thus, for the given matrix W {\displaystyle W} with its column-space that is spanned by two exact right singular vectors, we determine these right singular vectors, as well as the corresponding left singular vectors and the singular values, all exactly. For an arbitrary matrix W {\displaystyle W} , we obtain approximate singular triplets which are optimal given W {\displaystyle W} in the sense of optimality of the Rayleigh–Ritz method.

Applications and examples

In quantum physics

In quantum physics, where the spectrum of the Hamiltonian is the set of discrete energy levels allowed by a quantum mechanical system, the Rayleigh–Ritz method is used to approximate the energy states and wavefunctions of a complicated atomic or nuclear system. In fact, for any system more complicated than a single hydrogen atom, there is no known exact solution for the spectrum of the Hamiltonian.

In this case, a trial wave function, Ψ {\displaystyle \Psi } , is tested on the system. This trial function is selected to meet boundary conditions (and any other physical constraints). The exact function is not known; the trial function contains one or more adjustable parameters, which are varied to find a lowest energy configuration.

It can be shown that the ground state energy, E 0 {\displaystyle E_{0}} , satisfies an inequality: E 0 Ψ | H ^ | Ψ Ψ | Ψ . {\displaystyle E_{0}\leq {\frac {\langle \Psi |{\hat {H}}|\Psi \rangle }{\langle \Psi |\Psi \rangle }}.}

That is, the ground-state energy is less than this value. The trial wave-function will always give an expectation value larger than or equal to the ground-energy.

If the trial wave function is known to be orthogonal to the ground state, then it will provide a boundary for the energy of some excited state.

The Ritz ansatz function is a linear combination of N known basis functions { Ψ i } {\displaystyle \left\lbrace \Psi _{i}\right\rbrace } , parametrized by unknown coefficients: Ψ = i = 1 N c i Ψ i . {\displaystyle \Psi =\sum _{i=1}^{N}c_{i}\Psi _{i}.}

With a known Hamiltonian, we can write its expected value as ε = i = 1 N c i Ψ i | H ^ | i = 1 N c i Ψ i i = 1 N c i Ψ i | i = 1 N c i Ψ i = i = 1 N j = 1 N c i c j H i j i = 1 N j = 1 N c i c j S i j A B . {\displaystyle \varepsilon ={\frac {\left\langle \displaystyle \sum _{i=1}^{N}c_{i}\Psi _{i}\right|{\hat {H}}\left|\displaystyle \sum _{i=1}^{N}c_{i}\Psi _{i}\right\rangle }{\left\langle \left.\displaystyle \sum _{i=1}^{N}c_{i}\Psi _{i}\right|\displaystyle \sum _{i=1}^{N}c_{i}\Psi _{i}\right\rangle }}={\frac {\displaystyle \sum _{i=1}^{N}\displaystyle \sum _{j=1}^{N}c_{i}^{*}c_{j}H_{ij}}{\displaystyle \sum _{i=1}^{N}\displaystyle \sum _{j=1}^{N}c_{i}^{*}c_{j}S_{ij}}}\equiv {\frac {A}{B}}.}

The basis functions are usually not orthogonal, so that the overlap matrix S has nonzero nondiagonal elements. Either { c i } {\displaystyle \left\lbrace c_{i}\right\rbrace } or { c i } {\displaystyle \left\lbrace c_{i}^{*}\right\rbrace } (the conjugation of the first) can be used to minimize the expectation value. For instance, by making the partial derivatives of ε {\displaystyle \varepsilon } over { c i } {\displaystyle \left\lbrace c_{i}^{*}\right\rbrace } zero, the following equality is obtained for every k = 1, 2, ..., N: ε c k = j = 1 N c j ( H k j ε S k j ) B = 0 , {\displaystyle {\frac {\partial \varepsilon }{\partial c_{k}^{*}}}={\frac {\displaystyle \sum _{j=1}^{N}c_{j}(H_{kj}-\varepsilon S_{kj})}{B}}=0,} which leads to a set of N secular equations: j = 1 N c j ( H k j ε S k j ) = 0 for k = 1 , 2 , , N . {\displaystyle \sum _{j=1}^{N}c_{j}\left(H_{kj}-\varepsilon S_{kj}\right)=0\quad {\text{for}}\quad k=1,2,\dots ,N.}

In the above equations, energy ε {\displaystyle \varepsilon } and the coefficients { c j } {\displaystyle \left\lbrace c_{j}\right\rbrace } are unknown. With respect to c, this is a homogeneous set of linear equations, which has a solution when the determinant of the coefficients to these unknowns is zero: det ( H ε S ) = 0 , {\displaystyle \det \left(H-\varepsilon S\right)=0,} which in turn is true only for N values of ε {\displaystyle \varepsilon } . Furthermore, since the Hamiltonian is a hermitian operator, the H matrix is also hermitian and the values of ε i {\displaystyle \varepsilon _{i}} will be real. The lowest value among ε i {\displaystyle \varepsilon _{i}} (i=1,2,..,N), ε 0 {\displaystyle \varepsilon _{0}} , will be the best approximation to the ground state for the basis functions used. The remaining N-1 energies are estimates of excited state energies. An approximation for the wave function of state i can be obtained by finding the coefficients { c j } {\displaystyle \left\lbrace c_{j}\right\rbrace } from the corresponding secular equation.

In mechanical engineering

The Rayleigh–Ritz method is often used in mechanical engineering for finding the approximate real resonant frequencies of multi degree of freedom systems, such as spring mass systems or flywheels on a shaft with varying cross section. It is an extension of Rayleigh's method. It can also be used for finding buckling loads and post-buckling behaviour for columns.

Consider the case whereby we want to find the resonant frequency of oscillation of a system. First, write the oscillation in the form, y ( x , t ) = Y ( x ) cos ω t {\displaystyle y(x,t)=Y(x)\cos \omega t} with an unknown mode shape Y ( x ) {\displaystyle Y(x)} . Next, find the total energy of the system, consisting of a kinetic energy term and a potential energy term. The kinetic energy term involves the square of the time derivative of y ( x , t ) {\displaystyle y(x,t)} and thus gains a factor of ω 2 {\displaystyle \omega ^{2}} . Thus, we can calculate the total energy of the system and express it in the following form: E = T + V A [ Y ( x ) ] ω 2 sin 2 ω t + B [ Y ( x ) ] cos 2 ω t {\displaystyle E=T+V\equiv A\omega ^{2}\sin ^{2}\omega t+B\cos ^{2}\omega t}

By conservation of energy, the average kinetic energy must be equal to the average potential energy. Thus, ω 2 = B [ Y ( x ) ] A [ Y ( x ) ] = R [ Y ( x ) ] {\displaystyle \omega ^{2}={\frac {B}{A}}=R} which is also known as the Rayleigh quotient. Thus, if we knew the mode shape Y ( x ) {\displaystyle Y(x)} , we would be able to calculate A [ Y ( x ) ] {\displaystyle A} and B [ Y ( x ) ] {\displaystyle B} , and in turn get the eigenfrequency. However, we do not yet know the mode shape. In order to find this, we can approximate Y ( x ) {\displaystyle Y(x)} as a combination of a few approximating functions Y i ( x ) {\displaystyle Y_{i}(x)} Y ( x ) = i = 1 N c i Y i ( x ) {\displaystyle Y(x)=\sum _{i=1}^{N}c_{i}Y_{i}(x)} where c 1 , c 2 , , c N {\displaystyle c_{1},c_{2},\cdots ,c_{N}} are constants to be determined. In general, if we choose a random set of c 1 , c 2 , , c N {\displaystyle c_{1},c_{2},\cdots ,c_{N}} , it will describe a superposition of the actual eigenmodes of the system. However, if we seek c 1 , c 2 , , c N {\displaystyle c_{1},c_{2},\cdots ,c_{N}} such that the eigenfrequency ω 2 {\displaystyle \omega ^{2}} is minimised, then the mode described by this set of c 1 , c 2 , , c N {\displaystyle c_{1},c_{2},\cdots ,c_{N}} will be close to the lowest possible actual eigenmode of the system. Thus, this finds the lowest eigenfrequency. If we find eigenmodes orthogonal to this approximated lowest eigenmode, we can approximately find the next few eigenfrequencies as well.

In general, we can express A [ Y ( x ) ] {\displaystyle A} and B [ Y ( x ) ] {\displaystyle B} as a collection of terms quadratic in the coefficients c i {\displaystyle c_{i}} : B [ Y ( x ) ] = i j c i c j K i j = c T K c {\displaystyle B=\sum _{i}\sum _{j}c_{i}c_{j}K_{ij}=\mathbf {c} ^{\mathsf {T}}K\mathbf {c} } A [ Y ( x ) ] = i j c i c j M i j = c T M c {\displaystyle A=\sum _{i}\sum _{j}c_{i}c_{j}M_{ij}=\mathbf {c} ^{\mathsf {T}}M\mathbf {c} } where K {\displaystyle K} and M {\displaystyle M} are the stiffness matrix and mass matrix of a discrete system respectively.

The minimization of ω 2 {\displaystyle \omega ^{2}} becomes: ω 2 c i = c i c T K c c T M c = 0 {\displaystyle {\frac {\partial \omega ^{2}}{\partial c_{i}}}={\frac {\partial }{\partial c_{i}}}{\frac {\mathbf {c} ^{\mathsf {T}}K\mathbf {c} }{\mathbf {c} ^{\mathsf {T}}M\mathbf {c} }}=0}

Solving this, c T M c c T K c c c T K c c T M c c = 0 {\displaystyle \mathbf {c} ^{\mathsf {T}}M\mathbf {c} {\frac {\partial \mathbf {c} ^{\mathsf {T}}K\mathbf {c} }{\partial \mathbf {c} }}-\mathbf {c} ^{\mathsf {T}}K\mathbf {c} {\frac {\partial \mathbf {c} ^{\mathsf {T}}M\mathbf {c} }{\partial \mathbf {c} }}=0} K c c T K c c T M c M c = 0 {\displaystyle K\mathbf {c} -{\frac {\mathbf {c} ^{\mathsf {T}}K\mathbf {c} }{\mathbf {c} ^{\mathsf {T}}M\mathbf {c} }}M\mathbf {c} =\mathbf {0} } K c ω 2 M c = 0 {\displaystyle K\mathbf {c} -\omega ^{2}M\mathbf {c} =\mathbf {0} }

For a non-trivial solution of c, we require determinant of the matrix coefficient of c to be zero. det ( K ω 2 M ) = 0 {\displaystyle \det(K-\omega ^{2}M)=0}

This gives a solution for the first N eigenfrequencies and eigenmodes of the system, with N being the number of approximating functions.

Simple case of double spring-mass system

The following discussion uses the simplest case, where the system has two lumped springs and two lumped masses, and only two mode shapes are assumed. Hence M = and K = .

A mode shape is assumed for the system, with two terms, one of which is weighted by a factor B, e.g. Y =  + B. Simple harmonic motion theory says that the velocity at the time when deflection is zero, is the angular frequency ω {\displaystyle \omega } times the deflection (y) at time of maximum deflection. In this example the kinetic energy (KE) for each mass is 1 2 ω 2 Y 1 2 m 1 {\textstyle {\frac {1}{2}}\omega ^{2}Y_{1}^{2}m_{1}} etc., and the potential energy (PE) for each spring is 1 2 k 1 Y 1 2 {\textstyle {\frac {1}{2}}k_{1}Y_{1}^{2}} etc.

We also know that without damping, the maximal KE equals the maximal PE. Thus, i = 1 2 ( 1 2 ω 2 Y i 2 M i ) = i = 1 2 ( 1 2 K i Y i 2 ) {\displaystyle \sum _{i=1}^{2}\left({\frac {1}{2}}\omega ^{2}Y_{i}^{2}M_{i}\right)=\sum _{i=1}^{2}\left({\frac {1}{2}}K_{i}Y_{i}^{2}\right)}

The overall amplitude of the mode shape cancels out from each side, always. That is, the actual size of the assumed deflection does not matter, just the mode shape.

Mathematical manipulations then obtain an expression for ω {\displaystyle \omega } , in terms of B, which can be differentiated with respect to B, to find the minimum, i.e. when d ω / d B = 0 {\displaystyle d\omega /dB=0} . This gives the value of B for which ω {\displaystyle \omega } is lowest. This is an upper bound solution for ω {\displaystyle \omega } if ω {\displaystyle \omega } is hoped to be the predicted fundamental frequency of the system because the mode shape is assumed, but we have found the lowest value of that upper bound, given our assumptions, because B is used to find the optimal 'mix' of the two assumed mode shape functions.

There are many tricks with this method, the most important is to try and choose realistic assumed mode shapes. For example, in the case of beam deflection problems it is wise to use a deformed shape that is analytically similar to the expected solution. A quartic may fit most of the easy problems of simply linked beams even if the order of the deformed solution may be lower. The springs and masses do not have to be discrete, they can be continuous (or a mixture), and this method can be easily used in a spreadsheet to find the natural frequencies of quite complex distributed systems, if you can describe the distributed KE and PE terms easily, or else break the continuous elements up into discrete parts.

This method could be used iteratively, adding additional mode shapes to the previous best solution, or you can build up a long expression with many Bs and many mode shapes, and then differentiate them partially.

In dynamical systems

The Koopman operator allows a finite-dimensional nonlinear system to be encoded as an infinite-dimensional linear system. In general, both of these problems are difficult to solve, but for the latter we can use the Ritz-Galerkin method to approximate a solution.

The relationship with the finite element method

In the language of the finite element method, the matrix H k j {\displaystyle H_{kj}} is precisely the stiffness matrix of the Hamiltonian in the piecewise linear element space, and the matrix S k j {\displaystyle S_{kj}} is the mass matrix. In the language of linear algebra, the value ϵ {\displaystyle \epsilon } is an eigenvalue of the discretized Hamiltonian, and the vector c {\displaystyle c} is a discretized eigenvector.

See also

Notes and references

  1. ^ Leissa, A.W. (2005). "The historical bases of the Rayleigh and Ritz methods". Journal of Sound and Vibration. 287 (4–5): 961–978. Bibcode:2005JSV...287..961L. doi:10.1016/j.jsv.2004.12.021.
  2. ^ Ilanko, Sinniah (2009). "Comments on the historical bases of the Rayleigh and Ritz methods". Journal of Sound and Vibration. 319 (1–2): 731–733. Bibcode:2009JSV...319..731I. doi:10.1016/j.jsv.2008.06.001.
  3. ^ Davies, E. B.; Plum, M. (2003). "Spectral Pollution". IMA Journal of Numerical Analysis.
  4. ^ Süli, Endre; Mayers, David (2003). An Introduction to Numerical Analysis. Cambridge University Press. ISBN 0521007941.
  5. ^ Levitin, Michael; Shargorodsky, Eugene (2004). "Spectral pollution and second order relative spectra for self-adjoint operators". IMA Journal of Numerical Analysis.
  6. ^ Pryce, John D. (1994). Numerical Solution of Sturm-Liouville Problems. Oxford University Press. ISBN 0198534159.
  7. ^ Arfken, George B.; Weber, Hans J. (2005). Mathematical Methods For Physicists (6th ed.). Academic Press.
  8. Colbrook, Matthew. "Unscrambling the Infinite: Can we Compute Spectra?". Mathematics Today. Institute of Mathematics and its Applications.
  9. Colbrook, Matthew; Roman, Bogdan; Hansen, Anders (2019). "How to Compute Spectra with Error Control". Physical Review Letters.
  10. Pokrzywa, Andrzej (1979). "Method of orthogonal projections and approximation of the spectrum of a bounded operator". Studia Mathematica.
  11. Bögli, Sabine; Marletta, Marco; Tretter, Christiane (2020). "The essential numerical range for unbounded linear operators". Journal of Functional Analysis.
  12. Trefethen, Lloyd N.; Bau, III, David (1997). Numerical Linear Algebra. SIAM. p. 254. ISBN 978-0-89871-957-4.
  13. Servadio, Simone; Arnas, David; Linares, Richard. "A Koopman Operator Tutorial with Orthogonal Polynomials". arXiv.

External links

Categories: