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.
-
(Give this equation the name eq3)
Assign the solution to an array called
sol
eq3 := 2x^3 → + 6*x^2 → - 3*x - 34 = 0 sol := solve(eq3,x)
-
(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.
-
(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 betweena
andx^4
andb
andx^2
; these are required so Maple doesn't see one variableax
orbx
. Remember to use the right arrow to exit the superscripts. -
(Give this equation the name eq6)
eq6 := x^4 → - exp(x) - 3 = 0 solve(eq6, x) allvalues(%) fsolve(eq6,x)
Comments:Remember to use the right arrow → to exit the superscript and divide modes. If
solve
returns aRootOf
partial solution, pass the partial solution to theallvalues
command. This is more complicated, but may work to find the symbolic solution (roots). Ifallvalues
also returns aRootOf
result, then Maple cannot solve the equation symbolically so you must then usefsolve
. If you are just looking for a real root, do not bother with theallvalues
command, just usefsolve
.