Graph of the function intersects the axis X at f = 0
so we need to solve the equation:
$$\frac{\left(x - 2\right)^{2}}{x + 1} = 0$$
Solve this equationThe points of intersection with the axis X:
Analytical solution$$x_{1} = 2$$
Numerical solution$$x_{1} = 2.00000141987805$$
$$x_{2} = 2.00000100675352$$
$$x_{3} = 2.00000132752919$$
$$x_{4} = 2.00000133379521$$
$$x_{5} = 2.00000142832132$$
$$x_{6} = 2.00000147836967$$
$$x_{7} = 2.00000057455928$$
$$x_{8} = 2.00000142708756$$
$$x_{9} = 2.0000012964472$$
$$x_{10} = 2.00000144742782$$
$$x_{11} = 2.00000145539967$$
$$x_{12} = 2.0000012596859$$
$$x_{13} = 2.00000132224016$$
$$x_{14} = 2.00000128959571$$
$$x_{15} = 2.00000130965461$$
$$x_{16} = 2.00000131747033$$
$$x_{17} = 2.00000130230488$$
$$x_{18} = 2.0000014736478$$
$$x_{19} = 2.00000123549736$$
$$x_{20} = 2.00000127169295$$
$$x_{21} = 2.00000144093121$$
$$x_{22} = 2.00000129948624$$
$$x_{23} = 2.00000131569098$$
$$x_{24} = 2.00000113635187$$
$$x_{25} = 2.00000141901484$$
$$x_{26} = 2.00000132366525$$
$$x_{27} = 2.00000132869617$$
$$x_{28} = 2.00000162249387$$
$$x_{29} = 2.00000116150428$$
$$x_{30} = 2.00000150300774$$
$$x_{31} = 2.00000142479051$$
$$x_{32} = 2.00000130492625$$
$$x_{33} = 2.00000157542508$$
$$x_{34} = 2.00000128147405$$
$$x_{35} = 2.00000092577245$$
$$x_{36} = 2.00000142077767$$
$$x_{37} = 2$$
$$x_{38} = 2.00000119877185$$
$$x_{39} = 2.00000148357777$$
$$x_{40} = 2.00000125259586$$
$$x_{41} = 2.00000184437219$$
$$x_{42} = 2.0000014693471$$
$$x_{43} = 2.00000142371955$$
$$x_{44} = 2.00000143098151$$
$$x_{45} = 2.00000142269575$$
$$x_{46} = 2.00000133087305$$
$$x_{47} = 2.00000110455881$$
$$x_{48} = 2.00000165554121$$
$$x_{49} = 2.00000132980959$$
$$x_{50} = 2.00000143722925$$
$$x_{51} = 2.00000175820848$$
$$x_{52} = 2.00000131380239$$
$$x_{53} = 2.00000146541364$$
$$x_{54} = 2.00000154351297$$
$$x_{55} = 2.00000144989812$$
$$x_{56} = 2.00000145847506$$
$$x_{57} = 2.00000169888093$$
$$x_{58} = 2.00000132073716$$
$$x_{59} = 2.00000149578759$$
$$x_{60} = 2.00000121296052$$
$$x_{61} = 2.00000159646162$$
$$x_{62} = 2.00000133554685$$
$$x_{63} = 2.00000122505895$$
$$x_{64} = 2.00000079943602$$
$$x_{65} = 2.00000142591196$$
$$x_{66} = 2.00000133637072$$
$$x_{67} = 2.00000130737036$$
$$x_{68} = 2.00000151116422$$
$$x_{69} = 2.00000143553503$$
$$x_{70} = 2.00000143902485$$
$$x_{71} = 2.00000118189999$$
$$x_{72} = 2.00000142961767$$
$$x_{73} = 2.00000131914966$$
$$x_{74} = 2.00000148935129$$
$$x_{75} = 2.00000153112331$$
$$x_{76} = 2.00000124459547$$
$$x_{77} = 2.0000015204518$$
$$x_{78} = 2.00000133286299$$
$$x_{79} = 2.00000146180229$$
$$x_{80} = 2.00000128571475$$
$$x_{81} = 2.00000145254858$$
$$x_{82} = 2.0000012660126$$
$$x_{83} = 2.00000133188985$$
$$x_{84} = 2.00000142171605$$
$$x_{85} = 2.00000133468906$$
$$x_{86} = 2.00000131179417$$
$$x_{87} = 2.00000144511992$$
$$x_{88} = 2.00000144295891$$
$$x_{89} = 2.00000129316084$$
$$x_{90} = 2.00000155807206$$
$$x_{91} = 2.00000132630469$$
$$x_{92} = 2.00000143241823$$
$$x_{93} = 2.00000143393384$$
$$x_{94} = 2.00000132501832$$
$$x_{95} = 2.00000106309469$$
$$x_{96} = 2.00000127682118$$