Theory and application of the z-transform method