Equation solving
This article relies largely or entirely on a single source. (December 2009) |
In
An equation may be solved either
For example, the equation x + y = 2x – 1 is solved for the unknown x by the expression x = y + 1, because substituting y + 1 for x in the equation results in (y + 1) + y = 2(y + 1) – 1, a true statement. It is also possible to take the variable y to be the unknown, and then the equation is solved by y = x – 1. Or x and y can both be treated as unknowns, and then there are many solutions to the equation; a symbolic solution is (x, y) = (a + 1, a), where the variable a may take any value. Instantiating a symbolic solution with specific numbers gives a numerical solution; for example, a = 0 gives (x, y) = (1, 0) (that is, x = 1, y = 0), and a = 1 gives (x, y) = (2, 1).
The distinction between known variables and unknown variables is generally made in the statement of the problem, by phrases such as "an equation in x and y", or "solve for x and y", which indicate the unknowns, here x and y. However, it is common to reserve x, y, z, ... to denote the unknowns, and to use a, b, c, ... to denote the known variables, which are often called
Depending on the context, solving an equation may consist to find either any solution (finding a single solution is enough), all solutions, or a solution that satisfies further properties, such as belonging to a given interval. When the task is to find the solution that is the best under some criterion, this is an optimization problem. Solving an optimization problem is generally not referred to as "equation solving", as, generally, solving methods start from a particular solution for finding a better solution, and repeating the process until finding eventually the best solution.
Overview
One general form of an equation is
where f is a
where D is the domain of the function f. The set of solutions can be the empty set (there are no solutions), a singleton (there is exactly one solution), finite, or infinite (there are infinitely many solutions).
For example, an equation such as
with unknowns x, y and z, can be put in the above form by subtracting 21z from both sides of the equation, to obtain
In this particular case there is not just one solution, but an infinite set of solutions, which can be written using
One particular solution is x = 0, y = 0, z = 0. Two other solutions are x = 3, y = 6, z = 1, and x = 8, y = 9, z = 2. There is a unique
Solution sets
The
For a simple example, consider the equation
This equation can be viewed as a Diophantine equation, that is, an equation for which only integer solutions are sought. In this case, the solution set is the empty set, since 2 is not the square of an integer. However, if one searches for real solutions, there are two solutions, √2 and –√2; in other words, the solution set is {√2, −√2}.
When an equation contains several unknowns, and when one has several equations with more unknowns than equations, the solution set is often infinite. In this case, the solutions cannot be listed. For representing them, a parametrization is often useful, which consists of expressing the solutions in terms of some of the unknowns or auxiliary variables. This is always possible when all the equations are linear.
Such infinite solution sets can naturally be interpreted as
Methods of solution
The methods for solving equations generally depend on the type of equation, both the kind of expressions in the equation and the kind of values that may be assumed by the unknowns. The variety in types of equations is large, and so are the corresponding methods. Only a few specific types are mentioned below.
In general, given a class of equations, there may be no known systematic method (
For several classes of equations, algorithms have been found for solving them, some of which have been implemented and incorporated in computer algebra systems, but often require no more sophisticated technology than pencil and paper. In some other cases, heuristic methods are known that are often successful but that are not guaranteed to lead to success.
Brute force, trial and error, inspired guess
If the solution set of an equation is restricted to a finite set (as is the case for equations in
As with all kinds of problem solving, trial and error may sometimes yield a solution, in particular where the form of the equation, or its similarity to another equation with a known solution, may lead to an "inspired guess" at the solution. If a guess, when tested, fails to be a solution, consideration of the way in which it fails may lead to a modified guess.
Elementary algebra
Equations involving linear or simple rational functions of a single real-valued unknown, say x, such as
can be solved using the methods of elementary algebra.
Systems of linear equations
Smaller
Polynomial equations
Polynomial equations of degree up to four can be solved exactly using algebraic methods, of which the quadratic formula is the simplest example. Polynomial equations with a degree of five or higher require in general numerical methods (see below) or special functions such as Bring radicals, although some specific cases may be solvable algebraically, for example
(by using the rational root theorem), and
(by using the substitution x = z1⁄3, which simplifies this to a quadratic equation in z).
Diophantine equations
In
has as rational solutions x = −1/2 and x = 3, and so, viewed as a Diophantine equation, it has the unique solution x = 3.
In general, however, Diophantine equations are among the most difficult equations to solve.
Inverse functions
In the simple case of a function of one variable, say, h(x), we can solve an equation of the form h(x) = c for some constant c by considering what is known as the inverse function of h.
Given a function h : A → B, the inverse function, denoted h−1 and defined as h−1 : B → A, is a function such that
Now, if we apply the inverse function to both sides of h(x) = c, where c is a constant value in B, we obtain
and we have found the solution to the equation. However, depending on the function, the inverse may be difficult to be defined, or may not be a function on all of the set B (only on some subset), and have many values at some point.
If just one solution will do, instead of the full solution set, it is actually sufficient if only the functional identity
holds. For example, the projection π1 : R2 → R defined by π1(x, y) = x has no post-inverse, but it has a pre-inverse π−1
1 defined by π−1
1(x) = (x, 0). Indeed, the equation π1(x, y) = c is solved by
Examples of inverse functions include the
Factorization
If the left-hand side expression of an equation P = 0 can be factorized as P = QR, the solution set of the original solution consists of the union of the solution sets of the two equations Q = 0 and R = 0. For example, the equation
can be rewritten, using the identity tan x cot x = 1 as
which can be factorized into
The solutions are thus the solutions of the equation tan x = 1, and are thus the set
Numerical methods
With more complicated equations in real or
Matrix equations
Equations involving matrices and vectors of real numbers can often be solved by using methods from linear algebra.
Differential equations
There is a vast body of methods for solving various kinds of
See also
- Extraneous and missing solutions
- Simultaneous equations
- Equating coefficients
- Solving the geodesic equations
- Unification (computer science) — solving equations involving symbolic expressions
References
- ISBN 978-1-285-40110-2.