We extend the definition of `eˣ` to complex numbers `z = x + iy`.
Using Euler's formula, we define the exponential function as:
eᶻ = eˣ⁺ⁱʸ = eˣ · eⁱʸ = eˣ(cos y + i sin y)
The complex logarithm `w = log(z)` is the inverse of the exponential function. It is defined by `eʷ = z`.
Let `z = reⁱᶿ` and `w = u + iv`.
Then `eʷ = z` becomes `eᵘ⁺ⁱᵛ = reⁱᶿ`, which is `eᵘ(cos v + i sin v) = r(cos θ + i sin θ)`.
Comparing modulus and argument:
However, since `θ` can be `θ + 2kπ` for any integer k, `v` can be `θ + 2kπ`.
The general logarithm is: log(z) = ln(r) + i(θ + 2kπ) = ln(|z|) + i · arg(z)
The principal value of the logarithm, denoted `Log(z)`, is the value when `k = 0` and the argument `θ` is in the principal range `(-π, π]`.
Log(z) = ln(r) + iθ, where `θ = Arg(z)`
Gregory's series is a power series expansion for the inverse tangent function.
If `θ` is an angle such that -π/4 ≤ θ ≤ π/4, then: θ = tan θ - (tan³θ / 3) + (tan⁵θ / 5) - (tan⁷θ / 7) + ...
By letting `x = tan θ`, we get the more common form:
tan⁻¹(x) = x - (x³ / 3) + (x⁵ / 5) - (x⁷ / 7) + ...
This is valid for -1 ≤ x ≤ 1.
We can use this series to find the value of π. A common method is to set `x = 1`:
`tan⁻¹(1) = 1 - 1/3 + 1/5 - 1/7 + ...`
Since `tan⁻¹(1) = π/4`, we get:
π/4 = 1 - 1/3 + 1/5 - 1/7 + ... (Leibniz formula for π)Hyperbolic functions are analogues of trigonometric functions, but defined using the hyperbola `x² - y² = 1` instead of the circle `x² + y² = 1`.
Hyperbolic Sine: sinh(x) = (eˣ - e⁻ˣ) / 2
Hyperbolic Cosine: cosh(x) = (eˣ + e⁻ˣ) / 2
Hyperbolic Tangent: tanh(x) = sinh(x) / cosh(x) = (eˣ - e⁻ˣ) / (eˣ + e⁻ˣ)
Similar to `cos²x + sin²x = 1`, the key identity for hyperbolic functions is:
cosh²(x) - sinh²(x) = 1
We can relate hyperbolic and trigonometric functions using complex arguments:
cos(ix) = (eⁱ(ⁱˣ) + e⁻ⁱ(ⁱˣ)) / 2 = (e⁻ˣ + eˣ) / 2 = cosh(x)cos(ix) = cosh(x)
sin(ix) = i sinh(x)
cosh(ix) = cos(x)
sinh(ix) = i sin(x)
A common method for summing trigonometric series is the C + iS method.
Find the sum `C = 1 + r cos θ + r²cos(2θ) + ... + rⁿ⁻¹cos((n-1)θ)`.