Doubt from Triple pendulum

work-power-energy
hard
triple-pendulum
equation-of-motion
unsolved
pp
#1

Write equation of motion..