Suppose we want to solve equations of the form x=a+bexp(cx)
where all values are real and bc<0. We can use the Lambert W
function, defined as Wk(z)exp(Wk(z))=z, to obtain an exact solution
for x as follows:
a+bexp(cx)exp(cx)exp(−cx)(x−a)exp(−cx)(−cx+ac)exp(−cx+ac)(−cx+ac)−cx+acx=x=b−1(x−a)=b=−bc=−bcexp(ac)=W0(−bcexp(ac))=a−c−1W0(−bcexp(ac))
In particular, the restriction that bc<0 ensures that exactly one
solution exists and the principal branch W0 is sufficient.
Often, it is more convenient to represent solutions in terms of the Wright omega
function, defined as ω(x)=W0(exp(x)).
This is easily done:
x=a−c−1W0(−bcexp(ac))=a−c−1W0(exp(ac+ln(−bc)))=a−c−1ω(ac+ln(−bc))
When formulating transfer functions for circuits with semiconducting elements, it is often more
convenient to express equations in the alternate form αx+β=exp(γx+δ) where
αγ<0.
By simple substitution of a=−βα−1,b=α−1exp(δ),c=γ we find:
x=−αβ−γ−1W0(−αγexp(δ−βαγ))=−αβ−γ−1ω(δ−βαγ+ln(−αγ))
Generally, for audio circuits expressible in this form,
α and γ represent
constants or control-rate values, while β and δ
represent audio-rate signals. This alternate formulation makes it easier to perform multi-rate processing optimizations.