title: Can an ANN of 2 neurons solve XOR?
body: <p>I know that an artificial neural network (ANN) of 3 neurons in 2 layers can solve XOR</p>
  
  <pre><code>Input1----Neuron1\
         \ /        \
         / \         +-------&gt;Neuron3
        /   \       /
  Input2----Neuron2/
  </code></pre>
  
  <p>But to minify this ANN, can just 2 neurons (Neuron1 takes 2 inputs, Neuron2 take only 1 input) solve XOR?</p>
  
  <pre><code>Input1
        \
         \ Neuron1-------&gt;Neuron2
         / 
  Input2/
  </code></pre>
  
  <blockquote>
    <p>The artificial neuron receives one or more inputs...
    <a href="https://en.wikipedia.org/wiki/Artificial_neuron" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Artificial_neuron</a></p>
  </blockquote>
  
  <p>Bias input '1' is assumed to be always there in both diagrams.</p>
  
  <blockquote>
    <p><em>Side notes:</em></p>
    
    <p>Single neuron can solve xor but with additional input x1*x2 or x1+x2
    <a href="https://www.quora.com/Why-cant-the-XOR-problem-be-solved-by-a-one-layer-perceptron/answer/Razvan-Popovici/log" rel="nofollow noreferrer">https://www.quora.com/Why-cant-the-XOR-problem-be-solved-by-a-one-layer-perceptron/answer/Razvan-Popovici/log</a></p>
    
    <p>The ANN form in second diagram may solve XOR with additional input like above to Neuron1 or Neuron2?</p>
  </blockquote>