Discretizing the PID equation

62 Views Asked by At

I am discretizing the PID equation so we have this equation

enter image description here

Now if we separate the integral term we get

enter image description here

Applying backward euler method

enter image description here

Now as we already have a differentiation , by applying backward euler method enter image description here

and the end equation is something like this

enter image description here

I just want to ask if I did something mathematically wrong or did I miss a step ?

P.S I am new to this forum so I just added my solution I solved in a word file