A simple pendulum is set up in a trolley which moves to the right with an acceleration a on a horizontal plane. Then the thread of the pendulum in the mean position makes an angle with the vertical
In accelerated frame of reference, a fictitious force (pseudo force) ma acts on the bob of pendulum as shown in figure.
Hence,
in the backward direction.