Program to solve system of nonlinear equations

Click For Summary

Discussion Overview

The discussion revolves around solving a system of nonlinear equations using Newton's method, specifically employing Gauss elimination. Participants explore the challenges encountered with certain initial values leading to singular Jacobian matrices and the implications for convergence.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant encounters a problem with the initial values leading to a singular Jacobian matrix, resulting in an impossible equation.
  • Another participant notes that stationary points on the x2 axis can cause issues with Newton's method, suggesting that some starting points may fail.
  • There is a suggestion to contact the professor regarding the issue of singular matrices and whether alternative methods are expected.
  • A participant mentions that the professor advised reporting findings and that convergence should be achievable for some initial data sets.
  • One suggestion is to choose initial points slightly away from the problematic values to improve convergence.
  • There is a discussion about replacing a problematic initial value (0) with a small value (0.001) to avoid singularity issues, while noting potential convergence challenges.

Areas of Agreement / Disagreement

Participants generally agree on the challenges posed by singular matrices in Newton's method, but there is no consensus on the best approach to resolve these issues. Multiple competing views on how to handle the initial conditions remain present.

Contextual Notes

Participants express uncertainty regarding the implications of "some liberty" with initial data and the specific methods for handling singular matrices, indicating a lack of clarity in the course material.

Who May Find This Useful

This discussion may be useful for students working on numerical methods for solving nonlinear equations, particularly those encountering issues with Newton's method and singular matrices.

twoski
Messages
177
Reaction score
2

Homework Statement



XMEaAdV.png


Solve the aforementioned system of nonlinear equations using Newton's method. write a program to carry out the calculations (it must use gauss elimination).

Use the values 0-3 for [itex]x_{1}^{(0)}, x_{2}^{(0)}[/itex] (ie. 16 data sets total).


The Attempt at a Solution



So i have hit my first roadblock: For [itex]x_{1}^{(0)}=0, x_{2}^{(0)}=0[/itex] this makes absolutely no sense.

You end up with [itex]0 * Δx_{1}^{(0)} + 0 * Δx_{2}^{(0)} = 1[/itex] which is impossible. What the heck?
 
Physics news on Phys.org
You will always run into problems with Newton's method if one of the iteration points is stationary, which happens whenever the Jacobian matrix is singular (##\det \mathbf{G}'(\mathbf{x}) =0##). In this case there is a line of stationary points on the ##x_2## axis, so several of the starting points listed will fail. There are alternative methods to Newton, but they would seem to be beyond the scope of the problem.
 
Correct, i am supposed to use Newton's method with gauss elimination specifically... So should i email my prof about this? Is there some sort of method to solving this case?
 
twoski said:
Correct, i am supposed to use Newton's method with gauss elimination specifically... So should i email my prof about this? Is there some sort of method to solving this case?

Sure, you could email the prof or grader. If your course or text didn't cover the methods for singular matrices, I don't think that you'd be expected to learn them just to do this problem. If you are interested in reading about one method, you might check out this chapter that uses Singular Value Decomposition (SVD) of the Jacobian to improve the Newton method. There's a similar (maybe equivalent) method described in this paper, but the presentation is more technical than the 1st reference. Again, I am certain you are not expected to use these methods, but it can't hurt to check with the prof.
 
I messaged the prof and he tells me,

Just report your findings (with a brief discussion). I am assuming that you get convergence for at least some of the initial data. You can take some liberty with the initial data ...

Not sure what "some liberty" means but i did manage to make my program work for cases where the matrix doesn't have a row of zeros.
 
Instead of starting with a bad point on the list, you could choose an initial point a small distance away from the suggested one to see if the convergence improves.
 
Ah, so in place of 0, i could take, say, 0.001 and try with that?
 
twoski said:
Ah, so in place of 0, i could take, say, 0.001 and try with that?

Yes. If you start too close to the singular point, though, it might take a relatively long time for Newton to converge, or the trajectory might actually hit the singular point. This actually seems like a good problem because it might illustrate a lot of features that would come up in realistic applications.
 

Similar threads

Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K