#linear-algebra
2 messages · Page 272 of 1
If I read my D^n correctly, because x_1 and x_2 never converge, plus with 3^n only going towards infinity, there is no limit to the solutions.
Is that a correct assessment of my equation?
assuming M is diagonalizable and has those eigenvalues, sure
ah true

hi guys, need some help here
have you made any progress so far?
also @limber oracle please do not post in multiple channels at once
hi! I'm struggling with an exercise of Markov chains. I unfortunately don't have any notes or lesson, just the exercises, so I don't even know where to look...
"Check that the matrices below are stochastic, then describe, without doing any calculations, what must be the asymptotic behavior of a particle evolving on χ = {1, 2, 3}, according to a stochastic dynamics defined by T. In particular , describe (approximately) what must be the stationary probability vector p∗"
I've already checked that they are stochastic, but I don't know anything about the second part, and lessons on markov chains i find online don't cover this
so if anyone can tell me where to start looking I'd be very grateful
If you have no idea what markov chains are, watch a lesson on it rather than posting it on discord and asking someone to solve them for you
hey i'm sorry, maybe i misworded it. But as I mentioned in my message above, I'm not asking for anyone to solve it - I'm asking what should I look for online to understand how to solve this exercise. I have already looked up lessons on markov chains and they don't cover how to answer this specific question.
markov chains, the stationary vector you are mentioning is a part of it
it means a state that remains fixed jf you apply the matrix on it
when they ask me about the asymptotic behavior, does it have something to do with the stationary vector?
it does
okay thank you!
[A-xI_{m+n}=\begin{bmatrix}B-xI_m&C\0_{n\times m}&D-xI_n\end{bmatrix},]
hence
[|A-xI_{m+n}|=|B-xI_m||D-xI_n|.]
RaD0N
Hey guys can I get a hint for part 6a
I’ve tried induction using definition of determinant
i.e. Expansion along column or row i
But doesn’t seem to work out
I need help with 5b
I’ve done 5a but I feel like I’m blind and can’t see what to do on 5b
Use the fact that the determinant is some signed sum of all the determinants of minor matrices. That’s my first thought
Might lead somewhere swag we will see
det
i tried doing that but don't see how it related to B_n-3
like A_12 minor is weird, assuming we are expanding along the first row
definitely looks like an induction thing
but not too sure
hmm
did you try looking at the determinant for B4x4?
remember that determinant is a recursive computation,
I did but don’t see any connection to B1
Whichever minor I take there’s always gonna be a weird matrix as a leftover
can you show me waht you did?
also, try to take the determinant starting off with the 1st row
and see if you can see something interesting
Ok my working is really messy
This circled part is where I expand along first row
I get a huge matrix that doesn’t seem to relate to anything
I’ve tried row simplifying
But that doesn’t seem to help
It’s fine now guys I got it
This is it if anyone was interested
I made a small error in my working which didn’t allow me to see an important step
i have a question
when you are trying to find the inverse of a 2X2 matrix, why not just multiply it by the identity matrix like you would with a 3X3?
instead of the A-1 = (1)/(ad-bc) [[d, -b], [-c, a]] method?
am i making sense
Not really.
What does "just multiply it by the identity matrix like you would with a 3X3" mean?
Yes, I know what an idenity matrix is.
I'm confused that you seem to have a method for inverting a 3×3 matrix that consists of multiplying it with the identity matrix. That doesn't sound like it would make any progress.
you are not multiplying the 3x3 matrix with an identity matrix
at all
sorry
my brain just fizzed out
what you are doing is setting the 3X3 matrix equal to an identity matrix and making the 3x3 matrix look like the identity matrix with row operations
One method for inverting matrices involves gluing an identity matrix to the right side of the original matrix and doing Gaussian elimination on the whole thing. That works for 2×2 as well as for 3×3.
ah i see
Yes, what you described.
Yes, that is Cramer's rule. For 2×2 matrices it boils down to something fairly simple, but it quickly gets too complex to be of practical use for larger side lengths. It is theoretically important, though, because it says that the entries of the inverse are rational functions of the entries in the original matrix.
i see yeah my head was spinning when i was trying to think of how that rule works in a 3X3
it seemed more efficient to attach the corresponding identity matrix
ty so much for your help
oh one extra question
are there situations where you find the inverse, you multiply the inverse by the original matrix and you find that it is not equal to the identity matrix?
or does finding the inverse means that the step after will always prove you correct
The definition of inverse is that you get the identity matrix when you multiply with the original matrix. If you don't then what you have found was not the inverse after all.
got it
so that part where they multiply the inverse matrix by the original matrix to get the identity matrix is like a sanity check
Yes.
gotcha
question d
am i messing something.... i got [-30 \n 6 \n 21]
but the book says it is
what i did was B times [3 \n 6\n 0]
,w {{6,-2,4},{0,1,3},{7,7,5}}*{{3,-2,7},{6,5,4},{0,4,9}}
can you show your work for that? maybe youve messed up some arithmetic somewhere
Sure thing
Just a sec
Nvm 🥲🥲
I found the mistake....
Messed up a sign
Any advice on how to avoid making such stupid mistakes on my test? 🥲
double- and triple-check everything ig
Especially that i barely get enough time for all the questions...
Probably wouldn't have the time to do that on a test with a question about solving a 6d system of equations+ finding eigenvalues and eigen vectors+ finding determinants of a 3×3 matrix
Wait isn't that what they call it 💀
4 equations in 6 variables*
i wasnt objecting to the name
i was just in shock at what theyre making you do
its so pointless 
agree tbh
if i could do 2 equations in 3 variables
i can probably do anything
there's just more room for stupid arithmetic mistakes
Hi, guys, suppose T is an n by n invertible matrix, and x_1,...,x_n is a basis, then T(x_1),...,T(x_n) is a basis. So is it true that the change of basis matrix from {x_1,...,x_n} to{T(x_1),...,T(x_n)} is T?
for example C^n, T\in GL_n(C)
heyyyy guyyss please im struggling whti this question i mean isn't normally i apply this formula to determine the orthogonal projection
why we need this innerproduct expression ?
cause that defines orthogonality
you can't determine if vectors are orthogonal w/o an IP present
@nocturne jewel yeahh but i m already using the dot product here as innerproduct
and the given another innerproduct where i can apply this expression ?
please someone could help me to solve this question
yeah you cant do that
cause you're not given the canonical IP
you use the IP provided
u and v are orthogonal iff <u,v>=0
thank you s much okay so i can't apply the dot product then how i can solve this question with the provided ip
Just apply the projection formula
You just need to make sure {e1,e3} is an orthogonal basis of the space.
try computing it
what is span{f,g} by definition?
span{cos^2(x), sin^2(x)} | from my understanding it is asking me to find out if the followin a,b,c... can be represented as the linear combinations of sin^2x cos^2x
Yes, hint think about trig identities
I found it out myself too, thanks btw When i shared this I wasnt able to understand what i read
The least square solution to A’Ax=A’b simplifies to xhat=A’b when A has orthonormal column vectors. Then bhat= AA’b=b. For linear regression this would imply that the estimated response equals the actual response. I think there is something wrong here. Does anybody what it is?. Thanks
it's because your A is not always (almost never in regression) orthonormal
and A'A may or may not be identity depending on the size of A, i.e. if size of A is 2x3 then shape of A'A = 3x3, and A'A = diag[I_2, 0] and not I_3
Thanks for responding. I think that’s where the issue
Is. I was almost treating A as orthogonal when it isn’t necessarily
This is more of an applied problem, I have two linearly independent sets of vectors $A$ and $B$ in $\bZ^n$. I know that $\mathrm{span},B\subseteq\mathrm{span},A$. I want to find the canonical group decomposition/isomorphism class of the space $\mathrm{span},A/\mathrm{span},B$ (as in the quotient), I don't care what the generators are or any other specifics. Note $n$ can be really big, like in the hundreds. Is there a way that given these sets of vectors in a language like python that I can find the canonical isomorphism class of $\mathrm{span},A/\mathrm{span},B$? Thanks
@molten hill
I have no idea if this is a linear algebra problem (I know barely anything about Lin algebra) but here we go
So
Let’s define M is a 2x2 real matrix with a nonzero determinant,
and set S(r) to be a 2-ball of radius r
Z is not a field so Z^n is not a vector space
Let’s define a function K(M,r) which does the following
Let’s say K finds the minimum of a set R(M,r)
ahem
Which basically for every vector in the 2-ball of radius r, the function finds the magnitude of the vector transformed by M, and then divides it by the vector’s original magnitude
Is there a way to essentially find the minimum value here
If you're responding to me I'm treating Z^n as a module and referring to its elements as vectors (erroneously, I know)
this is the same as the induced 2-norm, is it not, mizalign?
Although I really only care about its group structure
The what
yeah, it's a different guy who was typing, thought it was you ignoring what I just said
operator norm or induced 2-norm
Google time
I’ve never heard of this
That’s the supremum
I’m effectively asking for the infimum
though the supremum is also useful
yeah, just replace that with the infimum
I’m asking how the fuck I’d find it
your google result should have shown you that the supremum is given by the largest singular value of your matrix
and the infimum, by the smallest
I’ve never heard of these terms
infimum will be zero?
you can also look up rayleigh quotient
I want it to be greater than 0
it would be, ryu, but these exclude the 0 vec
like unless you also enforce |v| = 1, then you might get some interesting result like smallest singular value
so only if the matrix is rank def
even if it does, like saying v neq 0, then taking inf will again give 0
they did say they want | | Ax || / | | x | |
it's 5 am, gimme a break lol
aka determinant is nonzero
rank deficient, i mean. if it is rank deficient, the mat will have det 0
Once again I know only the very basics of linear alg
i see.
But idk how I’d find this minimum from a given matrix
and radius
Having both the inf and sup gives me bounds
(Even better)
ok so Z is a PID, so these are noetherian modules and finitely generated (given n is finite) then you'll just get the Z^(rank(B)-rank(A))
i suggest you read into the singular value decomposition, then
unless ryu knows another way
SVD is the best bet honestly
I essentially want to prove that it is nonzero
it's not practical to find the inf over a unc set
No? Suppose I'm working in Z^1, I can set A = {1} and B = {2}. spanA = Z, spanB = 2Z. Z/2Z is not equal to Z^(rank(A)-rank(B))=Z^0.
For not rank def matrices
say if that is zero means |Ax| = 0 => x is in null space but x is not zero implies that A is singular
hmm right, you might need to find the primary factors to get the answer
I haven't done much modules so ask in #groups-rings-fields
You define a square lattice from <-N,-N> to <N,N> excluding the zero vector
And basically sum over 1/||Mv||^2k where v are vectors over this lattice and k is some natural number >2
and basically use the circumradius sqrt(2)N
to take the limit as N approaches infinity to essentially and see if it’s convergent
I want to use the possibility that there exists some infimum
Denoted h I guess
since you have ^2k, you can group (||Mv||^2)^N and note that this is the same as having v^TWv, where W is a symmetric positive semidefinite matrix
anyway this is a very general question, like you are essentially asking the quotient of every abelian group with a abelian subgroup, which you know is a very broad case
That makes 1/||Mv||^2k >= 1/||v||^2k * 1/h^2k
all you have to do is show W = M^TM is full rank
yes pretty much lol, I'll ask there
Do you mean k instead of N
yes, oops
“Symmetric positive semidefinite matrix”
I need to take linear alg. I do have a linear alg book I want to read but I’ve been busy
also, ||Mv||^2 / ||v||^2 is what's called a "Rayleigh quotient"
OH
for which the min and max values are given by the smallest and largest singular values of M
I thought it would be funny to define a sort of “matrix zeta”
This is just to prove convergence
"operator theory"
Bruh I’m a 17 year old high school student who just reads about math sometimes
Many theories to collect
sorry about that, chrome made my computer crash entirely
but yes, you'll need to read up on the singular value decomp
Wait all I need to prove is that it’s greater than 0
Absolute value is a metric so it’s always positive, and it’s a quotient
Therefore it’s only 0 if either it’s numerator is 0 (aka the transformed radius is 0, which is impossible in this case unless the vector is 0 which is excluded)
or
and we're also taking v nonzero. this just leaves M having a trivial kernel
If the denominator explodes to infinity
Kernel is the set of vectors that get mapped to 0 right?
yep
Ah
Problem is
I want to essentially define a limit here
As r -> infinity
and the denominator blows up but
So does the numerator
what happens depends on the matrix
$\text{your_norm}(A) = \norm{A^{-1}}_2$
Y e a h
True
(probably)
Just need to find out in which cases does it converge to a number not equal to 0
should be 1/||A'||
I only did eigendecomposition like once to find the exponential of any n^2 real matrix
you're gonna get a geometric series
on the note, there's a pretty neat formula for finding $f(J_k(\lambda))$ where $f$ is analytic and J is the jordan block of order k with ev lambda
i'd have to see the whole thing then, it's too early for me to keep track of all the bits and pieces you've given
I posted it in discussion
Yesterday I think
But basically
For some non rank degenerative 2x2 real matrix M
I want to know the infimum of ||Mv||/||v|| if v is any R^2 vector if it exists
Not sure if said non-zero infimum exists for all R^2 vectors
already told you, the smallest singular value of M
What exactly is a singular value
that you have to learn for yourself
ok, the square root of the eigenvalues of M^TM
that'll suffice, since you said you know eigendecomp
Ah k
the answer would be sqrt(smallest eig val of M^TM)
so you need to show that is nonzero for your M
but honestly it doesn't seem you have the needed linalg knowledge yet
True
Actually
I wonder if there is some sort of relationship between the Eigenvalues of a matrix’s transpose
i think the eigenvalue formula through the quadratic formula is
((a+d) + ((a-d)^2+4bc)^1/2)/2 I think but the 1/2 refers to both branches because I’m too fucked to get the plus-minus sign
it’s down to just rearranging the vars
Wait I’m fucking stupid
just b and c swap
And it’s commutative
at this point i'd just tell you to pick up a book
I’ll start reading it next weekend
Thank you guys for the help
what is the importance of a transpose?
Like I get it flips it but
It’s distributive-commutativity (just what I’m gonna call it because idk what else to call it) seems rather important
I’m going to make a big fucking assumption here and assume that (due to same dim square matrices) determinants are distributive over matrix multiplication, so are Eigenvalues (if you “define” a multivalued eigenvalue operator I guess)
If matrix K = M^T * M
The Eigenvalues are just the Eigenvalues of M squared
And the transpose of K is just M^T * M^T ^ T (which is M) which is itself K
I’m going to stop babbling to myself here and start jotting down notes of this stuff
WAIT A SECOND
Okay now it makes sense lol
my linear algebra teacher defined a minimal polynomial of a morphism $\phi : K[X] \to A$ to be monic polynomial that generates $\ker\phi$ as an ideal. When you look at the definition of a minimal polynomial of an $n\times n$ matrix $M$ over $K$, it is the monic polynomial of least degree $P\in K[X]$ such that its evaluation at $M$ in the algebra $M_n(K)$ is $0$.
𝓛ittle ℕarwhal ✓
So to reconcile these two definitions, would you use the universal property of polynomial rings as such:
The $n\times n$ matrix $M$ represents an endomorphism $\phi$ from $K^n \to K^n$. Since $\operatorname{End}(K^n)$ contains $K$ by mapping $K$ to the dilations, we induce a morphism $\psi : K[X] \to \operatorname{End}(K^n)$ that fixes $K$ and sends $X$ to $M$. Then the minimal polynomial of $M$ is just the minimal polynomial of $\psi$?
𝓛ittle ℕarwhal ✓
do the eigenvalues of a matrix give us any information on its determinant ?
the product of the eigenvalues equals the determinant
ohh thank you
the product of the eigenvalues gives +- the determinant no?
no +-
But the last coefficient in the characteristic polynomial of A (of size nxn) is det(-A)=(-1)^n det(A), and that’s equal to the product of the eigenvalues, no?
what?
Lol sorry.
So if A is an nxn matrix,
The last coefficient in the characteristic polynomial of a matrix is going to be (-1)^n * det(A).
The last coefficient of a polynomial is also the product of all the roots of the polynomial. So (-1)^n * det(A) is the product of all the roots of the polynomial.
there's a sign difference there depending on how you define the char poly
are you looking at lambda I - A or A - lambda I
But does it matter? Because you’re still only dealing with the product of eigenvalues
this is the one i'm referring to
the result differs by precisely (-1)^n depending on what you call the char poly
since det(cA) = c^n det(A)
I’m confused. How did they get rid of the (-1)^n
they multiplied it into each (lambda - lambda_i)
O yeah whoops
i'm guessing you were using lambda I - A in your char poly
Right, but why would that change anything?
because of this
it flips the sign of the eigenvalues
I got that I just got mixed up, I was multiplying by the negative eigenvalues ((-lambda1)…(-lambda_n)), not the positive ones
My bad
no prob. i think books that go very in depth into the polys use the other def anyway
(i wouldn't know)
Eh it seems that both ways have their benefits

oh sweet
Is there a standard notation for writing the span of a set but without including the zero vector? I was thinking maybe $\textup{Span}(S)^*$ works
Croqueta
$\mathrm{Span}(S) \setminus {0}$
Ann
Croqueta
Just realized what I said doesn't make any sense, ignore me
I'm after some help involving y=mx+b
I have a webcam detecting my face and it's tilting degrees, and I am trying to determine which half of the face certain landmarks fall on, but if the face is tilted, that just confuses me further. I know it's cartesian, but this subject eludes me. #constraints
It's like rotating the entire graph
(Then i have to convert it to python lol)
maybe share an example of what you are talking about, it's too abstract
k sec
just wanna mark each point as on the center-line, to the right of it, or to the left. But when the face is tilted, my brain just melts trying to mathematically compensate for it, drawing a blank.
Matrix A is invertible if we can find another matrix B of same order such that AB = I where I is the identity matrix of same order. A matrix is invertible only if it is a square matrix and its determinant is non zero
um i am so confused rn
oh nvm he never said explicitly that B is the inverse of A
so you want to know which side of line a point of interest lies?
do you have the eq of the line? maybe you can approximate?
for all points in a loop, yes. there are points that are 0 on the X axis, though, so they wont return left OR right.
you can calculate (y-mx-c) for each of your point then check if it's +ve or -ve
well here's the thing
if i can say B = A^-1 can i also say that A^-1 = B?
the x and y axises ( i cant plural rn) rotate with the face, but the paired coords for each point are gridded along the canvas pixels.
so rotation is a huge obstacle
make sense?
honestly, no
your face is the grid, but the points' (x,y) are translated along the canvas grid instead of your now-rotated graph (face)
even if the canvas rotates you still have the line right?
at least 2 point on the line is enough
they're moving with my face
and the centerline is moving
from which to determine
i mean
nope doesn't make sense 
I can easily get the angle of a vertical line drawn on my face
right down the center
I was thinking that line was the Y axis for the dots
ugh my brain hurts
hey das
like could i put a matrix and then on the exponent put another matrix
it's a dumb question
matrix raised to a matrix
they were talkin about matrixes and tensors and shiz either in genchat or maybe it was the python disco i saw it in
hey jok3r
so to simply my question, how do you determine what side of a line a point is, even if that line is on any angle?
bro what is this
its face detection plus lines plus dots plus RDJ
This video explains the components of a linear programming model and shows how to solve a basic linear programming problem using graphical method.
Support my channel: https://www.paypal.me/joshemman
LP Model Solved:
Max 2X + 5Y
s.t.
X + 2Y ≤ 16
5X + 3Y ≤ 45
X, Y ≥ 0
Linear Programming 2: Graphical Solution - Minimizat...
I want to list if each point is in, on, or outside the "region" (constraint)
but when i rotate the face, it's like rotating the graph the points are drawn on.
Also the screen grid starts at 0,0 being top left, not centered, which is (I think) the big problem I'm trying to solve, along with remembering constraints lol
woah determinants are so cool
sort of like a modification of a graph algorithm
you recommend anything for linear programming?
any particular youtuber?
the vid i shared is conveniently named Linear Programming xD
i had a feeling he had a vid for it
i'm actually using his vid for determinants too
nice
if matrix A*B is invertible, does that mean that matrix A and matrix B are also invertible ?
A and B don't even have to be square (in which case they of course aren't invertible), but if you further assume that they are, then it is true
are they asking abt this concept
Prove that the Product of Invertible Matrices is Invertible and (AB)^(-1) = B^(-1)A^(-1)
If you enjoyed this video please consider liking, sharing, and subscribing.
Udemy Courses Via My Website: https://mathsorcerer.com
My FaceBook Page: https://www.facebook.com/themathsorcerer
There are several ways that you can help support my channel:)
...
no
they're asking about the converse question: "if AB is invertible, then are A and B invertible?"
i see
if A and B are square, det(A)det(B) = det(AB) is non-zero since AB is invertible, so det A and det B are non-zero, qed
i was going to attempt the (AB)^-1 proof but a source said that the determinant had to be larger than zero
and i didn't know what a determinant was
so i'm practicing that
if A and B are not square, it's false, and a counterexample is easy to find
is it just me or does linear algebra feel tedious
and it's very easy to make like simple small math mistakes
even with just row operations
oh i see thank you
i always make mistakes like this...
or i just write one element wrong in the matrix and i catch it like 5 steps later and i'm like whoops
it doesn't have to be
you can find more consistent methods
If you're doing endless exercises of "solve this linear system", then it can very well feel tedious.
One thing to keep in mind is that you could also solve the same system by writing out the equations in full for each row, with variables and coefficients everywhere like you'd do in high-school algebra, and that would be no less tedious and error-prone.
The systematization of linear algebra really makes such things easier to solve, problem for problem, but that also means that it's now feasible to attack larger problems, so you might not feel the progress when you're continually exercising right at the edge of your capability.
yeah that's what i quickly realized
once you know how to turn a system of linear equations into an augmented matrix and get it into reduced row echelon form or row echelon form enough times
doing it excessively just leads to burnout
good that i don't do it excessively
i use pomodoro lucky for me it works
I'm working on a computational linear algebra project and stumbled upon this quote:
"we can consider an equivalent condition for the uniqueness of the solution as m>=n and the square
block matrix formed by the first n rows and the first n columns of the reduced echelon form of
[A b] has a special form (condition (4)) – a form has to be identified based on the fact that A
has a pivot position in every column."
What would this form look like? I've been trying to figure it out and nothing is coming to mind
Can someone point me toward a proof of this statement?
every vector in V can be written as a linear combination of the basis vectors, so write it as v = a_1e_1 + a_2e_2 + .. + a_ne_n
then use linearity and simplify f(v)
alternatively you can set 2 functions st they have the same image on a basis of V and then show that their difference is identically 0
Hey! Is there a trick to solve this quickly using Gauss Jordan Elimination method? It's an example in the textbook and the first thing that they did is to divide row 1 by 1/3 to get 1 in the far left. Is it that we should aim to get the 1 along the diagonal first and then try to get the 0's after?
Thank you so much
Basically row reduction gets you row echelon form of the matrix, so you can easily do a back substitution. If desired you can go further to get it to reduced row echelon form, so you can read the solution from the augmented matrix.
Reference linear algebra done wrong, it free online.
Okay :) thank you very much.
Much appreciated 🙏
Gonna check it out
Hey guys, does anyone have the pdf Linear Algebra for Everyone by Gilbert Strang?
I suppose the same proof work on any dimension right? Even infinite, assuming it is Hamel basis?
Yes. It’s essentially the same. As soon as you know how to define a function on a basis, you can extend to the span of that basis by taking linear combinations. It’s well defined and unique since a basis is linearly independent
@proud gate
Just curious, is this also a result following the Hahn Banach?
I feel like it is not if we can't guarantee g is linear
True or false?
if you had a non-zero proper subspace like that then you'd be able to find a non trivial factor of the characteristic polynomial
ponder that
So eigen space is proper subspace for this transformation?
I think proper here just means not the entire space, otherwise its trivially true
that's what proper means, yes
This is definition of invariant subspace right?
yes
Is eigen space invariant ?
eigenspaces are invariant, yes.
what do you think?
So in this case eigen space will be improper or just zero space?
How to prove or disprove?
are you asking if this result requires hahn banach to prove?
Yes
I mean, is there a proof where we can simply apply HB
The constructive proof doesn't seem to require HB
Of course if ur vector space is not a banach space, there is no proof using Hahn Banach. If you have a Banach space then possibly in some very roundabout way. Its not super clear because in the assumption of hahn banach, you start with a linear functional defined on a subspace, but in this you start with a set map on a basis
its an interesting question though
because I don't think the proof of hahn banach uses that every v.s. has a basis (which is equivalent to the question you asked), and both results rely on the axiom of choice in some way
That is fair, though I don't recall HB require Banach space to be true. As long as we have a linear space and a control Minkowski functional, we are good. But there's a couple of ways of stating HB..
Ye..
actually im wrong, the statement that every v.s. has a basis is not equivalent to the question you asked. But if you modified it slightly to say "there exist a subset X of a v.s. V such that every set map g : X --> W induces a unique linear map f : V --> W which restricts to g" then it would be.
wait is the extension we get even unique in hahn banach?
Hmm not necessarily I think.
Probably with some extra regularities on the v.s.
convexity maybe
Yeah if we are really going to us HB, the proof is going to be unnecessarily indirect
all eigen values of f(0) are 0 and for f(1) is 1, so for them to morph continuously their eigen values must also morph continuously, but A^2=A forces eigen values to be 0 or 1
but co-domain is not compact right
set of matrices of order 2 in reals which is idempotent
ok but that doesn't have to be compact (idk if it is or not)
the thing you are hinting is probably that continuous image of compact set is compact, but that has nothing to do with co-domain, rather the image
no it won't help
yep got it, then how to disprove it?
isn't this enough?
i didn't understand this one
g(x)= {0 when f(0), 1 when f(1). This is not continues that's why?
eigen values of f(0) and f(1)
ok
How to find the missing value in a matrix so that the operator on R^2 is self adjoint?
is there any generalised way?
it has to be symmetric so yes
given you are given enough values
what is your question?
How does one represent a 2x1 vector that contains complex numbers i.e $u = [\frac{a+bi}{c+di}]$
SuckyDucky
wdym by represent? plot them?
Yes
you don't
Why?
it requires 4 dimensions
Is it because complex numbers themselves are vectors?
they behave like vectors in some sense, yes
that can be represented by 2d vectors?
mhm
Then what is hte difference between complex numbers and 2d vectors?
complex numbers have additional structure
but nor does a complex?
you can multiply 2 complex numbers
there is no standard f: R^2 x R^2 -> R^2 that we call "multiplying two vectors in R^2"
and the definition of a vector space doesn't require it
so complex numbers have additional structure
Okay if we have an Ax=0 and we reduce it to this problem above, I've noticed that it implies the 3rd column of the original A is 2 x 1st + 3 x 2nd. Why is this true? I'm also trying to convince myself that the lack of pivot position means it's not an independent column.
wow transpose is so cool
i can go from a 2 X 3 matrix and flip the dimensions making it a 3 X 2 matrix
ikr
I just started learning and it solved one of my errors in my neural network
np.array(matrix).T in python
The transpose is… cool? That’s a first
welp 
probably this should be R but not sure
nvm P is false
probably Q false as well
nvm answered
excellent
👍
Let C be a linear code given by a generator matrix G ∈ Mat(k ×n, F_2) and let A∈GL(k, F_2) be an invertible k×k matrix, show that AG is also a generator matrix of C
can somebody help me with this
can someone check if my anwser to 21 is sufficient
click open original to zoom in on text
i dont know how to explain it better than just saying that
a set of all real numbers, has to contain whatever number the set converges to
uhm yeah ...... im having a difficult time finding anybody in that cs-math branch i hope i find somebody here
can if you can briefly explain what "generates" here is then maybe someone will be able to help
Hey, can anyone help me understand ?
consider the following statement,
For all Vector spaces V,W,
for any Linearly Independent set {v1,...,vk} contained in V, and set{w1,.....,wk} contained in W , there exists such linear transformation T: V-->W such that
T(v_i)=w_i
I am convinced this is wrong , and yet the answer is true
not readable to me
it is true, T(v_i)=w_i will give you the desired LT
no it's not enough
you are supposed to show that ${x_n} + c{y_n} \in V$ that means you must show addition and multiplication of elements of V are also in V
which is a real analysis exercise
so the rows of a generator matrix form a basis for linear code and the linear code is the row space of the generator matrix
yeah but im not supposed to do question 20 lol, just 21, so i think im allowed to assume that stuff in qst 20 is proven
you have to show that {x_n+cy_n} converges
which you didn't show
hm
but a linear transformation cannot be defined in such manner for EVERY spaces
consider V,W such that dimW<dimV
the set {w1,....,wk} will be linearly dependent by definition,
so there are at most dimW vectors in the set that are linearly independent, lets call them{w1,.....,w_i}
I can map T(v1)=T(w1) and so on till T(vi)=T(wi)
however if I map T(vi+1)=T(wi+1) it will mean that vi+1 is linearly dependant on the first i vectors
since the set {w1,....,wk} is not necessarily linearly independet.
you already wrote that the set has same length
and they are LI
so..
No it wasn't stated
wait
I mea j
the sets are the same length, W's set isn't linearly independent
{u1, u2..} is LI
it doesn't necessarily mean that W
so they form a basis? and their image determines where the other vectors should be mapped?
is k>n?
like is this matrix full rank?
THE SETS YOU HAVE WRITTEN HAVE SAME LENGTH, IF THEY DON'T THEN THE STATEMENT IN GENERAL IS FALSE
can you help a bro out pls :(
Linearly Independent set {v1,...,vk} contained in V, and set{w1,.....,wk} contained in W
both end at k, which means both have length k
not saying it will not converge, it will and it's a real analysis exercise
yeah but idk if the matrix is full rank
if you have already proved that $\lim x_n = x$ and $\lim y_n = y$ then $\lim (x_n + y_n) = x+y$ and $\lim cx_n = cx$ then it shouldn't be any problem for you
so i have to say that the sum of two converging numbers will converge, and that the scalar multiplication of a converging number will converge
wrong message tag
ah ok
real analysis???? bruh the class is called linear algebra 2
ok so I don't get this, say $G = \m{ 1 & 0 \ 1 & 0 }$ and $A = \m{0 & 1 \ 1 & 0}$ then $AG = \m{ 1 & 0 \ 1 & 0}$ so clearly the row spaces of $G$ and $A$ are not equal @dim magnet
wrong mat mul wait
😔
yeah that's real analysis, not LA2
bruh, not only are the lectures not even realted to the homework, and now youre telling me its not even the correct subjects wth???
smh my uni is a joke
$AG = \m{ 0 & 1 \ 0 & 1}$
ScandinavianEngineering
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
wtf i suck at latex
wait I took a look at your questions
honestly we had the same type here
and that's in Linear Algebra 1 lol
@dim magnet ok so this ans may not satisfy you but
the code $C = {G^Tx| x\in F^k}$, now $A \in GL_k(F)$ and so code generated by $AG$ is $(AG)^Tx = G^TA^Tx = G^T (A^Tx) = G^Ty$ so the code are same
since A is invetible, x for all and Ay for all y is F_x^k so they are same
I understand that
but it still baffles me... just because they have the same length doesn't mean both these sets have LI, because I have no information about the dimension of the subspaces. can I write up an example of what I mean?
I'm not saying w set is LI
only requirement is v set is LI
(thought it's not necessary)
showing the sum and prod of convergent series is again convergent is a thing you learn in real analysis. You can still use the result to conclude your V is a subspace but, also why are they teaching you LA2 before teaching ANALYSIS1?
Im a physics student lol, i think they just let me assume that part or smth
sin x = x 

yes
happens
I assumed you can't have T(vi)=T(vi+1) or some dumb shit like that
so for linear programming and markov matrices is in #10 do you need to know everything before it
maybe not all of it but yeah pretty much
LPP doesn't require eigen values shits, only row elimination is enough
oh ok
yeah i'm not worried i've been looking at this stuff over break
i'm interested in trying to apply this stuff to ml
so i wanted to learn it anyways

i know ordinary least squares is how linear regression works
so the linear algebra behind it should be interesting
this server is so cool
woah
"Description:
Fall, Spring
Matrix Algebra, systems of linear equations, linear programming, Markov processes, and game theory. Applications to business and the biological and social sciences are included."
so the prof will be applying linear algebra to game theory
interesting
i think i am in a much better spot than other students so that's good
Guys... i passed the exam... thank you all
An improper rotation in R^2 is just a reflection, right?
Congratulations!
Well a reflection can be a rotation. If you do it in a square for example and you rotate it on one of his side, you can define a rotation in R^3 in R^2 yes. I think that is just a reflection
Thank you
is there a necessary condition so that G is a subspace of H if F+G is a subspace of F+H with F, G and H being subspaces of E a vector space
Um, where would the necessary condition fit into that statement? And how are F, G, H quantified?
I seem to be having a hard time coming up with exercises. Does someone have some maybe less standard, constructive exercises regarding eigenvalues and eigenvectors?
(Non-computational)
Prove Cayley-Hamilton
I could do cayley hamilton for diagonalisable operators tbh
that might be good
wait
idt they got to char poly
if $A^3=A$, what are the possible eigenvalues?
Mosh
Just go through your textbook for problems tbh
the class isn't using a textbook
i've already scoured lang, artin and axler for problems
Just did lots of course questions on dot notation with some proof questions
I now know what I hate the most in maths
PROOFS
Then you hate maths lol
@lucid glacier not too difficult, but fun
Maybe you can check Putnam problems, there are many for linear algebra
also, maybe you can check Evan Chen's napkin, it is not meant to be a rigorous textbook obviously, but the exercises are somewhat original (the ones form linear algebra at least aren't anything like the textbooks I have read, and the text is great imo, although not as a primary source, obviously)
@lucid glacier you might be able to find some problems at the past course website when i took LA2, http://www.math.toronto.edu/payman/mat247/main.html
assignments with full solutions (at least for the main problems) and tons of problems
friedberg's book may also have some stuff
@lucid glacier This is something it came to my mind: (prove or disprove) let $A\in M(n,\mathbf{R})$ be such that it's rows are in arithmetic progression. Then the rows of $A^k$ are also in arithmetic progression for all $k\in\mathbf{N}$.
Croqueta
So, I dont know if the answer is trivial or not (haven't thought about it), but fun nontheless I'd say
I hope it's true
Friedberg book is mostly computational or inmediate stuff from my experience. I'd just say that when you encounter a theorem or a proposition, don't read the proof, first try to prove it on your own. And even if you have read the proof, sometimes it is fruitful to try other approaches
computations are good
but he asked specifically for non computational problems
thanks!
that sounds interesting
btw this isn't for me lol, i'm giving a supplementary course in linear algebra
i'm just looking for novel exercises that my students have probably not seen before
though I definitely agree with your advice
and if it is generally false, say for which sizes of A it is false (because it is trivially true for n=2 lmao)
oh ok
you could try and start by characterising the JCF of such a matrix perhaps, but I don't think you'd have a very strong characterisation
might be wrng
wait nvm this is over R so JCF doesn't always exist
the characteristic polynomial can be factored into linear terms and irreducible quadratics, so maybe you can put it in a nice rcf and work with that?
troll them by putting a bunch of computations on the exam
if you're giving a mainly theoretical course

no pls
thankfully i'm not writing the exam
but they were warned there might be computations
alternatively, maybe you can argue there's no loss in working over C instead, where you have jcf. don't want to think about it though
R 
what problem are you referring to?
oh ok
mostly responding to shin's remarks on it
UofT moment
what
ik, just didn't know you went to UofT lol
I did a little experimentation on wolframalpha once on this (just some minutes, and wolframalpha not good for this), and for 3x3 matrix arithmetic progresisons were preserved for the powers I tried, but not only that, the ratios of the different rows (I'm not sure how you call them, the d's in the progression a,a+d,a+2d,a+3d,...) exhibited nice relations
unfortunately, i do, mosh
@lucid glacier http://univ.tifr.res.in/gs2022/Files/GS2020_QP_MTH.pdf
you can find some brilliant LA questions here
it was trivial guys lmao
I was about to go to sleep but I decided to see if it was trivial
In fact, a much stronger statement is true
You don't need to write that many details, you can do it in one sentence. Apply product definition and that's it literally
In fact, you don't even need A to have rows in arithmetic progression lmfao
Can someone explain to me the second equality. I don't get how M(Tv_k) equals M(T)., k
This is 3.64
I think the second step would imply M(Tv) = M(v)

This server is so nice
I’m happy I found it
I can finnaly not fail my exams
Gotta study hard
unfortunately, i am not versed in linear algebra. ill let the experts take your request
Thanks!!!!!!
Gonna have to go back and take a look at all the previous errors
Side effect is that now whenever I don’t understand I just think it’s an error 😂
is anyone available to help me with some intro to linear algebra hw
where did the a go
When can we use gradient descent method to solve a problem ?Like problem to minimize a equation?
when function is smooth enough (C^2) and you are willing to do it numerically
can you elaborate a little more
This is the question
they are asking you to use conjugate grad method
oh sorry
can someone help me with this problem
that's not enough, ryu
if by "solve" they mean find a global minimum, the function has to be convex
strictly convex if you wan it to be unique
that makes the grad = 0 condition necessary and sufficient
so if grad=0 problem can be solved by conjugate gradient method ?
that is exactly the opposite of what i wrote 😛
how do i find gradient ? and if its not 0 that means its not convex and therefore it can be solved by conjugate gradient method ?
$\grad f=\br{\pdv{f}{x},\pdv{f}{y}}$
RokabeJintaro
this should be (0,0) ?
oh
its in the first equations left of the equal sign
do you know how to verify whether or not a particular number satisfies an inequality?
actually do you still need help with this?
oh and this probably doesn't belong in this channel but rather in #prealg-and-algebra
yes, i'm asking where it went after RREF
if they mean global minima then yes, 
is someone able to help me find the linear combination of basic solutions?
I am able to get this far but get confused when doing this part
Can somone help
I don't understand this
or atleast gimme a link of some sort to help me out
im taking a pretest
i think this is better suited for #prealg-and-algebra , but i think you are looking here for something like the "vertical line test". you can look that up and read about it
also khan academy probably has some good content on this
@low heart
@lavish jewel Alr thanks alot
you can also benefit from checking out several definitions of what a "function" is
@lavish jewel do you know how to do this?
Heyo
Im doing some high performance programming and i need to optimize a function for multiplying matrices together, in my book it says that multiplying a matrix A by the transpose of another matrix B is faster than just multiplying matrix A and B normally, why is this?
can you give more context? maybe show a snippet from the book
@lavish jewel
the only thing i can immediately think of is how memory is allocated
the rows of 2D arrays are often memory adjacent
it's not inherently an algorithmic thing, since usually matrix multiplication is O(mnp)
for matrices of size m x n and n x p
Yes it must be a memory thing in C , BUT at least on my computer its actually slightly slower than the naive matrix multiplication algorithm
do you mean the built in matrix mult or another you coded yourself?
one i coded myself but using the well known naive one found on the wiki, its an excersize
cause obviously if i were to use a library it would be very pre-optimized
mhm. so what they say is that instead of, say, 3 for loops where the last loop iterates over rows of A and columns of B, you instead create the arrays A and B^T, and the innermost loop iterates over the rows of both A and B^T. is that how you did it?
if you know C i can send a pic of the code, that may be easier than me trying to explain
but yes, instead of A and B its A and B^T
last time i did any C was like 8 years ago, but you can try lol
Where B is the transposed matrix
it might have to do with how you're indexing
since you use a single index instead of [][]
im storing it in 1D arrays, but yeah maybe when i grab the B[p * n +j] index i should use m instead of n
aha then that's the problem, i think
there is basically no difference in that case
or it's slower because now you jump around in B
whereas actual 2D arrays have memory adjacent rows
here you're jumping around inside of B thanks to p*n
at least that would be my thinking
the goal in transposing B is that the index p is used directly in both A and B^T, instead of some multiple of it
so that you can go through all m memory adjacent positions before jumping to some other place in memory
that's my naive take at a glance
Does this algorithm work for non square matrices?
n = 500;
m = 200;
k= 500;
this wouldnt work for example
that would work
if they are all different it would also work
that's just how matrix mult works
from wikipedia
the way I think of it is $m\times \overset{collapse}{\fbox{ n \quad n}} \times k = m\times k$
my mult function was wrong
i see
so
lu decomposition is basically an extended form of gauss-jordan elimination
organic chem tutor has an excellent vid on this
This math video tutorial explains how to multiply matrices quickly and easily. It discusses how to determine the sizes of the resultant matrix by analyzing the rows and columns of the two matrices used to produce it.
My E-Book: https://amzn.to/3B9c08z
Video Playlists: https://www.video-tutor.net
Homework Help: https://bit.ly/Find-A-Tutor
S...
yes kinda
you just keep track of the row operations using the L matrix
sorry not gauss-jordan
just gauss
yo trev tutor is nice
i'm still confused by this tho
what troubles you about it
how do i disprove whether or not something is a vector space?
you test its definition
i have tons of axioms that they gave me
so in this example
i can set x and y to anything i want?
you can, but you have to show the axiom holds for ALL x and y
all x and y that satisfy the conditions of the set
i see
and the accompanying operations
it's a mathematical proof
take u= (1,2) and another one is v= (-2,-1), u+v=(-1,1) and this is not in W but u and v in W.
i understand now
thanks guys
i really feel like my general intuition for this stuff is improving
like i used to struggle w dot product and stuff
i find this stuff really cool
i feel like every day i am closer to applying this to ml
are you kidding me psuedoinverse is that simple?
Hey guys, does anyone have the pdf Linear Algebra for Everyone by Gilbert Strang?
Tried libgen?
If A is a linear operator on a vector space over C such that there exists an orthonormal basis consisting of eigenvectors of A, then any matrix representation of A with respect to any basis is unitarilly equivalent to a diagonal matrix?
what do you mean by unitarilly eqv?
like in similar or itself is diagonal?
if you mean itself diagonal then it's false
I mean that there exists a unitary matrix $Q$ ($Q^*Q=I$) such that $P=Q^*AQ$
Croqueta
I'm reviewing the change of coordinate stuff now
I believe it is not true, but that's why I'm confused
hint
I'm having trouble understanding this proposition specially from the point of view of A as a linear map, if what I said is false it is not making sense to me, as you have to make an arbitrary choice for a basis first. Maybe its true, anyway I'm reviewing the stuff
that's the spectral theorem
it's part of it I suppose
ye
that's a good enough hint I would say
the spectral theorem? I haven't read it yet
||try showing your operator is normal ||
oh so you can't use it?
ye think of change of basis then
I can prove if A is a normal operator, then there is an orthonormal basis consisting of eigenvectors of A, I have no problem with that
But I have a little bit of trouble understanding the counterpart for the matrix
yes
since your operator already have an orthonormal basis, change the basis to it and you'll have a diagonal
yeah
if your operator is normal then it's matrix wrt any basis is also normal
normality is a property of the operator so remains invariant as you change the basis
my argument is too long
basically idea is you compose the unitary matrix in a way that conjugation with it gives you diagonal matrix
Yes, couldn't find
So, take any basis $D$ and take $B$, the orthonormal basis consisting of eigenvectors of $A$. Denote by $A_D$ the matrix representation of $A$ with respect to $D$ and by $C$ the change of coordinate matrix. Then clearly $P=CA_DC^{-1}$ where $P$ is diagonal. So $C$ must be unitary? The text makes this claim, but $C$ is dependent on $D$ (which is just an arbitrary basis) so it is not that obvious to me. But this is saying that unitary equivalence is invariant under similarity? I'm reviewing some of the stuff of the text, I'll probably find an answer there.
actually wait
Croqueta
maybe I didn't understand something and it is not wrt to an arbitrary basis ? idk
so the thing probably bothering you is that the adjoint P* is not the conjugate transpose of P wrt arbitrary basis
it's conjugate transpose iff underlying basis is orthonormal
try showing no matter what basis you choose $P^{-1}AP$ is again normal
so from spectral thm, it's unitarily equivalent to diagonal matrix
that is, say $X=P^{-1}AP$ then show $X^X = XX^$ where $A$ is diagonal
yeah right just realized
So I think I solved my confusion. The correct statement is: suppose $A$ is a NORMAL linear operator on a (finite) complex inner product space $V$. Let $\beta$ be any orthonormal basis for $V$ and let $A_\beta$ be the matrix representation of $A$ with respect to $\beta$. Then, there exists a unitary matrix $Q$ and a diagonal matrix $P$ such that $Q^*A_\beta Q=P$
The confusion I had was with the identification of the operator A with a matrix, which must be done with an orthonormal basis I suppose.
btw
im an idiot, id idn't put the whole hypothesis
Croqueta
Q is a change of basis matrix, and it changes coordinates from an otrhonormal basis to an orthonormal basis. So I should just show that any type of matrix basis change of that type is unitary
I need to row reduce the matrix above to row echelon form, I just wanna know if my second step looks good
looks like you successfully swapped the rows
Yea
Idk, this problem seems tricky and I've made progress, but what I really want to know is, if there's a way to look at it and tell what rows need to be swapped. Like is there a swapping algorithm I could follow to set it up before solving?
when doing it on paper there is no difference
just depends on which operations you are more comfortable with
I see, thank you
is this all thats needed?
im not sure how else to interpret the question but this seems a little simplistic
looks about right to me
guess im just overthinking it
Self-adjoint operators in complex spaces aren't that important, because it would require that the eigenvalues are real. Is that right?
Not important??


