An integer $p$ is said to be irreducible if whenever $p=ab$ then $a $ or $b$ is $1$ or $-1$.
Then we define an irreducible element $p$ in a commutative ring $R$ with unity as:
$1)$ $p \neq 0$ and $p$ isn't unit, and
$2)$ whenever $p=ab$ then one of $a$ and $b$ is a unit.
I can't understand $2)$. Shouldn't it be that one of $a$ and $b$ is unity instead of unit, if we see this from definition of an integer...
I can't understand. Please help.
Saying "one of a and b is a unit" is the same as saying "one of a and b is +1 or -1." Note: the multiplicative identity (typically 1) and the negative multiplicative identity (-1) are ALWAYS units. A unit is simply an invertible element of a ring.