Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

10.1: Introduction to Nonconservative Systems

Hamilton’s action principle, Lagrangian mechanics, and Hamiltonian mechanics, all exploit the concept of action which is a single, invariant, quantity. These algebraic formulations of mechanics all are based on energy, which is a scalar quantity, and thus these formulations are easier to handle than the vector concept of force employed in Newtonian mechanics. Algebraic formulations provide a powerful and elegant approach to understand and develop the equations of motion of systems in nature. Chapters 696 − 9 applied variational principles to Hamilton’s action principle which led to the Lagrangian, and Hamiltonian formulations that simplify determination of the equations of motion for systems in classical mechanics.

A conservative force has the property that the total work done moving between two points is independent of the taken path. That is, a conservative force is time symmetric and can be expressed in terms of the gradient of a scalar potential VV. Hamilton’s action principle implicitly assumes that the system is conservative for those degrees of freedom that are built into the definition of the action, and the related Lagrangian, and Hamiltonian. The focus of this chapter is to discuss the origins of nonconservative motion and how it can be handled in algebraic mechanics.

10.2: Origins of Nonconservative Motion

Nonconservative degrees of freedom involve irreversible processes, such as dissipation, damping, and also can result from course-graining, or ignoring coupling to active degrees of freedom. The nonconservative role of ignored active degrees of freedom is illustrated by the weakly-coupled double harmonic oscillator system discussed below. Let the two harmonic oscillators have masses (m1,m2),(m_{1},m_{2}), uncoupled angular frequencies (ω1,ω2)(\omega _{1},\omega _{2})\,, and oscillation amplitudes (q1,q2)(q_{1},q_{2}). Assume that the coupling potential energy is U=λq1q2.U=\lambda q_{1}q_{2}. The Lagrangian for this weakly-coupled double oscillator is

L(q1,q2,q˙1,q˙2,t)=m12(q˙12ω12q12)+λq1q2+m22(q˙22ω22q22)L(q_{1,}q_{2},\dot{q}_{1},\dot{q}_{2},t)=\frac{m_{1}}{2}\left( \dot{q} _{1}^{2}-\omega _{1}^{2}q_{1}^{2}\right) +\lambda q_{1}q_{2}+\frac{m_{2}}{2} \left( \dot{q}_{2}^{2}-\omega _{2}^{2}q_{2}^{2}\right)

Note that the total Lagrangian is conservative since the Lagrangian is explicitly time independent. As shown in chapter 14.2,14.2, the solution for the amplitudes of the oscillation for the coupled system are given by

q1(t)=Dsin[(ω1+ω22)t]sin[(ω1ω22)t]q2(t)=Dcos[(ω1+ω22)t]cos[(ω1ω22)t]\begin{aligned} q_{1}\left( t\right) &=&D\sin \left[ \left( \frac{\omega _{1}+\omega _{2}}{2} \right) t\right] \sin \left[ \left( \frac{\omega _{1}-\omega _{2}}{2}\right) t\right] \\ q_{2}\left( t\right) &=&D\cos \left[ \left( \frac{\omega _{1}+\omega _{2}}{2} \right) t\right] \cos \left[ \left( \frac{\omega _{1}-\omega _{2}}{2}\right) t\right]\end{aligned}

The system exhibits the common “beats” behavior where the coupled harmonic oscillators have an angular frequency that is the average oscillator frequency ωaverage=(ω1+ω22),\omega _{average}=\left( \frac{\omega _{1}+\omega _{2}}{2}\right) , and the oscillation intensities are modulated at the difference frequency, ωdifference=(ω1ω22).\omega _{difference}=\left( \frac{\omega _{1}-\omega _{2}}{2} \right) . Although the total energy is conserved for this conservative system, this shared energy flows back and forth between the two coupled harmonic oscillators at the difference frequency. If the equations of motion for oscillator 1 ignore the coupling to the motion of oscillator 2, that is, assume a constant average value q2=q2q_{2}=\left\langle q_{2}\right\rangle is used, then the intensity q12\left\vert q_{1}\right\vert ^{2} and energy of the first oscillator still is modulated by the sin(ω1ω22)t2\left\vert \sin \left( \frac{ \omega _{1}-\omega _{2}}{2}\right) t\right\vert ^{2} term. Thus the total energy for this truncated coupled-oscillator system is no longer conserved due to neglect of the energy flowing into and out of oscillator 1 due to its coupling to oscillator 2. That is, the solution for the truncated system of oscillator 1 is not conservative since it is exchanging energy with the coupled, but ignored, second oscillator. This elementary example illustrates that ignoring active degrees of freedom can transform a conservative system into a nonconservative system, for which the equations of motion derived using the truncated Lagrangian is incorrect.

The above example illustrates the importance of including all active degrees of freedom when deriving the equations of motion, in order to ensure that the total system is conservative. Unfortunately, nonconservative systems due to viscous or frictional dissipation typically result from weak thermal interactions with an enormous number of nearby atoms, which makes inclusion of all of these degrees of freedom impractical. Even though the detailed behavior of such dissipative degrees of freedom may not be of direct interest, all the active degrees of freedom must be included when applying Lagrangian or Hamiltonian mechanics.

10.3: Algebraic Mechanics for Nonconservative Systems

Since Lagrangian and Hamiltonian formulations are invalid for the nonconservative degrees of freedom, the following three approaches are used to include nonconservative degrees of freedom directly in the Lagrangian and Hamiltonian formulations of mechanics.

  1. Expand the number of degrees of freedom used to include all active degrees of freedom for the system, so that the expanded system is conservative. This is the preferred approach when it is viable. Hamilton’s action principle based on initial conditions, introduced in chapter 9.2.4, doubles the number of degrees of freedom, which can be used to account for the dissipative forces providing one approach to solve nonconservative systems. However, this approach typically is impractical for handling dissipated processes because of the large number of degrees of freedom that are involved in thermal dissipation.

  2. Nonconservative forces can be introduced directly at the equations of motion stage as generalized forces QjEXCQ_{j}^{EXC}. This approach is used extensively. For the case of linear velocity dependence, the Rayleigh’s dissipation function provides an elegant and powerful way to express the generalized forces in terms of scalar potential energies.

  3. New degrees of freedom or effective forces can be postulated that are then incorporated into the Lagrangian or the Hamiltonian in order to mimic the effects of the nonconservative forces.

Examples that exploit the above three ways to introduce nonconservative dissipative forces in algebraic formulations are given below.

10.4: Rayleigh’s Dissipation Function

As mentioned above, nonconservative systems involving viscous or frictional dissipation, typically result from weak thermal interactions with many nearby atoms, making it impractical to include a complete set of active degrees of freedom. In addition, dissipative systems usually involve complicated dependences on the velocity and surface properties that are best handled by including the dissipative drag force explicitly as a generalized drag force in the Euler-Lagrange equations. The drag force can have any functional dependence on velocity, position, or time.

Fdrag=f(q˙,q,t)v^\mathbf{F}^{drag}=-f(\mathbf{\dot{q}},\mathbf{q},t)\mathbf{\hat{v}}

Note that since the drag force is dissipative the dominant component of the drag force must point in the opposite direction to the velocity vector.

In 1881 Lord Rayleigh showed that if a dissipative force F\mathbf{F} depends linearly on velocity, it can be expressed in terms of a scalar potential functional of the generalized coordinates called the Rayleigh dissipation function R(q˙)\mathcal{R(}\mathbf{\dot{q})}. **The Rayleigh dissipation function is an elegant way to include linear velocity-dependent dissipative forces in both Lagrangian and Hamiltonian mechanics, as is illustrated below for both Lagrangian and Hamiltonian mechanics.

Generalized dissipative forces for linear velocity dependence

Consider nn equations of motion for the nn degrees of freedom, and assume that the dissipation depends linearly on velocity. Then, allowing all possible cross coupling of the equations of motion for qj,q_{j}, the equations of motion can be written in the form

i=1n[mijq¨j+bijq˙j+cijqjQi(t)]=0(10.5)\sum_{i=1}^{n}\left[ m_{ij} \ddot{q}_{j}+b_{ij}\dot{q}_{j}+c_{ij}q_{j}-Q_{i}(t)\right] =0 \tag{10.5}

Multiplying Equation 10.5 by q˙i\dot{q}_{i}, take the time integral, and sum over i,ji,j, gives the following energy equation

i=1nj=1n0tmijq¨jq˙idt+i=1nj=1n0tbijq˙jq˙idt+i=1nj=1n0tcijqjq˙idt=in0tQi(t)q˙idt\sum_{i=1}^{n}\sum_{j=1}^{n}\int_{0}^{t}m_{ij}\ddot{q}_{j}\dot{q} _{i}dt+\sum_{i=1}^{n}\sum_{j=1}^{n}\int_{0}^{t}b_{ij}\dot{q}_{j}\dot{q} _{i}dt+\sum_{i=1}^{n}\sum_{j=1}^{n}\int_{0}^{t}c_{ij}q_{j}\dot{q} _{i}dt=\sum_{i}^{n}\int_{0}^{t}Q_{i}(t)\dot{q}_{i}dt

The right-hand term is the total energy supplied to the system by the external generalized forces Qi(t)Q_{i}(t) at the time tt. The first time-integral term on the left-hand side is the total kinetic energy, while the third time-integral term equals the potential energy. The second integral term on the left is defined to equal 2R(q˙)2\mathcal{R}(\mathbf{\dot{q}} ) where Rayeigh’s dissipation function R(q˙)\mathcal{R}(\mathbf{\dot{q}}) is defined as

R(q˙)12i=1nj=1nbijq˙iq˙j\mathcal{R}(\mathbf{ \dot{q}})\mathcal{\equiv }\frac{1}{2}\sum_{i=1}^{n}\sum_{j=1}^{n}b_{ij}\dot{q }_{i}\dot{q}_{j}

and the summations are over all nn particles of the system. This definition allows for complicated cross-coupling effects between the nn particles.

The particle-particle coupling effects usually can be neglected allowing use of the simpler definition that includes only the diagonal terms. Then the diagonal form of the Rayleigh dissipation function simplifies to

R(q˙)12i=1nbiq˙i2\mathcal{R}(\mathbf{\dot{q}})\mathcal{\equiv }\frac{1}{2}\sum_{i=1}^{n}b_{i} \dot{q}_{i}^{2}

Therefore the frictional force in the qiq_{i} direction depends linearly on velocity q˙i\dot{q}_{i}, that is

Fqif=R(q˙)q˙i=biq˙iF_{q_{i}}^{f}=-\frac{\partial \mathcal{R}(\mathbf{\dot{q}})}{\partial \dot{q} _{i}}=-b_{i}\dot{q}_{i}

In general, the dissipative force is the velocity gradient of the Rayleigh dissipation function,

Ff=q˙R(q˙)\mathbf{F}^{f}=-\nabla _{\mathbf{\dot{q}}}\mathcal{R}(\mathbf{\dot{q}})

The physical significance of the Rayleigh dissipation function is illustrated by calculating the work done by one particle ii against friction, which is

dWif=Fifdr=Fifq˙idt=biq˙i2dtdW_{i}^{f}=-\mathbf{F}_{i}^{f}\cdot d\mathbf{r=-F}_{i}^{f}\cdot \mathbf{\dot{ q}}_{i}dt=b_{i}\dot{q}_{i}^{2}dt

Therefore

2R(q˙)=dWfdt2\mathcal{R}(\mathbf{\dot{q}})\mathcal{=}\frac{dW^{f}}{dt}

which is the rate of energy (power) loss due to the dissipative forces involved. The same relation is obtained after summing over all the particles involved.

Transforming the frictional force into generalized coordinates requires equation (6.3.10)(6.3.10)

r˙i=kriqkq˙k+rit\mathbf{\dot{r}}_{i}\mathbf{=}\sum_{k}\frac{\partial \mathbf{r}_{i}}{ \partial q_{k}}\dot{q}_{k}+\frac{\partial \mathbf{r}_{i}}{\partial t}

Note that the derivative with respect to q˙k\dot{q}_{k} equals

r˙iq˙j=riqj\frac{\partial \mathbf{\dot{r}}_{i}}{\partial \dot{q}_{j}}=\frac{\partial \mathbf{r}_{i}}{\partial q_{j}}

Using equations (6.3.11)(6.3.11) and 7.3.12, the jj component of the generalized frictional force QjfQ_{j}^{f} is given by

Qjf=i=1nFifriqj=i=1nFifr˙iq˙j=i=1nviR(q˙)r˙iq˙j=R(q˙)q˙j(10.15)Q_{j}^{f}=\sum_{i=1}^{n}\mathbf{F}_{i}^{f}\cdot \frac{\partial \mathbf{r}_{i} }{\partial q_{j}}=\sum_{i=1}^{n}\mathbf{F}_{i}^{f}\cdot \frac{\partial \mathbf{\dot{r}}_{i}}{\partial \dot{q}_{j}}=-\sum_{i=1}^{n}\nabla _{v_{i}} \mathcal{R}(\mathbf{\dot{q}})\cdot \frac{\partial \mathbf{\dot{r}}_{i}}{ \partial \dot{q}_{j}}=-\frac{\partial \mathcal{R}(\mathbf{\dot{q}})}{ \partial \dot{q}_{j}}\tag{10.15}

Equation 10.15 provides an elegant expression for the generalized dissipative force QjfQ_{j}^{f} in terms of the Rayleigh’s scalar dissipation potential R\mathcal{R}.

Generalized dissipative forces for nonlinear velocity dependence

The above discussion of the Rayleigh dissipation function was restricted to the special case of linear velocity-dependent dissipation. Virga[Vir15] proposed that the scope of the classical Rayleigh-Lagrange formalism can be extended to include nonlinear velocity dependent dissipation by assuming that the nonconservative dissipative forces are defined by

Fif=R(q,q˙)q˙\mathbf{F}_{i}^{f}=-\frac{\partial R(\mathbf{q},\mathbf{\dot{q}})}{\partial \mathbf{\dot{q}}}

where the generalized Rayleigh dissipation function R(q,q˙)\mathcal{R(}\mathbf{q}, \mathbf{\dot{q}}) satisfies the general Lagrange mechanics relation

δLδqRq˙=0\frac{\delta L}{\delta q}-\frac{\partial R}{\partial \dot{q}}=0

This generalized Rayleigh’s dissipation function eliminates the prior restriction to linear dissipation processes, which greatly expands the range of validity for using Rayleigh’s dissipation function.

Lagrange equations of motion

Linear dissipative forces can be directly, and elegantly, included in Lagrangian mechanics by using Rayleigh’s dissipation function as a generalized force QjfQ_{j}^{f}. Inserting Rayleigh dissipation function 10.15 in the generalized Lagrange equations of motion (6.5.12)(6.5.12) gives

{ddt(Lq˙j)Lqj}=[k=1mλkgkqj(q,t)+QjEXC]R(q,q˙)q˙j(10.18)\left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) - \frac{\partial L}{\partial q_{j}}\right\} =\left[ \sum_{k=1}^{m}\lambda _{k} \frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC}\right] - \frac{\partial \mathcal{R(}\mathbf{q},\mathbf{\dot{q}})}{\partial \dot{q}_{j} }\tag{10.18}

where QjEXCQ_{j}^{EXC} corresponds to the generalized forces remaining after removal of the generalized linear, velocity-dependent, frictional force QjfQ_{j}^{f}.

The holonomic forces of constraint are absorbed into the Lagrange multiplier term.

Hamiltonian mechanics

If the nonconservative forces depend linearly on velocity, and are derivable from Rayleigh’s dissipation function according to Equation 10.15, then using the definition of generalized momentum gives

p˙i=ddtLq˙j=Lqi+[k=1mλkgkqj(q,t)+QjEXC]R(q,q˙)q˙jp˙i=H(p,q,t)qi+[k=1mλkgkqj(q,t)+QjEXC]R(q,q˙)q˙j\begin{align} \dot{p}_{i} &=&\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{j}}=\frac{ \partial L}{\partial q_{i}}+\left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC}\right] -\frac{\partial \mathcal{R(}\mathbf{q},\mathbf{\dot{q}})}{\partial \dot{q}_{j}} \\ \dot{p}_{i} &=&-\frac{\partial H(\mathbf{p,q},t\mathbf{)}}{\partial q_{i}}+ \left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}( \mathbf{q},t)+Q_{j}^{EXC}\right] -\frac{\partial \mathcal{R(}\mathbf{q}, \mathbf{\dot{q}})}{\partial \dot{q}_{j}}\end{align}

Thus Hamilton’s equations become

q˙i=Hpip˙i=Hqi+[k=1mλkgkqj(q,t)+QjEXC]R(q,q˙)q˙j\begin{align} \dot{q}_{i} &=&\frac{\partial H}{\partial p_{i}} \\ \dot{p}_{i} &=&-\frac{\partial H}{\partial q_{i}}+\left[ \sum_{k=1}^{m} \lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC} \right] -\frac{\partial \mathcal{R(}\mathbf{q},\mathbf{\dot{q}})}{\partial \dot{q}_{j}}\end{align}

The Rayleigh dissipation function R(q,q˙)\mathcal{R(}\mathbf{q},\mathbf{\dot{q}}) provides an elegant and convenient way to account for dissipative forces in both Lagrangian and Hamiltonian mechanics.

10.5: Dissipative Lagrangians

The prior discussion of nonconservative systems mentioned the following three ways to incorporate dissipative processes into Lagrangian or Hamiltonian mechanics.

  1. Expand the number of degrees of freedom to include all the active dissipative active degrees of freedom as well as the conservative ones.

  2. Use generalized forces to incorporate dissipative processes.

  3. Add dissipative terms to the Lagrangian or Hamiltonian to mimic dissipation.

The following illustrates the use of dissipative Lagrangians.

Bateman pointed out that an isolated dissipative system is physically incomplete, that is, a complete system must comprise at least two coupled subsystems where energy is transferred from a dissipating subsystem to an absorbing subsystem. A complete system should comprise both the dissipating and absorbing systems to ensure that the total system Lagrangian and Hamiltonian are conserved, as is assumed in conventional Lagrangian and Hamiltonian mechanics. Both Bateman and Dekker have illustrated that the equations of motion for a linearly-damped, free, one-dimensional harmonic oscillator are derivable using the Hamilton variational principle via introduction of a fictitious complementary subsystem that mimics dissipative processes. The following example illustrate that deriving the equations of motion for the linearly-damped, linear oscillator may be handled by three alternative equivalent non-standard Lagrangians that assume either: (1) a multidimensional system, (2) explicit time dependent Lagrangians and Hamiltonians, or (3) complex non-standard Lagrangians.

The above examples have shown that three very different, non-standard, Lagrangians, plus their corresponding Hamiltonians, all lead to the correct equation of motion for the linearly-damped harmonic oscillator. This illustrates the power of using non-standard Lagrangians to describe dissipative motion in classical mechanics. However, postulating non-standard Lagrangians to produce the required equations of motion appears to be of questionable usefulness. A fundamental approach is needed to build a firm foundation upon which non-standard Lagrangian mechanics can be based. Non-standard Lagrangian mechanics remains an active, albeit narrow, frontier of classical mechanics

10.S: Nonconservative systems (Summary)

Dissipative drag forces are non-conservative and usually are velocity dependent. Chapter 4 showed that the motion of non-linear dissipative dynamical systems can be highly sensitive to the initial conditions and can lead to chaotic motion.

Algebraic mechanics for nonconservative systems

Since Lagrangian and Hamiltonian formulations are invalid for the nonconservative degrees of freedom, the following three approaches are used to include nonconservative degrees of freedom directly in the Lagrangian and Hamiltonian formulations of mechanics.

  1. Expand the number of degrees of freedom used to include all active degrees of freedom for the system, so that the expanded system is conservative. This is the preferred approach when it is viable. Unfortunately this approach typically is impractical for handling dissipated processes because of the large number of degrees of freedom that are involved in thermal dissipation.

  2. Nonconservative forces can be introduced directly at the equations of motion stage as generalized forces QjEXCQ_{j}^{EXC}. This approach is used extensively. For the case of linear velocity dependence, the Rayleigh’s dissipation function provides an elegant and powerful way to express the generalized forces in terms of scalar potential energies.

  3. New degrees of freedom or effective forces can be postulated that are then incorporated into the Lagrangian or the Hamiltonian in order to mimic the effects of the nonconservative forces.

Rayleigh’s Dissipation Function

Generalized dissipative forces that have a linear velocity dependence can be easily handled in Lagrangian or Hamiltonian mechanics by introducing the powerful Rayleigh’s dissipation function R(q˙)\mathcal{R}(\mathbf{ \dot{q}}) where

R(q˙)12i=1nj=1nbijq˙iq˙j(10.7)\mathcal{R}(\mathbf{\dot{q}})\mathcal{\equiv }\frac{1}{2}\sum_{i=1}^{n} \sum_{j=1}^{n}b_{ij}\dot{q}_{i}\dot{q}_{j} \tag{10.7}

This approach is used extensively in physics. This approach has been generalized by defining a linear velocity dependent Rayleigh dissipation function

Fif=R(q,q˙)q˙(10.16)\mathbf{F}_{i}^{f}=-\frac{\partial R(\mathbf{q},\mathbf{\dot{q}})}{\partial \mathbf{\dot{q}}} \tag{10.16}

where the generalized Rayleigh dissipation function R(q,q˙)\mathcal{R(}\mathbf{q}, \mathbf{\dot{q}}) satisfies the general Lagrange mechanics relation

δLδqRq˙=0(10.17)\frac{\delta L}{\delta q}-\frac{\partial R}{\partial \dot{q}}=0 \tag{10.17}

This generalized Rayleigh’s dissipation function eliminates the prior restriction to linear dissipation processes, which greatly expands the range of validity for using Rayleigh’s dissipation function.

Rayleigh dissipation in Lagrange equations of motion

Linear dissipative forces can be directly, and elegantly, included in Lagrangian mechanics by using Rayleigh’s dissipation function as a generalized force QjfQ_{j}^{f}. Inserting Rayleigh dissipation function (10.4.12)(10.4.12) in the generalized Lagrange equations of motion (6.5.12)(6.5.12) gives

{ddt(Lq˙j)Lqj}=[k=1mλkgkqj(q,t)+QjEXC]R(q,q˙)q˙j(10.18)\left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) - \frac{\partial L}{\partial q_{j}}\right\} =\left[ \sum_{k=1}^{m}\lambda _{k} \frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC}\right] - \frac{\partial \mathcal{R(}\mathbf{q},\mathbf{\dot{q}})}{\partial \dot{q}_{j} } \tag{10.18}

Where QjEXCQ_{j}^{EXC} corresponds to the generalized forces remaining after removal of the generalized linear, velocity-dependent, frictional force QjfQ_{j}^{f}. The holonomic forces of constraint are absorbed into the Lagrange multiplier term.

Rayleigh dissipation in Hamiltonian mechanics

If the nonconservative forces depend linearly on velocity, and are derivable from Rayleigh’s dissipation function according to equation (10.4.12)(10.4.12), then using the definition of generalized momentum gives

p˙i=ddtLq˙j=Lqi+[k=1mλkgkqj(q,t)+QjEXC]R(q,q˙)q˙jp˙i=H(p,q,t)qi+[k=1mλkgkqj(q,t)+QjEXC]R(q,q˙)q˙j\begin{align} \dot{p}_{i} &=&\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{j}}=\frac{ \partial L}{\partial q_{i}}+\left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC}\right] -\frac{\partial \mathcal{R(}\mathbf{q},\mathbf{\dot{q}})}{\partial \dot{q}_{j}} \tag{10.19} \\ \dot{p}_{i} &=&-\frac{\partial H(\mathbf{p,q},t\mathbf{)}}{\partial q_{i}}+ \left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}( \mathbf{q},t)+Q_{j}^{EXC}\right] -\frac{\partial \mathcal{R(}\mathbf{q}, \mathbf{\dot{q}})}{\partial \dot{q}_{j}} \tag{10.20}\end{align}

Thus Hamilton’s equations become

q˙i=Hpi(10.21)\dot{q}_{i} = \frac{\partial H}{\partial p_{i}} \tag{10.21}
p˙i=Hqi+[k=1mλkgkqj(q,t)+QjEXC]R(q,q˙)q˙j\begin{align}\dot{p}_{i} &=&-\frac{\partial H}{\partial q_{i}}+\left[ \sum_{k=1}^{m} \lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC} \right] -\frac{\partial \mathcal{R(}\mathbf{q},\mathbf{\dot{q}})}{\partial \dot{q}_{j}} \tag{10.22} \end{align}

The Rayleigh dissipation function R(q,q˙)\mathcal{R(}\mathbf{q},\mathbf{\dot{q}}) provides an elegant and convenient way to account for dissipative forces in both Lagrangian and Hamiltonian mechanics.

Dissipative Lagrangians or Hamiltonians

New degrees of freedom or effective forces can be postulated that are then incorporated into the Lagrangian or the Hamiltonian in order to mimic the effects of the nonconservative forces. This approach has been used for special cases.