Exactly solvable one-dimensional inhomogeneous models

We present a simple way of constructing one-dimensional inhomogeneous models (random or quasiperiodic) which can be solved exactly. We treat the example of an Ising chain in a varying magnetic field, but our procedure can easily be extended to other one-dimensional inhomogeneous models. For all the models we can construct, the free energy and its derivatives with respect to temperature can be computed exactly at one particular temperature.