﻿1
00:00:00,550 --> 00:00:01,390
‫Welcome back.

2
00:00:01,870 --> 00:00:12,460
‫And now to make the course complete, let's also find the eigenvectors, let's choose our polls or our

3
00:00:12,460 --> 00:00:16,360
‫eigenvalues to be like this.

4
00:00:16,510 --> 00:00:24,080
‫Lamda one equals minus one and Lunda two equals minus two.

5
00:00:24,880 --> 00:00:31,060
‫And by the way, I don't put Tilba here anymore because we have established that Lunda Tilde equals

6
00:00:31,240 --> 00:00:31,750
‫Lunda.

7
00:00:31,760 --> 00:00:38,860
‫So I'm just going to put Lunda here so you can see that you have chosen two polls that are real polls.

8
00:00:39,670 --> 00:00:44,890
‫They don't have an imaginary part, so you don't have oscillation in your system.

9
00:00:45,730 --> 00:00:54,850
‫And using the formulas that you had previously derived, you will find that your K one constant will

10
00:00:54,850 --> 00:01:01,060
‫be minus two in your K two constant will be minus three.

11
00:01:02,060 --> 00:01:06,860
‫I know that because this is what I used in this course for the drone.

12
00:01:07,860 --> 00:01:18,990
‫And so these are our two eigenvalues now, our two poles or two eigenvalues, and that also means that

13
00:01:18,990 --> 00:01:25,680
‫we have to eigenvectors, we have one eigenvector for each eigenvalue.

14
00:01:26,580 --> 00:01:33,950
‫So let's first find the eigenvector for this eigenvalue, Lunda one equals minus one.

15
00:01:34,920 --> 00:01:37,650
‫So we're going to take this a matrix here.

16
00:01:38,250 --> 00:01:47,970
‫And since we know our K one and two values, then this matrix will look like this one is minus two and

17
00:01:47,970 --> 00:01:50,970
‫K two is minus three like this.

18
00:01:51,840 --> 00:02:00,960
‫Then we're going to say that our eigenvector looks like this X and Y, they're like unknown variables.

19
00:02:01,860 --> 00:02:09,300
‫And then we take our eigenvalue, which is minus one, and we put it into this matrix here.

20
00:02:10,610 --> 00:02:19,760
‫Minus one here and minus one here and then zero here, and then again, your eigenvector looks like

21
00:02:19,760 --> 00:02:21,460
‫this X and Y.

22
00:02:22,250 --> 00:02:30,110
‫So if you write out this equation, if you multiply the matrices by their vectors, then you will have

23
00:02:30,110 --> 00:02:31,520
‫this kind of relationship.

24
00:02:32,690 --> 00:02:43,850
‫You will have Y equals minus X. That is, if you multiply the first row of this matrix by this vector,

25
00:02:44,420 --> 00:02:50,960
‫then you will get Y and then you multiply this row by this vector, then you will get minus X.

26
00:02:51,710 --> 00:02:59,870
‫And then if you do the same thing with the second row, then you will have here minus two X, minus

27
00:02:59,960 --> 00:03:06,390
‫three Y equals and then you will have minus Y.

28
00:03:07,550 --> 00:03:13,850
‫So basically you're the know how one of your elements depends on the other one.

29
00:03:13,850 --> 00:03:21,020
‫You have the relationship, you know that you're Y equals minus X. You can do the same thing with this

30
00:03:21,020 --> 00:03:23,150
‫one, but you will get the same result.

31
00:03:23,990 --> 00:03:36,920
‫You will have two Y equals minus two X and then again you will have Y equals minus two divided by two

32
00:03:37,100 --> 00:03:38,930
‫and then you will have X here.

33
00:03:40,010 --> 00:03:51,500
‫So Y equals minus X because this thing here will be minus one, and so your first eigenvector, which

34
00:03:51,500 --> 00:04:01,790
‫is X and Y, can be written like this if you choose your X to be one, I'm going to put here one.

35
00:04:02,240 --> 00:04:07,070
‫Then since your Y equals minus X, then Y will be minus one.

36
00:04:08,180 --> 00:04:18,120
‫So in fact, with eigenvectors, the real numeric elements in eigenvectors don't matter that much.

37
00:04:18,140 --> 00:04:24,530
‫What matters is how one element depends on another element.

38
00:04:25,460 --> 00:04:31,670
‫So if I had chosen X to be two, then my Y would have been minus two.

39
00:04:32,900 --> 00:04:40,790
‫So like this and of course, I can also rewrite it like this, I can have two as a constant here and

40
00:04:40,790 --> 00:04:42,990
‫then again I will have one and minus one.

41
00:04:43,370 --> 00:04:47,060
‫So eigenvectors are more about the direction.

42
00:04:47,980 --> 00:04:55,720
‫And the direction is given to you when you find the relationship of one vector element with respect

43
00:04:55,720 --> 00:04:57,290
‫to another vector element.

44
00:04:58,300 --> 00:05:02,070
‫So let's check if this solution is correct.

45
00:05:02,320 --> 00:05:04,990
‫So let's take this original.

46
00:05:06,080 --> 00:05:07,490
‫Relationship here.

47
00:05:07,700 --> 00:05:18,550
‫And let's see if it's correct, this is your a matrix and then this is your eigenvector one minus one,

48
00:05:19,220 --> 00:05:24,540
‫and then that needs to equal and then your eigenvalue was minus one.

49
00:05:25,250 --> 00:05:28,070
‫So this would be your matrix here.

50
00:05:28,280 --> 00:05:33,730
‫And again, you multiply it by the same eigenvector one minus one.

51
00:05:34,820 --> 00:05:40,400
‫And so if you perform this matrix vector multiplication, then you will have it like this.

52
00:05:41,030 --> 00:05:43,580
‫Minus one equals minus one.

53
00:05:44,710 --> 00:05:47,980
‫And then minus two.

54
00:05:49,030 --> 00:05:52,660
‫Plus three equals.

55
00:05:53,670 --> 00:05:54,300
‫One.

56
00:05:55,850 --> 00:06:04,010
‫Because here you take minus two, you multiply it by one and then plus minus three times minus one.

57
00:06:04,370 --> 00:06:05,840
‫So that will give you this.

58
00:06:06,770 --> 00:06:11,250
‫And we'll hear minus one times, minus one will give you one.

59
00:06:12,230 --> 00:06:15,650
‫And in the end, you will have minus two.

60
00:06:15,650 --> 00:06:18,410
‫Plus three equals one, so one equals one.

61
00:06:18,830 --> 00:06:22,100
‫So indeed, this relationship holds.

62
00:06:23,220 --> 00:06:31,160
‫And now let's take this eigenvector where we chose our ex to be two and therefore our wives minus two.

63
00:06:32,190 --> 00:06:33,840
‫So this is our matrix.

64
00:06:34,500 --> 00:06:43,410
‫Now we have two here, minus two here equals minus one zero zero and minus one here.

65
00:06:44,410 --> 00:06:55,830
‫Multiplied by two and minus two here, and so again, if you perform the multiplication, then the first

66
00:06:55,840 --> 00:07:02,230
‫rule multiplications will give you minus two equals minus two.

67
00:07:03,320 --> 00:07:14,300
‫And then the second row multiplications will give you minus two times two plus minus three times minus

68
00:07:14,300 --> 00:07:14,840
‫two.

69
00:07:16,010 --> 00:07:18,110
‫And that should equal.

70
00:07:19,140 --> 00:07:23,490
‫Minus one times, minus two.

71
00:07:24,790 --> 00:07:35,470
‫So let's see here you have minus four and then plus six equals two and minus four, plus six equals

72
00:07:35,470 --> 00:07:35,680
‫two.

73
00:07:35,680 --> 00:07:37,420
‫So two equals two.

74
00:07:38,410 --> 00:07:47,740
‫You see now your relationship is also correct, even though you have different numbers for the eigenvector

75
00:07:47,740 --> 00:07:48,450
‫elements.

76
00:07:49,060 --> 00:07:54,890
‫So when we talk about eigenvectors, the elements themselves don't matter.

77
00:07:54,910 --> 00:08:02,490
‫What matters is their direction, how one element depends on the other element.

78
00:08:03,490 --> 00:08:06,030
‫OK, so that was for LAMDA one.

79
00:08:06,550 --> 00:08:11,080
‫But now let's find an eigenvector for LAMDA to.

80
00:08:12,570 --> 00:08:22,440
‫Let's find out how one element of the eigenvector depends on another element of the eigenvector when

81
00:08:22,830 --> 00:08:27,660
‫our eigenvalue is minus two now, not minus one, but minus two.

82
00:08:28,590 --> 00:08:36,360
‫So this is the Matrix times the eigenvector and now your eigenvalue is minus two.

83
00:08:36,360 --> 00:08:41,460
‫So I'm going to put minus two here and minus two here and then zero here and zero here.

84
00:08:42,270 --> 00:08:45,470
‫And again, I multiplied by the eigenvector.

85
00:08:46,620 --> 00:08:52,830
‫And from here you can see that your Y depends on X like this.

86
00:08:52,830 --> 00:08:57,200
‫Y equals minus two times X.

87
00:08:58,170 --> 00:09:04,890
‫You can see it from the first row multiplications, but you will get the same result from the second

88
00:09:04,890 --> 00:09:06,570
‫row multiplications.

89
00:09:07,720 --> 00:09:23,770
‫So minus two times X, plus minus three times Y equals zero times X and then plus minus two times Y,

90
00:09:24,850 --> 00:09:34,060
‫so minus two times X, minus three times Y equals minus two times Y.

91
00:09:35,360 --> 00:09:43,780
‫And if you put this thing to the other side of the equation sign, then you will have minus two Y,

92
00:09:43,790 --> 00:09:49,160
‫plus three Y equals minus two X.

93
00:09:49,940 --> 00:09:53,990
‫So in other words, you will have Y equals minus two X..

94
00:09:55,070 --> 00:10:02,210
‫So now your eigenvector, our second eigenvector going to put here to.

95
00:10:03,470 --> 00:10:13,670
‫Our first eigenvector was one and minus one, and now our second eigenvector is like this, if I choose

96
00:10:13,670 --> 00:10:15,950
‫X to be one.

97
00:10:17,610 --> 00:10:19,740
‫Then my wife is minus two.

98
00:10:21,080 --> 00:10:27,600
‫So this eigenvector here belongs to this eigenvalue here along the two equals minus two.

99
00:10:28,400 --> 00:10:30,320
‫And let's check if it's correct.

100
00:10:31,430 --> 00:10:39,740
‫So this is your a matrix times this eigenvector equals.

101
00:10:40,980 --> 00:10:51,150
‫Now you have minus two zero zero and minus two here, and then your eigenvector here will be one and

102
00:10:51,150 --> 00:10:52,110
‫minus two.

103
00:10:53,370 --> 00:11:00,940
‫So you will have minus two equals minus two.

104
00:11:01,320 --> 00:11:04,170
‫That's from the first row multiplication.

105
00:11:04,440 --> 00:11:15,630
‫And then the second row multiplication will give you minus two times one, then plus minus three times

106
00:11:15,630 --> 00:11:23,970
‫minus two, and then equals minus two times minus two.

107
00:11:25,050 --> 00:11:34,290
‫So you will have minus two, plus six equals four, minus two, plus six.

108
00:11:34,570 --> 00:11:35,430
‫It is four.

109
00:11:35,430 --> 00:11:38,520
‫So four equals four.

110
00:11:39,450 --> 00:11:45,060
‫So that means that our solution is correct, our eigenvectors are correct.

111
00:11:46,140 --> 00:11:52,950
‫So our second eigenvector will be one and minus two.

112
00:11:53,970 --> 00:12:02,490
‫And of course, if I had chosen X to be, let's say three, then your Y would have been.

113
00:12:03,750 --> 00:12:06,090
‫Minus two times three.

114
00:12:07,840 --> 00:12:16,990
‫So it would have been minus six and then your second eigenvector would have been three and minus six,

115
00:12:17,290 --> 00:12:19,150
‫and it still would have been correct.

116
00:12:20,320 --> 00:12:32,800
‫Note that you cannot mix eigenvectors and eigenvalues this eigenvector here that belongs to LAMDA two

117
00:12:33,310 --> 00:12:42,840
‫equals minus two and this eigenvector here, it belongs to LAMDA one equals minus one.

118
00:12:43,750 --> 00:12:49,820
‫You cannot use this eigenvector here for this eigenvalue.

119
00:12:50,710 --> 00:12:52,390
‫Let's check if it makes sense.

120
00:12:53,640 --> 00:13:02,880
‫This is your a matrix, and now let's take, for example, this eigenvector one and minus two, but

121
00:13:02,880 --> 00:13:06,140
‫now we're going to take this eigenvalue minus one.

122
00:13:06,330 --> 00:13:11,880
‫So it's going to be minus one zero zero and minus one in.

123
00:13:11,900 --> 00:13:16,380
‫Then here we will have our one and minus two eigenvector.

124
00:13:17,680 --> 00:13:27,340
‫And so if you multiply the first rose by this eigenvector, then you will have minus two equals.

125
00:13:29,020 --> 00:13:39,580
‫Minus one times one so is going to be minus one and then you will have minus two times one and then

126
00:13:39,580 --> 00:13:42,120
‫you will have minus three times minus two.

127
00:13:42,130 --> 00:13:45,400
‫So you're going to have plus six.

128
00:13:45,650 --> 00:13:47,620
‫And then that equals to.

129
00:13:48,840 --> 00:13:59,010
‫There are times one plus minus one times minus two, it will be two, so minus two, plus six is four

130
00:13:59,520 --> 00:14:04,650
‫and that equals two, which obviously is not correct.

131
00:14:05,170 --> 00:14:08,380
‫And here this relationship is not correct either.

132
00:14:09,480 --> 00:14:16,410
‫So you see, you cannot mix eigenvalues and eigenvectors for each eigenvalue.

133
00:14:16,530 --> 00:14:18,780
‫You have a specific eigenvector.

134
00:14:20,080 --> 00:14:26,620
‫And well, to be honest with you, eigenvectors are not relevant in our course, but, well, at least

135
00:14:26,620 --> 00:14:29,260
‫you now have seen the process.

136
00:14:30,790 --> 00:14:34,910
‫Let it be an extra bonus in the next video.

137
00:14:34,960 --> 00:14:41,920
‫I want to talk a little bit more about different types of differential equations and then we're going

138
00:14:41,920 --> 00:14:49,060
‫to start wrapping it up and applying it to our specific controller for controlling the drone.

139
00:14:49,750 --> 00:14:50,650
‫Thank you very much.

