System of Nonlinear Equations Solver

Solve two-equation nonlinear systems step by step — substitution, elimination, and Newton-Raphson methods.

Circle: x² + y² = r²

Line: y = mx + b

What Is a System of Nonlinear Equations?

A system of nonlinear equations is a set of two or more equations where at least one contains a nonlinear term — such as x², y², xy, |x|, sin(x), or an exponential. Unlike linear systems (where all equations describe straight lines), nonlinear systems involve curves: circles, parabolas, hyperbolas, ellipses, and more complex shapes. The solutions are the points where these curves intersect in the coordinate plane.

Nonlinear systems appear throughout physics (trajectory calculations, orbital mechanics), engineering (stress analysis, circuit design), economics (supply-demand equilibrium with diminishing returns), and computer graphics (ray-sphere intersection for 3D rendering). Understanding how to solve them is fundamental to applied mathematics.

The key difference from linear systems is the number of possible solutions: a linear system has 0, 1, or ∞ solutions, while a nonlinear system can have any finite number of solutions (or none). A line can cross a circle at 0, 1, or 2 points; two circles can intersect at 0, 1, or 2 points; a line can be tangent to or miss a parabola entirely.

Methods for Solving Nonlinear Systems

MethodBest ForResult
SubstitutionWhen one eq. is linear or easily rearrangedExact algebraic solutions
EliminationTwo conics sharing a term (e.g., two circles)Reduces to simpler system
Newton-RaphsonAny differentiable system, no closed formNumerical approximation

Worked Example: Circle + Line

Solve: x² + y² = 25 and x + y = 7

  1. From the line: y = 7 − x
  2. Substitute into circle: x² + (7 − x)² = 25
  3. Expand: x² + 49 − 14x + x² = 25 → 2x² − 14x + 24 = 0 → x² − 7x + 12 = 0
  4. Factor: (x − 3)(x − 4) = 0 → x = 3 or x = 4
  5. Back-substitute: (3, 4) and (4, 3) — both on the circle and line ✓

Frequently Asked Questions

A system of nonlinear equations is a set of two or more equations where at least one equation is not linear — it contains terms like x², y², xy, sin(x), or exponentials. Unlike linear systems, nonlinear systems can have 0, 1, 2, or more solution points depending on the geometry of the curves involved.
The main methods are substitution (express one variable in terms of the other and substitute into the second equation), elimination (subtract equations to cancel a nonlinear term), and Newton-Raphson numerical iteration for equations that can't be solved in closed form. Substitution works well when one equation is linear.
A nonlinear system can have zero (curves don't intersect), one (tangent point), two (e.g., line crosses a circle), or more solutions. For example, two distinct circles can intersect at exactly 0, 1, or 2 points. A line can cross a parabola at 0, 1, or 2 points.
In substitution, solve one equation for one variable (e.g., y = 7 − x) and substitute into the other equation. This reduces the system to a single-variable equation (often a quadratic) that can then be solved with the quadratic formula or by factoring. Each x value gives a corresponding y value.
Newton-Raphson is an iterative numerical method. Starting from an initial guess (x₀, y₀), the Jacobian matrix of partial derivatives is used to compute correction steps (Δx, Δy), and the guess is updated until the error falls below a tolerance. It converges quadratically near a root but requires a good initial estimate.
Linear systems involve only straight lines; they have exactly 0, 1, or infinitely many solutions and can always be solved with Gaussian elimination. Nonlinear systems involve curves and can have any number of intersection points. They often require case-specific algebraic techniques or numerical methods.
Two circles don't intersect when the distance between their centers is greater than the sum of their radii (they are too far apart) or less than the absolute difference (one is entirely inside the other). They are externally tangent when distance = r₁ + r₂, and internally tangent when distance = |r₁ − r₂|.
Yes. When the discriminant of the resulting polynomial is negative, solutions involve complex numbers. Geometrically this means the curves don't intersect in the real plane. This calculator focuses on real solutions and will report "No real intersection" when the discriminant is negative.

Related Calculators