We derive an analytical approximation of the short-range longitudinal wake function of undulator lines at the European X-ray free electron laser. The used analytical and numerical approaches are described. A numerical algorithm to estimate the impedance of arbitrary shaped pipes with known surface impedance is presented. We discuss a choice of the optimal linear undulator taper for a known wake function.