Analytic solutions of Lorentz-invariant linear equations