Introduction to Weierstrass substitution and examples