Solving Equations
This worksheet contains various commented examples that demonstrate the Maple powerful equation solver, solve.
>
|
|
|
An Introduction to the solve Command
|
|
The first example, which is the canonical example for this algorithm, is the following:
>
|
|
| (1.1) |
The difficulty here lies on and x, and also on and y, for which an unknown a and b cannot be related together in a polynomial form.
>
|
|
| (1.2) |
The same equation, even when and are replaced by arbitrary functions, can still be solved in terms of the inverses of these arbitrary functions.
>
|
|
| (1.3) |
Solving gives
>
|
|
![[[x = -RootOf(-A(-_Z*U*a)*B(-_Z*U*b)+U)*U*a, y = -RootOf(-A(-_Z*U*a)*B(-_Z*U*b)+U)*U*b, mu = RootOf(-A(-_Z*U*a)*B(-_Z*U*b)+U)]]](/support/helpjp/helpview.aspx?si=8785/file03942/math81.png)
| (1.4) |
|
|
Carefully Solving Equations
|
|
These problems require the correct treatment of trigonometrics and exponentials, because the determinant is zero and no solutions exist.
>
|
|
| (2.1) |
>
|
|
| (2.2) |
>
|
|
| (2.3) |
>
|
|
| (2.4) |
|
|
Equations and Inequalities Involving Exponentials, Logarithms, and Powers
|
|
The following examples involve exponentials or logarithms (where the answer can be expressed as rational expressions), and the use of the LambertW function. For example,;
>
|
|
| (3.1) |
>
|
|
| (3.2) |
The following problem stems from an exponential data fit.
>
|
|
>
|
|
>
|
|
>
|
|
| (3.3) |
>
|
|
| (3.4) |
Here are some examples of exponentials mixed in inequalities.
>
|
|
| (3.5) |
>
|
|
| (3.6) |
>
|
|
| (3.7) |
>
|
|
| (3.8) |
>
|
|
| (3.9) |
>
|
|
| (3.10) |
>
|
|
| (3.11) |
You can also solve equations involving powers.
>
|
|
| (3.12) |
>
|
|

| (3.13) |
>
|
|
| (3.14) |
>
|
|
| (3.15) |
>
|
|
| (3.16) |
>
|
|
![[[x = 1], [x = RootOf(_Z^4+_Z^3+_Z^2+_Z+1, index = 1)], [x = RootOf(_Z^4+_Z^3+_Z^2+_Z+1, index = 4)]]](/support/helpjp/helpview.aspx?si=8785/file03942/math272.png)
| (3.17) |
|
|
abs, signum, and csgn
|
|
Some of these examples may cause ranges to be returned.
>
|
|
| (4.1) |
>
|
|
| (4.2) |
>
|
|
| (4.3) |
>
|
|
| (4.4) |
>
|
|
| (4.5) |
>
|
|
| (4.6) |
>
|
|
| (4.7) |
>
|
|
| (4.8) |
>
|
|
| (4.9) |
>
|
|
| (4.10) |
>
|
|
| (4.11) |
>
|
|
| (4.12) |
The following example is verified for six different intervals in x.
>
|
|
| (4.13) |
>
|
|

| (4.14) |
>
|
|
![[[-1.468115597 < x, x < -1.187054561], [3.394451740 < x], [x < -1.640158839], [x < 3.382444102, 1.086913325 < x], [-.8291985883 < x, x < 0.], [x < .8738032298, .3869151880 < x]]](/support/helpjp/helpview.aspx?si=8785/file03942/math394.png)
| (4.15) |
|
|
Linear Programming and Simplex Problems
|
|
>
|
|
| (5.1) |
>
|
|
| (5.2) |
>
|
|
| (5.3) |
>
|
|
| (5.4) |
|
|
Other Modes of Solving
|
|
>
|
|
| (6.1) |
>
|
|
| (6.2) |
>
|
|
| (6.3) |
>
|
|
| (6.4) |
>
|
|
| (6.5) |
>
|
|
![[[x < -LambertW(-1/5), -LambertW(-1/6) < x], [x < -LambertW(-1, -1/6), -LambertW(-1, -1/5) < x], [-LambertW(-1/3) < x, x < -LambertW(-1, -1/3)]]](/support/helpjp/helpview.aspx?si=8785/file03942/math472.png)
| (6.6) |
>
|
|
![[[x < .2591711018, .2044814494 < x], [x < 2.833147892, 2.542641358 < x], [.6190612867 < x, x < 1.512134552]]](/support/helpjp/helpview.aspx?si=8785/file03942/math479.png)
| (6.7) |
>
|
|
>
|
|
| (6.8) |
>
|
|
>
|
|
| (6.9) |
|
|
Special Functions
|
|
>
|
|
| (7.1) |
>
|
|
| (7.2) |
>
|
|
| (7.3) |
>
|
|
| (7.4) |
>
|
|
| (7.5) |
>
|
|
| (7.6) |
>
|
|
| (7.7) |
>
|
|
![[[a = -3*LambertW(-1/3)], [a = -3*LambertW(-1, -1/3)], [a = -3*LambertW(1/6-((1/6)*I)*3^(1/2))], [a = -3*LambertW(1/6+((1/6)*I)*3^(1/2))]]](/support/helpjp/helpview.aspx?si=8785/file03942/math557.png)
| (7.8) |
|
|
Trigonometric Functions
|
|
This particular problem describes the positioning of a simple two-part robot arm. The answer is a little concentrated and has a degree-2 algebraic function.
>
|
|
>
|
|
>
|
|
>
|
|

| (8.1) |
This problem was posed by H. Melenk.
>
|

|

| (8.2) |
>
|
|
![[[x1 = Pi, x2 = 1, x3 = 0], [x1 = Pi, x2 = RootOf(2*_Z^2+2*_Z+3), x3 = 0], [x1 = 0, x2 = RootOf(2*_Z^3+_Z-7), x3 = 0], [x1 = arctan((21/20)*RootOf(_Z^2+1, label = _L19), -29/20), x2 = 21/10, x3 = (21/10)*RootOf(_Z^2+1, label = _L19)]]](/support/helpjp/helpview.aspx?si=8785/file03942/math605.png)
| (8.3) |
|
|
Inverse Trigonometric Functions
|
|
The following examples involve inverse trigonometrics, and some were originally proposed by H. Melenk.
>
|
|
| (9.1) |
>
|
|
| (9.2) |
>
|
|
| (9.3) |
>
|
|
| (9.4) |
>
|
|
| (9.5) |
>
|
|
| (9.6) |
|
|
Equations Requiring Branch Selection
|
|
The following examples require branch selection and generally involve ln, radicals, LambertW, inverse trig, and so on.
>
|
|
| (10.1) |
>
|
|
| (10.2) |
>
|
|
| (10.3) |
>
|
|
| (10.4) |
>
|
|
| (10.5) |
>
|
|
| (10.6) |
>
|
|
| (10.7) |
>
|
|
![[[x = -1], [x = 1/2+(1/12)*6^(1/2)-(1/4)*2^(1/2)+(1/6)*3^(1/2)+((1/12)*I)*(72-12*6^(1/2)+36*2^(1/2)-24*3^(1/2)+6*2^(1/2)*6^(1/2)-4*6^(1/2)*3^(1/2)+12*2^(1/2)*3^(1/2))^(1/2)], [x = 1/2+(1/12)*6^(1/2)-(1/4)*2^(1/2)+(1/6)*3^(1/2)-((1/12)*I)*(72-12*6^(1/2)+36*2^(1/2)-24*3^(1/2)+6*2^(1/2)*6^(1/2)-4*6^(1/2)*3^(1/2)+12*2^(1/2)*3^(1/2))^(1/2)]]](/support/helpjp/helpview.aspx?si=8785/file03942/math729.png)
| (10.8) |
>
|
|
| (10.9) |
>
|
|
| (10.10) |
>
|
|
| (10.11) |
>
|
|
| (10.12) |
>
|
|
| (10.13) |
|
|
Equations Requiring Expansion of Linear Operators
|
|
>
|
|
| (11.1) |
>
|
|
>
|
|
| (11.2) |
The rational solution is found. (Other solutions cannot be expressed in closed form.)
>
|
|
| (11.3) |
>
|
|
| (11.4) |
>
|
|
| (11.5) |
>
|
|
| (11.6) |
|
|
Mixtures of Exponentials, Trigonometrics, and Radicals
|
|
The following examples involve solving equations with mixtures of exponential, trigonometrics, radicals, and so on.
>
|
|
| (12.1) |
>
|
|
| (12.2) |
>
|
|
| (12.3) |
>
|
|
Warning, solutions may have been lost
| |
| (12.4) |
>
|
|
| (12.5) |
>
|
|
| (12.6) |
>
|
|
| (12.7) |
>
|
![solve(eqns, [x])](/support/helpjp/helpview.aspx?si=8785/file03942/math888.png)
|
| (12.8) |
>
|
|
|
For more information, see the solve help page. See also the help pages on LambertW and on ln.
Return to Index for Example Worksheets
|