transcribe

Learn Linear Algebra

Derek Banas · 25m · transcribed Jul 2026
More from Derek Banas Business
𝕏 Share ▶ YouTube 📥 PDF 🤖 .md

Section Insights

# 0:00

Introduction to Linear Algebra

What is linear algebra and why is it important?

Linear algebra is a crucial branch of mathematics that applies to various fields such as chemistry, computer graphics, physics, and machine learning. It focuses on vectors, matrices, and linear transformations, enabling the modeling of relationships between multi-variable inputs and outputs.

  • Linear algebra is essential in many scientific and engineering fields.
  • It helps model complex relationships using vectors and matrices.
  • Understanding linear algebra is key to advancements in technology and data analysis.
# 5:00

Calculating Magnitude of a Vector

How do you calculate the magnitude of a vector?

The magnitude of a vector is calculated using the square root of the sum of the squares of its components. For example, for a vector with components 6 and 12, the magnitude is derived from the formula √(6² + 12²), which simplifies to 6√5.

  • Magnitude is a measure of the length of a vector.
  • The calculation involves squaring each component, summing them, and taking the square root.
  • Understanding magnitude is fundamental for vector manipulation.
# 10:01

Cross Product of Vectors

How do you compute the cross product of two vectors?

To compute the cross product of two vectors, you use the determinant of a matrix formed by their components. The resulting vector is perpendicular to both original vectors and can be calculated using specific formulas for each component.

  • The cross product results in a vector that is orthogonal to the original vectors.
  • It involves a systematic approach using determinants.
  • Understanding the cross product is vital for applications in physics and engineering.
# 15:02

Introduction to Matrices

What are matrices and how are they structured?

Matrices are rectangular arrays of numbers organized in rows and columns. They can represent systems of linear equations and are defined by their dimensions, such as 2x2 or 3x2. Understanding their structure is essential for solving linear systems.

  • Matrices are foundational in linear algebra for representing data and equations.
  • Their structure is defined by rows and columns.
  • Matrices facilitate the solution of linear equations through various methods.
# 20:03

Solving Systems of Equations with Matrices

How do you solve a system of equations using matrices?

To solve a system of equations using matrices, you first convert the leading coefficient of the first row into 1 by multiplying by its reciprocal. Then, you perform row operations to eliminate variables systematically until you reach a solution.

  • Matrix methods provide a systematic approach to solving linear equations.
  • Row operations are crucial for simplifying matrices.
  • Understanding these techniques enhances problem-solving skills in linear algebra.

Transcript

0:00 well hello internet and welcome to part one of my multi-part tutorial series on linear algebra so you may ask yourself well what is linear algebra it is an essential branch of mathematics in pretty much every field including chemistry computer graphics physics economics statistics machine learning engineering and it is used to model many types of different natural phenomena create unbreakable cryptography algorithms maximizes yield in

0:31 agriculture make stock market predictions it's used everywhere and most people are unaware of that and mainly it focuses on vectors matrices and linear transformations and what is great about it is that it allows you to model relationships between multi-variable inputs and outputs and what i'm going to do is sort of bounce around a lot in this video one thing that i'm going to do is i'm going to talk about some symbols so if you ever see a symbol like

1:03 this it's an r what it represents are all real numbers and if you ever see something that looks like this this symbol is saying that it represents an array of real numbers with three rows the rows always come first and two columns this symbol down here with a it's a v with a little arrow over top of it

1:34 is going to represent in this situation a two dimensional vector and if we should come in and throw in another value this would represent a three-dimensional vector and a vector is going to have a direction as well as a magnitude and now what i want to do is jump in

2:05 and talk about different ways that we can manipulate vectors now the very first thing i want to talk about is scaling a vector scaling a vector involves multiplying all values in a vector by a scalar which is just a value with magnitude but not a direction so let's say we have a vector and we want to scale it by two we are essentially just multiplying

2:36 it and you can see an example over here in a graph of exactly what would happen this is the original vector and this is the scaled vector if we wanted to add vectors let's go and let's just keep the 2 3 here and let's add a new vector y simply adding these together means that we will take the 2 and add it to the 4 and the 3 and add it to the 6 giving us a final

3:08 answer of 6 and 9. subtracting them works probably the way that you would guess that it would work in this situation we would just take the 4 subtract the 2 from it take the 6 and subtract the 3 from it to get a final answer of 2 and 3. now dot product is going to take two vectors and return a scalar remember scalar has magnitude no direction and you're going to designate that this

3:40 is a dot product by putting a dot inside of here like that and how you figure this out is you would take v x times y x plus v y times yy and this of course is going to work out to being 2 times 4 plus 3 times 6 and this would continue on if

4:11 you had a 3 dimensional vector and you'd get a final value of 8 plus 18 which is equal to 26. now one thing that is very useful in regards to dot product is it's going to allow us to find the angle between vectors so let's say we want to find this angle right down here d well what we would do is we would say cosine of d is equal to the dot product

4:41 of a and b and you can see the values of a right there and b right there divided by the magnitude of a times the magnitude of b well how do you calculate the magnitude well i'm going to show you how to calculate magnitude of a it is going to be equal to the square root of

5:12 a1 squared plus a2 squared and this is going to work out to be 6 squared plus 12 squared square root of that and then if we were to simplify this i'm going to take you through the whole process this is going to be 36 plus 144 which is equal to square root of 180 which we can simplify down

5:44 into the square root of 2 times 90 which we further can simplify down into 2 squared times 45 which is further simplified down to the square root of 2 squared times 3 times 15 which is then simplified even further into the square root of 2 squared times 3 squared

6:17 times 5 and then we can finally simplify this by getting rid of this two and this squared part multiply the two times the three which is going to equal six times the square root of five so that is the magnitude of a so you can go and practice and figure out the magnitude of b but what i'm going to do is just solve this okay so we're going to get our dot product here

6:48 so this is going to end up being 6 times 9 plus 12 times 8 over the magnitude of a which as i showed you is 6 times the square root of 5 times and the magnitude of b is the square root of 145 this is going to further simplify down to be 54 plus 96

7:22 and if we work these out this will be 13.416 times 12.042 which is going to be equal to 150 over 161.555 which is going to be equal to 0.9285 then what we can do is we can take the

7:54 arc cosine of 0.9285 and that is going to give us our final radian value for our angle d of 0.3804 if we multiply that then times 180 divided by pi or 57.296

8:25 which is that value that is going to tell us that the angle for d is 79 or 21.79 degrees all right so learned a whole bunch of things and that one little example and some points that are important to know is if cosine of 0 degrees is equal to 1 then what that tells you is that the vector a and b are pointing in the same direction

8:57 if however cosine of 90 degrees is equal to zero that means that those vectors are pointing in opposite directions and in the situation in which we had cosine of 180 degrees equal to negative one that means that those vectors are perpendicular and that moves us on to the cross product basically what it's going to do is it's going to take two vectors and then it's going to

9:28 return a vector that is at right angles to both and something else that's important to remember is that the if the cross product is zero that means that the vectors are going to be pointing in the same or opposite direction and the cross product is going to be at a maximum length when vectors a and b in this situation are at right angles so if you want to calculate the resulting vector using our two

9:59 provided vectors which is 2 three and four and b being equal to five six and four how you would do that is the resulting vector cx is going to be equal to a y b z minus a z b y and c y's value c representing the resulting

10:32 vector from this use of cross product is going to be a z b x minus a x b z and c z is going to be equal to a x b y minus a y b x and if we want to go and solve this the resulting vector c is going to be three times four minus

11:04 four times six and four times five minus 2 times 4 and 2 times 6 minus 3 times 5 which is going to give us a final vector of negative 12 12 and negative three and you can see that plot right there on the right side of your

11:35 screen and this right here this blue line is going to represent vector a this one right here is going to represent vector b and this one right here sticking out really far is vector c something else that is important before i move on to matrices is that a unit vector is going to have a magnitude of 1. so let's say we have

12:07 a vector to demonstrate this and i'm going to leave it be a in this situation but i'm going to give it different values so it's going to be 3 and 4 in this situation well if i want to go and get the magnitude of this this is going to work out to be three squared plus four squared just as i had shown you a couple seconds ago which works out to be nine plus sixteen

12:38 which is equal to the square root of 25 which of course is equal to 5. all right to find the unit vector what you need to do is to divide both of these parts of our vector by the magnitude and you're going to represent the unit vector by changing it to a hat so this is going to be equal to 3 over 5 and 4 over

13:10 5. but how do we verify that this is indeed a unit vector well if we go and get the magnitude of it we're going to find out that it has a value of one and so let's verify so let's say we have three over five and this is going to be squared plus four over five also squared square root of course and this is going to work out to being

13:40 9 over 25 plus 16 over 25 which is equal to the square root of 25 over 25 which i'm sure you know is equal to 1. all right so we did a whole bunch of different things here with vectors and now i want to give just a brief overview of matrices so that you can see how important they are okay so a matrix

14:13 is just an array of numbers or it could just be an array of number all right and this is what we would call a one by one array and what these matrices are going to allow us to do is to organize data in a way that makes it easy to work with that data and previously i showed how to find values for x and y using matrices and i'm going to kind of review that right now but if you think about it

14:44 whenever we are in my algebra tutorial or using basic algebra techniques it's not that hard to go and solve maybe two or three equations however it is very hard to say solve 100 equations or a thousand equations and that is one of the benefits of linear algebra in general and working with matrices so i showed you a one by one matrix here is an example of a 2 by 2 matrix

15:16 and again we define our rows first then our columns and then this would be an example say of a 3 by three or three by two matrix all right so this is three by two again rows then columns now a linear system is a system of linear equations with unknown variables that are linear meaning at most they are raised to the power of one

15:48 okay so you're not going to be seeing x squared and such only x so what i want to do here is i'm just going to solve an equation using substitution as you may be aware of and then i'll compare it to solving it using matrices so that you can see the difference so let's say we have 2x plus 2y is equal to 10 and we have 3 x plus 2y equal to 12. and i want to solve this

16:19 using substitution well what i can do is i can say 2x is equal to 10 minus 2y of course we move this to the right side by subtracting it and then what i'm going to do is i'm going to divide both of the values on the right side by 2 so that i can get x is equal to 10 over 2 minus 2 y over 2. and if i go and simplify that that's

16:49 going to give me x is equal to 5 minus y and then what i can do is i can transpose everywhere i have an x over in this formula with this part and then solve for to find the value of y so this will become 3 and then 5 minus y plus 2 y is equal to 12 if this if i multiply this through is

17:19 going to give me 15 minus 3y plus 2y is equal to 12. and this is going to give me 15 minus y is equal to 12 and of course i can then find the value of y is equal to 3 and then i can take this value of y plug it in here and find out that the value for x is equal to 2. all right and you could then verify by plugging in the value of

17:50 2 up here and the value of y right here up here and see that this is indeed true but i want to do the same exact thing now using matrices a couple things you need to know before you proceed with doing so now this well you know what i'm going to bring this back and i'm going to delete just this part all right so we have our equations here now there are different types of matrices if i was to go and create a matrix

18:23 and i would use this coefficient and this coefficient right here how i would line them up is i would put 2 and 2 right there then i could take the 3 and the 2 and put it right there and this is what we call a coefficient matrix well but i'm leaving behind my 10 and my 12 and i can't solve the system of equations without those so i'm going to create two and two and three and two

18:50 however i'm going to put my 10 up here and my 12 right there and draw a line between it and this is what we call an augmented matrix all right because we have everything here now that we can use to solve our equations another thing you need to know is there's something that is called an identity matrix and all that it is is it is going to have ones in the diagonals and zeros every place else so that is an

19:20 identity matrix and this is an identity matrix as well okay so that's the difference or that's exactly what an identity matrix is now why i told you about identity matrixes is to solve system equations you do so with matrices by converting the coefficient matrix into an identity matrix and the values that are left on the right are your values for x and y so

19:52 i'm going to show you exactly how to solve this right now so what we are simply going to do is i have my matrix right here and the very first thing you want to do whenever you are trying to solve system of equation using matrices is you want to convert a11 into a1 a11 is right here row one column one okay so that's where that comes from and how you do that is by taking every value in row 1 and multiplying it

20:24 by the reciprocal of the value of a11 or 1 over the value of a11 or whatever you want to think of it as and then you're going to put that value in row one okay so what's going to happen here and i decided to move this over we are going to go and get to multiply it times the reciprocal of two which is one half do the same exact thing once again for the second row or second

20:56 column and then also do it for 10 times one half we're not going to do anything on the bottom though those values are going to stay exactly as they are now if we do this this is going to give us a value here with our new matrix of one and five and three two and twelve exactly like that well now what we need to do is we need to convert a two one

21:26 or the value in the second row first column into a zero how do we do that we use an equation again and this new equation is going to be row one values times negative a 2 1 like this plus r 2 and put the result in r 2. so if we should do this what we would end up getting is we're going to have the same values here

21:57 on the top so 1 1 and 5. then we're going to have the value of in row 1 which is 1 times negative 3 and we're going to run out of space here i can tell so i'm just going to get rid of that plus 3 and then we're going to have again row 1 times negative 3 and that plus 2 and then we're going to have 5 times negative 3

22:30 plus 12 and if we do all of that that is going to give us exactly what we're looking for which is one and a zero and one and a negative one and a five and a three all right so the next thing we need to do is convert a two two into a one and the formula we're going to use is this one right here again except we're going to replace the ones with the twos in this situation

23:02 so i'm going to do that up here so the new formula is going to be everything in row 2 divided by the value in a 2 2 and put it inside of row 2. and if we do that what we're going to end up having is zero divided by negative one negative one divided by negative one and negative three divided by negative one

23:32 and then we'll have a one and a one and a five and this is going to end up being equal to one one and five and zero one and three and the only thing left to do now is to convert this up here into a zero and how are we going to do that we're going to use this formula which is row 2 times negative a 1 2 plus r

24:03 one and put the result in r one and if we do that we're gonna end up having zero times negative one plus one zero down here and one times negative one plus one one over here and three times negative one plus five and three stays down here and that gives us a final answer for our

24:34 matrix problem of 1 0 0 1 2 and 3 and what that tells us is that x has a value of 2 and y has a value of 3. and there you go and that is how you solve system of equations with matrices and in upcoming videos i'm going to show you how to do a so much more so like always please leave your questions and comments down below otherwise till next time

Summary

This video is the first part of a tutorial series on linear algebra, covering foundational concepts such as vectors, matrices, and their operations. The presenter explains how linear algebra is utilized across various fields, including machine learning and cryptography, and demonstrates vector manipulation techniques like scaling, addition, and the dot product, as well as an introduction to matrices and solving systems of equations.

- Linear algebra is crucial in many fields, including physics, economics, and machine learning.
- Vectors have both direction and magnitude; operations on vectors include scaling, addition, and subtraction.
- The dot product of two vectors results in a scalar and can be used to find the angle between them.
- The magnitude of a vector is calculated using the square root of the sum of its components squared.
- The cross product results in a vector perpendicular to the original vectors and is maximal when the vectors are at right angles.
- Matrices are arrays of numbers that simplify the organization and solving of systems of linear equations.
- An augmented matrix includes coefficients and constants, allowing for the application of matrix operations to find variable values.
- The identity matrix is a special matrix used in solving linear equations by transforming the coefficient matrix.

Questions Answered

What is linear algebra and why is it important?

Linear algebra is a crucial branch of mathematics that applies to various fields such as chemistry, computer graphics, physics, and machine learning. It focuses on vectors, matrices, and linear transformations, enabling the modeling of relationships between multi-variable inputs and outputs.

How do you calculate the magnitude of a vector?

The magnitude of a vector is calculated using the square root of the sum of the squares of its components. For example, for a vector with components 6 and 12, the magnitude is derived from the formula √(6² + 12²), which simplifies to 6√5.

How do you compute the cross product of two vectors?

To compute the cross product of two vectors, you use the determinant of a matrix formed by their components. The resulting vector is perpendicular to both original vectors and can be calculated using specific formulas for each component.

What are matrices and how are they structured?

Matrices are rectangular arrays of numbers organized in rows and columns. They can represent systems of linear equations and are defined by their dimensions, such as 2x2 or 3x2. Understanding their structure is essential for solving linear systems.

How do you solve a system of equations using matrices?

To solve a system of equations using matrices, you first convert the leading coefficient of the first row into 1 by multiplying by its reciprocal. Then, you perform row operations to eliminate variables systematically until you reach a solution.

© transcribe · For agents Built with care and craft by Gokul Rajaram