Thank you very much, Steve.
I need to go through it several times before asking any follow-on questions.
Best wishes
PG
No problem, take your time.
While you are studying this, you can compare what I derived with what you provided. There is certainly a similarity in the form of the equations, and if you calculate the numbers (a and b), you will find they are numerically similar when T is much smaller than tau=RC. Hence, it is likely that a particular method was used there, and this method is limited to systems that are sampled at a rate much faster than the system time constant.
There is another approximate form called the forward Euler method, which just amounts to approximating the derivative dy(t)/dt as (y[n+1]-y[n])/T. This also works only when T is much smaller than tau=RC. This should make sense to you because you know that when you approximate a time derivative, you need to use a small change in time to be accurate. This will give the solution of
[latex] y[n+1]=\left( 1-\frac{T}{\tau}\right) y[n]}+\frac{T}{\tau}x[n] [/latex]
You can also arrive at this form if you use my result and make the substitution exp(-T/τ)=1-T/τ. Check the numbers when T is small and you will see it works.
There is also the backward Euler method, in which the derivative is written as dy(t)/dt is about equal to (y[n]-y[n-1])/T. This will result in the following, which looks more similar to the form you showed.
[latex] y[n]=\left( 1-\frac{T}{\tau}\right) y[n-1]}+\frac{T}{\tau}x[n] [/latex]
Still, the coefficients are different, even if they are approximately the same in the limit as T goes to zero. Hence, there may be a method to the form you gave, but I'm not familiar with the principle by which it is derived.
As an exercise, you should compare the numbers of the Euler method with the method you showed and see which is more accurate compared to the rigorous form I showed previously.