This article demonstrates the use of a teaching program written in MATHCAD® which can be converted to other languges in MATLAB® by showing samples of the output graphs produced by the program. The program illustrates the minimum of the Gibbs function that governs chemical equilibrium.