The Rayleigh-Ritz method
The potential energy functional has the form
- :({\text{C}}:{\boldsymbol {\nabla }}\mathbf {u} )~dV-\int _{\mathcal {B}}\mathbf {f} \bullet \mathbf {u} ~dV-\int _{\partial {\mathcal {B}}}{\widehat {\mathbf {t} }}\bullet \mathbf {u} ~dV}
![{\displaystyle \Pi [\mathbf {u} ]={\frac {1}{2}}\int _{\mathcal {B}}{\boldsymbol {\nabla }}\mathbf {u} :({\text{C}}:{\boldsymbol {\nabla }}\mathbf {u} )~dV-\int _{\mathcal {B}}\mathbf {f} \bullet \mathbf {u} ~dV-\int _{\partial {\mathcal {B}}}{\widehat {\mathbf {t} }}\bullet \mathbf {u} ~dV}](../b71bb98630534ae11e0904e03f118b9eab60e289.svg)
The standard method of finding an approximate solution to the mixed
boundary value problem is to minimize
over a restricted class
of functions (the Rayleigh-Ritz method), by assuming that

where
are functions that are chosen so that they
vanish on
and
is a
function that approximates the boundary displacements on
. The constants
are then chosen so that
they make
a minimum.
Suppose,
![{\displaystyle \Pi [\mathbf {u} _{\text{approx}}]=\Pi _{\text{approx}}=\Pi [a_{1},a_{2},,a_{n}]}](../2c30d83b7e880fb79df43497a967bb58e5a20d8e.svg)
Then,

where,

To minimize
we use the relations

to get a set of
equations which provide us with the values of
.
This is the approach taken for the displacement-based finite element method. If, instead, we choose to start with the complementary energy functional, we arrive at the stress-based finite element method.