Strip away the hype and a neural network's simplest form, one neuron, no activation function, is just linear regression wearing a trench coat.
The whole thing is three moves.
1) Draw a line. To predict a house price from its square footage, you fit price = w * size + b. w (the weight) is how steeply price climbs per square foot; b (the bias) is where the line starts at zero size. Two numbers, and that is the entire model.
2) Measure the miss. That is the loss, usually mean squared error: the gap between each prediction and the real price, squared, then averaged. Squaring stops misses above and below the line cancelling out, and makes one big miss hurt more than several small ones.
3) Nudge. Take the derivative of the loss with respect to w and b. That gradient says which direction makes the error worse, so you step the opposite way. How far you step is the learning rate: too small and you crawl, too big and you overshoot. Repeat until the line stops moving.
Here is the twist: linear regression is one of the few models you never need that loop for. It has an exact algebraic answer (the normal equations) you can solve in one shot. So why write the loop by hand? Because the loop generalizes and the algebra does not. Stack layers, add non-linearities, reach billions of parameters, and no formula exists any more.
Which is why you keep meeting it. Backprop is step 3's derivative, chain-ruled back through every layer. AdamW, the default optimizer for transformers, is still just a smarter answer to "how big should the nudge be." Even reasoning models that think longer at inference had every weight placed this way first.