I have made a textbox on the form in which user enters any mathematical expression like of fraction,square root, integration etc.......

Now I want that if user enters "square root of 2" then in the listbox it should be displayed in math format .

Or if user enters (2/3), then it should be displayed properly in fraction format like we see in books..........

How can I generate the math format for various mathematical expressions like fractions, squareroots, cube roots,integration, differentiation etc.............