Ask Your Question

A linear algebra question

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

tanyanlan gravatar image

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

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

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

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)
eq = Matrix([v1,v2,v3]).det()
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


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

Seen: 195 times

Last updated: Dec 21 '22