A frictionless inclined plane with angle of inclination theta is fixed to the floor of a train car accelerating in the +x direction with constant acceleration a. a block of mass m starts at the top of the inclined plane and slides down.
Use lagrangian mechanics to find the equation of motion of the block
Use newtons laws to confirm your equation of motion.