5.6.6 · D1Machine Learning (Aerospace Applications)

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

1,928 words9 min readBack to topic

Before you can read the parent note, you must be able to look at each symbol and hear what it says out loud. This page walks the entire alphabet of a neuron, from the humble subscript to the exponential , building each one on the one before it. Nothing here assumes you have seen algebra beyond "multiply and add".


1. A number that stands for something: the variable

Think of a cockpit gauge. The gauge labelled airspeed shows at one moment and a minute later. The label is ; the needle reading is the number inside. We use letters so we can talk about the reading without freezing it to one value.

The parent note uses for a sensor reading — airspeed, altitude, temperature. That is all ever means: one input number.


2. Many of the same thing: the subscript

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

Look at the figure. We have a row of gauges, one per input. Instead of inventing a fresh letter for each ( for airspeed, for altitude, …) we reuse the single letter and change only the little label underneath. This is the only reason subscripts exist: to say "same kind of thing, different slot".


3. The counting shorthand: , , and

Now the scary symbol. The parent note writes .

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

The figure shows the loop unrolled. is literally the same as writing Same counter under both letters, so slot pairs with slot . The is only there so we don't have to write a hundred + signs when there are a hundred inputs. Why the topic needs it: a real sensor bank has dozens of readings; the loop notation keeps the neuron formula one line long no matter how many.


4. Multiply-then-add together: the weighted sum

Now we can read the heart of the neuron. Two words:

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

Picture a mixing desk (the figure). Each sensor feeds a slider . Slide it up, that sensor's contribution to the final knob grows. The single output number is the "master volume" the neuron will react to. Why we need it: the whole point of learning is turning these dials — the network discovers, from data, which sensors matter for predicting pitch or spotting a fault.


5. The resting nudge: the bias

Imagine a bathroom scale that reads with nothing on it. That constant is a bias. In a neuron, if every input happens to be , the weighted sum is too — without a bias the neuron would be forced to output "nothing" in that case. The bias gives it a resting value it can lean on, so it can fire even when inputs are quiet. Why the topic needs it: it lets each neuron pick where its decision line sits, not just how steep it is.


6. The bending machine: what a function is

The parent note's neuron is : take the master number , run it through machine , call the result . The three machines the parent introduces — ReLU, sigmoid, tanh — are three different bending rules. To read them we need two last tools: the exponential and the idea of steepness.


7. Curves need this: the exponential

Sigmoid and tanh both contain . Let's earn it.

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

Follow the two curves in the figure. Why sigmoid uses : we want a machine whose output slides smoothly from to . The trick does exactly that:

  • When is very negative, is huge, so .
  • When is very positive, , so .
  • At , , so — dead centre.

So is the ingredient that gives sigmoid its smooth S-shape between and . We use this tool and not a plain straight line precisely because we want a gentle, always-differentiable squash rather than a hard cut.


8. How steep is the curve here: derivative

The parent note keeps writing , , . Read the dash out loud as "prime".

Picture standing on the curve and asking "if I step a hair to the right, how much do I rise?" That rise-per-step is the derivative. Why the topic needs it: learning (see Backpropagation and Gradient Descent) works by nudging weights in the direction the slope points. If a machine is flat () over a wide range — as sigmoid is for big — the nudge signal dies. That flat-region death is exactly the vanishing gradient the parent warns about.

Recall Why does ReLU keep gradients alive but sigmoid kill them?

ReLU's slope is for positive (steady climb, signal passes), while sigmoid's slope is at most and near when saturated — multiply many such small slopes together and the learning signal shrinks to nothing.


9. Putting it together — the neuron in one breath

Read the parent's master formula now, symbol by symbol:

  • — the -th input gauge (§1–3)
  • — its importance dial (§4)
  • — loop that multiply-adds all of them (§3–4)
  • — the resting nudge (§5)
  • — the bending machine, one of ReLU / sigmoid / tanh (§6–7)
  • — the single output number

That is the whole neuron. Everything else on the parent page is choosing which bending machine to use, and how steep () it is for learning.


Prerequisite map

Variable x

Subscripts x_i

Index i and count n

Summation sign

Weight w_i

Weighted sum z

Bias b

Function f of z

Exponential e to minus z

Activation ReLU sigmoid tanh

Derivative slope

Learning by gradient

Artificial neuron

Neural network fundamentals

Each foundation feeds the next; the two streams (the forward blend-and-bend, and the slope needed for learning) meet at the neuron, which is the doorway into the parent topic.


Equipment checklist

Test yourself — can you say each answer before revealing it?

What does the low number in tell you?
It is a subscript — a label meaning "input number three", not a power.
Read in plain English.
Loop from 1 to , each time multiply input by its weight , and add all the results.
What is a weight, in one sentence?
A dial saying how much that input matters to the neuron's decision.
Why add a bias ?
So the neuron can produce a non-zero output even when every input is zero — a resting value it can shift.
What is ?
A machine that takes the one number and returns one output by a fixed bending rule.
Is big or small when is very positive?
Small — it heads toward zero, which pushes sigmoid's output toward 1.
What does the prime in measure?
The slope (steepness) of at — how much output changes for a tiny nudge in input.
Why do vanishing gradients matter?
If the slope is near zero over a wide range, the learning signal shrinks and weights stop updating.