a^2+b^2=c^2
x^2+(x+1)^2 = (x+2)^2
x^2+x^2+2x+1=x^2+4x+4
2x^2-x^2+2x-4x=4-1
x^2-2x=3
x^2-2x-3=0
\Delta = b^2-4ac
\Delta= (-2)^2-4*1*(-3)= 4+12=16
\sqrt{\Delta}=4
x_1 = \frac{-b+\sqrt \Delta}{2a}
x_1= \frac{2+4}{2} = 3 JEST TO DŁUGOŚĆ NAJKRÓTSZEGO BOKU.
x_2 = \frac{2-4}{2}=-1 (długość boku nie może być ujemna)
II BOK = x+1 = 3+1 = 4
III BOK (przeciwprostokątna) = x+2 = 3+2 = 5
3^2 + 4^2 = 5^2
9+16=25