Rayleigh-Lagrange formalism for classical dissipative systems