Composition of linear and quadratic functions: find an equation