Why are matrix methods so widely used?

  • Thread starter Thread starter Telemachus
  • Start date Start date
  • Tags Tags
    Matrix
Click For Summary

Discussion Overview

The discussion revolves around the use of matrix methods for the numerical solution of partial differential equations (PDEs). Participants explore the advantages and challenges associated with matrix representation, particularly in relation to memory usage, handling of sparse matrices, and the implications of matrix condition numbers in discretization.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant questions the advantages of matrix methods given the high memory requirements for storing large, sparse matrices compared to iterative schemes.
  • Another participant suggests that the theoretical foundation of finite dimensional linear operators being representable as matrices provides a strong rationale for using matrix methods in solving PDEs.
  • A participant expresses concern about the necessity of specifying all elements in a sparse matrix, including many zeros, when programming, and seeks solutions to this issue.
  • It is noted that there are sparse matrix libraries available for various programming languages, which could help address the challenges of handling sparse matrices.
  • A participant raises a question about the impact of matrix condition numbers on the stability of solutions, particularly when finer discretizations lead to larger condition numbers, and inquires about potential strategies for improving matrix suitability.

Areas of Agreement / Disagreement

Participants express differing views on the practicality and efficiency of matrix methods versus iterative approaches, and there is no consensus on the best way to handle sparse matrices or the implications of condition numbers in discretization.

Contextual Notes

Participants mention limitations related to memory usage and the handling of sparse matrices, as well as the potential influence of discretization on matrix condition numbers, without resolving these issues.

Who May Find This Useful

This discussion may be useful for researchers and practitioners in numerical analysis, computational physics, and applied mathematics, particularly those interested in the implementation of matrix methods for solving partial differential equations.

Telemachus
Messages
820
Reaction score
30
Hi there. The question I wanted to ask is: Why are matrix methods so widely used for numerical solution of partial differential equations?

Many times I've found that storing a whole matrix requires much more memory than just doing an iteration scheme to propagate the solution. Sometimes I think it is easier to deal with boundary conditions in matrix form, specially in second order differential equations. But sometimes storing a matrix in a program requires to store a lot of elements that are zero. What I want to know is if there is any advantage to parallelize a program when the system of equations are written in matrix form, or if there is any other reason why matrix methods are so widely used.

Thanks in advance.
 
Technology news on Phys.org
If it is just the logistics of storing large, sparse matrices, there are ways to deal with that. It sounds like you can benefit from techniques related to sparse matrices.
If it is the theory, then remember that all finite dimensional linear operators can be represented by matrices. And differential equations involve linear operators.
So the theory combined with the ability to handle sparse matrices give an appealing approach to solving partial differential equations.
 
  • Like
Likes   Reactions: Telemachus
If you have a large sparse matrix, how do you deal with all the zeros? when I write a fortran program to solve a linear system, I must specify every element in the matrix, even when perhaps 99% of them are just zeros. For big problems that could be problematic, and I can't avoid the fact of having to store all those elements which in some sense are trivial. Is there a way of doing that?
 
There are sparse matrix libraries for several computer languages. Use Google to find one for your language. I have never used one so I am not expert about them.
 
  • Like
Likes   Reactions: Telemachus
Ok, let me ask this anyway, perhaps someone can tell.

I often find that the matrix corresponding to a discretized differential equation has a big condition number, and that the condition number gets bigger when the discretization is finer, because the elements of the matrix tend to be more close to zero for thinner meshes. Should I be able in this cases to get a better suited matrix by a reordering of the terms in the equation? perhaps, dividing by the mesh size, or something like that, or when one faces this type of problems it is inherent to the differential equation and the representation of the discretized operators?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
31
Views
4K
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K