A nonlinear system of n n n equations in n n n unknowns x 1 , x 2 , … , x n x_1, x_2, \ldots, x_n x 1 , x 2 , … , x n is a set of equations of the form
where each f i f_i f i maps a vector x ⃗ = ( x 1 , x 2 , … , x n ) T ∈ R n \vec{x} = (x_1, x_2, \ldots, x_n)^T \in \mathbb{R}^n x = ( x 1 , x 2 , … , x n ) T ∈ R n into R \mathbb{R} R .
In vector form, F ( x ⃗ ) = 0 ⃗ F(\vec{x}) = \vec{0} F ( x ) = 0 , where
Continuity from Bounded Partials
Let f f f be a function from D ⊆ R n D \subseteq \mathbb{R}^n D ⊆ R n into R \mathbb{R} R and x ⃗ 0 ∈ D \vec{x}_0 \in D x 0 ∈ D . Suppose all partial derivatives of f f f exist, and constants δ > 0 \delta > 0 δ > 0 and K > 0 K > 0 K > 0 exist so that whenever ∥ x ⃗ − x ⃗ 0 ∥ < δ \|\vec{x} - \vec{x}_0\| < \delta ∥ x − x 0 ∥ < δ and x ⃗ ∈ D \vec{x} \in D x ∈ D ,
Then f f f is continuous at x ⃗ 0 \vec{x}_0 x 0 .
Methods
Numerical methods for solving nonlinear systems generalize the single-variable case.
Fixed-Point Iteration
Rewrites F ( x ⃗ ) = 0 ⃗ F(\vec{x}) = \vec{0} F ( x ) = 0 as x ⃗ = G ( x ⃗ ) \vec{x} = G(\vec{x}) x = G ( x ) , then iterates x ⃗ ( k ) = G ( x ⃗ ( k − 1 ) ) \vec{x}^{(k)} = G(\vec{x}^{(k-1)}) x ( k ) = G ( x ( k − 1 ) ) . See fixed point.
Newton’s Method
Uses the Jacobian matrix of F F F to get quadratic convergence to a root of F ( x ⃗ ) = 0 ⃗ F(\vec{x}) = \vec{0} F ( x ) = 0 . See Newton’s method.
Worked Examples
Example 1
Place the system
in the form F ( x ⃗ ) = 0 ⃗ F(\vec{x}) = \vec{0} F ( x ) = 0 , and verify that p ⃗ = ( 0.5 , 0 , − π 6 ) T \vec{p} = \left(0.5, 0, -\tfrac{\pi}{6}\right)^T p = ( 0.5 , 0 , − 6 π ) T is a solution.
Solution Reveal Hide The coordinate functions are
f 1 ( x 1 , x 2 , x 3 ) = 3 x 1 − cos ( x 2 x 3 ) − 1 2 f 2 ( x 1 , x 2 , x 3 ) = x 1 2 − 81 ( x 2 + 0.1 ) 2 + sin x 3 + 1.06 f 3 ( x 1 , x 2 , x 3 ) = e − x 1 x 2 + 20 x 3 + 10 π − 3 3 \begin{aligned}
f_1(x_1, x_2, x_3) &= 3x_1 - \cos(x_2 x_3) - \tfrac{1}{2} \\
f_2(x_1, x_2, x_3) &= x_1^2 - 81(x_2 + 0.1)^2 + \sin x_3 + 1.06 \\
f_3(x_1, x_2, x_3) &= e^{-x_1 x_2} + 20x_3 + \tfrac{10\pi - 3}{3}
\end{aligned} f 1 ( x 1 , x 2 , x 3 ) f 2 ( x 1 , x 2 , x 3 ) f 3 ( x 1 , x 2 , x 3 ) = 3 x 1 − cos ( x 2 x 3 ) − 2 1 = x 1 2 − 81 ( x 2 + 0.1 ) 2 + sin x 3 + 1.06 = e − x 1 x 2 + 20 x 3 + 3 10 π − 3 so F ( x ⃗ ) = ( f 1 ( x ⃗ ) , f 2 ( x ⃗ ) , f 3 ( x ⃗ ) ) T F(\vec{x}) = \big(f_1(\vec{x}), f_2(\vec{x}), f_3(\vec{x})\big)^T F ( x ) = ( f 1 ( x ) , f 2 ( x ) , f 3 ( x ) ) T . Evaluating at p ⃗ = ( 0.5 , 0 , − π 6 ) T \vec{p} = \left(0.5, 0, -\tfrac{\pi}{6}\right)^T p = ( 0.5 , 0 , − 6 π ) T gives
f 1 ( p ⃗ ) = 3 ( 0.5 ) − cos ( 0 ) − 1 2 = 1.5 − 1 − 0.5 = 0 f 2 ( p ⃗ ) = ( 0.5 ) 2 − 81 ( 0.1 ) 2 + sin ( − π 6 ) + 1.06 = 0.25 − 0.81 − 0.5 + 1.06 = 0 f 3 ( p ⃗ ) = e 0 + 20 ( − π 6 ) + 10 π − 3 3 = 1 − 10 π 3 + 10 π 3 − 1 = 0 \begin{aligned}
f_1(\vec{p}) &= 3(0.5) - \cos(0) - \tfrac{1}{2} = 1.5 - 1 - 0.5 = 0 \\
f_2(\vec{p}) &= (0.5)^2 - 81(0.1)^2 + \sin\!\left(-\tfrac{\pi}{6}\right) + 1.06 = 0.25 - 0.81 - 0.5 + 1.06 = 0 \\
f_3(\vec{p}) &= e^{0} + 20\!\left(-\tfrac{\pi}{6}\right) + \tfrac{10\pi - 3}{3} = 1 - \tfrac{10\pi}{3} + \tfrac{10\pi}{3} - 1 = 0
\end{aligned} f 1 ( p ) f 2 ( p ) f 3 ( p ) = 3 ( 0.5 ) − cos ( 0 ) − 2 1 = 1.5 − 1 − 0.5 = 0 = ( 0.5 ) 2 − 81 ( 0.1 ) 2 + sin ( − 6 π ) + 1.06 = 0.25 − 0.81 − 0.5 + 1.06 = 0 = e 0 + 20 ( − 6 π ) + 3 10 π − 3 = 1 − 3 10 π + 3 10 π − 1 = 0 Thus F ( p ⃗ ) = 0 ⃗ F(\vec{p}) = \vec{0} F ( p ) = 0 .
Example 2
Place the system
in the form F ( x ⃗ ) = 0 ⃗ F(\vec{x}) = \vec{0} F ( x ) = 0 and find all real solutions.
Solution Reveal Hide Moving all terms to the left gives F ( x ⃗ ) = ( f 1 ( x ⃗ ) , f 2 ( x ⃗ ) ) T = 0 ⃗ F(\vec{x}) = \big(f_1(\vec{x}), f_2(\vec{x})\big)^T = \vec{0} F ( x ) = ( f 1 ( x ) , f 2 ( x ) ) T = 0 with
f 1 ( x 1 , x 2 ) = x 1 2 + x 2 2 − 4 f 2 ( x 1 , x 2 ) = x 1 2 − x 2 − 2 \begin{aligned}
f_1(x_1, x_2) &= x_1^2 + x_2^2 - 4 \\
f_2(x_1, x_2) &= x_1^2 - x_2 - 2
\end{aligned} f 1 ( x 1 , x 2 ) f 2 ( x 1 , x 2 ) = x 1 2 + x 2 2 − 4 = x 1 2 − x 2 − 2 From f 2 ( x 1 , x 2 ) = 0 f_2(x_1, x_2) = 0 f 2 ( x 1 , x 2 ) = 0 , x 1 2 = x 2 + 2 x_1^2 = x_2 + 2 x 1 2 = x 2 + 2 . Substituting into f 1 ( x 1 , x 2 ) = 0 f_1(x_1, x_2) = 0 f 1 ( x 1 , x 2 ) = 0 gives
x 2 2 + x 2 − 2 = ( x 2 + 2 ) ( x 2 − 1 ) = 0 ⟹ x 2 = − 2 or x 2 = 1 x_2^2 + x_2 - 2 = (x_2 + 2)(x_2 - 1) = 0 \implies x_2 = -2 \text{ or } x_2 = 1 x 2 2 + x 2 − 2 = ( x 2 + 2 ) ( x 2 − 1 ) = 0 ⟹ x 2 = − 2 or x 2 = 1
For x 2 = − 2 x_2 = -2 x 2 = − 2 , x 1 2 = 0 ⟹ x 1 = 0 x_1^2 = 0 \implies x_1 = 0 x 1 2 = 0 ⟹ x 1 = 0 , giving ( 0 , − 2 ) T (0, -2)^T ( 0 , − 2 ) T .
For x 2 = 1 x_2 = 1 x 2 = 1 , x 1 2 = 3 ⟹ x 1 = ± 3 x_1^2 = 3 \implies x_1 = \pm\sqrt{3} x 1 2 = 3 ⟹ x 1 = ± 3 , giving ( 3 , 1 ) T (\sqrt{3}, 1)^T ( 3 , 1 ) T and ( − 3 , 1 ) T (-\sqrt{3}, 1)^T ( − 3 , 1 ) T .
The system has 3 real solutions, ( 0 , − 2 ) T (0, -2)^T ( 0 , − 2 ) T , ( 3 , 1 ) T (\sqrt{3}, 1)^T ( 3 , 1 ) T , and ( − 3 , 1 ) T (-\sqrt{3}, 1)^T ( − 3 , 1 ) T . Unlike a linear system, a nonlinear system can have any finite number of solutions.
Example 3
Show that f ( x 1 , x 2 ) = x 1 2 + cos ( x 1 x 2 ) f(x_1, x_2) = x_1^2 + \cos(x_1 x_2) f ( x 1 , x 2 ) = x 1 2 + cos ( x 1 x 2 ) is continuous at x ⃗ 0 = ( 1 , 0 ) T \vec{x}_0 = (1, 0)^T x 0 = ( 1 , 0 ) T using the bounded-partials theorem.
Solution Reveal Hide The partial derivatives are
∂ f ∂ x 1 = 2 x 1 − x 2 sin ( x 1 x 2 ) , ∂ f ∂ x 2 = − x 1 sin ( x 1 x 2 ) \frac{\partial f}{\partial x_1} = 2x_1 - x_2 \sin(x_1 x_2), \quad \frac{\partial f}{\partial x_2} = -x_1 \sin(x_1 x_2) ∂ x 1 ∂ f = 2 x 1 − x 2 sin ( x 1 x 2 ) , ∂ x 2 ∂ f = − x 1 sin ( x 1 x 2 ) Take δ = 1 \delta = 1 δ = 1 . Whenever ∥ x ⃗ − x ⃗ 0 ∥ ∞ < 1 \|\vec{x} - \vec{x}_0\|_\infty < 1 ∥ x − x 0 ∥ ∞ < 1 , the coordinates satisfy 0 < x 1 < 2 0 < x_1 < 2 0 < x 1 < 2 and − 1 < x 2 < 1 -1 < x_2 < 1 − 1 < x 2 < 1 , so ∣ sin ( x 1 x 2 ) ∣ ≤ 1 |\sin(x_1 x_2)| \le 1 ∣ sin ( x 1 x 2 ) ∣ ≤ 1 gives
∣ ∂ f ( x ⃗ ) ∂ x 1 ∣ ≤ 2 ∣ x 1 ∣ + ∣ x 2 ∣ ∣ sin ( x 1 x 2 ) ∣ < 2 ( 2 ) + 1 ( 1 ) = 5 \left|\frac{\partial f(\vec{x})}{\partial x_1}\right| \le 2|x_1| + |x_2||\sin(x_1 x_2)| < 2(2) + 1(1) = 5 ∂ x 1 ∂ f ( x ) ≤ 2∣ x 1 ∣ + ∣ x 2 ∣∣ sin ( x 1 x 2 ) ∣ < 2 ( 2 ) + 1 ( 1 ) = 5 ∣ ∂ f ( x ⃗ ) ∂ x 2 ∣ ≤ ∣ x 1 ∣ ∣ sin ( x 1 x 2 ) ∣ < 2 ( 1 ) = 2 \left|\frac{\partial f(\vec{x})}{\partial x_2}\right| \le |x_1||\sin(x_1 x_2)| < 2(1) = 2 ∂ x 2 ∂ f ( x ) ≤ ∣ x 1 ∣∣ sin ( x 1 x 2 ) ∣ < 2 ( 1 ) = 2 Both partial derivatives are bounded by K = 5 K = 5 K = 5 on ∥ x ⃗ − x ⃗ 0 ∥ ∞ < 1 \|\vec{x} - \vec{x}_0\|_\infty < 1 ∥ x − x 0 ∥ ∞ < 1 , so f f f is continuous at ( 1 , 0 ) T (1, 0)^T ( 1 , 0 ) T .