Non-Linear System of Equations

A nonlinear system of nn equations in nn unknowns x1,x2,…,xnx_1, x_2, \ldots, x_n is a set of equations of the form

f1(x1,x2,…,xn)=0f2(x1,x2,…,xn)=0  ⋮fn(x1,x2,…,xn)=0\begin{aligned} f_1(x_1, x_2, \ldots, x_n) &= 0 \\ f_2(x_1, x_2, \ldots, x_n) &= 0 \\ &\;\vdots \\ f_n(x_1, x_2, \ldots, x_n) &= 0 \end{aligned}

where each fif_i maps a vector x⃗=(x1,x2,…,xn)T∈Rn\vec{x} = (x_1, x_2, \ldots, x_n)^T \in \mathbb{R}^n into R\mathbb{R}.

In vector form, F(x⃗)=0⃗F(\vec{x}) = \vec{0}, where

F(x⃗)=(f1(x⃗),f2(x⃗),…,fn(x⃗))TF(\vec{x}) = \big(f_1(\vec{x}), f_2(\vec{x}), \ldots, f_n(\vec{x})\big)^T
Here:
FF

maps Rn\mathbb{R}^n into Rn\mathbb{R}^n

f1,f2,…,fnf_1, f_2, \ldots, f_n
coordinate functions of FF

Continuity from Bounded Partials

Let ff be a function from D⊆RnD \subseteq \mathbb{R}^n into R\mathbb{R} and x⃗0∈D\vec{x}_0 \in D. Suppose all partial derivatives of ff exist, and constants δ>0\delta > 0 and K>0K > 0 exist so that whenever ∥x⃗−x⃗0∥<δ\|\vec{x} - \vec{x}_0\| < \delta and x⃗∈D\vec{x} \in D,

∣∂f(x⃗)∂xj∣≤K,j=1,2,…,n\left| \frac{\partial f(\vec{x})}{\partial x_j} \right| \le K, \quad j = 1, 2, \ldots, n

Then ff is continuous at x⃗0\vec{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} as x⃗=G(x⃗)\vec{x} = G(\vec{x}), then iterates x⃗(k)=G(x⃗(k−1))\vec{x}^{(k)} = G(\vec{x}^{(k-1)}). See fixed point.

Newton’s Method

Uses the Jacobian matrix of FF to get quadratic convergence to a root of F(x⃗)=0⃗F(\vec{x}) = \vec{0}. See Newton’s method.

Worked Examples

Example 1

Place the system

3x1−cos⁡(x2x3)−12=0x12−81(x2+0.1)2+sin⁡x3+1.06=0e−x1x2+20x3+10π−33=0\begin{aligned} 3x_1 - \cos(x_2 x_3) - \tfrac{1}{2} &= 0 \\ x_1^2 - 81(x_2 + 0.1)^2 + \sin x_3 + 1.06 &= 0 \\ e^{-x_1 x_2} + 20x_3 + \tfrac{10\pi - 3}{3} &= 0 \end{aligned}

in the form F(x⃗)=0⃗F(\vec{x}) = \vec{0}, and verify that p⃗=(0.5,0,−π6)T\vec{p} = \left(0.5, 0, -\tfrac{\pi}{6}\right)^T is a solution.

Solution Reveal Hide

The coordinate functions are

f1(x1,x2,x3)=3x1−cos⁡(x2x3)−12f2(x1,x2,x3)=x12−81(x2+0.1)2+sin⁡x3+1.06f3(x1,x2,x3)=e−x1x2+20x3+10π−33\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}

so F(x⃗)=(f1(x⃗),f2(x⃗),f3(x⃗))TF(\vec{x}) = \big(f_1(\vec{x}), f_2(\vec{x}), f_3(\vec{x})\big)^T. Evaluating at p⃗=(0.5,0,−π6)T\vec{p} = \left(0.5, 0, -\tfrac{\pi}{6}\right)^T gives

f1(p⃗)=3(0.5)−cos⁡(0)−12=1.5−1−0.5=0f2(p⃗)=(0.5)2−81(0.1)2+sin⁡ ⁣(−π6)+1.06=0.25−0.81−0.5+1.06=0f3(p⃗)=e0+20 ⁣(−π6)+10π−33=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}

Thus F(p⃗)=0⃗F(\vec{p}) = \vec{0}.

Example 2

Place the system

x12+x22=4x12−x2=2\begin{aligned} x_1^2 + x_2^2 &= 4 \\ x_1^2 - x_2 &= 2 \end{aligned}

in the form F(x⃗)=0⃗F(\vec{x}) = \vec{0} and find all real solutions.

Solution Reveal Hide

Moving all terms to the left gives F(x⃗)=(f1(x⃗),f2(x⃗))T=0⃗F(\vec{x}) = \big(f_1(\vec{x}), f_2(\vec{x})\big)^T = \vec{0} with

f1(x1,x2)=x12+x22−4f2(x1,x2)=x12−x2−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}

From f2(x1,x2)=0f_2(x_1, x_2) = 0, x12=x2+2x_1^2 = x_2 + 2. Substituting into f1(x1,x2)=0f_1(x_1, x_2) = 0 gives

x22+x2−2=(x2+2)(x2−1)=0  ⟹  x2=−2 or x2=1x_2^2 + x_2 - 2 = (x_2 + 2)(x_2 - 1) = 0 \implies x_2 = -2 \text{ or } x_2 = 1
  • For x2=−2x_2 = -2, x12=0  ⟹  x1=0x_1^2 = 0 \implies x_1 = 0, giving (0,−2)T(0, -2)^T.
  • For x2=1x_2 = 1, x12=3  ⟹  x1=±3x_1^2 = 3 \implies x_1 = \pm\sqrt{3}, giving (3,1)T(\sqrt{3}, 1)^T and (−3,1)T(-\sqrt{3}, 1)^T.

The system has 3 real solutions, (0,−2)T(0, -2)^T, (3,1)T(\sqrt{3}, 1)^T, and (−3,1)T(-\sqrt{3}, 1)^T. Unlike a linear system, a nonlinear system can have any finite number of solutions.

Example 3

Show that f(x1,x2)=x12+cos⁡(x1x2)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 using the bounded-partials theorem.

Solution Reveal Hide

The partial derivatives are

∂f∂x1=2x1−x2sin⁡(x1x2),∂f∂x2=−x1sin⁡(x1x2)\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)

Take δ=1\delta = 1. Whenever ∥x⃗−x⃗0∥∞<1\|\vec{x} - \vec{x}_0\|_\infty < 1, the coordinates satisfy 0<x1<20 < x_1 < 2 and −1<x2<1-1 < x_2 < 1, so ∣sin⁡(x1x2)∣≤1|\sin(x_1 x_2)| \le 1 gives

∣∂f(x⃗)∂x1∣≤2∣x1∣+∣x2∣∣sin⁡(x1x2)∣<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∣∂f(x⃗)∂x2∣≤∣x1∣∣sin⁡(x1x2)∣<2(1)=2\left|\frac{\partial f(\vec{x})}{\partial x_2}\right| \le |x_1||\sin(x_1 x_2)| < 2(1) = 2

Both partial derivatives are bounded by K=5K = 5 on ∥x⃗−x⃗0∥∞<1\|\vec{x} - \vec{x}_0\|_\infty < 1, so ff is continuous at (1,0)T(1, 0)^T.

Wolfram Mathematica notebooks

A companion notebook for this note. Open it in Mathematica and evaluate the cells to reproduce the worked example.

The summary notebook defines every function used in this module, with documentation and no examples, as a starting point for your own problems.

Written by November 3, 2026 2 min read
Was this helpful?