a+1/a= 3 ridici totul la a 2 si folosesti formula (a+b)^2 =a^2+2ab+b^2
a^2+2a/a+1/a^2 = 9
a^2+1/a^2 = 9-2
a^2+1/a^2 = 7