I have no clue on how to do unit elements (inversible), zero divisors (might not exist), I know only for stuff like $\Bbb Z_n$, and I guessed that nilpotents you get from $(ax+b)^n=0$ and we have $a=0, b=0$ so only $0$ is nilpotent (like $b^n=0$ so b=0 and $a^nx^n=0$ so $a=0$ as well) and for idempotents, you just solve $(ax+b)^2=ax+b$ and you find $a,b$ which have to be something like $0$ and $1$?
Is this true for any case, like what has my function, $x^2-1$ have to do with any of the nilpotent/idempotent stuff?
Maybe I need like $x=\pm 1$, from the function and I put in the equation for idempotents that $x^2=1$? So this is literally the only information I have in all seminars, tutorials etc. I can't find anything related to this stuff, also I'm very bad at math, simple stuff is good.