The teacher will be very surprised to see your correct solution 😉
x - 2*atan(x) = 0
x1 = 2.33112237041442
x2 = -2.33112237041442
x3 = 0.0