# Applying Newton's Method for Solving Systems of Two Nonlinear Equations

Recall from the Newton's Method for Solving Systems of Two Nonlinear Equations page that if we have a system of two nonlinear equations $\left\{\begin{matrix} f(x, y) = 0 \\ g(x, y) = 0 \end{matrix}\right.$ with a solution $(\alpha, \beta)$ and if $(x_0, y_0)$ is an initial approximation that is sufficiently close to $(\alpha, \beta)$ then we have that:

(1)The equations above are the tangent planes to the surfaces $f$ and $g$ generated in $\mathbb{R}^3$. For $\delta_x = x - x_0$ and $\delta_y = y - y_0$, this system can be compressed in matrix form as:

(2)We then define $x_1 = x_0 + \delta_x$ and $y_1 = y_0 + \delta_y$. In general, we have that:

(3)Under certain conditions, the sequence of $x$'s and $y$'s will converge to the solution $(\alpha, \beta)$.

Now let's look at an example of applying Newton's method for solving systems of two nonlinear equations.

## Example 1

**Consider the following non-linear system of equations $\left\{\begin{matrix} x^3 + y = 1 \\ y^3 - x = -1 \end{matrix}\right.$. There exists a solution $(\alpha, \beta)$ such that $\alpha, \beta > 0$. Let $(0.9, 0.9)$ be an initial approximation to this system. Use Newton's method with three iterations to approximate this solution.**

It's not hard to see that the solution of interest is $(\alpha, \beta) = (1, 1)$ which can be obtained by substituting one of the equations into the other. Regardless, we will still use Newton's method to demonstrate the algorithm.

We first rewrite our system of equations as:

(4)We now compute the partial derivatives of $f$ and $g$. We have that:

(5)We will use the matrix above for each iteration. For the first iteration, we need to solve the following system of equations:

(6)In solving this system, we get that $\delta_{x, 1} = 0.101$ and that $\delta_{y, 1} = 0.383$. Therefore we have that:

(7)For the second iteration, we want to solve the following system of equations:

(8)When we solve this system, we get that $\delta_{x, 2} = 0.201143$ and $\delta_{y, 2} = 0.400208$. Therefore we have that: