In physics, the Rayleigh dissipation function, named after Lord Rayleigh, is a function used to handle the effects of velocity-proportional frictional forces in Lagrangian mechanics. 
It was first introduced by him in 1873. 
If the frictional force on a particle with velocity  can be written as
 can be written as  , where
, where  is a diagonal matrix, then the Rayleigh dissipation function can be defined for a system of
 is a diagonal matrix, then the Rayleigh dissipation function can be defined for a system of  particles as
 particles as
 
This function represents half of the rate of energy dissipation of the system through friction. The force of friction is negative the velocity gradient of the dissipation function,  , analogous to a force being equal to the negative position gradient of a potential. This relationship is represented in terms of the set of generalized coordinates
, analogous to a force being equal to the negative position gradient of a potential. This relationship is represented in terms of the set of generalized coordinates  as
 as 
 . .
As friction is not conservative, it is included in the  term of Lagrange's equations,
 term of Lagrange's equations,
 . .
Applying of the value of the frictional force described by generalized coordinates into the Euler-Lagrange equations gives 
 . .
Rayleigh writes the Lagrangian  as kinetic energy
 as kinetic energy  minus potential energy
 minus potential energy  , which yields Rayleigh's equation from 1873.
, which yields Rayleigh's equation from 1873.
 
 . .
Since the 1970s the name Rayleigh dissipation potential for  is more common. Moreover, the original theory is generalized from quadratic functions
 is more common. Moreover, the original theory is generalized from quadratic functions  to 
dissipation potentials that are depending on
 to 
dissipation potentials that are depending on  (then called state dependence) and are non-quadratic, which leads to nonlinear friction laws like in Coulomb friction or in plasticity. The main assumption is then, that the mapping
 (then called state dependence) and are non-quadratic, which leads to nonlinear friction laws like in Coulomb friction or in plasticity. The main assumption is then, that the mapping  is convex and satisfies
 is convex and satisfies  .
.