b2KIT

Activation Function Explorer

Compare ReLU, sigmoid, tanh, softmax, and other activation functions. See graphs, derivatives, and output ranges side by side.

Tested tool guide Tested browser tools Checked August 16, 2026

What Activation Function Explorer does, with a checked example

This tool evaluates several activation functions at once against a shared input value or range, plotting each curve alongside its derivative and labeling the output range (0 to 1 for sigmoid, -1 to 1 for tanh, 0 to infinity for ReLU) so you can compare saturation and slope directly. It computes both the function and its analytic derivative rather than estimating slope numerically. The most common surprise: softmax operates on a full vector of scores and normalizes them against each other, so typing in one scalar the way you would for sigmoid or tanh does not reproduce real softmax behavior.

Worked example

A concrete input and expected output from the current implementation.

Input

x = 2

Expected output

ReLU(2) = 2, ReLU'(2) = 1 | Sigmoid(2) ≈ 0.8808, Sigmoid'(2) ≈ 0.1050 | Tanh(2) ≈ 0.9640, Tanh'(2) ≈ 0.0707

Sigmoid(2) = 1/(1+e^-2) and tanh(2) = (e^4-1)/(e^4+1) are standard closed-form values; each derivative uses the function's own output (sigmoid'=s(1-s), tanh'=1-tanh^2), which is why both derivatives are already small at x=2 - both curves are heading into their flat, saturated region.

How the result is produced

1

Shared-axis evaluation

You supply a single value or a range for x, and the tool plugs it into each activation function's closed-form definition (ReLU, sigmoid, tanh, and the others it lists) to produce one curve per function on the same plot. Because all curves share the same x-axis and scale, you can see directly where one function is still responsive while another has already flattened out.

2

Analytic derivative overlay

Alongside each function the tool plots its exact derivative expression - not a numerical finite-difference estimate - evaluated at the same x values. This is what lets you read off gradient magnitude at a glance, which is the practical reason to compare activations: a near-zero derivative in a saturated region is the mechanism behind vanishing gradients during backpropagation.

Good uses

  • deciding which activation to use on an output layer by checking whether its range matches the target (e.g. sigmoid's 0-1 range for a binary probability, tanh's -1 to 1 for zero-centered output)
  • explaining or visually confirming why deep sigmoid/tanh networks suffer vanishing gradients, by pointing at the flat derivative region beyond about |x| = 3
  • a quick side-by-side for coursework or interview prep when you need to recall how ReLU's kink compares to sigmoid's smooth S-curve without deriving each formula by hand

Limits and checks

  • softmax is inherently multi-input (it normalizes a vector of scores into probabilities that sum to 1); entering a lone scalar does not show real softmax behavior, only how one component would look in isolation with assumptions about the rest
  • ReLU's derivative is mathematically undefined at exactly x = 0; whatever value the tool displays there (commonly 0 or 1) is a convention, not a proven mathematical fact, and different frameworks pick different conventions
  • the graphs show the idealized mathematical functions only - they don't reflect how an activation actually behaves inside a trained network with batch normalization, weight initialization, or learned biases shifting the effective input distribution

Common questions

Can I enter a vector to see real softmax output here?

That depends on whether the tool's input field accepts a list rather than a single number - check the softmax panel specifically. If it only takes one x value, the number shown is not a true softmax probability, since softmax requires the full set of competing scores to normalize against.

Can this tool debug vanishing or exploding gradients in my actual model?

No. It shows the textbook derivative curve for each function in isolation, which explains the mechanism, but it has no access to your model's weights, layer depth, or activations, so it can't diagnose a specific training run - use it to build intuition, then check real gradient values with your framework's own tools.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools