A bob is hanging over a pulley inside a car through a string. The second end of the string is in the hand of a person standing in the car. The car is moving with constant acceleration 'a' directed horizontally as shown in figure. Other end of the string is pulled with constant acceleration 'a'(relative to car) vertically. The tension in the string is equal to
(Force diagram in the frame of the car)
Applying Newton's law perpendicular to string
Applying Newton's law along string