Add to Chrome

Log In

Sign Up

Try Gigabrain PRO

Supercharge your access to the collective wisdom of reddit, youtube, and more.
Learn More
Refine result by
Most Relevant
Most Recent
Most Upvotes
Filter by subreddit
r/HomeworkHelp
r/askmath
r/learnmath
r/libreoffice
r/LinearAlgebra
r/matematicabrasil

Solving Systems of Equations Using Matrices

GigaBrain scanned 73 comments to find you 48 relevant comments from 10 relevant discussions.
Sort
Filter

Sources

[Linear Algebra] I've tried to solve these systems of equations using matrices, but it's not working for some reason. Do you think there is another method I should solve this with, or I just made a mistake?
r/HomeworkHelp • 1
Why does solving a system of linear equations with matrices work?
r/askmath • 2
What's the point in using matrices to solve system of equations?
r/learnmath • 3
View All
7 more

TLDR

Summary

New

Chat with GigaBrain

What Redditors are Saying

Solving Systems of Equations Using Matrices

Understanding Matrix Methods

Matrices provide a structured way to solve systems of linear equations, especially when dealing with large systems. The matrix method involves representing the system as ( A\mathbf{x} = \mathbf{b} ), where ( A ) is the coefficient matrix, ( \mathbf{x} ) is the vector of unknowns, and ( \mathbf{b} ) is the constants vector. This approach allows for systematic manipulation using operations like row reduction (Gaussian elimination) or finding the inverse of the matrix [2:1][3:1].

Advantages of Matrix Methods

Matrix methods are particularly useful for handling large systems with many variables. While solving small systems might seem tedious initially, matrices simplify tracking multiple equations simultaneously and facilitate numerical solutions in computational applications. For example, Gaussian elimination efficiently reduces matrices to simpler forms, making it easier to solve for unknowns [3:2]. Additionally, techniques such as least squares can be applied when exact solutions aren't possible [3:3].

Inverse Matrices

Finding the inverse of a matrix is one method to solve systems, but it's often overkill for simple systems. The inverse matrix method is more suited for scenarios where you need solutions for multiple systems with the same coefficients but different constants. In practice, Gaussian elimination is preferred for single-system solutions due to its efficiency [3:1]. When using software tools like LibreOffice Calc, ensure your matrix is invertible; otherwise, alternative methods like row reduction should be used [5:4].

Handling Special Cases

In cases where there are fewer equations than unknowns, the system may have infinitely many solutions. To resolve this, additional constraints or assumptions about certain variables may be necessary [1:4]. Conversely, if the system is overdetermined (more equations than unknowns), some equations may be linearly dependent, requiring careful selection of independent equations [5:2].

Practical Tips

When working with matrices, especially in computational environments, understanding the format and setup is crucial. Tools like LibreOffice Calc's Solver add-in can assist in setting up and solving systems by defining variables and equations within spreadsheet cells [5:3]. Always verify the compatibility of your matrix operations with the software being used, and ensure that all relevant information is included for troubleshooting [5:5].

See less

Helpful

Not helpful

You have reached the maximum number of searches allowed today.

Gigabrain for Chrome works on Bing too.

It's not just for google search! The Gigabrain extension can also bring you the most relevant and informative answers when you search on Bing.

Add to Chrome

Source Threads

POST SUMMARY • [1]

Summarize

[Linear Algebra] I've tried to solve these systems of equations using matrices, but it's not working for some reason. Do you think there is another method I should solve this with, or I just made a mistake?

Posted by itswertyy · in r/HomeworkHelp · 1 year ago
8 upvotes on reddit
9 replies
Helpful
Not helpful
View Source
ORIGINAL POST
post image

I will attach my solving process in the comments.

reddit.com
9 replies
[deleted] · 1 year ago

7 times the first equation minus the third equation equals the second equation. So, the only equation left would be r+s-2t=5, which has many possible solutions.

3 upvotes on reddit
KilonumSpoof · 1 year ago

You mean it equals 17 times the second equation.

Also, you are left with two linearly independent equations, not one.

But, even then, just by seeing in both cases that there are fewer equations than unknown variables already tells you that there are no unique solutions.

3 upvotes on reddit
[deleted] · 1 year ago

No, 7 times the first minus the third eliminates u, then dividing by the common factor equals the second. I thought I made it clear. And I understand what you are saying, I was just showing that OP's system of equations reduces to one that has many solutions, not just that it can't be solved for unique solutions.

1 upvotes on reddit
grebdlogr · 1 year ago

To solve for N unknowns, you need N equations.

In the first case, you have 3 equations for 4 unknowns. In the second, 3 equations for 5 unknowns.

You either need more equations or you need to decide that some of your variables are not to be considered unknowns. For example, in the first case, you could assume u is a known constant and then solve for r,s,t in terms of u.

1 upvotes on reddit
Party-Limit-3432 · 1 year ago

u=r-4

t=r/2+s/2-5/2

1 upvotes on reddit
itswertyy · OP · 1 year ago

u/jacklope_hunter69 u/KilonumSpoof u/Alkalannar u/grebdlogr u/Party_Limit_3432 thank you for your input, now I get that there isn't a single possible solution

1 upvotes on reddit
itswertyy · OP · 1 year ago

How can I mark this post as answered?

1 upvotes on reddit
itswertyy · OP · 1 year ago

Nvm got it

1 upvotes on reddit
A
Alkalannar · 1 year ago

[2 3 -6 1 | 11]
[1 1 -2 0 | 5]
[-3 4 -7 7 | -8]

[1 1 -2 0 | 5]
[0 1 -4 1 | 1]
[0 7 -13 7 | 7]

[1 0 2 -1 | 4]
[0 1 -4 1 | 1]
[0 0 15 0 | 0]

[1 0 0 -1 | 4]
[0 1 0 1 | 1]
[0 0 1 0 | 0]

r = u + 4
s = -u + 1
t = 0
u can be anything.

5 upvotes on reddit
See 9 replies
r/askmath • [2]

Summarize

Why does solving a system of linear equations with matrices work?

Posted by LordChanticleer · in r/askmath · 5 years ago

It's been a couple years since I've take a math class and I am now back at it and I'm having a hard time getting back into it. I don't really remember what's up with matrices and I'm not understanding what's going on when they solve the problems with matrices. I'm sure I can figure out how to do it pretty easily but I'm going to struggle if I can't figure out what's going on/why it's working the way it is. I do understand how to make a matrices using the equations.

I'm in Elementary Linear Algebra if that helps.

1 upvotes on reddit
1 replies
Helpful
Not helpful
View Source
1 replies
0s1n2o3w4y5 · 5 years ago

it's kind of like adding & which equals an equation, or adding 2& to another thing. If you add it to the other side, it should equal. Think of matrices as kind of like synthetic division

1 upvotes on reddit
See 1 replies
r/learnmath • [3]

Summarize

What's the point in using matrices to solve system of equations?

Posted by [deleted] · in r/learnmath · 5 years ago

Current high school student learning 3 ways (graphing, substitution, and elimination) of solving a system of equations. I looked at a math meme and it was about best ways of solving system of equations and a matrix was at number 2. I decided to look up ways to solving system of equations using matrices and while it does work, it's so much more tedious and painstakingly slow than the other methods (don't even get me started on inverse matrices, took me 15 minutes of staring at the page to understand).

3x+y=5, 2x-y=0

This was one of the example system of equations solved. THaT. It's set up perfectly so elimination can be used to eliminate the y variable. At what times is it appropriate and necessary to use the matrices version or is it just for show?

2 upvotes on reddit
3 replies
Helpful
Not helpful
View Source
3 replies
F
firstdwarf · 5 years ago

Matrix methods are extraordinarily appropriate when dealing with large systems. The example you gave may have only two variables, but many applications may have up to hundreds of variables. In these cases, using the tools and techniques of linear algebra and the matrix representation for these systems can be invaluable. In fact, methods like elimination are contained within the standard matrix tools for such a situation. Matrices provide a way to keep track of elimination on a grand scale, among other, more complex uses. In particular, using a matrix representation allows you to use the machinery of linear algebra to learn more about the system and manipulate it in more complex ways.

11 upvotes on reddit
B
BloodyFlame · 5 years ago

One way to think of it is that you're just taking away all useless information; you don't really care too much about the names of variables you're interested, for example. Once you eliminate all superfluous information, you can more easily dig out useful information, which you can learn more about in a linear algebra or numerical methods class.

For example, let's say you can't solve Ax = b (for example, there are no solutions), but you would be happy getting relatively close to it. You can use least squares to do this, and this is much more easily expressed in terms of matrices than as an explicit linear system.

3 upvotes on reddit
P
Proof_Inspector · 5 years ago

It's slow because you're just learning it. It's extremely simple to use.

Note that finding matrix inverse is overkill for the purpose of solving a system of equation. Finding matrix inverse is equivalent to solving all system of equations with the same coefficients but different inhomogenous part, not surprisingly it's slower. You only need to do Gaussian elimination for solving a single system.

In fact, try programming a linear system solver. What you have is likely to be the same thing as a matrix (you probably will even use a 2 dimensional array). Substitution, elimination and matrix are literally the same method as far as computation are concerned (you compute the same formula for the same number), using matrices just mean your number are organized nicely into a table. Which is why I asked you to try to program it, because then you will realized that what you're doing isn't different. They just look different because the numbers are written in different places.

2 upvotes on reddit
See 3 replies
r/askmath • [4]

Summarize

Question about matrices: How to find x and y.

Posted by Expensive-Session152 · in r/askmath · 20 days ago

As you can see, i multiply A and b first. then, i compared it to get the value of z. The problem is idk how to find x and y.

Idk how to find x and y, please help me 😭😭🙏

reddit.com
7 upvotes on reddit
5 replies
Helpful
Not helpful
View Source
5 replies
Optimal-Savings-4505 · 20 days ago

Invert A, then multiply it with A B = 5 I from the left, such that A^-1 A B = A^-1 5 I. We know that A^-1 A = I by definition, so afterwards you can read off x and y elementwise in the equation B = 5 A^-1 . Note that scalars may commute, but matrices generally do not.

[edit]^formatting

4 upvotes on reddit
dr_fancypants_esq · 20 days ago

So you've found a system of two equations in two unknowns: x+3y=0 and 2x+y=5. You should have learned in algebra how to solve a system of equations like this -- do you remember how to do that?

4 upvotes on reddit
Expensive-Session152 · OP · 20 days ago

No but i just revised it just now, i found the answer 😭

x = 3 y = -1

Am I right? Thank you for helping!! 😄

3 upvotes on reddit
dr_fancypants_esq · 20 days ago

If you plug those values back into both of the equations, you should find that they work -- so that's correct!

3 upvotes on reddit
Optimal-Savings-4505 · 20 days ago

Yes.

$ scilab-cli -e '5*[1,3,1;2,1,4;1,3,2]^-1'                  Scilab 2023.1.0 (May 23 2023, 07:14:28)                                      ans  =                                                                                                                                                    10.   3.  -11.                                                              0.   -1.   2.                                                              -5.    0.   5.
1 upvotes on reddit
See 5 replies
r/libreoffice • [5]

Summarize

How to solve a system of linear equations?

Posted by 8192K · in r/libreoffice · 1 month ago

I have a mathematical system of linear equations.

The coefficients for x, y and z would be (four equations)

-1    0.5  0.5
 0.5 -0.5  0.5
 0.5  0   -1
 1    1    1

first three equations should be equal to 0, last one equal to 1. The solver does not seem to be able to solve these kind of things as it requires one target cell which doesn't make sense here. Or I don't get it.

How can I solve these equations to find x, y and z? (The result should be (1/3, 1/2, 1/6).

UPDATE: I tried using MINVERSE as shown in one answer, but this matrix is not invertible (even if using only the first three equations).

UPDATE 2: I managed to use the solver the right way. See my answer below.

3 upvotes on reddit
5 replies
Helpful
Not helpful
View Source
5 replies
Chris_7599 · 1 month ago

Your numbers doesn't make sense for me. I sligtly modified it to work.
a) calculate the inverse matrix of the coefficents
b) matrix multiplication with the constant vector gives you the solution to your linear equations

modified coefficent matrix --> inverse matrix with =MINVERSE($A$2:$C$4)

-1 0.5 0.5 -2 -2 0
0.5 -0.5 -0.5 -1 -3 1
0.5 0 -1 -1 -1 -1

The inverse matrix multiplied with the constant vector gives you the solution =MMULT($F$2:$H$4;D$2:D$4)

-2 -2 0 1 -4
-1 -3 1 1 -3
-1 -1 -1 1 -3
2 upvotes on reddit
8192K · OP · 1 month ago

My numbers are correct. The result should be 1/3, 1/2, 1/6.

I tried MINVERSE, too, but the matrix is not invertible.

1 upvotes on reddit
Chris_7599 · 1 month ago

Just as an extension:

If you have 3 variables and 4 equations, the system is over determined.

Furthermore the first 3 equations of your system are linear dependend:

the 3. equation is the sum of the first 2 multiplied by -1.

if you create a 3x3 matrix of equation No. 1, 2 and 4 you can calculate the inverse and get your results (1/3 1/2 and 1/6)

1 upvotes on reddit
8192K · OP · 1 month ago

Here's the solution which I found using Deepseek (unfortunately all formatting is gone):

-----------------------

In LibreOffice Calc, you can solve a system of 4 equations with 3 variables using the Solver add-in. Here’s how to set it up step by step:

Step 1: Define Variables and Equations

Assume your system looks like this (modify as needed):

a1x+b1y+c1z=0

a2x+b2y+c2z=0

a3x+b3y+c3z=0

a4x+b4y+c4z=1

Assign cells for variables:

Let x be in A1, y in B1, z in C1 (initially empty or guessed values).

Enter the equations in cells: (Replace a1, b1, c1, ... with actual coefficients from your equations.)

Equation 1: =a1*A1 + b1*B1 + c1*C1 → Store in D1

Equation 2: =a2*A1 + b2*B1 + c2*C1 → Store in D2

Equation 3: =a3*A1 + b3*B1 + c3*C1 → Store in D3

Equation 4: =a4*A1 + b4*B1 + c4*C1 → Store in D4

Step 2: Enable and Configure Solver

Go to Tools → Solver (ensure the Solver add-in is enabled in Tools → Add-ons).

Set up Solver parameters:

Target Cell: D4 (the equation that must equal 1).

Equal To: Value of → 1.

By Changing Cells: $A$1:$C$1 (variables x, y, z).

Add Constraints:

Click Add and set:

D1 = 0

D2 = 0

D3 = 0

(This ensures the first three equations hold.)

Choose Solving Method:

For linear systems, select "Evolutionary" or "DEPS" (nonlinear solver, but works for linear cases).

Click Solve → The Solver will adjust A1, B1, C1 to satisfy all equations.

2 upvotes on reddit
A
AutoModerator · 1 month ago

If you're asking for help with LibreOffice, please make sure your post includes lots of information that could be relevant, such as:

  1. Full LibreOffice information from Help > About LibreOffice (it has a copy button).
  2. Format of the document (.odt, .docx, .xlsx, ...).
  3. A link to the document itself, or part of it, if you can share it.
  4. Anything else that may be relevant.

(You can edit your post or put it in a comment.)

This information helps others to help you.

Thank you :-)

Important: If your post doesn't have enough info, it will eventually be removed (to stop this subreddit from filling with posts that can't be answered).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1 upvotes on reddit
See 5 replies
r/askmath • [6]

Summarize

Solution of equation

Posted by bakaduo · in r/askmath · 1 year ago
post image

Hi mathletes!

I'm really having a hard time understanding how to get the answers to this question.

I can create the augmented matrix but I'm really stuck/bad at simplifying and performing row operations. I seem to choose the wrong method and this get the wrong answer(s)

Do you have any tips or suggestions??

Thank you so much in advance!

3 upvotes on reddit
3 replies
Helpful
Not helpful
View Source
3 replies
L
loicvanderwiel · 1 year ago

There's a "simple" solution but it's a bit annoying to use. A system of equation can be expressed in Matrix form (A*X=B where X is the vertical vector (1×3 here) of the variables x, y and z, A is the coefficients of x, y and z and B is everything not attached to a variable). According to Crammer, such a matrix equation has a solution if and only if the determinant of A is different of zero.

This gives us a polynomial dependent on k with roots -1 and 0. To know which one leads to impossible solutions and which one gives us a multiplicity of solutions is a bit tricky but the way I'd go about it would be to plug the values in the system and see what happens. If you plug 0 in, you'll see that equation 1 becomes the negation of equation 3 (-x + 3y +2z = 0 and x -3y -2z = 0) which means that it's redundant information and thus does not bring anything to the table. This gives us our multiplicity of solutions.

If you plug -1 in, looking at the same equations you'll notice their results are not coherent. You get -x + 3y +2z = -1 and x - 3y - 2z = 0 which is of course impossible. This gives us the answer to the first question.

The answer to the second one is literally everything else.

Another way of doing it is to do it intuitively and use the way the questions are written to your avantage. Thanks to 1 and 3 you know there's only 1 impossible value and 1 undetermined value while the rest gives you a unique solution. So try to find that.

Again, playing with equations 1 and 3 gives you the value of z(k) from which you can determine that -1 is an impossible value (leads to a division by 0). It's the simplest way to get a variable so it's not an unreasonable assumption that someone would go for that one first when solving. Additionally, intuitively, you'll see that 1 and 3 are identical aside from the presence of the addends in k. If they are set to 0, the equations are identical and 3 becomes redundant, leading to an infinity of solutions.

These two give you the answer to the second question which is everything that's not -1 and 0.

But the "proper" way to do it is to use Cramer and show that the determinant is different from 0 in all cases save -1 and 0.

1 upvotes on reddit
bakaduo · OP · 1 year ago

sorry for the late reply, but thank you so much for your detailed answer! That's really helped me understand the concepts a lot better!

1 upvotes on reddit
spiritedawayclarinet · 1 year ago

Can you show your work? I would do the row reduction with the augmented matrix. At some point, you would divide by 2k+2, so there is a special case when k = -1. At another point, you would divide by k(k+1) so there is another special case when k =0.

3 upvotes on reddit
See 3 replies
r/askmath • [7]

Summarize

Fastest method for solving a system of linear equations by hand with matrices?

Posted by [deleted] · in r/askmath · 2 years ago

What is the fastest method for solving a system of linear equations, with three or four unknowns, mentally? I'll probably have around 2 minutes to solve one or more during my exam without a calculator, so I want to know what is the fastest way. Currently, I only know how to use Cramer's rule, Gaussian elimination and matrix multiplication, and I find Gaussian elimination to be the fastest but it still takes time. Is there a better way?

2 upvotes on reddit
2 replies
Helpful
Not helpful
View Source
2 replies
N
Next-Translator-3557 · 2 years ago

If the matrices are upper or lower triangular (with a few permutations if needed) you can solve a system pretty quickly, and as far as I know it's the only technique to solve matrix system at hands fairly quickly. If you have to turn a system into an upper/lower triangular matrix, you'd have to do Gaussian elimination anyway.

If you have access to the inverse (or it's easy to compute with information given) you could solve it quickly I guess but in terms of computing it, inverse are in general a bit longer to do than Gaussian elimination.

I'm also curious why would anyone ask their student to solve systems in 2 minutes without a calculator, there's litteraly nothing to learn out of it, unless your teacher gave you a trick of some sorts with some specific matrix, but even then that's dumb.

2 upvotes on reddit
[deleted] · 2 years ago

Fortunately I just learned the test will mostly be on 'theoretical' stuff (meaning no calculations just repeating what's written in the books) so this is no longer a difficulty, but thank you very much for the answer anyway. I was expecting such a test, because the previous two had some pretty difficult mental calculations, so that's why I got it wrong. There are also 15 questions for 30 minutes, hence the time.

2 upvotes on reddit
See 2 replies
r/LinearAlgebra • [8]

Summarize

Are matrices systems of linear equations or a series of row/column vectors?

Posted by StocktonStudent24 · in r/LinearAlgebra · 3 years ago

I am studying Linear Algebra, and the first lesson said that matrices are a shorthand notation for systems of linear equations. Then, in the third lesson, it says that matrices are a series of row/column vectors. I do not understand what matrices are.

For example,

2x = 5

x = 7

would be represented as a matrix like this:

[2]

[1]

or an augmented matrix

[2 | 5]

[1 | 7]

But then there is a column vector.

[2]

[1]

And apparently the 2 is the x-coordinate and now the 1 is the y-coordinate.

But in one of these matrices, the column represents x values whereas in the other it represents by x and y values.

7 upvotes on reddit
3 replies
Helpful
Not helpful
View Source
3 replies
shris-charma · 3 years ago

I’ve been studying on Lem.ma. I like the idea presented there that objects should be treated on their own terms.

I think a matrix is a set vectors in Rn.

You can use a set of vectors in Rn to represent a set of linear equations.

2 upvotes on reddit
U
urmyheartBeatStopR · 3 years ago

edit/update:

Sorry I thougth about this a bit more.

Linear algebra, the whole subject is solving system of equations.

Matrix itself is jsut a container that help this.

Matrix can represent anything.

3 upvotes on reddit
StocktonStudent24 · OP · 3 years ago

>Matrix can represent anything.

This greatly helps clarify. Thank you!

1 upvotes on reddit
See 3 replies
r/matematicabrasil • [9]

Summarize

Me ajudem por favor!!

Posted by raphagan · in r/matematicabrasil · 5 months ago
post image

Tenho que resolver esse sistema linear por meio de escalonamento de matrizes. O enunciado pede os valores de a,c,b que satisfaçam as exigências. Um para SPD (sistema possível e determinado), SPI (sistema possível e indeterminado) e SI (sistema impossível). Eu mal sei por onde começar...

i.redd.it
6 upvotes on reddit
7 replies
Helpful
Not helpful
View Source
7 replies
japp182 · 5 months ago

Como x = -w, você consegue manipular as equações de baixo pra chegar nesses 3 casos.

Pra ser impossível, deixe os lados esquerdos das equações de baixo múltiplos (uma vai ser a outra vezes -1) mas com resultados diferentes.

Pra ser indeterminado acredito que é só deixar as equações de baixo múltiplas dos dois lados.

Pra ser determinado até onde me lembro basta que nenhuma equação seja múltipla ou igual a outra.

Boa sorte!

2 upvotes on reddit
raphagan · OP · 5 months ago

Aaaahh, entendi! Muito obrigada

1 upvotes on reddit
Midwest-Dude · 5 months ago

Veja as respostas em r/LinearAlgebra.

2 upvotes on reddit
alcdof · 5 months ago

começa isolando o x ou w na primeira equação, aí vai manipulando…

3 upvotes on reddit
FireOnSomething · 5 months ago

{{1,0,0,1}; {a,2,1,2}; {1,-2,-1,0}}*{x; y; z; w}= {0; b; c}

Faz o det

Edit: aqui tem tutorial se tiver duvidas: https://www.todamateria.com.br/sistemas-lineares/

2 upvotes on reddit
raphagan · OP · 5 months ago

Certo, vou ver

1 upvotes on reddit
liferto · 5 months ago

Eu tenho pena de você

1 upvotes on reddit
See 7 replies
r/learnmath • [10]

Summarize

I can't really grasp matrices (apologies if this is an overdone topic)

Posted by Graydotdomain · in r/learnmath · 4 months ago

I just don't really get them, how exactly do they work? I think I understand what they're used for (mainly programming, which is gonna suck as a CS major if I don't get this topic nailed down lol), but a lot about it feels overcomplicated. Or, moreso just being done w/o any explanation as for why. Like, why exactly would the dimensions of matrix A, when multiplied by B, equal m x p? What happens to the inner dimensions, n? And I also don't get how multiplication works for matrices. Why would you multiply the 1st row by the 1st column, then the 1st row by the 2nd, etc... rather than taking every individual element of Matrix A and multiplying by every element of Matrix B? I'd understand if it was simplicity's sake, but even testing out the right way of doing it and the way I was thinking of, I get 2 vastly different arrays.

Sorry if I sound really stupid with these questions lmao, this is just a topic I couldn't really wrap my head around even after looking at online resources. I'd really appreciate any help I could get :D

Edit: wow, ty everyone for taking time out of your day to help! I didn’t expect such traction so quick lol 😅 I can’t reply to everyone, but I did write down notes from all of your replies + saved your recommendations to my bookmarks Cheers :)

8 upvotes on reddit
10 replies
Helpful
Not helpful
View Source
10 replies
Admirable_Safe_4666 · 4 months ago

This is probably not the right answer for your particular needs, but from the perspective of pure mathematics, I think the way in which matrices are introduced is often really unmotivated, especially in linear algebra courses designed mainly for students from other disciplines (also it is not really true that their main applications are in programming - matrices, and more generally linear transformations, which they represent, are ubiquitous across all of mathematics and any discipline using it). 

The reason that matrix multiplication is the way it is is so that multiplication of matrices corresponds to composition of linear transformations (under a choice of bases). If you know what a linear transformation is, and what a basis is, then you can sit down and write out what sort of operation you need in terms of vector components with respect to given bases to completely describe the algebra of linear transformations, and you will more or less automatically rederive the rule for matrix multiplication. This perspective is laid out especially nicely in Sheldon Axler's Linear Algebra Done Right.

3 upvotes on reddit
Graydotdomain · OP · 4 months ago

hey I appreciate any feedback I can get lol yeah it’s rather odd how matrices were introduced to us for this class. We didn’t really touch up on what they’re used for exactly/their relationship to vectors and the x/y-axis, only the basic rules of addition, subtraction, scalar multiplication, and then, the one I was most stuck on, matrix multiplication. It confused me a lot bc I didn’t even know what I was using matrices for, only that I was meant to know the formulas that came with them.

Being able to actually understand why they’re used and where they’re used in rlly helped trying to understand them. While I was mostly thinking abt how they’re used in programming/CS at first, finding their uses in datasets made me better get why they’re helpful. Because what I didn’t get was why matrices were created for a limited set of coordinates, like let’s say x, y, and z. But when there’s many inputs and outputs of data that needs to be transformed, putting it all into an organized array and going from there makes it much easier to calculate

overall, thx a lot for taking time out of your day to help :) while some of this isn’t yet on my level, I made sure to put this all down, esp for when I need the more in-depth parts during a later point in my education. Ty for the recommendation, I’ll keep it in mind for when I begin taking Linear Algebra 🙏 have a nice day

2 upvotes on reddit
Infamous-Advantage85 · 4 months ago

each column corresponds to an input, each row to an output. So the product of two matrices requires "wiring" the outputs of one to the inputs of another, which is why you multiply rows and columns like that. This also explains the dimension thing, if one matrix has n inputs and m outputs, and another has m inputs and k outputs, the m outputs can be "wired" to the m inputs so now you have a matrix with n inputs and k outputs.

the "multiply each combination of components" thing you thought of is actually a thing called the tensor product, which is a generalization of objects like matrices and vectors to more complex types of function.

note: you can also say rows are inputs and columns are outputs, depends on if the smaller objects you're working with are column or row vectors.

5 upvotes on reddit
Graydotdomain · OP · 4 months ago

okay this makes it easier to digest :D every row/output wires to every input, so m outputs would be wired to each n input
and then when you multiply it w/ another matrix, with k (or p) outputs and m inputs, then m would just be wired to the m outputs of Matrix A and cancel out. Leaving N inputs and K outputs for the final dimensions
This helped a lot bc I couldn't quite understand why it was like this, which was messing me up a lot. Thx so much man!

2 upvotes on reddit
Infamous-Advantage85 · 4 months ago

of course!

matrices are defined as linear maps from vectors to vectors, meaning that for vectors V and W, a matrix M, and a scalar k:

MV is a vector
M(V+W) = MV + MW
MkV = kMV

You can think of the first column of the matrix as the vector it outputs when the input is the column vector [1,0,...], the second being the output for [0,1,0,...], etc. because of the above rules, knowing where each unit vector goes allows you to find the output for every vector.

3 upvotes on reddit
N
noethers_raindrop · 4 months ago

The way I look at it is: matrices are things that act on vectors. For example, one matrix might scale up all vectors by a factor of 2, while another might rotate vectors by a certain angle around a certain axis.

You've probably heard how 1 x n matrices are sometimes called "column vectors." If A is some random matrix and e_1 is the column vector (1,0,0...,0) (which looks more like a row vector, but that's only because I can't draw a column vector easily on Reddit, so please pretend it's a column), then what is the product Ae_1? If you look closely at the definition of matrix multiplication, you will discover that Ae_1 is simply the first column of A. And if e_2 is the column vector (0,1,0,...,0), then Ae_2 is the second column of A, and so on. So the matrix A can be interpreted as a list of column vectors, specifically the column vectors that A maps e_1, e_2, ... e_n to. Since any vector can be written as a linear combination of e_1, e_2, ...e_n, knowing where A sends those vectors tells you where A sends any vector. Explicitly, if v=(v_1,v_2,... v_n), then Av=v_1Ae_1+v_2Ae_2+...+v_nAe_n. So matrices are just compact representations of linear functions that take in a vector and output another vector. The height of a column is the length of the output vector, and the number of columns is the length of the input vector. Thus, a (b x a) matrix represents a function that takes as input a vector of length a and outputs a vector of length b.

Now, what happens if we have two matrices A and B and a vector v, and we want to figure out what happens when we start with V, apply A, and then apply B. Well, we can first read off the first column of A, a.k.a. Ae_1, and then compute what B does to that vector. That should be the first column of BA, since BAv should be the matrix that describes our process of applying A and then applying B. (In other words, we want (BA)v=B(Av), making multiplication associative). Work it out carefully and you will see that the matrix multiplication you've been taught is exactly the one that does this job. In particular, the height of A and the width of B have to be the same, because the output of the first function we're applying has to be a vector of the same length as the input of the second function.

This is all very abstract stuff, and I certainly haven't told you why we should care about matrices and vectors in the first place. So let me leave you with a concrete example. You probably know that 2-dimensional vectors of real numbers, e.g. (1,2.5), can be drawn as arrows in the 2D plane starting at the origin. One thing we can do with the 2D plane is rotate it around the origin clockwise by an angle t. From your knowledge of the unit circle, you may know that, if we start at the point (1,0) on the positive x-axis and rotate by t, we get to the point (cos(t) ,sin(t)). And, with a little more trig identity work and the knowledge that (0,1) is what you get by rotating (1,0) by pi/2, you can show that rotating by t sends (0,1) to (-sin(t),cos(t)). So, the matrix that represents "rotate clockwise by t radians" is just R_t:=[[cos(t),-sin(t)],[sin(t),cos(t)]].

Now, what happens if I rotate clockwise by t radians, and then rotate clockwise by another s radians? Well, I've rotated by (s+t) radians in all, right? Based on this, we should expect that R_sR_t=R_(s+t). And by using matrix multiplication and angle addition trig identities, one can check that this is the case.

5 upvotes on reddit
Graydotdomain · OP · 4 months ago

woah yeah that’s a lot 😅 But I don’t mean it in a bad way, thank you, this gave some nice information abt concepts that my teacher certainly didn’t explain to us lol. Some parts do feel like they’re stuff I haven’t run into yet bc it’s far more advanced than my class, like the section at the end about rotating a set of coordinates by t. But this helped conceptualize rlly, well, what’s matrices can be defined as, which also wasn’t rlly explained so well in our class. As well as what the height of column and # of columns represent. Again, ty, this was rlly informative and I made sure to write everything down :D hope you’re doing good man

2 upvotes on reddit
Fresh-Setting211 · 4 months ago

I recommend going to YouTube, looking up the channel 3blue1brown, and finding in his playlists tab “The Essence of Linear Algebra”. I feel like I learned more about matrices in that video series than I learned in a university-level course.

21 upvotes on reddit
Graydotdomain · OP · 4 months ago

ty for the recommendation, definitely liking what I'm seeing from the first video. Really neat and concise w/ explaining how diff definitions of vectors relate to each other and how it's used
I'll watch the rest over the course of this week, it's getting late for me right now lol. Again, thx a lot for helping out, I rlly appreciate your generosity. Have a nice night :)🙏

6 upvotes on reddit
Skiringen2468 · 4 months ago

A lot of great explanations, but I want to give some more insight into use cases.

Linear algebra is used to work with 3 (or more) dimensional space. We have found a lot of ways to model things this way, for example each column could be a datapoint and suddenly you're halfway to machine learning. In calculus of multiple variables linear algebra is used as the ground you stand on, putting variables into matrices. This leads into a multitude of applications in physics (like all of physics). Linear algebra also pops up in proofs in unrelated areas every now and again such as graph theory or combinatorics.

A lot of our computers are optimized for fast work on matrices, such as GPU's, it has pretty much become our standard way of dealing with math on large amounts of data, which is something some programmers will need to do so if you are interested in simulations, computer graphics, machine learning, high performance computing, etc then linear algebra is the most important math course you'll take.

3 upvotes on reddit
See 10 replies

Top People to Talk to

These are some of the top contributors related to
HomeworkHelp
askmath
learnmath
2+ others
D

dr_fancypants_esq

No bio available
18459
Karma
51
Posts
3348
Comments
View Profile
Chat w/ Profile AI
A

Alkalannar

No bio available
60859
Karma
20
Posts
10000
Comments
View Profile
Chat w/ Profile AI
0

0s1n2o3w4y5

No bio available
15466
Karma
157
Posts
778
Comments
View Profile
Chat w/ Profile AI
C

Chris_7599

No bio available
714
Karma
6
Posts
208
Comments
View Profile
Chat w/ Profile AI
O

Optimal-Savings-4505

No bio available
325
Karma
0
Posts
259
Comments
View Profile
Chat w/ Profile AI
F

firstdwarf

No bio available
967
Karma
1
Posts
467
Comments
View Profile
Chat w/ Profile AI
K

KilonumSpoof

No bio available
36001
Karma
11
Posts
646
Comments
View Profile
Chat w/ Profile AI

Related

Best methods for solving linear equations

applications of linear equations in real life

differences between linear and nonlinear equations

introduction to matrix operations

AI Answer

🤖

solving systems of equations using matrices

Key Considerations for Solving Systems of Equations Using Matrices

  1. Matrix Representation: A system of linear equations can be represented in matrix form as AX = B, where:

    • A is the coefficient matrix.
    • X is the variable matrix (unknowns).
    • B is the constant matrix (results).
  2. Types of Matrices:

    • Square Matrix: If the number of equations equals the number of unknowns, you can use methods like the inverse matrix.
    • Rectangular Matrix: If there are more equations than unknowns or vice versa, consider using methods like row reduction or least squares.
  3. Methods to Solve:

    • Gaussian Elimination: This method involves row operations to reduce the matrix to row echelon form and then back substitution to find the solution.
    • Matrix Inversion: If A is invertible, you can find X by calculating X = A⁻¹B.
    • Cramer's Rule: This method uses determinants and is applicable only for square matrices.
  4. Determinants: For a system to have a unique solution, the determinant of matrix A must be non-zero. If the determinant is zero, the system may have no solutions or infinitely many solutions.

  5. Software Tools: For complex systems, consider using software tools like MATLAB, Python (NumPy), or graphing calculators that can handle matrix operations efficiently.

Recommendation: Start with Gaussian elimination for smaller systems, as it provides a clear step-by-step approach. For larger systems, using matrix inversion or software tools can save time and reduce errors. Always check the determinant to understand the nature of the solutions you might encounter.

Still looking for a better answer?

Get more comprehensive results summarized by our most cutting edge AI model. Plus deep Youtube search.

Try Gigabrain Pro for Free
gigaGigaBrain Logo
Support

Who are we?

Get API access

Leave us feedback

Contact us

Legal

Terms of Use

Privacy Policy

Shopping Tools

Product Comparisons

2023 GigaBrain Corporation
As an Amazon Associate, GigaBrain may earn a commission from qualifying purchases.