Exercises
Write the commands to find and display the real roots (avoid decimals unless necessary) of the following using Maple
-
(Give this equation the name eq1)eq1 := x^2 → +6*x - 10 = 0 solve(eq1,x)Comments: Remember to use the right arrow to exit the superscript.
-
(Give this equation the name eq2)
eq2 := x^3 → - 4 * x^2 → + x + 6 = 0 solve(eq2,x)Comments: Remember to use the right arrow to exit the superscripts. You can also use the right click to assign the equation to a name, solve the equation or both.
-
(Give this equation the name eq3)
Assign the solution to an array called
soleq3 := 2x^3 → + 6*x^2 → - 3*x - 34 = 0 sol := solve(eq3,x)Comments: You can also use the right click menu to do this problem (see exercise 7)
-
(Give this equation the name eq4)
eq4 := x^4 → + (10/2)*x^3 → - (125/3*x^2 → + 80*x - 36 = 0 solve(eq4,x)Comments: Remember to use the right arrow to exit the superscripts and denominators. You can also use the right click to assign the equation to a name, solve the equation or both.
-
(Give this equation the name eq5)
eq5 := a*x^4 → + 5*x^3 → - b*x^2 → + 14*x + c = 0 solve(eq5,x)Comments: Notice the
*used betweenaandx^4andbandx^2; these are required so Maple doesn't see one variableaxorbx. Remember to use the right arrow to exit the superscripts. You can also use the right click to assign the equation to a name, solve the equation or both. However, in this case you have to useSolve equation for a variable->xso Maple knows to solve forxrather than a, b, or c. -
(Give this equation the name eq6)
eq6 := x^4 → - exp(x) - 3 = 0 fsolve(eq6,x)Comments:Remember to use the right arrow → to exit the superscript and divide modes. You can also use the right click to assign the equation to a name, solve the equation or both. However, in this case you have to use
Solve numericallyorfsolveto obtain an approximation of the single real solution. Ifsolvereturns aRootOfpartial solution, pass the partial solution to theallvaluescommand. This is more complicated, but may work to find the symbolic solution (roots). If you are just looking for a real root, do not bother with theallvaluescommand, just usefsolve. -
(Give this equation the name eq3)
Isolate the solutions and assign them the names sol[1], sol[2] and sol[3].
eq3 := 2x^3 → + 6*x^2 → - 3*x - 34 = 0 solve(eq3,x)- Right-click on list of solutions: select element->1)
- Right-click resulting solution: Assign to a Name)
- In window that opens type: sol[1])
- Right-click on original list of solutions: select element->2)
- Right-click resulting solution: Assign to a Name)
- In window that opens type: sol[2])
- Right-click on original list of solutions: select element->3)
- Right-click resulting solution: Assign to a Name)
- (In window that opens type: sol[3])
Comments: Remember to use the right arrow to exit the superscripts. You can also use the right click to assign the equation to a name, solve the equation or both. Notice that Maple changes
sol[1],sol[2], andsol[3]to subscripts.