If S denotes the sum of an infinite G.P. S1 denotes the sum of the squares of its terms, then prove that the first term and common ratio are respectively 2SS1S2+S1 and S2−S1S2+S1.