Foundations — Activation functions - sigmoid, tanh
Before you can read the parent note (topic: Activation functions — sigmoid, tanh), you must own every symbol it throws at you. This page builds each one from absolute zero, in the order they depend on each other. Nothing is used before it is drawn.
1. A number line and the symbol
Plain words. (read "the real numbers") is the name for every number you can place on an infinite ruler: , , , , a million — positives, negatives, zero, and all the decimals between.
The picture. A horizontal line stretching forever in both directions. Every dot on it is one real number.
Why the topic needs it. A neuron's raw signal can be any value on that ruler. The whole job of an activation function is to take this unbounded ruler and fold it into a short segment like . You cannot talk about "squashing all of into " until you can picture that endless ruler.

2. The variables , , , — what a neuron actually computes
Plain words.
- = the input, the numbers coming into the neuron (e.g. pixel brightness, or the output of a previous neuron).
- = the weight, how strongly the neuron cares about each input. Big weight = "this input matters a lot".
- = the bias, a constant nudge added on, letting the neuron shift its decision left or right.
- = the pre-activation, the single raw number the neuron builds before squashing.
The picture. Imagine a mixing desk. Each input slider is scaled by a knob , all the scaled signals are summed, then one master offset is added. The needle reading on the master meter is .
Why the topic needs it. Everything on the parent page starts with "take the pre-activation …". If you don't know came from , the worked examples (like ) look like magic.
3. Vectors and the bold letters ,
Plain words. A vector is just an ordered list of numbers bundled together. means "the first input is , the second is ". Writing them as a list is shorthand so we don't need a separate letter for every single number.
The picture. Two slots in a row, each holding a number. has the same number of slots as , because every input needs its own weight.
Why the topic needs it. Real neurons have hundreds of inputs. Bundling them as vectors lets us write one clean symbol instead of a hundred-term sum.
4. The dot product
Plain words. The dot product pairs up the vectors slot by slot, multiplies each pair, then adds all the products into one number.
Why this tool and not another? We need to combine "how much the neuron cares" () with "what actually arrived" () into a single score. Slot-by-slot multiply-then-add is exactly the operation that says "reward matching inputs, penalise mismatches" and collapses a whole list into one number — precisely what a neuron wants.

5. The exponential and the number
Plain words. is a special constant. Raising it to a power, , gives a smooth exponential curve: it grows explosively for positive and shrinks toward (but never reaches) zero for negative .
The picture. A curve that hugs the floor on the left, passes through height at (since ), then rockets upward on the right. The version we use, , is its mirror image: huge on the left, tiny on the right.
Why this tool and not another? We want a squasher that is smooth and symmetric and turns "big positive " into "output near the top" and "big negative " into "output near the bottom". The function does exactly this cross-over: at it , at it . Sticking it into turns that into a clean slide from to . No polynomial gives you this bounded, smooth, symmetric behaviour for free.

6. Functions and the notation ,
Plain words. is read "sigma of " and just means "the machine named , fed the input ". The Greek letter ("sigma") is the traditional name for the sigmoid machine. is another such machine.
The picture. A box with an input arrow (carrying ) on the left and an output arrow (carrying the squashed value) on the right.
Why the topic needs it. This notation lets us name the squasher once and reuse it. When the parent writes , it means "compute , then push it through the sigmoid box, and call the result ".
7. Slope, and the derivative
Plain words. The slope of a curve at a point is how steeply it is climbing there — "if I take one tiny step right, how far up do I go?". The derivative, written (read "sigma-prime of "), is a new machine that reports the slope of at every point .
The picture. Zoom in on the S-curve until it looks like a straight ramp. The steepness of that little ramp is the derivative. Steep in the middle, nearly flat at the two ends.
Why this tool and not another? Learning means "nudge the weights in the direction that reduces error". To know which direction, we need the slope of every function in the chain. The derivative is the exact tool that answers "which way, and how fast, is the output changing?" — nothing else measures that.

8. The chain rule (why derivatives multiply)
Plain words. If a value flows through machine A, then machine B, the overall slope is the slope of A times the slope of B. Slopes multiply along a chain.
The picture. A conveyor belt: input → box A → box B → output. A tiny wiggle at the input gets amplified by A's steepness, then again by B's steepness. Total amplification = product of the two.
Why the topic needs it. The parent's Example 2 does exactly . That multiplication is the chain rule. It is also why saturated (flat) neurons kill the gradient: multiplying by a near-zero slope.
9. Putting it together
Read it top to bottom: the ruler and vectors build ; the exponential and interval build the sigmoid box; the box gives a slope; slopes chain together — and only then are you ready for the full topic.
Equipment checklist
Test yourself — cover the right side and answer aloud.
What does mean?
What does the interval include and exclude?
In , what are , , ?
Compute the dot product of and .
What is as and as ?
What does the notation mean?
What does the derivative measure?
Where is the sigmoid steepest and where is it flat?
What does the chain rule do to slopes along a chain?
What does represent?
Connections
- Parent topic: Sigmoid & Tanh — where all these symbols get used.
- Logistic Regression — a single sigmoid neuron; same .
- Backpropagation — where the chain rule and do their work.
- Vanishing and Exploding Gradients — the flat-tail slope story made rigorous.
- Weight Initialization — keeps off the flat tails.