#linear-algebra

2 messages · Page 321 of 1

slender yarrow
#

As long as it's not worth 97% of your grade of something

winter pond
#

Ah. No not really. Might get something for method at least.

slender yarrow
#

Alala cliqpedia

#

J'aime pas trop son contenu perso, il explique pas de manière ouf et il fait des slides blindées : la combinaison des deux je trouve que ça embrouille à fond

#

Mais bon l'idée c'est que I_(L) c'est un vecteur qui représente la direction dans laquelle tu prends ta dérivée directionnelle

#

Le problème c'est que t'as plein de vecteurs qui représentent une même direction (si je me prends un vecteur x, kx pour n'importe quel k !=0 représente la même direction que x)

#

Pour se fixer les idées, par convention on prend I_(L) unitaire (I.e. de longueur 1)

#

Un vecteur de longueur 1 c'est un truc qui tape dans le cercle unité

#

C'est pour ça que tu peux écrire I_(L) comme cos(a) Ix + sin(a) Iy pour un certain a

#

@hard verge

wintry steppe
slender yarrow
slender yarrow
hard verge
slender yarrow
hard verge
hard verge
slender yarrow
slender yarrow
rough pilot
#

Guys, if I have a polynomial, say P(f)= f + f^2, where f is a linear transformation V->V

#

I'm not getting how to find P(P(f))

#

Please help 😢

wintry steppe
#

if you mean to say P is the polynomial P(x) = x + x^2, then P(P(f)) = P(f) + (P(f))^2 = ... (you can finish it from here)

#

polynomials aren't defined in terms of how they act on linear transformations, they're defined as sums a_0 + a_1 x + ... + a_n x^n

dusky epoch
#

over what ring

amber crow
#

Anyone on?

dusky epoch
#

@amber crow no, this server has been abandoned for years if not decades. (/sarcasm)

#

if you have a linalg question to ask then just ask it

amber crow
#

Determine the value of A and B if the solution of this linear system is (4,6). Ax + By =-20. Bx + Ay = 15

#

dis confsing me

limber sierra
#

the solution being (4, 6) means that the system is solved when (x, y) = (4, 6)

#

i.e. when x = 4, y = 6

#

so substituting this in, we have that A * 4 + B * 6 = -20, B * 4 + A * 6 = 15

#

solve.

dusky epoch
#

well it is vaguely linear-algebraic in that it deals with a linear system

#

so there's that

amber crow
#

its linear equations

limber sierra
amber crow
#

srry bbg

dim epoch
#

exam is over so idk if you care anymore but no, when looking at it as a Z Module which we always did

#

its cyclic but the generator is never linearly independent

clever totem
#

🥲

dim epoch
#

dont worry too much about it

clever totem
#

all in all i have a good feeling i think

dim epoch
#

the Signatur Aufgabe was absolutely gottlos

#

but other than that it was fine

clever totem
#

yeah everyone i knew just took random numbers

dim epoch
#

so did i

glacial terrace
#

So, T is invertible, then we can use Cayley-Hamilton Theorem to get a polynomial p(x) in F[x] such that p(A) = 0, which indeed has a non-zero constant term.

#

Question: How can I prove that this polynomial is indeed the minimal polynomial? I know that the minimal divides any polynomial that has A as a root

#

Another way to think of: How do I know if the polynomial given by the Cayley Hamilton is minimal?

#

If it is

haughty berry
#

Cayley Hamilton just says that p(A) (where p(x) is the char polynomial of A) is 0

dim epoch
#

since every kernel of a ring homomorphism is an ideal in the domain

#

so to generate these ideals the degree has to be minimal

glacial terrace
#

That was to much, I think?

dim epoch
#

This was how my course introduced the minimal polynomial

#

if you're not familiar with some of these terms just ignore what i typed

haughty berry
#

You can show this because T is invertible if and only if its representation matrix is invertible, and a matrix is invertible if and only if its determinant is non-zero, and since the constant term in the characteristic polynomial is (-1)^n det(A)*I, this is iff the constant term in the characteristic polynomial is non-zero.
And you know the minimal polynomial divides the the characteristic polynomial…

And you can then manipulate p(T) to get some polynomial = I, and that polynomial will have a zero constant term, so you can simplify it to T(…)=I

glacial terrace
#

I am acquainted but not familiar

#

hummm

#

but what about having T(...) = I? I did that part but the minimal polynomial should have 0 as it image

haughty berry
#

I don’t understand your question

glacial terrace
#

How does getting T(...) = I helps

haughty berry
#

You have Tq(T)=I (and also q(T)T=I) so you have that q(T) is the inverse of T (q(T) is that …)

glacial terrace
#

q(T) is indeed a polynomial

#

I got $\frac{1}{det(A)(-1)^{-(n+1)}}T(T^{n-1}+T^{n-2}c_{n-1}+\dots+c_1) = I$

haughty berry
#

It doesn’t really matter what the polynomial is, as long as it exists

stoic pythonBOT
haughty berry
#

So you have the polynomial

#

What more do you need?

glacial terrace
#

I am sorry but I don't see how this answer the question

haughty berry
#

Because T*q(T)=I and q(T)*T=I. What’s the definition of an inverse?

#

Where q(T)=(-1)^(n+1)/det(A) (T^(n-1)+c_(n-1)T^(n-2)+…)

#

Whatever you wrote up there

glacial terrace
#

q(T) = T^-1

haughty berry
#

Yes

glacial terrace
#

I see this answer the second question but it has two!! I want the former xd

haughty berry
#

I already gave the former

#

In my first message

haughty berry
#

Also showing that q(T)=T^-1 is sufficient anyway

#

You don’t even need the first paragraph I sent

#

You can totally ignore it actually

glacial terrace
#

As you said, Cayley-Hamilton provides us the char polynomial which indeed has a non-zero constant term. How do we go from here to the minimal polynomial?

haughty berry
#

You don’t need Cayley Hamilton

plucky lichen
#

I'm looking through a solution to a particular problem here
https://math.stackexchange.com/a/1939462

And I'm trying to code an answer to this problem, but I've noticed in one of my test cases I am given a U of 0,0,0 which is the zero vector?
Part of my code indiscriminately converts this zero vector to a "unit vector" by which it tries to take 0,0,0/sqrt(0*0 + 0*0 + 0*0)
which then comes back as NaN basically...
And I'm really not sure how to deal with this...

In my specific test case, I'm basically positioned at 3,2,1 a laser is fired with vector 0,0,0 and the position of what I'm trying to hit is an object at 3,2,1 with a radius of 0.
Basically I am directly on top of an object with a radius of zero firing with a vector of 0,0,0 and I'm not hitting that object currently.

The test case seems to think I should be hitting this object... and mathematically I want to know why

More specifically I'm kind of interested in, what exactly is the zero vector? Does it have a magnitude? And mathematically how should this situation be playing out or what does it all actually mean?

haughty berry
# stoic python **mns**

You have this, just instead of dividing by the determinant times (-1)^n, you’re dividing by the constant term of the minimal polynomial

#

Basically you have a minimal polynomial
[ m_T(x) = x^n + c_{n-1}x^{n-1} + \cdots + c_0 ]
You know that $m_T(T)=0$ so
[ T^n + c_{n-1}T^{n-1} + \cdots + c_1 T = -c_0 I ]
Then you get that
[ T\parens{-\frac1{c_0}\parens{T^{n-1} + c_{n-1} T^{n-2} + \cdots + c_1}} = I ]
So if you define the polynomial
[ p(x) = -\frac1{c_0}\parens{x^{n-1} + c_{n-1}x^{n-2}+\cdots+c_1} ]
You have that $T\cdot p(T)=I$ and $p(T)\cdot T=I$, so $p(T)=T^{-1}$

stoic pythonBOT
haughty berry
#

So you have shown that T has an inverse and it is a polynomial

#

You’ve answered both questions at once

glacial terrace
#

oh

#

Now I see how it relates with the minimal polynomial!!

#

I was completely not using its definition

#

Thank you very much for your time!

haughty berry
glacial terrace
#

"Let V be a finite-dimensional vector space over a field F and Ω an algebraically closed field containing F ."

#

So, for any polynomial p(x) in Ω, there's alpha in Ω such that p(alpha) = 0. I wonder what Ω containing F ( F subset Ω ) tell us

haughty berry
wet stratus
#

well it's just convenient to be able to work over a field where every polynomial has a zero

#

it should hopefully at some point become clear why your text does this

glacial terrace
#

hum ok thanks

#

just to make sure, T = [0 & 1 // -1 & 0] is semisimple. As F = R and Ω = C so that m_T(x) = (x - i)(x + i)

#

for context: T is semisimple if mT(x) is a product of distinct linear factors over Ω[x];

zinc timber
#

semisimple if the min poly is product of irreducible elements

#

in F[x]

glacial terrace
#

F or sigma?

zinc timber
#

over F

wintry steppe
#

algebraically closed fields are good for the soul

ivory shore
#

the set of all polynomials of degree 3
does this include something crazy like x^8 - 3x^3, because technically this polynomial has a third degree term

dusky epoch
#

no, x^8 - 3x^3 is a polynomial of degree 8, not 3.

#

the degree of a polynomial is the highest degree of all its terms.

mental atlas
#

guys, if If A is m×n matrix and n>m
how can i prove that A^T*A is a singular matrix.

#

i proved that A is a singular matrix

#

because its rref cannot be an Identity(equivalence thrm)

#

but how to prove the A transpose times A

tranquil steeple
stoic pythonBOT
#

Sven-Erik

split parcel
#

,w Bunny is considering joining a tennis club. The downtown club charges a $200 membership fee and $25 per hour to play. The uptown club charges a $300 membership fee and $20 per hour to play

stoic pythonBOT
quiet salmon
#

hey, quick and stupid question:

Determine the dimension of the subspace $W \subseteq V = \bR^{4}$, $W = {(a, b, c, d): d = 0}$

stoic pythonBOT
#

texaspb :rainbow:

quiet salmon
#

the answer for this is dimW=3, I don't get why

#

a vector from my subspace W has 4 components

#

why is the dim not 4?

#

I mean intuitively it's clear that it's because of my 4th component being 0, but why does this imply that the dimension is 3

#

in this case

quiet salmon
#

ok

#

so

#

hm

#

ok I got it

#

you cant find a basis of 4 vectors of 4 components right

#

is that what youre trying to say

gray dust
#

im just saying to find a basis

quiet salmon
#

ok my first attempt would be to try this "base" B={(1,0,0,0), (0,1,0,0), (0,0,1,0), (0,0,0,1)}

#

which doesnt work for W

gray dust
#

ofc this requires knowing what a basis is

quiet salmon
#

yeah

#

I tried using the standard basis for R^4 but it cant span W

#

so that was my first guess

#

ok I dont get what you're trying to say

#

I know what a basis is

gray dust
#

B is a basis of W if B is linearly independent and spanB=W

#

no wait, wording is off

quiet salmon
#

I know what a basis is

gray dust
#

B={(1,0,0,0), (0,1,0,0), (0,0,1,0), (0,0,0,1)}
here, spanB doesnt equal W

quiet salmon
#

yes

#

that's why I said it was my first attempt and then realized it wouldn't work

gray dust
#

i suggest a more systematic way of finding a basis instead of guessing

#

write an arbitrary vector in W as a linear combo of some independent vectors

quiet salmon
#

ok

#

that works

gray dust
#

those independent vectors form a basis, dimW is its size

slim gyro
#

hey friends, im having trouble grokking this paragraph in my book that comes after a proof. the statement being proven is that if you have a vector space V with basis B, then given any vector space W and any function from B to W, you can extend that function to a linear transformation from V to W

#

g bar is the linear transformation from V to W and g is the function from B to W

#

what im confused about is that after the proof he says that being able to extend g to a linear transformation depends on the fact that the basis vectors are linearly independent, and then he gives an example saying that a function g from the set {v, -v} to W can't be extended unless g(-v) = -g(v)

#

im just confused as to why we can't always turn g into a linear transformation when it's defined on linearly dependent elements

#

like in the example, i don't get why having g(-v) = -g(v) is required

wet stratus
#

Well if g is linear then g(cv)=cg(v) for all scalars c. Using c=-1 we get g(-v)=-g(v)

#

So this absolutely has to hold, otherwise g cannot be linear

dry vessel
#

Hi I need help with this

#

Could anyone please help me understand why
w_0 + 4w_1 - 2w_2 = 0
turns into
w_0 + 4w_1 = 0
and w_0 - 2w_2 = 0

gray dust
#

context?

dry vessel
#

So I have a linear graph of the equation

#

w0 + w1x + w2y = 0

#

i have values for x and y

#

and am to solve for w0 w1 and w2

#

I want to know what math rule is used to make

#

w_0 + 4w_1 - 2w_2 = 0
into
w_0 + 4w_1 = 0
and w_0 - 2w_2 = 0

#

do I need to give more context

gray dust
#

yes can u post the full problem?

dry vessel
#

let me post it here first then you can confirm

gray dust
dry vessel
#

oh sorry I thought it was implied

#

does that change the understanding?

gray dust
#

these are assumptions on specific points on the line, not implied by the equation itself

#

take the point (4,0), ie the equation holds for x=4, y=0

dry vessel
#

Hmm how is it an assumption?

#

its stated to us

gray dust
#

assumption in that its an extra bit of info given by the problem

dry vessel
#

hm ok

#

so then why is the forumla split?

#

when we substitute in the w012 equation

gray dust
#

one known point on the line is (4,0), ie the equation holds for x=4, y=0

dry vessel
#

out of interest this is the solution im showing you, I just havent a clue how we get there

gray dust
#

so we can plug x=4, y=0 into the equation

dry vessel
#

Ok

#

and it gives y = -2

gray dust
#

no, we plug x=4, y=0

dry vessel
#

stop

#

hold up

#

that would mean

#

that there are 2 insertions

#

x = 4, y = 0

#

and x = 0, y = -2

gray dust
#

we're just focusing on the fact (4,0) is a point on the line for now

#

we focus on the other point later

dry vessel
#

you just helped me understand that the points are treated seperatly

#

thats why we get
w_0 + 4w_1 = 0
and w_0 - 2w_2 = 0

#

Thank you 😭

#

But ok yeah lets continue with the one point

gray dust
#

one known point on the line is (4,0), ie the equation holds for x=4, y=0
so we can plug x=4, y=0 into the equation
we get w0+4w1=0

#

is this clear?

dry vessel
#

so far yes because (0)w2 is 0

gray dust
#

now (0,-2) is another point on the line, ie the equation holds for x=0, y=-2, so lets plug those in

dry vessel
#

ok

#

that gives w0 - 2w2 = 0

gray dust
#

yes

dry vessel
#

that means we have 2 equations :D

#

awesome!

gray dust
#

thats how we use two known points on the line to get these two equations from the original

dry vessel
#

i see

#

thank you man!

gray dust
#

no prob

real bone
#

whats the square root of an operator? our instructor never defined it for us but apparently we need to know what it is to solve a homework problem

wintry steppe
#

the square root of an operator T is an operator S with S^2 = T

#

what else could it possibly be?

#

@real bone

real bone
#

ok thats what i assumed thx

#

i just wanted to make sure just in case i was wrong about it

plucky lichen
#

I have a collision checking algorithm where I take a start point, a firing vector, and then I have a sphere at a location with a radius.
https://math.stackexchange.com/a/1939462

I'm working off of the example posted here...
In my current particular test case my
C = <-2,0,0>
r = 1
P = <0,0,0>
U = <1,0,0>

The math works out as follows

Q = <0, 0, 0> - <-2, 0, 0> = <2, 0, 0>
a = <1, 0, 0> * <1, 0, 0> = 1*1 + 0*0 + 0*0 = 1
b = 2 * <1, 0, 0> * Q = <2, 0, 0> * <2, 0, 0> = 2*2 + 0*0 + 0*0 = 4
c = <2,0,0>*<2,0,0> - 1*1 = 2*2+0*0+0*0 - 1 = 4 - 1 = 3
d = 4*4 - 4 * 1 * 3 = 16 - 12 = 4 > 0

Where d is the discriminant of my quadratic. I've noticed that in this particular case d is 4 which is greater than zero, and I'm trying to figure out why and I realise like.... indeed my sphere is on this line... but it's behind my starting point.... I'm basically collision checking a line not a ray, and in this particular collision I have hit an object behind me...
Is there any way to actually check for and rule out this case?

I'm currently kind of thinking maybe if I can get a unit vector from my start to my sphere location, and if it's opposite my given firing vector I know that I can't hit that object? Is there a fancy linear algebra way to do that?

ornate canopy
#

can i get some help with this?

plucky lichen
#

I'm currently kind of thinking maybe if I can get a unit vector from my start to my sphere location, and if it's opposite my given firing vector I know that I can't hit that object? Is there a fancy linear algebra way to do that?

It seems weird to me that this is necessary... when I feel like I'm already doing so much with these vectors... How can I already tell if my object lies on my line without knowing somewhere already that it lies on my line "backwards"

copper hinge
#

Let p(t) = p_0 + td be a your line. If your sphere is determined by a center c and radius r we have all points x of the sphere satisfies |x-c| = r. Now plug in x = p(t). Square both side, left side turns into a dot product, expand. Get a quadratic polynomial, if the discriminant is negative the line doesn’t intersect the sphere. If not then either the line intersects the sphere once(one solution), or twice(two solution).

#

If that what your trying to do.

wintry steppe
#

Hi, I have a question on free variables for Ax=0 and Ax=b. In Gilbert Strang's video on Ax=b, the free variables are assigned 0, but for the null space in Ax=0, he uses free variables [0,1] and [1,0].

#

why is it that for Ax=b, the x particular's free variable doesn't use the same set [0,1] and [1,0]?

wintry glen
#

Hi, sorry for the interruption, but I need to show that for subspaces $V, W$ of $U$, $(V + W)/W \cong V/(V \cap W)$. I have access to the first isomorphism theorem that $V/$Ker$(T) \cong$ R$(T)$, so I could just find $T$ whose kernel and range are $V \cap W$ and $(V + W)/W$. Not sure how exactly to do that though.

stoic pythonBOT
#

PhenomPlasma

slender relic
#

Could you try a map T:V+W -> V/VnW, where T(v+w)=v + VnW

#

Have to show it’s well defined first, and then then kernel is W and it’s surjective hopefully

wintry steppe
#

sheeesh high level stuff

plucky lichen
tulip cedar