Concept:In equilibrium, the net force on the bob is zero.The tension in the string balances both the weight and the electric force.Explanation:Let the string make an angle θ with the vertical.Resolve the tension into components:Vertical component: Tcosθ balances weight mg → Tcosθ=mg.Horizontal component: Tsinθ balances electric force qE → Tsinθ=qE.Square and add: T2(sin2θ+cos2θ)=(mg)2+(qE)2.Since sin2θ+cos2θ=1, we get T2=m2g2+q2E2.Therefore, T=m2g2+q2E2.