Elimination and substitution method