The uniform bar OC of length L pivots freely about a horizontal axis through O. If the spring of modulus k is unstretched when C is coincident with A, determine the tension T required to hold the bar in the 45° position shown. The diameter of the small pulley at D is negligible.