1
00:00:00,270 --> 00:00:06,070
If you are a physics student or an engineer, you've probably already came about through your transformers.

2
00:00:06,660 --> 00:00:12,930
If we attract Transformers are very important in several fields of physics because they can tell you

3
00:00:13,050 --> 00:00:19,080
what a periodic function consists of in terms of individual oscillations.

4
00:00:19,680 --> 00:00:23,190
So this is correct, for example, for acoustics.

5
00:00:23,400 --> 00:00:29,010
So when you have a sound and many instruments are playing at the same time, you will have a superposition

6
00:00:29,010 --> 00:00:31,800
of several periodic sine functions.

7
00:00:32,340 --> 00:00:38,670
And by calculating the full you transform off the sound, you can figure out the individual frequencies

8
00:00:38,670 --> 00:00:39,540
of the sound.

9
00:00:40,500 --> 00:00:41,910
And also, this is correct.

10
00:00:42,060 --> 00:00:50,490
For example, in electronics where you have different frequencies of your voltage in the AC scenario,

11
00:00:50,910 --> 00:00:56,490
they can use to fully transform also to decompose the individual periodic functions.

12
00:00:57,270 --> 00:00:59,010
So let's start with an example.

13
00:00:59,550 --> 00:01:05,430
Of course, we need the first num num nampai and then also we need integrals.

14
00:01:05,459 --> 00:01:07,050
This is something I can tell you already.

15
00:01:07,440 --> 00:01:14,580
So here are decided to use our integral trapezoidal methods because this is some very typical integration

16
00:01:14,580 --> 00:01:18,840
method and we will use this one in this particular lecture here as well.

17
00:01:19,920 --> 00:01:25,070
So first of all, I want to show you the superimposed function of three oscillations.

18
00:01:25,080 --> 00:01:33,600
So I create a time list, has an empty bottle in space, and we plot in the range from zero to 50 seconds

19
00:01:33,600 --> 00:01:36,570
with a step size of 500 one.

20
00:01:36,570 --> 00:01:39,720
So step size of zero point one second for the plotting.

21
00:01:40,200 --> 00:01:44,550
And then we have here three individual frequencies, which I have chosen.

22
00:01:44,970 --> 00:01:54,240
Let's use something like this frequency to will be zero point three and frequency three will be three

23
00:01:54,240 --> 00:01:54,770
point five.

24
00:01:55,770 --> 00:01:59,190
And now we can calculate a whitelist list, which will be two values.

25
00:01:59,550 --> 00:02:04,380
And this will be a superposition of periodic functions with these frequencies.

26
00:02:05,100 --> 00:02:13,980
So, for example, we can use now as zero point five times and predict cosine t list times frequency

27
00:02:13,980 --> 00:02:14,310
one.

28
00:02:15,090 --> 00:02:22,980
And then similarly, we use plus another amplitude 2.0 times and P Dot Cosine.

29
00:02:23,370 --> 00:02:25,050
We could also use to sign function.

30
00:02:25,050 --> 00:02:26,010
It wouldn't really matter.

31
00:02:27,150 --> 00:02:30,000
T list times frequency two.

32
00:02:30,540 --> 00:02:38,190
And then the last one will be 1.0 times and putative cosine t list times frequency three.

33
00:02:40,320 --> 00:02:47,460
And now our data will be the composition out of these two arrays and three.

34
00:02:47,460 --> 00:02:51,720
And then, as I just said, composition T list and why list.

35
00:02:52,650 --> 00:03:02,130
And we will plot the data by using multiple live and calling data zero and data one.

36
00:03:03,180 --> 00:03:06,510
So this is really nothing new, of course, and this is what we'll get.

37
00:03:06,810 --> 00:03:11,100
We have to time on the x axis and we have to value of the signal at the y axis.

38
00:03:11,610 --> 00:03:17,970
This could, for example, be some sound that is recorded, which is the superposition of three individual

39
00:03:17,970 --> 00:03:18,750
frequencies.

40
00:03:19,810 --> 00:03:21,240
And now let's see.

41
00:03:21,630 --> 00:03:28,740
This is our dataset that we have that we have measured and we want to figure out what are these frequencies

42
00:03:28,740 --> 00:03:30,420
of these individual oscillations.

43
00:03:30,420 --> 00:03:34,230
So say we forget about these numbers and we only have this data set here.

44
00:03:34,800 --> 00:03:37,140
How do we figure out what are the frequencies?

45
00:03:38,440 --> 00:03:46,900
Of course, we could now go ahead and fit individual cosine functions, and we, as I said, we could

46
00:03:46,900 --> 00:03:50,470
also change the face here, for example, at just a number.

47
00:03:50,800 --> 00:03:52,330
Change this one to sign.

48
00:03:53,050 --> 00:04:00,130
And the signal will look a bit different then, but the frequencies will be the same in this case.

49
00:04:00,670 --> 00:04:06,970
So for fitting the signal, we would first need to figure out that these are three individual frequencies.

50
00:04:07,540 --> 00:04:13,900
And then we would have to fit the three frequency parameters and the three faces, which would be which

51
00:04:13,900 --> 00:04:17,170
could be different for the three individual oscillations.

52
00:04:17,950 --> 00:04:20,019
So this would be quite difficult.

53
00:04:20,079 --> 00:04:24,700
And I can tell you that actually we are going to do this later on in one of the exercises.

54
00:04:25,270 --> 00:04:31,330
And one of the later sections of this course, but it's actually much easier to just call the four year

55
00:04:31,330 --> 00:04:31,870
transform.

56
00:04:33,010 --> 00:04:39,220
Just as a test before we do this, I can show you that we can just call our integral trapezoidal methods.

57
00:04:41,890 --> 00:04:44,020
Sorry, a typo here trapezoidal.

58
00:04:44,380 --> 00:04:46,070
And then just call our data.

59
00:04:46,130 --> 00:04:53,290
This is why I have written it down like this so that we could not just integrated and the integral basically

60
00:04:53,290 --> 00:04:59,350
of this function with respect to the x axis is eleven point three seven three.

61
00:05:00,220 --> 00:05:05,910
But that doesn't help us at all figuring out what are the frequencies for this we need to fully transform.

62
00:05:05,920 --> 00:05:08,980
And the four year transform is based on an integral part.

63
00:05:08,980 --> 00:05:09,760
It's a bit different.

64
00:05:09,760 --> 00:05:13,870
We do not just integrate over data, but we need an additional factor.

