LU factorization to solve Ax = b

  • Thread starter Thread starter Quincy
  • Start date Start date
  • Tags Tags
    Factorization
Quincy
Messages
228
Reaction score
0

Homework Statement


A is a 4 x 5 matrix equal to
[1 4 -1 5 3
3 7 -2 9 6
-2 -3 6 -4 1
1 6 9 8 2]

and b =
[5
40
15
12]

(b is 4 x 1)

Find the LU factorization and use it to solve Ax = b

Homework Equations





The Attempt at a Solution



I set Ly = b, and solve for y, then I set Ux = y, and when I row-reduce the Augmented [U y] matrix, I always get a 4 x 1 matrix, but x is supposed to be 5 x 1, what am I doing wrong??
 
Physics news on Phys.org
lkh1986 said:
Or there's actually a way to find he LU decomposition for a non-square matrix?

There was an example of it in the book; it only found L and U for the 4x5 matrix though, it didn't show how to solve Ax = b.
 
Quincy said:
There was an example of it in the book; it only found L and U for the 4x5 matrix though, it didn't show how to solve Ax = b.

That's because there are potentially an infinite number of solutions. The system you have is what's called an 'underdetermined' system that has fewer equations than unknowns. There is a 'minimum norm' solution that can be found via other factorization techniques (QR or SVD), but not LU (at least I don't think so).
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top