A-10: Solving Equations
If⁢fx=x7+3⁢x4+2 x−1, solve the equation fx=0.
Maple Solution - Interactive
The graph of fx in Figure A-10.4(a) suggests the equation fx=0 has just one real root, and therefore three pairs of complex-conjugate roots.
In general, a seventh-degree polynomial will not have solutions expressible as radicals, and even if it did, the expressions would most likely be very cumbersome.
Hence, the expectation here is a numeric solution via the Solve≻Numerically Solve (w/complex) option in the Context Panel.
Figure A-10.4(a) Graph of fx
Control-drag the polynomial and press the Enter key.
Context Panel: Solve≻Numerically Solve (w/complex)
It certainly would be nice if Maple would display the roots as per Table A-10.4(a).
−1.19259593419359 ±0.179308039007199 i
0.245204803152949 ±0.898051588497434 i
0.726682276532101 ±1.12661189290359 i
Table A-10.4(a) Roots of the equation fx=0
The solution given by the Solve≻Numerically Solve (w/complex) option in the Context Panel is the simplest interactive solution. The alternatives below are far more tedious to implement and are not really recommended in this context.
The Context Panel option Solve≻Numerically Solve provides just the real solution, x=0.4414177090.
The Context Panel option Solve≻Obtain Solutions for≻x returns all seven solutions as a sequence of RootOf structures, of the form
where k ranges from 1 to 7. Each member of this sequence has to be extracted to a separate line (easiest by Control-drag or copy/paste) so that the Approximate option in the Context Panel can be applied. The results for k=2,…,7, are the complex conjugate pairs listed in Table A-10.4(a).
Maple Solution - Coded
Assign the polynomial to the name f.
Apply the fsolve command with the "complex" option. This gives a numeric approximation to all solutions of a polynomial equation.
<< Previous Example Section A-10
Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2023. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document