#numerical-analysis
1 messages ยท Page 19 of 1
First, can you discretize the boundary conditions?
WRite these as finite differences?
Yeah
Hmm forwards?
Well, at the left side it will need to be forwards
Yeah, and right side backwards
Victor H
For the left side
Yes
But is this with respect to x now
Well, this also holds for t+1 right?
Yeah you're right
How can you incorporate this into your update routine?
So that's the compressible mass conservation, incompressible is just $\nabla\cdot(u)=0$. The answer to number 2 in this picture about the pressure was that it enforces mass conservation. I definitely did not get that right at the time, still don't understand it now totally. But pretty sure that was it and physically it makes sense somewhat. Like in a pipe that is thinner downstream than upstream flow speeds up according to mass conservation. How would the individual fluid particles know to speed up? Because of the pressure, which is still a wave with finite speed. But very large compared to the velocity of the fluid such that it is infinite in the mathematical analysis.
Abdul Aziz
Yes
So I need u_j=1 and u_j=0 to be the same every iteration
Sure, you're talking about Bernoulli's principle or whatever similar concept applies here
But I can't just set them to whatever value
I would not call this a Lagrange multiplier
No, but how did you update them in the past?
What do you mean?
How did you compute u_1(t+1)?
u(2:end-1,m+1) = u(2:end-1,m) + dt * udot(:,m+1);
Ok
So this is how you get u_1(t+1)
Then you can just set u_0(t+1)=u_1(t+1)
I think

for
u(2:end-1,m+1) = u(2:end-1,m) + dt * udot(:,m+1);
u(1,m+1) = u(2,m+1);
u(end,m+1) = u(end-1,m+1);
?
why haha
Comparing Python to MATLAB is weird
MATLAB is fast when you use MATLAB properly, i.e using vectorized instructions and utilizing it's perfect implementation of LAPACK
Python calls LAPACK via Num/Scipy
Python is definitely superior
Yes ofc I know that
But one actually pays for MATLAB because of it's really good documentation and robust functions that work out of the box
It's like a big ass library
But Python is good too imo
I wouldn't pay for MATLAB personally ๐
Academic license
Yup the libraries are very nice
I would hesitate to say that Matlab has good documentation
The von Neumann BC doesn't work
It shouldn't turn around
Why the fuck is the video 3 min
It should reflect without inverting the wave
First, I'm going to suggest that you replace all of your first order approximations with second order approximations
This should help with the oscillations
sorry I'm back
I just had to commit seppuku
From this piece of shit assignment
but we back

So I looked in my book
And found something similar
Dog shit book btw
And the author uses second order method for derivatives
Then he solves some system of linear equations in the for-loop
Ok that makes sense
Second order method will reduce oscillations
System of linear equations at the endpoints, yeah
But he only uses second order method for the
first derivatives
ie. the boundary cond.,
Yeah yeah
But I don't know how to fix it with symplectic Euler
So the derivative approximations are
Oh you don't need second order for the main symplectic Euler part
For the left end-point:
[
-3u_{j=0}(t)+4u_{j=1}(t)-u_{j=2}(t)=0
]
Yep
Victor H
For the right endpoint:
[
-u_{j=N-2}(t) +4u_{j=N-1}(t)-3u_{j=N}(t)=0
]
Victor H
How the fk do I do this
Yes these are correct
Ok so
So
Honestly I don't know

Is this what you did?
But I don't understand where to put it
Put what
for m = 1:M
udot(:,m+1) = udot(:,m) + dt * c^2 * A*u(2:end-1,m);
u(2:end-1,m+1) = u(2:end-1,m) + dt * udot(:,m+1);
This is what I have now
With the "normal" A
You don't need to solve a system
udot(:,m+1)=udot(:,m)+dt * c^2 * A * u(:,m)
Where A is the modified matrix you have
and change A to correct size too?
Well you add the two rows on top and bottom so that it's the correct size right
No it should be N by N
u = zeros(N+1,M+1);
udot = zeros(N-1,M+1); %
e = ones(N-1,1);
A = N^2*spdiags([e -2*e e],-1:1,N-1,N-1);
x = linspace(0,1,N+1)';
But u is N+1
Oh wait yeah N+1 by N + 1
Yeah!
omg Im retarded
Not N+2 by N + 2
Yeah
from n-1
Ok
So the first row is 1 -4 3 0s
And then the next row is 0 coeff coeff coeff 0s
And so on
u = zeros(N+1,M+1);
udot = zeros(N+1,M+1); %
e = ones(N-1,1);
A = N^2*spdiags([e -2*e e],-1:1,N+1,N+1);
x = linspace(0,1,N+1)';
A(1,:) = [-3 4 -1 zeros(1,N-2)];
A(N+1,:) = [zeros(1,N-2) -1 4 -3];
Still wrong
๐ฆ
Still inverts
Other ones correct?
Yeah left hand side is -3 4 -1
Oh ok I think I see what you need to do
You keep the matrix A as a N-1 by N-1 matrix
You update u(2,m-1)
Then you know that -3u(1,m+1)+4u(2,m+1)-u(3,m+1)=0
So u(1,m+1)=(u(3,m+1)-4u(2,m+1))/(-3)
And you do the same at the other endpoint
Does this make sense?
Sorry for the late reply
I can try
Why u(2,m-1)?
Why the one previous?
for m = 1:M
udot(:,m+1) = udot(:,m) + dt * c^2 * A*u(2:end-1,m);
u(2:end-1,m+1) = u(2:end-1,m) + dt * udot(:,m+1);
u(1,m+1) = (4*u(2,m+1)-u(3,m+1))/3;
u(end,m+1) = (4*u(end-1,m+1)-u(end-2,m+1))/3;
end
Let's see what happens
It's probably gonna suck fucking ass
Yes, it sucked ass, more than usually actually
Looks even more Parkinsony than usual
But wait a minute
For the g(x)=sin(3pi*x)
Look how the end point at x=0 is moving
Yo
This shit can't possibly work
It cant
Because we need to pick these 3 end points closest to each side to fulfill the equations
but they're all coupled to everything, arent they?
So we need to solve a huge system of eq.
???
Oh yeah do that
yeah do that
Usually when I get here, to something that is almost correct, I randomly switch +/- signs, add +1/-1 to things, etc...
Kek
with the N+1 matrix with the -4 3 -1 shit?
Yeah
But how do I update it with that?
What's the update scheme
iteration scheme
I solve that system first?
Sorry if I'm dumb but I'm legit on the verge of death
I can just use backslash in matlab
Yeah
udot(:,m+1) = udot(:,m) + dt * c^2 * A*u(2:end-1,m);
In this line
Shouldn't it be udot(:,m+1) = u(:,m) + dt * c^2 * A*u(2:end-1,m);
I don't know
Nothing makes sense anymore
This is when debugging becomes a spiritual experience
udot(:,m+1) = udot(:,m) + dt * c^2 * A*u(2:end-1,m);
What is this line doing
Why udot(:,m) and not u(:,m)
Well it's just the scheme isn't iot??
First I do
udot(:,m+1) = udot(:,m) + dt c^2 Au(:,m)
then
u(:,m+1) = u(:,m) + dt*udot(:,m+1)
I just can't figure out what system I'm solving
lmao
but it's like close
I would guess
Dude
I'm just bruteforcing stuff
Testing every possibility
for m = 1:M
udot(:,m+1) = udot(:,m) + dt * c^2 * A*u(:,m);
u(:,m+1) = u(:,m)+dt*(eye(N+1)-A)\udot(:,m+1);
end
eye() is identitiy matrix
Don't you need c^2*A?
c is one anyways
Oh my
Now it's just sperging out
any hint to show divided difference is the coefficient of lagrange interpoly
difference = zeros(2,M);
for i = numel(M)+1
difference(1,i) = -3*u(1,i)+4*u(2,i)-u(3,i);
difference(2,i) = -u(end-2,i)+4*u(end-1,i)-3*u(end,i);
end
Only two values
Probably round off values
So it's like correct
It doesn't change anything
Well you want it to be correct
Honestly, I see your point but
And it should change something after it stops randomly flipping
for m = 1:M
udot(:,m+1) = udot(:,m) + dt * c^2 * A*u(:,m);
u(:,m+1) = u(:,m)+(eye(N+1)-dt*c^2*A)\udot(:,m+1);
end
Is still even slighty
like
this is 100% nonsensical
Like legit
But this doesn't even make sense in the slightest
Nothing makes sense anymore
cant seem to use induction 
pain
also I dont want to assume they are permutation invariant as i prove permutation invariant assuming this fact, but if its really necessary then its ok
How did you define Lf?

Nice
Excellent

Lf is the unique interpolating poly of degree m for m data points
the lagrange form is ez, but the professor just took it for granted that the recursive def of divided difference will give the coefficient w.r.t the other basis for the same interpol
Anticipation
Is this how you defined Lagrange interpolation? This is Lagrange interpolation with divided difference coefficients right?
I think that can induct on k, the number of interpolating points
Well what did you try
so assume its true for n โค m
Ok
i can't show its true for n = m+1 because everything is a mess
Well I agree that it will be a mess
wait either im wrong yesterday or im wrong today

OK so I suppoed
$\sum_{k=0}^mf[x_0,\cdots,x_k]\omega_k(x) = \sum_{k=0}^ma_k\omega_k(x)$ where RHS is the interpolating polynomial
Anticipation
we know it exists cuz the wks are a basis
now i need to show $\sum_{k=0}^{m+1}f[x_0,\cdots,x_k]\omega_k(x) = \sum_{k=0}^{m+1}a_k\omega_k(x)$
and using inductive assumption thing
Are the w_k the same on both sides?
yea
Anticipation
which is same as showing $f[x_0,\cdots,x_{m+1}]\omega_{m+1}(x) = a_{m+1}\omega_{m+1}(x)$
Right
Anticipation
So it's showing that f[x]=a_{m+1}
wait but i need to show that
Well omega_{m+1}(x) is on both sides so you cancel it out
So you need to show this
Yes I agree
no i mean
Expand out the definitions
i need to show this thing
and by showing this thing im done as u said
ok so another way to phrase this is I need to show
Anticipation
i'm under the impression it is a telescoping sequence if you look at partial sums
do a few smlal ones and look for a pattern
Wrong channel?
i think not but it doesn't work ๐ฆ
like it gets messy once i start doing f[x0,x1,x2,x3]
This is not a telescoping series
yeah mb, i didn't mean telescoping, but self similar
I'm trying to understand why fixed point iteration is at least quadratic convergence when g'(x) = 0.
Which fixed point iteration? Just x_{n+1}=f(x_n)?
yeah
What does quadratic convergence mean?
To get a constant, try taking the Taylor expansion of f(x_n) about r
So f(x_n)=f(r)+f'(r)(x-r_n)+....
one sec
it means the picture above is equal to some constant
yeah that works
I should hope so, I don't have the applied math role for no reason
can someone give me like a eli5 for EM GMM? like how do we initialize mean, covariance and pie with respect to the number of clusters? In python, given m x n matrix, would the implementation of expectation just be scipy.stats.multivariate_normal(array[:, n], mean[cluster_num], cov[cluster_num]) for all n?
Wikipedia suggests that the parameters can be randomly initialized
@wide spear between [0,1], right? because normal/gaussian distribution
(Also disclaimer I don't know any stats but I am in close contact with someone who does so they're answering via proxy)
Wait why between [0,1]?
oh good question... umm
This guy works out an example:
https://stephens999.github.io/fiveMinuteStats/intro_to_em.html
I guess that's the wrong language...
my homework asks me to do this
for
but they are not circles?
and im reading the textbook and it only has stuff for circles
can someone pls explain
Newton's method to find the root? Or Newton's method for finding minima
you see, I would if my professor actually responds to his emails
but does the first two steps differ based on which it is?
can I know both?
First, can you explain what the textbook has about circles?
I wish I knew the answer to that question LOL I'm just trying to understand this thing
because my prof doesnt lecture :)
Can you write down the r_1 and r_2 for example 3?
uh
Don't think about that
Do you understand how the r_1,r_2, and r_3 were derived in example 4.21?
The distance from what
x to y?
No
x, x1?
noppe
Did you read the chapter?
it doesn't really make sense but it's okay sorry for bothering you
No
I'm going to make sure you understand
For example 4.21, we are trying to find a point (x,y) that minimizes the distance to the three circles with centers (x_1,y_1), (x_2,y_2), and (x_3,y_3) with radii R1, R2, and R3
r_1 is the distance from (x,y) to the 1st circle
okay
r_2 is the distance from (x,y) to the 2nd circle
r_3 is the distance from (x,y) to the 3rd circle


i don't understand why we are finding a point that minimizes the distance
Well
and that entire thing you typed
Why is another question
But that's the goal of this section it seems
Which thing I typed
the three circles and the centers
why they used what they used? no
how to use it on another circle? maybe
Well, it turns out that finding minima of these types of functions is pretty important in applied math
okay I did not know that thank you
sorry, I am just a very confused being but I will try my best here
so is this related to finding the minima?
Well, you have the three distance functions
(x,y) to each of the three circles
You combine these to get the function you want to minimize
Then you use the Gauss-Newton method to minimize it
okay is the radius relevant or irrelevant in the u^2 + 4v = 4
Well, stop thinking about the radius
why?
Instead, think about how you can find an analogous distance function
It won't be in exactly the same form
okay
So how can you find the distance from a point to the curve you were given?
the abs value of a (point on the curve) - (the point we're given)?
Well that's the distance between x and y
You want the distance between (x,y) and the curve u^2+4v^2=4
So you'll need to find another equation
okayy
Find a formula for this distance and then come back
okay gotcha
You'll also want to find the formula for the distance between (x,y) and the curve 4u^2+v^2=4
so I finally found my profs "notes" on this as I was on the hunt to find if he posted this equation somewhere, and I think I am even more confused than when I started
but I think I found what he wants out of this question (?)
nvmm I figured it out

his definition of newtons method is very different
it seems like
what is this
is this also newtons method?
Well, Newton's method refers to many different things
such as?
Newton's method for finding zeros of functions
Newton's method for finding minima of functions
ohhh
okay this makes more sense to me now
thanks for all ur patience ^^
even though I asked some pretty irrelevant and dumb stuff I hope I didnt take too much of your time

wait can I ask one more question?
Ok
are you a math major?
oh is there a better book you would recommend?
Nah it's the only book I've tried
LOL
yeah but imo its better than trying to decipher my professor's chicken scratch
when he decided to give up lecturing all together
Oh yeah anything is usually better than the professor's parkinson
Does his g go the other way
no idea
Why did he reflect his g around the horizontal axis
LOL IKR

are you undergrad?
Yes
ohh ok!

michael heathโs introductory survey is alright
wait angetenar is an undergrad 
It doesn't really discuss numerical methods for pdes though?
Just looking at the table of contents
not in any sort of depth
Also very little about FFT and signal processing
What does this mean
you seem pretty knowledgeable in this stuff and i thought you were a grad student at least

Well
I'll probably be a grad student next year
And I've done a fair amount of classes about numerical analysis
sounds great
i had like, one numerical analysis class that was offered in my undergrad
Ah
I go to a big school
With a lot of applied mathematicians
2 undergrad numerical analysis classes, 3 graduate ones
Some other applied math classes that touch on the topic
Wait how does that happen
I thought usually people take a year off before going to grad school?
Which school are you aiming for?
Becoming an adult means giving up on your dreams
not necessarily true


my dream is to taylor expand every day
Proofs
Heh the bane of my existence
I'm surprised I even lived thru my real analysis class
question - how do I find d degree of polynomials that pass through four points?
I could just be really dumb and this could just be something super simple, but I'm going to accept my dumbness
where does this come from
Lagrange interpolation could give you a 4th degree polynomial, right?
I'm not sure if that's the lowest possible you can get
uhh is that okay?
I can do that?
cus the question asks for d degree
but never specified 3rd or 4th
Okay so a quick web-search reveals you'd get a polynomial of least possible degree from Lagrange interpolation
For k given points, it will be at most k-1
So in your case, at most 3
Once you plug in the actual values of the points, you can possibly obtain a polynomial of a smaller degree than 3
I'd still suggest you read about polynomial interpolation methods
just try remembering that you need two points to get a polynomial of degree 1 (a line)
My knowledge about this is too superficial
that gives you an idea of the relationship
yeah I'll probably hunt the textbook
d+1 data points for polynomial of degree d
oh okay thank you for the pointer
yeah whenever you're trying to remember whether its like plus or minus one
think about the edge cases
ohhh ok
Ultimately this is because a polynomial of degree n has n+1 coefficients
i see
davidW
What does triangular support mean
davidW
yeah so trying to see if there's a slick way to do this without induction lol, maybe something involving Schur Complements? hm, thinking
No induction seems like the best way to do this
Schur complements will indeed work, but I don't think it will give you the triangular support condition
currently i parsed the input file into these:
- nu of faces (cells)
- nu of edges (Using Eulers Identity V - E + C = 2)
- coordinate of each vertex
- cell centroids
and made this image
could one suggest an algorithm to enumerate the edges of such graph?
it should be sth like
create edge center array
for each cell loop around the edges
if mean of any 2 is not in edge center array
fill center array
if i do not mess up with logic :\
Have you considered breadth first graph traversal?
wasnt it for trees only
Wait how is your graph stored
Do you not store it as a set of vertices and a set of edges?
Can you convert this into an adjacency matrix
had to work in google sheets also :\
Triangle connectivity array?
size of 3 by nu of triangle regions
Oh my god why is this in google sheets
Turn your triangle connectivity array into an adjacency matrix
๐
okay
with adj mat it would be very tidy ikr
but moving connectivity into adj mat is another nightmare
Write some code
ye, kinda doing it rn
nvm it should be ez to create adj matrix
run over all triang
put + 1 for each combination of 3 vertices in my file (or +0 if 1 already)
boom, made it
strange, nu of edges in adj matrix does not coincide with eulers identity formula >_>
nvm, had to fill ij and ji, then take half
all done! thank you @wide spear

i rly want to make the last part of this pf better
heres the updated i think its better but maybe its still flawed
how did they get 1???
for f[x1x2x3]?
is it not 2 - (-1) / 1 - 3?
ohhhh sike
nvm

haha my math isn't the greatest
i respect the mathematicians
I am a part of the 10% of chinese ppl that can't math
wait can I ask a question why is -1 and 2 both f[x1, x2]
haha then you've yet to meet my math skills
f[x1,x2]=2
Oh I see
That's a typo
The second one should be f[x2,x3]
And the third should be f[x3,x4]
ohh okay that makes more sense
thank u
i've taken a lot of math classes and still learned nothing
as you can see
i mean watching yt videos aren't really like amazing either
or reading stuff from textbooks
unless you have a different way
although patrick JMT - great dude
Well I have no experience as an educator so I don't think I'm the right one to make recommendations
But something that I've found very important for me when learning is motivation
Learning math for the sake of doing things with it
Well I'm interested in fluid dynamics
I think it's a really cool field
See this
Fluids are very pretty
And behave in very cool ways
that is indeed very cool
And understanding this is a very difficult mathematical question
divided difference is just pascal triangle

hey, has someone done some convex optimisation? We proved that gradient descent for a convex and Lipschitz $f$ with stepsize $\gamma = \frac{R}{B\sqrt{T}}$ where $||x_0-x^|| \leq R$ and $\nabla f(x) \leq B$ is in $O(\frac{R^2B^2}{\varepsilon^2})$. $T$ is the number of total steps. However, we don't know $B$ and $R$ (only that they exist) so we can't actually use this algorithm. Suppose I know $R$ and also know that some $B$ exists, I need to find an algorithm to find the optimum $x^$ up to some arbitrary error in the same complexity as before. I'm not sure how I should go about that tbh. Should I just try different stepsizes that only depend on $B$ and $T$ and try to prove that this has the correct complexity, or is there a better way? I feel like I should somehow use the fact that $f$ is Lipschitz
What did you prove about gradient descent
lyinch
If you know R and that B exists, why can't you just run gradient descent until the error is small enough?
In practice you never know what R and B are
You just run gradient descent
it's an exercice in a convex optimisation lecture ๐
I proved that if R and B exist, then I can find the optimum in with the above given steps
where epsilon is f(x)-f(x*) < epsilon
Sure
but I can only reach this for the correct gamma, and to chose that I need to know R and B. Which is, as you said, not feasible
Gradient descent still works if gamma is not chosen optimally
You just converge slower
Ah ok there we go
now I assume that I know R and that B exists but is unknown. I need to find a gamma such that the convergence has still the same complexity above and it's actually feasible
(or better complexity of course, it's big O)
8da is typing 
I don't think B is knowable, or boundable, right? No matter how finely you know f, there can be some crazy shit happen in some small neighborhood
Hopefully you are optimizing on a convex compact set?
it's an assumption here, we start with convex differentiable Lipschitz functions
and a minimum exists
yes, we've also treated this. To reason about such functions we need different assumptions such as strong convex functions
but that's not part of this problem
strong convexity will be treated in the next 2 exercises, don't worry ๐
(note strong convex is different than strict convex)
Ok so what happens if you do the error analysis with an arbitrary step size gamma
Oh, I guess if it's convex nothing too weird can happen
yes I think that's the starting point. One second
that's for an arbitrary gamma


"Waifu's Region"
It's fine
then whats up with this
my brain
is not comprehending
so which one is right and which one is wrong?
Do ask your algebra questions in #prealg-and-algebra
oh sorry
In the first one you can divide 12 and 15 by 3
sorry sorry I instinctively come here bc this is for my computational math class
but I will note that next time
um I'm not sure if I'm starting this question right
it was the newton's multivariate method thing
but like my prof's notes look like this:
and thats kind of what I got out of it?
but I'm not sure if i'm even on the right track ...
looks okay i think? you have the jacobian and the function evaluated at x, now you can do a linear solve for the step delta x.
For anyone wondering about this question, I got the solution today. Since we know that the gradient is bounded by some B (we don't know the value), the algorithm is simply to guess the correct B. Let's call the guess B' . We initialise this by B'=epsilon/R (not sure yet why, I need to derive the proof myself) and then for every iteration, we check if the gradient <= B' . If it's not, then we double it: B' = 2B' . This means that in the worst case, our guessed bound B' is at most 2B, the real but unknown bound. Now we know B' and also know R (by assumption) and this gives us the stopping criterion T >= 4(RB'/epsilon)^2 and we have in bigO the same number of steps as mentioned above
looks like the Armijo rule
interesting
I don't know the Armijo rule but it looks indeed similar
Okay thanks! 

I would like to compute first and second derivatives of scattered 2D/3D data using fast fourier transforms, are there any good sources for this if it's even possible?
Ok so you know how Fourier transforms turn derivatives into polynomials right
If you have data, look at Poisson summation formula or Shannon-Whitaker sampling to reconstruct the Fourier transform
This will at least be a starting point
I have a very good reference but itis a untranslated french reference
Oh Anatole are you attending Sylvie's talk

thanks bruh
Ah I see you here
who are you ?

I took french in high school, I could give it a shot
Way to ignore my suggestion
Oh sorry I'm on tablet and just missed it, reading it now
Ok I will look at those formulas and that reference thank you
Yes
Ok
I will say that based on the quick glimpse I saw of the image you sent, this is not the correct channel
Ohh which channel should i go to ๐ฅบ
Ask in one of the math help channels
Okay thank you
@wide spear do you have thoughts on how to continue, given that I can express transpose as matrix mult?
Ok so you have A'=LPL'
well, maybe you're using different notation, but I originally had that we have A_n = A' + (LPL')_n
where A' is non-invertible
Oh yeah
and we have that (LPL')_n -> A' uniformly
You should look more into the properties of the Bruhat decomposition
Is all I can say
I think there is still room for it to work
since I know we have LUP decomp for any square matrix
and any triangular matrix is the limit of invertible triangular matrices
Yes triangular matrices are closed
Ok, so then aren't we done?
We are?
(LPL')_n = L_n P_n L'_n
and triangular matrices and permutation matrices are closed
well, maybe not permutation, is limit of permutation mat even well defined or smth
Would you like to explain how you've written a general matrix as the product of two lower diagonal matrices and a permutation?
There are only finitelyany permutation matrices, so certainly closed, right?
Yes finite number of permutation matrices
well that's why I wrote what I did originally, but what is the limit of a permutation matrix
I don't think the limit needs to exist
I guess we must pass to a subsequence for convergence
exactly my point
but yeah, maybe that's not a problem for here
I just used Bruhat decomp, and a neat proof from https://mathoverflow.net/questions/15438/a-slick-proof-of-the-bruhat-decomposition-for-gl-nk
Sure, but it is not true that you can write a general non-invertible matrix as the product of two lower triangular matrices and a permutation
yes, that's why I'm asking n the first place lol, since this is only for invertible
but I know that square matrices have LUP decomp, so there should be a way to extend
Well you'll need to turn L' into an upper triangular matrix
Is there such a thing as LUL decomposition?
sure just take P' s.t. LPL' = L P (P' L' P'^{-1}) = L (P P') (L' P'^{-1}) = L P'' U
Sadly LDL doesn't sound as lulz as LUL
which is basically cholesky like ang said
Some indefinite matrices have D with negative elements
Which is definitely not a permutation matrix
I'm aware
do you agree with this though
it's the inverse permutation
that's how I chose P'
Can you elaborate further
it's the permutation matrix that makes L'P'^{-1} upper triangular
isn't a permutation matrix just a reordering of the rows and columns
can't I reorder the rows and columns of a lower triangular matrix into an upper triangular one
If you have U=LP then you're saying that UL^-1=P
no I'm not
I'm still not sure this P exists
Sure
But you're writing transposition as a permutation
Which I'm not sure can be done
is this not a valid argument
I think it surely exists right? We can prove it by drawing a triangle and reflecting it twice
Can you?
Let's say L is diagonal
Then it is lower and upper triangular
So P is the identity
Clearly the identity will not take the transpose of any non-diagonal matrix
At least assuming permutation matrix is composition of row and column interchanges, and not just row interchanges
I don't understand how what you just wrote doesn't show what I want
then P is the identity
so you found such a P
no I don't
sure, for convergence we will need the sequence of Ps
It doesn't reorder rows
No
It doesn't
You need two permutation matrices to turn a lower triangular matrix into an upper triangular one
One to rearrange rows and one to rearrange columns
sure
wait I have two Ps here
I have P'' = P P'
I can also write L = P_1 L P_1^{-1} if we want
so we'd have like
You don't know that P_1^-1 is P_2
$$LPL' = (P_1 L P_1^{-1}) P (P_2 L' P_2^{-1}) = P_1 L (P_1^{-1} P P_2) L' P_2^{-1} = P_1 L U P_2^{-1} $$
davidW
maybe you're right we're missing another matrix, or does this fix anything
I'm not sure
Why is there a P_2 inverse at the end
did you see the latex I put above
Yeah
we get to pick P1 and P2
It should be in U
well, I hesistated to write that since then you have
P_1^{-1} P (P_2 L' P_2^{-1}) = P_1^{-1} P L'
so if we needed to choose 2 matrices to be able to permute the rows and columns then you'd want to group (P_1^{-1} P P_2) so it acts on L' to make it U
You misunderstood the 2 matrices
You need to multiply one matrix in front and one matrix after
Multiplying before permutes rows, multiplying after permutes columns
Ok sure
$$LPL' = (P_1 L P_1^{-1}) P (P_2 L' P_2^{-1}) = P_1 L (P_1^{-1} P P_2) L' (P_2^{-1}) = P_1 L U$$
davidW
so now the two parenthasized permutation matrices act on L' before and after, respectively
I'm not sure, did you have any thoughts?
Well, do you want the individual matrices to converge?
This is hard
Because you only had bounds on the product of the matrices
yes
I'm not sure what you mean by that
actually now I see
(sorry :p)
Well, as the condition number of A_n goes to infinity, these 3 matrices can behave wildly
They will behave wildly probably
but we know PLU is indeed a way to represent a square mat
Yes
we shouldn't need any other conditions on these matrices
But we don't know that the PLU coming from the Bruhat decomposition is
?
why would we
Why does PLP^-1=L
we know A is square, and L is any triangular matrix and U is any triangular matrix, and P is a permutation matrix
where does this show up
LPL' = (P_1 L P_1^{-1}) P (P_2 L' P_2^{-1}) = P_1 L (P_1^{-1} P P_2) L' (P_2^{-1}) = P_1 L U
where did I use the equality you wrote
You wrote L=P_1LP_1^-1
good catch
wait sorry, isn't this always true
by definition of permutation matrix basically
Well
No
P_1P_1^-1L=L
And P_1^-1 exists because permutations are a group
But when you are inverting group elements you need to act from the same side
right, but if I first permute the entries then I move them back why is that not what I started with
When you do P_1LP_1^-1 you have P_1^-1 permuting the columns and P_1 permuting the rows
How can a column permutation and a row permutation cancel each other out?
ah ok, sorry for dumb question lol

@wide spear so now I think I see why you brought up cholesky before, since bc A is invertible so we have cholesky, and we're gonna be able to choose L = L', with P being the inverse ordering of the rows
Invertible does not mean psd
whoops positive definite
Invertible does not mean positive definite
touche

@wide spear so why did you think this related to cholesky then?
if we're only demanding invertible and never anything psd
Burhat feels like Cholesky
it do ๐ฉ
But it isn't
it's cholesky but made worse by algebraists
Yes exactly



