This lecture covers the transformation from Hamiltonian to Lagrangian mechanics, focusing on thermodynamic potentials. The instructor explains the Lagrangian as the negative of the Legendre transformation of energy, detailing the relationship between kinetic and potential energy in mechanical systems. The discussion includes systems of identical material points, their state variables, and the equations of motion derived from Lagrangian mechanics. The instructor emphasizes the importance of understanding energy as a state function, which is influenced by position and momentum. The lecture also introduces the equations of Lagrange in thermodynamics, addressing the first and second principles, and the role of entropy in irreversible processes. The instructor models a system of points in a viscous fluid, illustrating how energy transformations relate to thermodynamic principles. The lecture concludes with a practical demonstration involving a chain of coupled harmonic oscillators, reinforcing the theoretical concepts presented throughout the session.