1 December 2026 · 2 min read
What is a neural network? A simple explanation with Class 10 maths
A neural network is a stack of “multiply, add, bend” steps whose numbers are tuned by practice. Here is the whole idea using only straight lines and a little algebra.
Neural networks power chatbots, photo apps and voice assistants. They sound mysterious, but the maths in each step is something you already know from Class 9 and 10: straight lines.
Step 1: one neuron is a line
A single neuron takes some inputs, multiplies each by a number called a weight, adds them up and adds one more number called a bias. With one input x that is y = wx + b, the equation of a straight line. The weight is the slope and the bias is where it crosses the y-axis.
Step 2: bend it
Lines can only describe straight-line patterns. So after each sum, the neuron applies a simple bend, called an activation function. The most common one, ReLU, keeps positive numbers and turns negatives into 0. That one small bend is enough: put many bent lines together and you can make almost any shape.
Step 3: stack them
A layer is many neurons side by side, each looking at the same inputs with its own weights. A network is layers one after another, each feeding the next. A photo goes in as thousands of pixel numbers; at the end, a few numbers come out, such as how likely it is that the photo shows a cat.
Step 4: learn by practice
At the start all the weights are random, so the answers are rubbish. We show the network an example with a known answer and measure how wrong it is with a number called the loss. Then we nudge every weight a tiny bit in the direction that makes the loss smaller. That direction comes from derivatives, the slope of the loss. Repeat millions of times and the network gets good.
This nudging is called gradient descent: imagine walking downhill in fog by always stepping where the ground slopes down most steeply.
How big are real networks?
A tiny one that reads handwritten digits might have about 100 000 weights. Large language models have billions. But every weight is still a number in a “multiply, add, bend” step, adjusted by the same rule.
Try it yourself
The best way to understand a neural network is to train one and watch the lines bend into shape. Gradient’s course on the maths behind AI starts from y = mx + c and ends with you training a small language model in your browser.
Keep going
Questions people ask
Do I need calculus to understand neural networks?
To see the idea, no: straight lines and slopes are enough. To train them yourself you use derivatives, which Gradient teaches from scratch.
Is a neural network like a brain?
Only loosely. The name came from early ideas about brain cells, but modern networks are just maths on numbers.