then, using newton's second law, two equations can be written in the x-direction and the y-direction. note that the reaction forces are positive as applied to the pendulum and negative when applied to the cart. this is due to newton's third law.