I am relatively new to programming. I am using a Ti-84+ silver. I am looking for a way to manipulate a user inputted equation. Take for instance the equation (5x+18). I would like to be able to have the user input the equation (or any equation) and then multiply/distribute through by a number; say 5. So, 5(5x+18)=(25x+90). I would then like to display the final equation (25x+90) on the screen.

I have tried to input the equation as a string and as a "y=" equation. Then i have tried to multiply the equation by a number. The calculator returns a number rather than an expression containing x. I must be evaluating x as some value. I would like to find a way to display the result as an equation.

Any Ideas? Thanks.