4. (20%) The point at support B for the simple pendulum of mass m and length / has a constant horizontal acceleration a as show. If it is released from rest relative to the moving system with 0=0, determine the expression for the tension T in the cord in terms of θ.