Abstract
In this work, using the Lambert-Tsallis Wq function, we present the analytical solution for the non-exponential decay in a simple electrical circuit composed by two resistors, two capacitors and a DC power supply. Additionally, it is shown that, in a particular case, the circuit equation assumes the form of Fermat’s equation, ax + bx = cx, allowing to observe a physical behavioral difference depending on whether the capacitances values are algebraic or transcendental numbers.
Keywords
Lambert-Tsallis Wq function; Resistor-Capacitor circuit; Fermat equation
1. Introduction
One of the most basic electrical circuits is the resistor-capacitor circuit driven by a DC power supply, as shown in Figure 1.
Using the Kirchhoff’s law, the differential equation that relates the electrical current (I) and voltage (V) in the circuit shown in Fig. 1 is simply:
whose solution is I = (V/R)e−t/RC, therefore, the electrical current decays exponentially from the initial value I(t = 0) = V/R to the final value I(t = ∞) = 0. This behavior has been largely used in the construction of electronic oscillators that are built with RC circuits and digital not gates or operational amplifiers. Usually, the period of these oscillators depends on the time required for the current I to decay to half of its initial value (I(t = t1/2) = I(t = 0)/2 = (V/R)/2): t1/2 = ln(2)RC.
A step further than the circuit in Fig. 1 is the circuit show in Figure 2 where now, instead of one resistor and one capacitor, two resistors and two capacitors are used.
Electrical circuit with a DC power supply (V), two resistors (R1 and R2) and two capacitors (C1 and C2).
Since both arms in Fig. 2 are independent, the equation for the total electrical current I in the circuit in Fig. 2 is given by
As one can note in equation (2), the current I does not decay exponentially and, on the best of our knowledge, up to now an analytical expression for the time value t1/2, I(t = t1/2) = I(t = 0)/2, for the circuit shown in Fig. 2 has not been presented anywhere. Thus, our goal in this work is to present an analytical expression for t in equation (2) as a function of I, V, R1, C1, R2 and C2. In order to do this, we are going to use the Lambert-Tsallis Wq function [1,2,3,4,5,6,7,8,9,10]. With this formula, the value of t1/2 can be easily found. Furthermore, we will also show that equation (2) can be rewritten as a Fermat’s equation and, therefore, integer values larger than 2 for the time t1/2 will be forbidden for an infinite set of values of R1, C1, R2 and C2.
This work is outlined as follows: Section 2 brings a brief review of the Lambert-Tsallis Wq function. Section 3 shows how to invert equation (2) using the Wq function. Section 4 shows how to transform equation (2) in a Fermat’s equation and discuss when integer values larger than 2 for t1/2 can be achieved or approximated. We also present an electronic oscillator whose period depends on the solution of Fermat’s equation. At last, the conclusions are drawn in Section 5.
2. The Lambert-Tsallis Wq Function
The Lambert W(z) function has been widely used in different areas of mathematics, physics and computing science [11,12,13,14]. The Lambert W function is defined as being the solution of
Since the function W(z) exp(W(z)) is a non-injective function there exist an infinite number of solutions to equation (3) and they are labelled by integer numbers, each one represents a branch of W. Thus, the solutions are represented por Wk(z), k = 0, ±1, ±2, ±3, . . .. The interesting cases are those where the Lambert function returns real values for real arguments. Thus, when z is a real number, three situations are possible: I) there are two real solutions and they correspond to the branches W0 and W-1. II) there is only one real solution and it belongs to the branch W0. III) There are no real solutions. All the other branches (k ≠ 0 and k ≠ −1) are complex solutions, even for real arguments. In the interval −1/e ≤ z ≤ 0 there are two real values for W(z). The branch satisfying W(z) ≥ −1 is the main branch named W0(z) while the branch satisfying W(z) ≤ −1 is named W−1(z). For z ≥ 0 only W0(z) is real and for z < −1/e there are no real solutions. The point (zb = −1/e,W(zb) = −1) is named branch point, it is the point where W0(zb) = W−1(zb) and dW/dz = ∞.
The Lambert W function is particularly useful to solve equations in which dependent and independent variables are related by an exponential rule. Some examples are described below.
Exemple 1:
By definition, the solution of yey = x is W(x):
Exemple 2:
Exemple 3:
It is common, for example, to use the Lambert W function to describe the voltage-current relation in circuits with diodes. For a semiconductor diode that obeys the simplified Shockley’s model, the relation between current through the diode and voltage over its terminals is given by
where Is is the saturation current of the diode, VD is the voltage between the diode terminals, VT = kBT/qe (qe – electron charge, kB – Boltzmann constant, T – temperature in Kelvin) and, finally, η is the diode ideality factor (1 < η < 2 for silicon diodes). Figure 3 shows a very basic electrical circuit composed by a DC power supply, a resistor and the diode.
Since VD = V − RI, the current flowing through the diode in the circuit shown in Fig. 3 is given by
Using the Lambert W function, one gets the following relation between electrical current (I) and power supply voltage (V)
Exchanging the exponential function by Tsallis q-exponential function in equation (3), one gets [1–10]:
where the Tsallis q-exponential function is given by
The Wq(z) function is named Lambert-Tsallis function. It is possible to find the analytical form of Wq for few values of q, and the simplest one is obtained when q = 2:
not defined for z = -1. On the other hand, for q = 3/2, for example, one gets
In general, Wq(z) can be calculated numerically using Halley method, that is a numerical method that uses the function itself and its first and second order derivatives. According to Halley method, the equation f(x) = 0 can be numerically solved by the recurrence equation:
Now, using f(Wq) = Wq expq(Wq) − z in equation (14), the value of Wq(z) can be numerically obtained by iterating the following map
Figure 4 shows a plot of Wq(z) versus z for q = 2π/3 (green), 1 (blue) and π/4 (red).
In Figure 4, the green curve has q > 2 and it does not have a vertical slope for any finite z. The blue dotted line is for q = 1, and it is the standard Lambert W function. The red solid line is for q < 1, and the lower part lies to the right of blue line. In fact, for q = 1 the lower and upper branches go to infinite. For q > 1, the upper branch reaches an asymptotic value, 1/(q−1), while the lower branch goes to infinite. At last, for q < 1, the upper branch goes to infinite (when z goes to infinite) while the negative branch touches the vertical axis in the point (0, 1/(q − 1)).
It can be shown the branch point of Wq(z), {zb, Wq(zb)}, is the point {(q − 2)−1 expq(q − 2), (q − 2)−1}. In fact, the branch point of Wq can be obtained in the following way:
It is easy to see that equation (19) is satisfied by Wq(zb) = 1/(q − 2). The value of zb, by its turn, is obtained using equation (10):
One can easily note that the branch point of the Lambert W function is recovered when q = 1. More details about Wq as well some applications of Wq in different areas like quantum information, semiconductor physics and free electron laser, can be found in the references [1–10].
3. Analytical Solution for the non-Exponential Decay in a Two Resistors and Two Capacitors Electrical Circuit
The strategy to invert equation (2) using Wq is to rewrite it in the form of equation (10). In order to achieve this the following identities have to be used: I) and II) . Let us begin with equation (2):
Using I) in (21.2) one gets
Now, using II) in (21.3) one gets
Equation (21.5) is in the form with (q = 1 − R2C2/(R1C1 − R2C2)) whose solution, according to equation (10), is A = Wq(B). Thus:
Isolating the time variable t in (21.6) one finally ends with
Using the time constants τ1 = R1C1 and τ2 = R2C2, equation (21.7) can be written in the shorter form:
The time t1/2 is obtained when I = 0.5V (R1 + R2)/(R1R2, thus
Although equation (23) is correct and complete, it depends on four variables (R1, R2, C1, C2). Thus, in the next section we are going to consider a particular situation of equations (2) and (23) that will facilitate its analysis.
4. Fermat Equation in a Resistor-Capacitor Electrical Circuit
Consider once more the circuit shown in Fig. 2 with R1 = R2 = R. In this case, equation (2) becomes
When t = t1/2 one has I(t = t1/2) = I(t = 0)/2 = V/R, therefore, equation (24) becomes
whose solution can be obtained by using the Lambert-Tsallis Wq function as shown in Section 3:
We are considering C1 > C2 therefore i1 ≥ i2. The plot of t1/2 versus C1 with R = 1kΩ and C2 = 1μF can be seen in Fig. 5.
Figure 5 shows the highly non-linear growth of t1/2 when C1 increases. This behavior is quite different from the linear relation between t1/2 and C(t1/2 = ln(2)RC) that occurs in the circuit shown in Fig. 1.
The simple analysis of the circuit in Fig. 2 shows that
In other words, considering R1C1 > R2C2, the time required for the total current (I) to decrease to half of its initial value cannot be shorter than the time required for the smallest current (i2) to decrease to the half of its initial value nor larger than the time required to the greatest current (i1) to decrease to the half of its initial value.
Now, let us rewrite equation (25) as a Fermat equation, :
In (28) one has a > b. According to Fermat-Wiles’s theorem, when a, b and c are integer numbers (or, equivalently, a/c and b/c are rational numbers), t1/2 cannot assume any integer value other than 1 and 2. Thus, if the values of R, C1 and C2 are chosen in such way that exp(-1/RC1) and exp(-1/RC2) are rational numbers, one cannot expect the time t1/2 to assume any integer value larger than 2. Therefore, a theorem from number theory has a physical impact in the electrical circuit shown in Fig. 2. Figure 6 shows t1/2 versus C1 for C1 ∈ [1/ ln(101/21)μF, 1/ ln(101/22)μF, . . . 1/ ln(101/100)μF], R = 1kΩ and C2 = 1/ ln(101/20)μF. As one may note, C1 and C2 are transcendental numbers, since ln(x) is transcendental when x is algebraic (a rational number is also an algebraic number). The value t1/2 = 1 is obtained for C1 = 1/ ln(101/81)μF ≈ 4.531625627230088μF while the value t1/2 = 2 is obtained for C1 = 1/ ln(101/99)μF ≈ 49.99833328888678μF.
Since exp(x) is a transcendental number when x is an algebraic number, one way to guarantee that t1/2 can assume integer values larger than 2 is to choose rational values for R, C1 and C2.
Although Fermat-Wiles’s theorem prevents t1/2 to take on an integer value larger than 2, one can make it as close to the integer value N as one wishes. Let us begin rewriting the inequalities (27) as
The inequalities in (19) can give us good hints about the solution of (28). For example, for c > 21/Na one has t1/2 < N. Thus, for instance, there are no solutions larger or equal to 3 when c > 21/3a. The length of the interval [logc/b(2), logc/a(2)] in (29) is
An interesting question that arises is, which integer values of a, b and c squeeze the interval Δ given by equation (30) that contains the integer solution t1/2 = N? Firstly, in order to contain the number N, as seen before, the condition c > 21/Na must be obeyed. Observing (30) one can note that ln(2)(ln(a/b)/ ln(c/b)) < 1, since c > a > b. Therefore, the minimal value of Δ requires the maximal value of c that obeys c > 21/Na and b as close to a as possible. Thus, c = [21/Na], that is, the largest integer less than 21/Na, and b = a − 1. In fact, in this case
Thus, for a ≪ 1, Δ → 0 and t1/2 → N. Some examples (N = 3, 13 and 153) are shown in Table 1.
N is the target value and t1/2 is the real value calculated using equation (26). τ1 = ln(2)RC1 = ln(c/a) [ms], τ2 = ln(2)RC2 = ln(c/b) [ms] (R[kΩ], C1[μF] and C2[μF]).
As one may note in Table 1, we did not care about commercially available resistors and capacitors, as their values belong to a very restricted set.
At last, Figure 7 shows the electronic circuit of a Fermat’s oscillator. The gain of the operational amplifier can be adjusted via Ra and Rb in such way the period of oscillation will depend on t1/2 given by equation (26).
The gain of the operational amplifier in the non-inverting configuration is given by G = (1 + Rb/Ra), thus Vs = GVin. The voltage at the operational amplifier non-inverting input is Vin = v1/r + v2/r, where v1 and v2 are given by
Therefore, the amplifiers’ output voltage Vs is given by
Choosing r = 2(Ra + Rb)/Ra one gets
At last, the condition Vs = V0/2, the assumed voltage required to trigger the NOT gate, requires the Fermat equation (28) to be satisfied.
5. Conclusions
We used the Lambert-Tsallis Wq function to provide, for the first time, an analytical expression for the time required for the total current in a simple electrical circuit composed by two resistors, two capacitors and a DC power supply, to decay, in non-exponential way, to a predetermined value (equations (21.7)–(22)). This shows the Lambert-Tsallis Wq function is a useful mathematical tool for circuit analysis. Furthermore, we transformed the equation for the total current of the studied circuit in a Fermat’s equation and we showed that Fermat-Wiles theorem has a physical implication, linking number theory to an electrical circuit. At last, we presented a possible electronic circuit for the Fermat’s oscillator, an oscillator whose period of oscillation depends on the solution of Fermat’s equation.
Although we have considered in this work only an electrical circuit with two resistors and two capacitors, the method here described using the Lambert-Tsallis Wq function can be used to obtain analytical solution of any physical problem modelled by the sum or difference of two real exponentials like, for example, the decay of a radioactive substance with two half-lives or the overdamped solution of a damped harmonic oscillator.
References
- [1] G.B. da Silva and Ramos R.V. , Physica A 525 , 164 (2019).
- [2] R.V. Ramos, J. Comput. Electron. 21, 396 (2022).
- [3] J.S. de Andrade, K.Z. Nobrega and R.V. Ramos, IEEE Trans. Circuits Syst. II Express Briefs 69, 769 (2021).
- [4] G.S. Castro and RR.V. amos, Quant. Inf. Process. 21, 79 (2022).
- [5] F.J.L. de Almeida and R.V. Ramos, Eur. Phys. J. Plus 138, 20 (2023).
- [6] J.R. da Silva and R.V. Ramos , IEEE Transactions on Plasma Science 50, 3578 (2022).
- [7] J.L.M. da Silva, F.V. Mendes and R.V. Ramos, Physica A 534, 122168 (2019).
- [8] R.V. Ramos, J. Opt. Society of Am. B 36, 2244 (2019).
- [9] R.V. Ramos, SN Comput. Sci. 2 , 254 (2021).
- [10] R.V. Ramos, arXiv:2304.14140 (2023).
- [11] R.M. Corless, G.H. Gonnet, D.E.G. Hare, D.J. Jeffrey and D.E. Knuth, Adv. in Comp. Mathematics 5 , 329 (1996).
- [12] S.R. Valluri, D.J. Jeffrey and R.M. Corless, Can. J. of Physics 78, 823 (2000).
- [13] K. Roberts and S.R. Valluri, Can. J. of Physics 95, 105 (2017).
- [14] A. Dubinov and I.N. Kitayev , Planet. Space Sci. 195, 105142/1-6 (2021).














