Demonstrate the process of substitution

Is there a way to show the substitution in a table (or anywhere)?

For example, the first cell of the table shows some random inequality: -2x+1>4
After solving the inequality, a student comes up with the solution: x<-1.5 and enters in the second cell any random number from the set of solutions, i.e. -3.

How can I make the third cell show -2(-3)+1>4 ? I would like it to work for ANY random inequality.

Like screen 2 here? A nice way to use substituteLatexVariable!

1 Like

Yes! Thanks a lot, this is exactly what I was looking for!