How to Solve Equations with a Singular Matrix?

nelectrode
Messages
10
Reaction score
0
Hi,

How would you solve a singular matrix? ie when determinant is zero.

Lets assume an equation, (1) Ax+By=E and (2) Cx+Dy=F

if the determinant; AD-BC = 0, and therefore the matrix is singular, How to go around solving the equation?

LU decomposition, Gaussian elimination?

Ideally I am looking for a method which could be "easily" implemented in a code.

Thanks
 
Physics news on Phys.org
nelectrode said:
Hi,

How would you solve a singular matrix? ie when determinant is zero.

Lets assume an equation, (1) Ax+By=E and (2) Cx+Dy=F
That is a system of two equations (not one) in two unknowns, so presumably your matrix is 2 x 2.
nelectrode said:
if the determinant; AD-BC = 0, and therefore the matrix is singular, How to go around solving the equation?
The system might have no solution or it might have an infinite number of solutions.
A couple of examples might help to shed some light here.
Example 1.
x + 2y = 3
2x + 4y = 6
The equations in this system are equivalent, so geometrically the two equations represent a single line. Here there are an infinite number of solutions. Each point on the first line is also on the second line.

Example 2.
x + 2y = 3
2x + 4y = 1
The equations in this system represent two parallel lines with no common point of intersection. The system has no solutions.

nelectrode said:
LU decomposition, Gaussian elimination?

Ideally I am looking for a method which could be "easily" implemented in a code.
Assuming that your systems consist of two equations in two unknowns, I would focus my efforts on those systems for which the discriminant is nonzero (i.e., the systems that have a unique solution). Once you determine that the discriminant is nonzero, you could use Cramer's Rule to determine the solution.

If the discriminant is zero, I don't see any point in trying to use Gaussian elimination or LU decomposition. In a system of two equations with two unknowns for which the discrimant is zero, there will either be an infinite number of solutions or no solution at all.
 
thanks a lot :smile:
 
nelectrode said:
How to go around solving the equation?

LU decomposition, Gaussian elimination?

Ideally I am looking for a method which could be "easily" implemented in a code.

Look up algorithms for computing the "generalized inverse" of a matrix.
 
I asked online questions about Proposition 2.1.1: The answer I got is the following: I have some questions about the answer I got. When the person answering says: ##1.## Is the map ##\mathfrak{q}\mapsto \mathfrak{q} A _\mathfrak{p}## from ##A\setminus \mathfrak{p}\to A_\mathfrak{p}##? But I don't understand what the author meant for the rest of the sentence in mathematical notation: ##2.## In the next statement where the author says: How is ##A\to...
The following are taken from the two sources, 1) from this online page and the book An Introduction to Module Theory by: Ibrahim Assem, Flavio U. Coelho. In the Abelian Categories chapter in the module theory text on page 157, right after presenting IV.2.21 Definition, the authors states "Image and coimage may or may not exist, but if they do, then they are unique up to isomorphism (because so are kernels and cokernels). Also in the reference url page above, the authors present two...
When decomposing a representation ##\rho## of a finite group ##G## into irreducible representations, we can find the number of times the representation contains a particular irrep ##\rho_0## through the character inner product $$ \langle \chi, \chi_0\rangle = \frac{1}{|G|} \sum_{g\in G} \chi(g) \chi_0(g)^*$$ where ##\chi## and ##\chi_0## are the characters of ##\rho## and ##\rho_0##, respectively. Since all group elements in the same conjugacy class have the same characters, this may be...
Back
Top