I have the following equation:
$y = \overline{\overline{\overline{x_{1} + \overline{x_{2}}} .x_{2}.x_{1}} + \overline{x_{3}.\overline{x_{1}+x_{2}} + x_{2}}}$
I'm trying to solve it in four ways:
1) From the outmost NOT to the innermost NOTs
2) From the outmost NOT to the innermost NOTs (with brackets)
3) From the innermost NOT to the outmost NOT
4) From the innermost NOT to the outmost NOT (with brackets)
Cases 2, 3 and 4 result in $0$, however, case 1 results in $x_{2}$:
$y = \overline{\overline{\overline{x_{1} + \overline{x_{2}}} .x_{2}.x_{1}} + \overline{x_{3}.\overline{x_{1}+x_{2}} + x_{2}}}$
$y = \overline{\overline{\overline{x_{1} + \overline{x_{2}}} .x_{2}.x_{1}}} . \overline{\overline{x_{3}.\overline{x_{1}+x_{2}} + x_{2}}}$
$y = \overline{\overline{x_{1} + \overline{x_{2}}} .x_{2}.x_{1}} . \overline{x_{3}.\overline{x_{1}+x_{2}} + x_{2}}$
$y = \overline{x_{1} + \overline{x_{2}}} .x_{2}.x_{1} . x_{3}.\overline{x_{1}+x_{2}} + x_{2}$
$y = \overline{x_{1}} + \overline{\overline{x_{2}}} .x_{2}.x_{1} . x_{3}.\overline{x_{1}}.\overline{x_{2}} + x_{2}$
$y = x_{2} + x_{2}$
$y = x_{2}$
I can't seem to figure out why is this difference as I am not sure about the precedence. The result, in fact, should be 0. All I could find about my problem was about the precedence NOT > AND > XOR, but nothing on the NOT precedence when there's a nested expression like above. I am pretty much a beginner so any help will be greatly appreciated.