Doubt from Triple pendulum

Write equation of motion..

Triple-pendulum-with-the-datum-at-the-origin-O%20(1)

Thank you...