Math in Gas and the art of linearization door