I want to develop a GUI application which displays a given mathematical equation. When you click upon a particular variable in the equation to signify that it is the unknown
Sage has support for symbolic math. You could just use some of the equation manipulating functions built-in:
http://sagemath.org/