Derived the equations of motion for a 6-DOF quadrotor with a simple pendulum attached using Lagrangian mechanics. The coupled system dynamics were simulated in MATLAB to visualize the interaction between the quadrotor and pendulum under different initial conditions and mass ratios.