Ask Your Question
0

A linear algebra question

asked 2022-12-21 15:35:26 +0100

tanyanlan gravatar image

updated 2023-05-19 21:51:21 +0100

FrédéricC gravatar image

Is it possible to solve this linear algebra question by SageMath?

Given column vectors v1=[1,1,3], v2=[1,0,-2] and v3=[a,3,3].

Question: for what value of a, the vector v3 is in the span of v1 and v2?

Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2022-12-21 19:51:34 +0100

Max Alekseyev gravatar image

Determinant of the matrix formed by the given vectors must be zero, which gives an algebraic equation for a:

R.<a> = PolynomialRing(QQ)
v1=[1,1,3]
v2=[1,0,-2]
v3=[a,3,3]
eq = Matrix([v1,v2,v3]).det()
print(eq.roots(multiplicities=False))
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-12-21 15:35:26 +0100

Seen: 253 times

Last updated: Dec 21 '22