Prepared by Jarrod Brown, UMass Lowell
Solution: Let x be a number. First, we will solve the following equation for x.
![]()
![]()
![]()
![]()
Once we obtain the two solutions, we check them.
![]()
![]()
These expressions are not clearly equal to
but we can simplify them.
![]()
![]()
Solution:
![]()
![]()
The previous step indicates that the number of dimes should be 17 and the number of nickels is
.
There is only one solution, but Mathematica outputs a list of solutions nevertheless. In the next calculation we use First to extract the first, and only, solution.
![]()
![]()
![]()
![]()
![]()
![]()
The Mathematica function Solve gives solutions in the form of a list of solutions, with each solution being a list of rules. The expectation is that if one makes the substitutions indicated by the rules, the equation(s) given is Solve will be true.
Here is a system of equations with two solutions in terms of z.
![]()
![]()
We can refer to the previous output with %.
![]()

The first row of the output above contain the equations obtained by substituting the first solution in to our equations. The second row is produced from the second solution. We need to ask Mathematica to simplify.
![]()
![]()
Converted by Mathematica (May 14, 2003)