Derive the Lagrangian of the pendulum having a mas

Derive the Lagrangian of the pendulum having a mass m = 0.2 kg at the end of a massless rod of length l = 0.2 m, and cart having mass M = 0.3 kg and with frictional damping B = 0.1 N/m/sec. Develop the Euler-Lagrange equations of motion.Show transcribed image text