Английская Википедия:Equation solving

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:One source Шаблон:Redirect Шаблон:Image frame

Illustration of Newton's method
An example of using Newton–Raphson method to solve numerically the equation Шаблон:Math

In mathematics, to solve an equation is to find its solutions, which are the values (numbers, functions, sets, etc.) that fulfill the condition stated by the equation, consisting generally of two expressions related by an equals sign. When seeking a solution, one or more variables are designated as unknowns. A solution is an assignment of values to the unknown variables that makes the equality in the equation true. In other words, a solution is a value or a collection of values (one for each unknown) such that, when substituted for the unknowns, the equation becomes an equality. A solution of an equation is often called a root of the equation, particularly but not only for polynomial equations. The set of all solutions of an equation is its solution set.

An equation may be solved either numerically or symbolically. Solving an equation numerically means that only numbers are admitted as solutions. Solving an equation symbolically means that expressions can be used for representing the solutions.

For example, the equation Шаблон:Math is solved for the unknown Шаблон:Mvar by the expression Шаблон:Math, because substituting Шаблон:Math for Шаблон:Math in the equation results in Шаблон:Math, a true statement. It is also possible to take the variable Шаблон:Math to be the unknown, and then the equation is solved by Шаблон:Math. Or Шаблон:Math and Шаблон:Math can both be treated as unknowns, and then there are many solutions to the equation; a symbolic solution is Шаблон:Math, where the variable Шаблон:Mvar may take any value. Instantiating a symbolic solution with specific numbers gives a numerical solution; for example, Шаблон:Math gives Шаблон:Math (that is, Шаблон:Math), and Шаблон:Math gives Шаблон:Math.

The distinction between known variables and unknown variables is generally made in the statement of the problem, by phrases such as "an equation in Шаблон:Mvar and Шаблон:Mvar", or "solve for Шаблон:Math and Шаблон:Math", which indicate the unknowns, here Шаблон:Math and Шаблон:Math. However, it is common to reserve Шаблон:Mvar, Шаблон:Mvar, Шаблон:Mvar, ... to denote the unknowns, and to use Шаблон:Mvar, Шаблон:Mvar, Шаблон:Mvar, ... to denote the known variables, which are often called parameters. This is typically the case when considering polynomial equations, such as quadratic equations. However, for some problems, all variables may assume either role.

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

<math>f\left(x_1,\dots,x_n\right)=c,</math>

where Шаблон:Mvar is a function, Шаблон:Math are the unknowns, and Шаблон:Math is a constant. Its solutions are the elements of the inverse image

<math>f^{-1}(c)=\bigl\{(a_1,\dots,a_n)\in D\mid f\left(a_1,\dots,a_n\right)=c\bigr\},</math>

where Шаблон:Math is the domain of the function Шаблон:Mvar. 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

<math>3x+2y=21z,</math>

with unknowns Шаблон:Math and Шаблон:Math, can be put in the above form by subtracting Шаблон:Math from both sides of the equation, to obtain

<math>3x+2y-21z=0</math>

In this particular case there is not just one solution, but an infinite set of solutions, which can be written using set builder notation as

<math>\bigl\{(x,y,z)\mid 3x+2y-21z=0\bigr\}.</math>

One particular solution is Шаблон:Math. Two other solutions are Шаблон:Math, and Шаблон:Math. There is a unique plane in three-dimensional space which passes through the three points with these coordinates, and this plane is the set of all points whose coordinates are solutions of the equation.

Solution sets

Файл:Ellipse in coordinate system with semi-axes labelled.svg
The solution set of the equation Шаблон:Math forms an ellipse when interpreted as a set of Cartesian coordinate pairs.

Шаблон:Main The solution set of a given set of equations or inequalities is the set of all its solutions, a solution being a tuple of values, one for each unknown, that satisfies all the equations or inequalities. If the solution set is empty, then there are no values of the unknowns that satisfy simultaneously all equations and inequalities.

For a simple example, consider the equation

<math>x^2=2.</math>

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, Шаблон:Math and Шаблон:Math; in other words, the solution set is Шаблон:Math.

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 geometric shapes such as lines, curves (see picture), planes, and more generally algebraic varieties or manifolds. In particular, algebraic geometry may be viewed as the study of solution sets of algebraic equations.

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 (algorithm) that is guaranteed to work. This may be due to a lack of mathematical knowledge; some problems were only solved after centuries of effort. But this also reflects that, in general, no such method can exist: some problems are known to be unsolvable by an algorithm, such as Hilbert's tenth problem, which was proved unsolvable in 1970.

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 modular arithmetic, for example), or can be limited to a finite number of possibilities (as is the case with some Diophantine equations), the solution set can be found by brute force, that is, by testing each of the possible values (candidate solutions). It may be the case, though, that the number of possibilities to be considered, although finite, is so huge that an exhaustive search is not practically feasible; this is, in fact, a requirement for strong encryption methods.

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 Шаблон:Mvar, such as

<math>8x+7=4x+35 \quad \text{or} \quad \frac{4x + 9}{3x + 4} = 2 \, ,</math>

can be solved using the methods of elementary algebra.

Systems of linear equations

Smaller systems of linear equations can be solved likewise by methods of elementary algebra. For solving larger systems, algorithms are used that are based on linear algebra. See Gaussian elimination and numerical solution of linear systems.

Polynomial equations

Шаблон:Main Шаблон:See also 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

<math>4x^5 - x^3 - 3 = 0</math>

(by using the rational root theorem), and

<math>x^6 - 5x^3 + 6 = 0 \, ,</math>

(by using the substitution Шаблон:Math, which simplifies this to a quadratic equation in Шаблон:Mvar).

Diophantine equations

In Diophantine equations the solutions are required to be integers. In some cases a brute force approach can be used, as mentioned above. In some other cases, in particular if the equation is in one unknown, it is possible to solve the equation for rational-valued unknowns (see Rational root theorem), and then find solutions to the Diophantine equation by restricting the solution set to integer-valued solutions. For example, the polynomial equation

<math>2x^5-5x^4-x^3-7x^2+2x+3=0\,</math>

has as rational solutions Шаблон:Math and Шаблон:Math, and so, viewed as a Diophantine equation, it has the unique solution Шаблон:Math.

In general, however, Diophantine equations are among the most difficult equations to solve.

Inverse functions

Шаблон:See also In the simple case of a function of one variable, say, Шаблон:Math, we can solve an equation of the form Шаблон:Math for some constant Шаблон:Mvar by considering what is known as the inverse function of Шаблон:Mvar.

Given a function Шаблон:Math, the inverse function, denoted Шаблон:Math and defined as Шаблон:Math, is a function such that

<math>h^{-1}\bigl(h(x)\bigr) = h\bigl(h^{-1}(x)\bigr) = x \,.</math>

Now, if we apply the inverse function to both sides of Шаблон:Math, where Шаблон:Mvar is a constant value in Шаблон:Mvar, we obtain

<math>\begin{align}

h^{-1}\bigl(h(x)\bigr) &= h^{-1}(c) \\ x &= h^{-1}(c) \\ \end{align}</math>

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 Шаблон:Math (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

<math>h\left(h^{-1}(x)\right) = x</math>

holds. For example, the projection Шаблон:Math defined by Шаблон:Math has no post-inverse, but it has a pre-inverse Шаблон:Math defined by Шаблон:Math. Indeed, the equation Шаблон:Math is solved by

<math>(x,y) = \pi_1^{-1}(c) = (c,0).</math>

Examples of inverse functions include the [[nth root|Шаблон:Mvarth root]] (inverse of Шаблон:Math); the logarithm (inverse of Шаблон:Math); the inverse trigonometric functions; and [[Lambert's W function|Lambert's Шаблон:Mvar function]] (inverse of Шаблон:Math).

Factorization

If the left-hand side expression of an equation Шаблон:Math can be factorized as Шаблон:Math, the solution set of the original solution consists of the union of the solution sets of the two equations Шаблон:Math and Шаблон:Math. For example, the equation

<math>\tan x + \cot x = 2</math>

can be rewritten, using the identity Шаблон:Math as

<math>\frac{\tan^2 x -2 \tan x+1}{\tan x} = 0,</math>

which can be factorized into

<math>\frac{\left(\tan x - 1\right)^2}{\tan x}= 0.</math>

The solutions are thus the solutions of the equation Шаблон:Math, and are thus the set

<math>x = \tfrac{\pi}{4} + k\pi, \quad k = 0, \pm 1, \pm 2, \ldots.</math>

Numerical methods

With more complicated equations in real or complex numbers, simple methods to solve equations can fail. Often, root-finding algorithms like the Newton–Raphson method can be used to find a numerical solution to an equation, which, for some applications, can be entirely sufficient to solve some problem. There are also numerical methods for systems of linear equations.

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 differential equations, both numerically and analytically. A particular class of problem that can be considered to belong here is integration, and the analytic methods for solving this kind of problems are now called symbolic integration.Шаблон:Citation needed Solutions of differential equations can be implicit or explicit.[1]

See also

References

Шаблон:Reflist