A
No line can do it
Suppose a line puts both blue corners, (1, 1) and (−1, −1), on its positive side. A half-plane is convex, so it also contains their midpoint, the origin. The same argument for the orange corners (1, −1) and (−1, 1) puts the origin on the negative side. Contradiction.
Training is not the problem. The logistic loss is convex in (w, b), so gradient descent reaches the global optimum, and on symmetric XOR that optimum is w = 0: predict 0.5 everywhere, loss ln 2.
B
One column fixes it
On the corners the new column x1x2 is +1 for blue and −1 for orange, so it separates the classes on its own. The weights (0, 0, −1) give z = −x1x2: p = σ(−1) ≈ 0.27 on blue, σ(+1) ≈ 0.73 on orange, and scaling w3 sharpens both.
In feature space that boundary is the flat sheet u3 = 0. Train with the product feature and watch the plane settle near it.
C
Same boundary, two views
In feature coordinates the boundary is b + w1u1 + w2u2 + w3u3 = 0, a plane, flat by construction. Substitute u3 = x1x2 and solve: x2 = −(b + w1x1) / (w2 + w3x1), a hyperbola with asymptotes x1 = −w2/w3 and x2 = −w1/w3.
Press Edge-on to see the plane as a line, then Top to see its trace as the curve on the left. Same object, two projections.
D
Networks learn φ
The decoy x1² + x2² equals 2 at every corner and helps nobody: a useful feature must differ across classes. The ReLU feature max(0, x1 + x2 − 1) is one hidden neuron with weights (1, 1) and bias −1, chosen by hand. It flags the (1, 1) corner, and with the line it solves XOR.
A hidden layer is a bank of such units whose weights are learned by the same gradient descent. The ReLU playground shows that happening.