Complex numbers (ℂ) are of the form a + bi, where i = √(-1). Likewise, Dual numbers (ℝ(ε)) are a + bε, they combine a real part with a dual part.
The dual unit is ε (the Greek letter epsilon) and it's defined such that ε² = 0, but ε ≠ 0.
If we want to multiply two dual numbers, we use the distributive property, and you'll notice the ε² term vanishes completely:
(a + bε)(c + dε) = (ac) + (ad + bc)ε
More generally for any function f applied to a dual number a + bε, we can expand it using a Taylor series:
f(a + bε) = f(a) + f'(a)bε + 1/2 f''(a)(bε)² + ...
Every term containing a factor of ε² is zero, which means:
f(a + bε) = f(a) + f'(a)b ε
For example: e^(a + bε) = e^a(1 + bε)
Dual numbers aren't real numbers, but they can be used for automatic differentiation. If you take a dual number of the form x + ε and apply a function to it, the coefficient of the dual part is the derivative of that function applied to x.