Constructing a 2D Matrix for Solving Equations with Multiple Unknowns

Click For Summary

Discussion Overview

The discussion revolves around constructing a 2D matrix for solving equations with multiple unknowns, specifically focusing on a complex equation involving coefficients and variables represented in a matrix form. The scope includes theoretical aspects of matrix formulation and potential approaches to solving the equations.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents a complex equation and questions how to construct an invertible matrix when both x and z values are needed for each node location.
  • Multiple participants express confusion regarding the notation used for the variables, particularly the superscripts indicating node positions.
  • Another participant suggests using two matrices, A and B, to represent the equation in the form A x + B z = 0, noting that x = z = 0 is always a solution.
  • Concerns are raised about the consistency of using two separate matrices and how they can be associated for solving the system, particularly regarding Gaussian elimination.
  • One participant points out that with n^2 equations and 2n^2 variables, additional equations are needed to solve the system.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the notation and the formulation of the matrix. There is no consensus on how to approach the solution or the structure of the matrices involved, indicating ongoing debate and uncertainty.

Contextual Notes

Participants note the need for additional equations to solve the system, highlighting potential limitations in the current formulation. The discussion reflects uncertainty about the relationship between the matrices and the implications for solving the equations.

Hypatio
Messages
147
Reaction score
1
I am trying to figure out how you would write out a matrix for the solution to an equation such as the following:

[tex]\alpha x^{rr}-(2\alpha+2\gamma) x^r+(\alpha+\gamma) x^i+(\beta+\gamma) x^{br}-\beta z^r -(\beta+2\eta) z^b+(\beta+\eta) z^i +\eta z^{bb}=0[/tex]

where alpha, beta, gamma, and eta are coefficients, and x and z are unknowns, and superscripts simply indicate the relative locations of the nodes.

I do not understand how such an equation can possibly have an invertible matrix because for each equation I need to know the x and z values. If I only needed solutions to x or z values, the matrix might look something like this, depending on the values of alpha, beta, etc.:

http://www.eecs.berkeley.edu/~demmel/cs267/lecture17/DiscretePoisson.gif

but I have no idea how to construct a matrix when you need to know two values for each node location.
 
Last edited:
Physics news on Phys.org
I don't understand your notation. Why do x and z sometimes have two superscripts and sometimes only one?
 
AlephZero said:
I don't understand your notation. Why do x and z sometimes have two superscripts and sometimes only one?
Sorry, this is a notation which is easier for me to understand for index references. b=i,j-1, bb= i,j-2,, r=i+1,j, br=i+1,j-1, i=i,j, rr=i+2,j. Think of it as bottom, bottom right,etc.
 
I would write it using 2 matrices A and B, in the form
A x + B z = 0
where x is the vector (x11 ... x1n, x21 ... x2n, ... xn1 ... xnn)
and similarly for z.

Clearly x = z = 0 is always a solution. Whether there are non-trivial solutions will depend on the structure of A and B and mayve on the values of the constants alpha, beta, etc.
 
AlephZero said:
I would write it using 2 matrices A and B, in the form
A x + B z = 0
where x is the vector (x11 ... x1n, x21 ... x2n, ... xn1 ... xnn)
and similarly for z.

Clearly x = z = 0 is always a solution. Whether there are non-trivial solutions will depend on the structure of A and B and mayve on the values of the constants alpha, beta, etc.

If I could solve an equation of the form Ax+Bz=0 that would be fantastic, but I don't see how to approach such a solution. Is this a special type of linear system that has been studied or is it not much different from an equation of the form Ax=B? In particular, I do not see how it is consistent to use two separate matrices. How are the matrices associated such that I can, ideally, perform gaussian elimination over it to arrive at the solution? I apologize if this is actually trivial.

Thank you very much for the help. I will be ecstatic if I can figure out how to solve such equations. I can then move on to solving stokes flow and problems of linear elasticity :D
 
If z and x are both unknowns, so far you have n^2 equations in 2n^2 variables. You need another n^2 equations from somewhere.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 20 ·
Replies
20
Views
11K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
14K
  • · Replies 17 ·
Replies
17
Views
7K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
10
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K