Vectors | Chapter 1, Essence of linear algebra

3Blue1Brown
5 Aug 201609:52

Summary

TLDRThe video script introduces vectors as the foundational concept in linear algebra, exploring their interpretations from physics, computer science, and mathematics perspectives. It emphasizes the geometric view of vectors as arrows in a coordinate system, rooted at the origin, and their numerical representation as ordered lists or tuples of numbers. The script explains vector addition, a key operation in linear algebra, through the tip-to-tail method and its numerical equivalent, as well as scalar multiplication, which involves stretching or compressing vectors. The summary highlights the importance of understanding these operations for applications in data analysis, physics, and computer graphics, and sets the stage for further exploration of vector concepts like span, bases, and linear dependence.

Takeaways

  • 📐 **Vectors Defined**: The script introduces vectors as fundamental to linear algebra, with three perspectives: physics, computer science, and mathematics.
  • 🏋️‍♂️ **Physics Perspective**: In physics, vectors are arrows in space, defined by their magnitude and direction, with position flexibility.
  • 💻 **Computer Science Perspective**: From a computer science viewpoint, vectors are ordered lists of numbers, where the order is significant.
  • 🔢 **Mathematician's Perspective**: Mathematicians generalize vectors as entities that support vector addition and scalar multiplication, with an abstract approach.
  • 📊 **Vector Addition**: Vectors are added by aligning their tails and drawing a new vector from the first tail to the second tip, representing the combined movement.
  • 🔄 **Scalar Multiplication**: Multiplying a vector by a scalar (number) stretches or compresses it, with negative scalars reversing direction.
  • 📈 **Geometric Interpretation**: The script emphasizes visualizing vectors as arrows in a coordinate system, rooted at the origin for clarity.
  • 📝 **Coordinate System**: Coordinates are pairs or triplets of numbers that provide instructions for moving from the origin to the vector's tip in 2D or 3D space.
  • 🔗 **Connection Between Views**: Linear algebra's power lies in the ability to switch between the geometric and numerical representations of vectors.
  • 🌐 **Applications**: The script highlights linear algebra's utility in data analysis, physics, and computer graphics for pattern recognition and spatial description.

Q & A

  • What are the three perspectives on vectors mentioned in the script?

    -The script mentions three perspectives on vectors: the physics student perspective, the computer science student perspective, and the mathematician's perspective.

  • How does a physics student typically view vectors?

    -From a physics student's perspective, vectors are arrows pointing in space, defined by their length and direction, and can be moved around without changing their identity.

  • What is the computer science perspective on vectors?

    -In computer science, vectors are viewed as ordered lists of numbers, where the order of the numbers is significant.

  • How does a mathematician generalize the concept of vectors?

    -Mathematicians generalize vectors as anything that allows for the operations of vector addition and multiplication by a number, which are abstracted away from their specific representations.

  • Why are vector addition and multiplication by numbers important in linear algebra?

    -Vector addition and multiplication by numbers are fundamental operations in linear algebra because they form the basis for understanding more complex linear algebra concepts.

  • How is a vector's position in a coordinate system described?

    -A vector's position in a coordinate system is described by a pair of numbers in two dimensions or a triplet in three dimensions, which give instructions on how to move from the origin to the vector's tip.

  • What is the geometric interpretation of vector addition?

    -The geometric interpretation of vector addition involves placing the tail of the second vector at the tip of the first and then drawing a new vector from the tail of the first to the tip of the second, representing their sum.

  • What is the numerical representation of vector addition?

    -In numerical terms, vector addition involves matching corresponding components of the vectors and adding them together.

  • What does it mean to multiply a vector by a number?

    -Multiplying a vector by a number, or scalar multiplication, involves stretching or compressing the vector by that factor, or reversing its direction if the number is negative.

  • Why is the ability to switch between different perspectives of vectors important?

    -The ability to switch between different perspectives of vectors is important because it allows for the translation of concepts between the geometric and numerical domains, which is crucial for applications in data analysis, physics, and computer graphics.

  • What are some upcoming concepts in linear algebra that will be discussed after vectors?

    -Some upcoming concepts in linear algebra include span, bases, and linear dependence, which will be explored in subsequent videos.

Outlines

00:00

📐 Introduction to Vectors in Linear Algebra

This paragraph introduces vectors as the fundamental building block of linear algebra, explaining three perspectives on what vectors represent. From a physics student's viewpoint, vectors are arrows in space defined by their length and direction. In computer science, vectors are ordered lists of numbers, exemplified by a house pricing model where each house is a pair of numbers representing square footage and price. Mathematicians generalize these views, defining vectors as entities that can be added together and multiplied by numbers, operations that will be further discussed in the video. The paragraph emphasizes the importance of vector addition and multiplication by numbers in linear algebra and suggests thinking of vectors as arrows within a coordinate system, typically rooted at the origin. The concept of coordinates for vectors in two and three dimensions is also introduced, explaining how each pair or triplet of numbers corresponds to a unique vector.

05:00

🔢 Vector Operations: Addition and Scalar Multiplication

The second paragraph delves into the operations of vector addition and scalar multiplication. Vector addition is defined by the 'tip-to-tail' method, where the sum of two vectors is found by placing the tail of the second vector at the tip of the first and drawing a new vector from the tail of the first to the tip of the second. This operation is visualized as representing movements in space, analogous to adding numbers on a number line. The numerical representation of vector addition is also discussed, where coordinates are added component-wise. Scalar multiplication, or scaling, is explained through examples, showing how multiplying a vector by a number stretches, squishes, or reverses the vector. The paragraph concludes by emphasizing the importance of these operations in linear algebra and the utility of being able to translate between the geometric and numerical representations of vectors. The practical applications of these concepts in data analysis, physics, and computer graphics are also highlighted.

Mindmap

Keywords

💡Vector

A vector is a fundamental concept in linear algebra, representing both a direction and a magnitude in space. In the video, vectors are introduced from three perspectives: as arrows in space from a physics student's view, as ordered lists of numbers in a computer science context, and as abstract entities that can be added and scaled in a mathematician's framework. The video emphasizes the vector's role in linear algebra, highlighting its importance in operations such as addition and multiplication by a scalar.

💡Dimension

Dimension refers to the number of coordinates needed to specify a point in a space. In the script, two-dimensional vectors are mentioned as living in a flat plane, while three-dimensional vectors exist in the space we inhabit. The concept is crucial for understanding the structure and properties of vectors and their operations within different spaces.

💡Coordinate System

A coordinate system is a grid of intersecting lines or planes used to specify the position of points in a space. The video describes the xy-plane with an origin at the intersection of the x-axis and y-axis, which serves as the starting point for vectors. Understanding the coordinate system is essential for visualizing and calculating vector operations.

💡Origin

The origin is the point of intersection in a coordinate system, typically considered as the starting point for vectors. In the video, it is mentioned that in linear algebra, vectors are often rooted at the origin, which contrasts with the physics perspective where vectors can be positioned anywhere in space.

💡Vector Addition

Vector addition is the operation of combining two vectors to produce a third vector. The video explains this through the 'tip-to-tail' method, where one vector is positioned so that its tail is at the tip of the other, and a new vector is drawn from the tail of the first to the tip of the second. This operation is central to understanding how vectors represent movements or changes in space.

💡Scalar Multiplication

Scalar multiplication involves multiplying a vector by a number, or scalar, to stretch or compress it. The video illustrates this by examples such as doubling the length of a vector or reducing it to one-third. This operation is key to understanding how vectors can be scaled, which is a fundamental concept in linear algebra.

💡Components

Components of a vector refer to the individual elements of its ordered list representation. In the video, the components of a vector are the numbers that specify its position in a coordinate system. The script uses the example of a two-dimensional vector with coordinates (1, 2) to explain how vector operations are performed numerically.

💡Scalar

A scalar is a number that can be used to scale a vector, changing its length without affecting its direction. The video explains that scalars are used in operations like scalar multiplication, where they can stretch, compress, or reverse the direction of a vector. Scalars are essential in linear algebra for their role in vector transformations.

💡Abstraction

Abstraction in the context of the video refers to the mathematician's approach to vectors, where they are considered as entities that can be added and scaled, independent of their representation. The video suggests that this abstract view is important for understanding the general principles of linear algebra, which can then be applied to various representations of vectors.

💡Linear Algebra

Linear algebra is a branch of mathematics that deals with linear equations, linear transformations, and vector spaces. The video emphasizes that linear algebra revolves around operations like vector addition and scalar multiplication, which are fundamental to understanding the subject. The script also highlights the practical applications of linear algebra in fields like data analysis, physics, and computer graphics.

💡Span

Although not explicitly defined in the script, the concept of span is mentioned as a topic to be covered in future videos. Span refers to the set of all possible linear combinations of a given set of vectors, which is a fundamental concept in understanding the structure of vector spaces. The video hints that span will be important for understanding how vectors can be combined to generate new vectors within a space.

Highlights

Vectors are fundamental to linear algebra, with three distinct perspectives: physics, computer science, and mathematics.

In physics, vectors are arrows in space defined by length and direction.

Computer science views vectors as ordered lists of numbers, crucial for analytics and modeling.

Mathematicians generalize vectors for operations like addition and scalar multiplication.

Vectors in linear algebra are often rooted at the origin, differing from the physics perspective.

Coordinate systems, like the xy-plane, are essential for understanding vector operations.

The coordinates of a vector provide instructions from the origin to its tip.

Vectors are distinguished from points by writing their coordinates vertically with square brackets.

In three dimensions, vectors are associated with ordered triplets of numbers.

Vector addition is defined by the tip-to-tail method, representing combined movements.

Vector addition numerically involves matching terms and adding them together.

Scalar multiplication stretches, squishes, or reverses the direction of a vector, called scaling.

In numerical terms, scalar multiplication corresponds to multiplying each vector component by the scalar.

Linear algebra's usefulness lies in the ability to translate between geometric and numerical vector representations.

Linear algebra provides a visual way to conceptualize data and describe space for various applications.

Upcoming videos will explore concepts like span, bases, and linear dependence in the context of vectors.

Transcripts

play00:10

The fundamental, root-of-it-all building block for linear algebra is the vector.

play00:15

So it's worth making sure that we're all on the same page about what exactly a vector is.

play00:20

You see, broadly speaking, there are three distinct but related ideas about vectors,

play00:24

which I'll call the physics student perspective,

play00:26

the computer science student perspective, and the mathematician's perspective.

play00:30

The physics student perspective is that vectors are arrows pointing in space.

play00:34

What defines a given vector is its length and the direction it's pointing,

play00:38

but as long as those two facts are the same, you can move it all around,

play00:41

and it's still the same vector.

play00:44

Vectors that live in the flat plane are two-dimensional,

play00:46

and those sitting in broader space that you and I live in are three-dimensional.

play00:51

The computer science perspective is that vectors are ordered lists of numbers.

play00:55

For example, let's say you were doing some analytics about house prices,

play00:59

and the only features you cared about were square footage and price.

play01:03

You might model each house with a pair of numbers,

play01:05

the first indicating square footage and the second indicating price.

play01:09

Notice the order matters here.

play01:12

In the lingo, you'd be modeling houses as two-dimensional vectors,

play01:15

where in this context, vector is pretty much just a fancy word for list,

play01:19

and what makes it two-dimensional is the fact that the length of that list is two.

play01:25

The mathematician, on the other hand, seeks to generalize both these views,

play01:29

basically saying that a vector can be anything where there's a sensible notion of adding

play01:33

two vectors and multiplying a vector by a number,

play01:36

operations that I'll talk about later on in this video.

play01:39

The details of this view are rather abstract, and I actually think it's healthy to ignore

play01:43

it until the last video of this series, favoring a more concrete setting in the interim.

play01:48

But the reason I bring it up here is that it hints at the

play01:51

fact that the ideas of vector addition and multiplication by

play01:54

numbers will play an important role throughout linear algebra.

play01:58

But before I talk about those operations, let's just settle in

play02:00

on a specific thought to have in mind when I say the word vector.

play02:04

Given the geometric focus that I'm shooting for here,

play02:07

whenever I introduce a new topic involving vectors,

play02:10

I want you to first think about an arrow, and specifically,

play02:13

think about that arrow inside a coordinate system, like the xy-plane,

play02:17

with its tail sitting at the origin.

play02:19

This is a little bit different from the physics student perspective,

play02:22

where vectors can freely sit anywhere they want in space.

play02:25

In linear algebra, it's almost always the case

play02:27

that your vector will be rooted at the origin.

play02:30

Then, once you understand a new concept in the context of arrows in space,

play02:34

we'll translate it over to the list of numbers point of view,

play02:37

which we can do by considering the coordinates of the vector.

play02:41

Now, while I'm sure that many of you are already familiar with this coordinate system,

play02:45

it's worth walking through explicitly, since this is where all of the important

play02:48

back and forth happens between the two perspectives of linear algebra.

play02:52

Focusing our attention on two dimensions for the moment,

play02:55

you have a horizontal line, called the x-axis, and a vertical line, called the y-axis.

play03:00

The place where they intersect is called the origin,

play03:02

which you should think of as the center of space and the root of all vectors.

play03:06

After choosing an arbitrary length to represent one,

play03:08

you make tick marks on each axis to represent this distance.

play03:12

When I want to convey the idea of 2D space as a whole,

play03:15

which you'll see comes up a bit in the way, but right now they'll get a

play03:20

little bit in the way.

play03:22

The coordinates of a vector is a pair of numbers that basically gives

play03:25

instructions for how to get from the tail of that vector at the origin to its tip.

play03:30

The first number tells you how far to walk along the x-axis,

play03:34

positive numbers indicating rightward motion, negative numbers indicating leftward

play03:38

motion, and the second number tells you how far to walk parallel to the y-axis

play03:42

after that, positive numbers indicating upward motion,

play03:45

and negative numbers indicating downward motion.

play03:48

To distinguish vectors from points, the convention is to write

play03:51

this pair of numbers vertically with square brackets around them.

play03:56

Every pair of numbers gives you one and only one vector,

play03:59

and every vector is associated with one and only one pair of numbers.

play04:04

What about in three dimensions?

play04:06

Well, you add a third axis, called the z-axis,

play04:08

which is perpendicular to both the x and y-axes, and in this case,

play04:12

each vector is associated with ordered triplet of numbers.

play04:16

The first tells you how far to move along the x-axis,

play04:19

the second tells you how far to move parallel to the y-axis,

play04:23

and the third one tells you how far to then move parallel to this new z-axis.

play04:28

Every triplet of numbers gives you one unique vector in space,

play04:31

and every vector in space gives you exactly one triplet of numbers.

play04:36

All right, so back to vector addition and multiplication by numbers.

play04:40

After all, every topic in linear algebra is going to center around these two operations.

play04:45

Luckily, each one's pretty straightforward to define.

play04:48

Let's say we have two vectors, one pointing up and a little to the right,

play04:51

and the other one pointing right and down a bit.

play04:53

To add these two vectors, move the second one so

play04:56

that its tail sits at the tip of the first one.

play05:00

Then, if you draw a new vector from the tail of the first one to

play05:04

where the tip of the second one sits, that new vector is their sum.

play05:12

This definition of addition, by the way, is pretty much the only time

play05:15

in linear algebra where we let vectors stray away from the origin.

play05:19

Now, why is this a reasonable thing to do?

play05:21

Why this definition of addition and not some other one?

play05:25

Well, the way I like to think about it is that each vector represents a certain movement,

play05:29

a step with a certain distance and direction in space.

play05:33

If you take a step along the first vector, then take a step in the direction

play05:37

and distance described by the second vector, the overall effect is just

play05:41

the same as if you moved along the sum of those two vectors to start with.

play05:45

You could think about this as an extension of

play05:47

how we think about adding numbers on a number line.

play05:50

One way that we teach kids to think about this, say with 2 plus 5,

play05:53

is to think of moving two steps to the right followed by another five steps to the right.

play05:57

The overall effect is the same as if you just took seven steps to the right.

play06:02

In fact, let's see how vector addition looks numerically.

play06:06

The first vector here has coordinates 1, 2, and the second one has coordinates 3,

play06:11

negative 1.

play06:14

When you take the vector sum using this tip-to-tail method,

play06:17

you can think of a four-step path from the origin to the tip of the second vector.

play06:21

Walk 1 to the right, then 2 up, then 3 to the right, then 1 down.

play06:26

Reorganizing these steps so that you first do all of the rightward motion,

play06:31

then do all the vertical motion, you can read it as saying first

play06:35

move 1 plus 3 to the right, then move 2 minus 1 up.

play06:40

So the new vector has coordinates 1 plus 3 and 2 plus negative 1.

play06:45

In general, vector addition in this list of numbers conception

play06:49

looks like matching up their terms and adding each one together.

play06:54

The other fundamental vector operation is multiplication by a number.

play06:58

Now this is best understood just by looking at a few examples.

play07:01

If you take the number 2 and multiply it by a given vector,

play07:04

it means you stretch out that vector so that it's two times as long as when you started.

play07:10

If you multiply that vector by, say, one-third,

play07:13

it means you squish it down so that it's one-third the original length.

play07:17

When you multiply it by a negative number, like negative 1.8,

play07:21

then the vector first gets flipped around, then stretched out by that factor of 1.8.

play07:27

This process of stretching or squishing or sometimes reversing the direction of

play07:31

a vector is called scaling, and whenever you catch a number like two or one-third

play07:36

or negative 1.8 acting like this, scaling some vector, you call it a scalar.

play07:41

In fact, throughout linear algebra, one of the main things that numbers do is scale

play07:46

vectors, so it's common to use the word scalar pretty much interchangeably with the word

play07:50

number.

play07:52

Numerically, stretching out a vector by a factor of, say, 2,

play07:55

corresponds with multiplying each of its components by that factor, 2.

play08:00

So in the conception of vectors as lists of numbers,

play08:03

multiplying a given vector by a scalar means multiplying each one of those

play08:07

components by that scalar.

play08:10

You'll see in the following videos what I mean when I say linear algebra topics tend to

play08:14

revolve around these two fundamental operations,

play08:17

vector addition and scalar multiplication.

play08:19

And I'll talk more in the last video about how and why the

play08:22

mathematician thinks only about these operations,

play08:25

independent and abstracted away from however you choose to represent vectors.

play08:29

In truth, it doesn't matter whether you think about vectors as fundamentally being arrows

play08:33

in space, like I'm suggesting you do, that happen to have a nice numerical

play08:37

representation, or fundamentally as lists of numbers that happen to have a nice geometric

play08:41

interpretation.

play08:42

The usefulness of linear algebra has less to do with either one of these

play08:46

views than it does with the ability to translate back and forth between them.

play08:50

It gives the data analyst a nice way to conceptualize many lists

play08:53

of numbers in a visual way, which can seriously clarify patterns

play08:57

in data and give a global view of what certain operations do.

play09:00

And on the flip side, it gives people like physicists and computer

play09:06

graphics programmers a language to describe space and the computer.

play09:12

When I do math-y animations, for example, I start by thinking about what's

play09:15

actually going on in space, and then get the computer to represent things numerically,

play09:20

thereby figuring out where to place the pixels on the screen.

play09:23

And doing that usually relies on a lot of linear algebra understanding.

play09:27

So there are your vector basics, and in the next video I'll start getting into some

play09:31

pretty neat concepts surrounding vectors, like span, bases, and linear dependence.

play09:35

See you then!

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
Vector BasicsLinear AlgebraPhysics PerspectiveComputer ScienceMathematical AbstractionVector AdditionScalar MultiplicationCoordinate SystemsData AnalyticsComputer Graphics
Benötigen Sie eine Zusammenfassung auf Englisch?