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 vertically. The tension in the string is equal to
m√g2+a2+ma
T−√(mg)2+(ma)2=ma
T=m√g2+a2+ma