5.6.6 · D3Machine Learning (Aerospace Applications)

Worked examples — Neural network fundamentals — neuron, activation functions (ReLU, sigmoid, tanh)

2,619 words12 min readBack to topic

You have met the neuron and its three activation functions in the parent note. This page does one thing: it drags every activation function through every kind of number you could ever feed it — big positive, big negative, exactly zero, tiny, and real aircraft data — so that when you sit an exam or debug a network, you have already seen the case.

Before we start, a two-line recap of the only three rules we use, stated in plain words so no symbol is unearned.

The scenario matrix

Every neuron input is a single number . There are only so many shapes of number, and only so many activations. This grid is the complete world — each worked example below fills one row.

Cell Scenario class What we test Example
A large ReLU passes, sigmoid → 1, tanh → +1 (saturation) Ex. 1
B large ReLU kills to 0, sigmoid → 0, tanh → −1 Ex. 2
C exactly The pivot point of all three Ex. 3
D small (near 0), both signs Where gradients are strongest; symmetry Ex. 4
E Limiting behaviour : what value is approached but never reached? Ex. 5
F Gradient / vanishing derivative values, why deep sigmoid dies Ex. 6
G Real-world word problem full neuron: weights + bias + activation Ex. 7
H Exam twist dead ReLU + Leaky ReLU rescue Ex. 8

See the whole landscape at once first — the shape of each curve tells you the answer before any arithmetic.

Figure — Neural network fundamentals — neuron, activation functions (ReLU, sigmoid, tanh)

Cell A — large positive

Cell B — large negative

Cell C — exactly zero

The most important single point: all three curves pass through the origin region, and this is where their derivatives (steepness) peak.

Figure — Neural network fundamentals — neuron, activation functions (ReLU, sigmoid, tanh)

Cell D — small near the origin (both signs)

Cell E — limiting behaviour ()

Cell F — gradients and the vanishing problem

The derivative is the steepness of the curve at a point. In training (see Backpropagation and Gradient Descent) these steepness values get multiplied layer after layer, so we must know how small they can get.

Figure — Neural network fundamentals — neuron, activation functions (ReLU, sigmoid, tanh)

Cell G — real-world word problem (full neuron)

Cell H — exam twist: dead ReLU rescued by Leaky ReLU


Recall Self-check: name the cell, then the answer

::: (Cell B — ReLU on large negative) ::: (Cell C — the pivot) ::: (Cell C — zero-centered) The value sigmoid approaches as ::: , but never reaches it (Cell E) The maximum possible value of ::: , at (Cell F) Leaky ReLU gradient for ::: (nonzero → neuron stays alive, Cell H) Best-case gradient through 10 sigmoid layers ::: about — the vanishing gradient (Cell F) in terms of ::: (Cell D — sigmoid symmetry)

Related: Vanishing and Exploding Gradients · Backpropagation and Gradient Descent · Binary Cross-Entropy Loss (sigmoid outputs feed here) · Sensor Fusion in Aerospace (where these neurons read real telemetry).