Expression:
$$x'y + x(x+y')$$
My attempt:
- $x'y + x(x+y')$
- $x'y + xx + xy' \quad \textit{After applying second Distributive law.}$
- $x'y + x + xy' \quad \textit{After applying second Idempotent law.}$
- $x'y + x(1 + y') \quad \textit{Breaking out x}$
- $x'y + x(1) \quad \textit{After applying Annihilation law}$
- $x'y + x$
The answer is: $x + y$.
N.B. I am still new to this and learning, I am using the following book:
Discrete Mathematics for Computing / Edition 3
by Peter Grossman
For short, I'll abbreviate below Absorption, Associativity, Commutativity, Distributivity and Idempotence as abs, assoc, comm, distr and idemp, respectively.
Now, \begin{align} (x + x'y) + (x + y) &= x + y + x'y \tag{assoc, comm, idemp}\\ &= x + (y + x'y) \tag{assoc}\\ &= x + y, \tag{abs} \end{align} and \begin{align} (x + x'y)(x+y) &= x + xy + x'yx + x'y \tag{distr}\\ &= x + (xy + x'y) \tag{assoc, $xx'=0$}\\ &= x + (x + x')y \tag{distr}\\ &= x + y. \tag{$x + x' = 1$} \end{align}
Hence, letting $a = x + x'y$ and $b = x + y$, we have $a + b = b = ab$, and so $a=b$, by the Lemma.
So $x + x'y = x + y$.
Shorter version: \begin{align} x + x'y &= (x + xy) + x'y \tag{abs}\\ &= x + (xy + x'y) \tag{assoc}\\ &= x + (x + x')y \tag{distr}\\ &= x + y. \end{align} According to a deleted answer below, this law is called Redundancy law.