Backpropagation works backward from the loss. It finds how a small change in each weight or bias would affect that loss.
Start with input 1. The network predicts 1. The target is 2, so the squared loss is (1 − 2)² = 1.
Imagine raising the prediction to 1.1. It would be closer to 2, so the loss would fall.
The slope tells us how quickly the loss changes. It's called a gradient. For squared loss, the slope is twice the error.
2 × (1 − 2) = −2
At each step back, multiply by that step's slope. That's the chain rule.
Both weights start at 1 and both biases at 0. With input 1, the slopes inside this network are all 1. Each weight and bias gets the same gradient, −2.
Exercise
Keep the target at 2. Move the prediction from 1 to 3. Which way should it move now to reduce the loss?
QUOTE:
"Amateurs hack systems, professionals hack people."