Create Substitution function

This function solves the equation
InvertSign

This function invert all signs in equation