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 (with respect to train). The tension in the string is equal to
(From diagram in the frame of the car)
Applying Newton's law perpendicular to string
mg sinθ = ma cosθ
⇒tanθ=ag
Applying Newton's law along string
T - mg cosθ - ma sinθ = ma
⇒T=m√g2+a2+ma