﻿1
00:00:00,510 --> 00:00:01,380
‫Welcome back.

2
00:00:02,130 --> 00:00:12,360
‫So now you have learned how to go from London one and London two to the Constance Kay one and Kate two,

3
00:00:13,080 --> 00:00:15,270
‫and now let's look at the same thing.

4
00:00:15,600 --> 00:00:23,310
‫But from a different point of view, suppose that again, this is your differential equation, this

5
00:00:23,310 --> 00:00:29,750
‫one right here with your key one and key to values.

6
00:00:30,480 --> 00:00:36,630
‫The thing with differential equations is that they are often used to represent systems.

7
00:00:37,500 --> 00:00:43,500
‫That means that they could also be converted into state space equations.

8
00:00:44,460 --> 00:00:53,160
‫And also note that I have been using the word LTI or linear time invariant a lot in front of our differential

9
00:00:53,160 --> 00:00:53,880
‫equations.

10
00:00:54,480 --> 00:00:59,850
‫Well, let's put our differential equation in this space form.

11
00:01:00,570 --> 00:01:14,760
‫I can rewrite this equation like this error dot equals error dot and then error double dot equals K

12
00:01:14,970 --> 00:01:21,630
‫one times error plus key two times error dot.

13
00:01:22,440 --> 00:01:24,450
‫And it's a valid statement, right?

14
00:01:24,480 --> 00:01:26,040
‫There is nothing wrong with that.

15
00:01:26,820 --> 00:01:35,340
‫In the second equation, I simply put this term and this term to the other side of the equation, sine

16
00:01:35,850 --> 00:01:38,900
‫and well error dot equals zero dot.

17
00:01:39,450 --> 00:01:41,010
‫It's just true, right.

18
00:01:41,010 --> 00:01:42,510
‫It's like five equals five.

19
00:01:43,380 --> 00:01:48,560
‫But of course you might be asking why would I write error dot equals error dot.

20
00:01:48,750 --> 00:01:49,980
‫What's the purpose of it?

21
00:01:50,940 --> 00:02:01,710
‫Well, the reason why I wrote it like this is because now I can represent this system in a vector matrix

22
00:02:01,710 --> 00:02:02,160
‫form.

23
00:02:03,150 --> 00:02:12,420
‫I can have a vector here so I can have error dot here then error double dot here, then I have some

24
00:02:12,420 --> 00:02:21,090
‫kind of matrix here and then I have another vector which is error and then error dot.

25
00:02:21,360 --> 00:02:24,530
‫You see it has two elements here, error and error dot.

26
00:02:25,440 --> 00:02:33,810
‫So thanks to this error that equals error dot equation, I can now fill in the first row of this matrix.

27
00:02:33,960 --> 00:02:40,440
‫So if error that equals error dot, then that means that you will have zero here and you will have one

28
00:02:40,440 --> 00:02:40,830
‫here.

29
00:02:41,700 --> 00:02:46,500
‫And now if you look at the second equation here, this one.

30
00:02:47,460 --> 00:02:53,850
‫Then you can see that you will have a key one here and key to right over here.

31
00:02:54,810 --> 00:02:58,350
‫So tell me now, does it seem familiar to you?

32
00:02:59,380 --> 00:03:10,090
‫Well, it does to me, because to me what it looks like is this x dot as a vector equals and then a

33
00:03:10,090 --> 00:03:12,850
‫matrix times the state vector.

34
00:03:13,030 --> 00:03:18,680
‫So this is the state time derivative vector equals eight times the state vector.

35
00:03:19,210 --> 00:03:24,100
‫So this matrix here, that's your A matrix.

36
00:03:25,060 --> 00:03:36,310
‫And so if you assume that your key values K one and key to our constants, then this system here in

37
00:03:36,310 --> 00:03:41,510
‫fact is a linear time invariant or an LTI system.

38
00:03:42,550 --> 00:03:51,540
‫So you see I've taken this differential equation and I have converted it into an LTI states based system,

39
00:03:52,600 --> 00:04:00,910
‫and that is why I have been using the word linear time invariant in front of our differential equation.

40
00:04:01,360 --> 00:04:11,940
‫I have always been saying homogeneous, linear time invariant or LTI second order differential equation.

41
00:04:12,760 --> 00:04:22,150
‫And the way I know that this differential equation is an LTI differential equation is because if I transform

42
00:04:22,150 --> 00:04:31,090
‫it into a state based form, then I will have an LTI state based form in which this a matrix is a constant

43
00:04:31,090 --> 00:04:31,780
‫matrix.

44
00:04:32,380 --> 00:04:33,780
‫It's time invariant.

45
00:04:33,790 --> 00:04:35,800
‫It doesn't change with time.

46
00:04:36,700 --> 00:04:42,120
‫And another thing that you might have noticed is that you only have an A matrix here.

47
00:04:42,670 --> 00:04:44,590
‫There is no B matrix here.

48
00:04:45,490 --> 00:04:50,860
‫That's because this differential equation here is homogeneous.

49
00:04:51,850 --> 00:04:55,620
‫Let's take a look at a non homogeneous differential equation.

50
00:04:56,500 --> 00:05:04,360
‫So this is our differential equation here and this one is not a homogeneous one because it has a term

51
00:05:04,360 --> 00:05:09,450
‫here on the other side of the equation sine that is not zero.

52
00:05:10,360 --> 00:05:18,310
‫And so as an exercise, try to put this differential equation into your state based form, try doing

53
00:05:18,310 --> 00:05:21,400
‫it yourself and then we'll look at it in the next video.

54
00:05:21,610 --> 00:05:22,480
‫Thank you very much.

