Problem: Solving a System of Nonlinear Equations
In applied mathematics, solving nonlinear systems of equations is a common challenge.
These systems appear in engineering, physics, and optimization problems.
Problem Statement
We need to solve the following system of nonlinear equations:
$$
f_1(x, y) = x^2 + y^2 - 1 = 0
$$
$$
f_2(x, y) = x^3 - y = 0
$$
Here, $ f_1(x, y) $ represents a unit circle, and $ f_2(x, y) $ represents a cubic curve.
We aim to find the intersection points of these two curves.
Approach
- Use a numerical solver to find solutions to the equations.
- Visualize the results by plotting both curves and highlighting the intersection points.
Python Implementation
1 | import numpy as np |
Explanation of Code
System of Equations:
- $ f_1(x, y) = x^2 + y^2 - 1 $: Represents the unit circle.
- $ f_2(x, y) = x^3 - y $: Represents the cubic curve.
Numerical Solver:
scipy.optimize.fsolveis used to find approximate solutions to the nonlinear equations starting from initial guesses.
Visualization:
- The unit circle and cubic curve are plotted.
- The intersection points are marked and labeled on the graph.
Expected Output
Intersection Points:
1
2
3
4x = -0.82603, y = -0.56362
x = -0.48198, y = 0.48869
x = 0.48198, y = -0.48869
x = 0.82603, y = 0.56362Graph:
- A plot showing the unit circle and cubic curve with red dots highlighting their intersection points.









