1
00:00:00,370 --> 00:00:06,900
Now it's finally time to add the spaceship, the fourth body to all the three body problem, and I think

2
00:00:06,900 --> 00:00:13,200
this is really an exciting project and a really important project because we are actually planning here

3
00:00:13,200 --> 00:00:13,980
a moon mission.

4
00:00:14,430 --> 00:00:20,640
And I want to show you what we can do to reach the orbit of the Moon from Earth using a spaceship.

5
00:00:21,450 --> 00:00:26,550
Of course, there are some effects that we are disregarding here, like the atmosphere, which gives

6
00:00:26,550 --> 00:00:28,200
a lot of friction to the spaceship.

7
00:00:28,200 --> 00:00:31,040
So that's actually a pretty important aspect.

8
00:00:31,050 --> 00:00:38,250
But what we will do here is we will start from a rocket that orbits the Earth and then we tell the rocket,

9
00:00:38,340 --> 00:00:40,710
What do we have to do to reach the Moon?

10
00:00:41,940 --> 00:00:42,530
All right.

11
00:00:42,540 --> 00:00:48,420
But before we do this, let's consider the spaceship and let me tell you how we can add the spaceship

12
00:00:48,420 --> 00:00:50,040
to our differential equations.

13
00:00:50,850 --> 00:00:56,070
And the first important thing is that I want to assume here that the mass of the spaceship is extremely

14
00:00:56,070 --> 00:01:01,650
small compared to the other massive masses of the Sun, the Earth and even the Moon.

15
00:01:02,520 --> 00:01:08,760
So, of course, you could take the all three eight differential equations and add now a new term to

16
00:01:08,760 --> 00:01:13,620
all three of those tests would be actually very easy, and you would just have to add a new term.

17
00:01:13,770 --> 00:01:17,940
Basically, here I have copied the old stuff, the old f already function.

18
00:01:18,330 --> 00:01:21,390
You would just have to add to your new term with all four.

19
00:01:22,200 --> 00:01:26,670
However, we don't even have to do this here because we can just assume that the mass of the spaceship

20
00:01:26,670 --> 00:01:31,470
is so small that the motion of the Sun, the Earth and the Moon is not affected.

21
00:01:32,310 --> 00:01:37,650
And I mean, it's hardly imaginable that the Sun will move just because the spaceship is flying by.

22
00:01:37,950 --> 00:01:42,160
But in reality, this is really happening, but it's just by a tiny amount.

23
00:01:42,180 --> 00:01:45,440
I don't know how much, but it's really a tiny amount so we can neglect.

24
00:01:47,490 --> 00:01:54,390
So we say in this approximation, which is an excellent approximation, the three differential equations

25
00:01:54,390 --> 00:01:58,290
remain and we will add a fourth one just describing the spaceship.

26
00:01:58,980 --> 00:02:06,780
And of course, we have three terms and this will be the gravitational forces and gravity with the Sun,

27
00:02:07,170 --> 00:02:11,190
the Earth and the Moon, and then we can order these terms.

28
00:02:11,200 --> 00:02:15,600
These are not six terms actually we owed them by one or two or three or four.

29
00:02:15,990 --> 00:02:23,610
So we have no three terms here, three terms here, and we have to program this now for the f OTV.

30
00:02:24,780 --> 00:02:26,610
So to do this?

31
00:02:26,880 --> 00:02:30,030
First of all, let me introduce here four.

32
00:02:30,990 --> 00:02:34,290
This is our going from nine to 12.

33
00:02:34,770 --> 00:02:36,120
This one would not be correct.

34
00:02:36,120 --> 00:02:36,900
Any more would be.

35
00:02:36,900 --> 00:02:38,540
One is now from 12 to 15.

36
00:02:38,550 --> 00:02:39,810
So let's just delete it.

37
00:02:39,810 --> 00:02:40,380
We don't need it.

38
00:02:40,920 --> 00:02:44,670
And then we need three more distances.

39
00:02:45,360 --> 00:02:53,550
One four is A. P. Linear algebra dot norm and then one to four.

40
00:02:53,790 --> 00:02:55,740
We could also write four minus one.

41
00:02:55,740 --> 00:02:56,610
Wouldn't matter.

42
00:02:56,890 --> 00:02:58,020
It would give the same thing.

43
00:02:58,590 --> 00:03:03,840
And then we add to other relations are two four, three four.

44
00:03:03,840 --> 00:03:07,580
And this would be our two minus R four and four.

45
00:03:07,860 --> 00:03:09,810
And is our three like this?

46
00:03:10,770 --> 00:03:14,610
OK, and now we can go ahead and just program this equation here.

47
00:03:15,900 --> 00:03:23,790
So first, we have three terms like this, which would be m one divided by our one for power of three

48
00:03:23,790 --> 00:03:24,960
times one.

49
00:03:25,830 --> 00:03:30,450
Then another one with M two are two four.

50
00:03:30,870 --> 00:03:38,040
And then here are two, and the next one and three are three, four or three.

51
00:03:38,850 --> 00:03:41,610
And then we take basically this one here.

52
00:03:43,710 --> 00:03:44,940
But then we have three terms.

53
00:03:45,300 --> 00:03:55,440
First one is M one divided by R one for power three plus and two divided by our two for power three.

54
00:03:55,650 --> 00:04:03,060
Another one, which is three divided by R three for power three times are for.

55
00:04:05,160 --> 00:04:14,310
And then here we have now the velocities going from 12 to 24, and I think that's already it.

56
00:04:15,840 --> 00:04:21,750
So we run, it's no error, which is great, and we have to also tweak the starting conditions.

57
00:04:22,380 --> 00:04:24,250
So we have to act here now.

58
00:04:24,270 --> 00:04:36,660
The space ship and the space ship is basically, let me think, basically similar to the Moon.

59
00:04:37,800 --> 00:04:48,000
So in a sense, the spaceship is supposed to orbit the Earth like the Moon orbits the Earth, and it

60
00:04:48,000 --> 00:04:55,560
will orbit the Earth with a position of our Sun, Earth and then our orbits.

61
00:04:59,430 --> 00:05:10,590
And the velocity will be minus V orbits and the Earth, and now we just need to include here our orbits

62
00:05:10,590 --> 00:05:11,850
and V orbits.

63
00:05:12,750 --> 00:05:23,220
And to do this, I ask your new cell and I've prepared this before we have in meter four times 10 to

64
00:05:23,220 --> 00:05:29,970
the power of seven and meter, which is a standard stationary orbit in space of satellites, for example.

65
00:05:29,970 --> 00:05:34,090
And the corresponding velocity would be this and meters per second.

66
00:05:34,110 --> 00:05:34,660
Of course.

67
00:05:35,490 --> 00:05:36,900
And we can run this now.

68
00:05:37,320 --> 00:05:42,930
And now we can go ahead and define the starting values for a spaceship.

69
00:05:43,200 --> 00:05:48,840
So here, if we've got to change this off or before, and of course, we must include it here to specter

70
00:05:48,840 --> 00:05:52,140
for the starting conditions for start.

71
00:05:52,290 --> 00:05:54,060
And we for start.

72
00:05:56,300 --> 00:06:03,530
OK, so you see, it's pretty similar to the Moon, just that the radius and velocity are smaller than

73
00:06:03,530 --> 00:06:07,880
for the Moon because, you know, it's much closer to the Earth.

74
00:06:09,500 --> 00:06:13,850
OK, so now I think we are almost finished.

75
00:06:14,240 --> 00:06:16,460
I think we can just see what happens.

76
00:06:16,760 --> 00:06:20,300
And let me out here another plot with our spaceship.

77
00:06:21,380 --> 00:06:23,090
I choose to color purple.

78
00:06:23,660 --> 00:06:27,560
And now here we must change it to nine and 10.

79
00:06:28,880 --> 00:06:29,510
So let's see.

80
00:06:31,930 --> 00:06:34,480
OK, it's running, it's running for 10 years.

81
00:06:35,150 --> 00:06:37,450
That's probably too long, I guess.

82
00:06:38,260 --> 00:06:41,080
Maybe I should have gone for just one year.

83
00:06:41,950 --> 00:06:42,280
Yeah.

84
00:06:42,800 --> 00:06:44,410
Let me let me rerun this.

85
00:06:44,410 --> 00:06:46,100
Let me colonel restart in front of.

86
00:06:48,160 --> 00:06:50,600
It's not a whole notebook will be run again.

87
00:06:50,860 --> 00:06:51,400
And.

88
00:06:53,510 --> 00:06:59,360
Now we are already back at our simulation of the spaceship because the rest of the notebook is very,

89
00:06:59,360 --> 00:06:59,990
very fast.

90
00:07:00,500 --> 00:07:01,310
And though it's finished.

91
00:07:03,190 --> 00:07:08,770
OK, and it seems like this is here on the scale of Sun and Earth.

92
00:07:09,220 --> 00:07:13,120
Then we have the moon on top and now we also have our spaceship on top.

93
00:07:13,120 --> 00:07:15,640
So great, but we can't see anything.

94
00:07:16,480 --> 00:07:20,110
Of course we have to analyze now the trajectory was back to Earth and Moon.

95
00:07:21,160 --> 00:07:27,220
And for this, I scroll up where we did the same thing already for the Moon.

96
00:07:28,240 --> 00:07:30,190
So this was this one here.

97
00:07:33,540 --> 00:07:42,000
And let me copy this, I a. just write X with respect to Moon, sorry with respect to Earth, because

98
00:07:42,000 --> 00:07:52,380
we will now plot the Moon and the spaceship and now we will plot basically this one we leave.

99
00:07:52,380 --> 00:07:53,150
This is green.

100
00:07:53,160 --> 00:07:57,960
This will be the moon and knowledge and another one which will be purple.

101
00:07:59,160 --> 00:08:05,730
This will be nine minus three and 10 minus four, which will be spaceship minus Earth.

102
00:08:07,650 --> 00:08:15,510
So now we see our Earth is fixed, so we have changed our coordinate system and fixed it to the position

103
00:08:15,510 --> 00:08:16,020
of the Earth.

104
00:08:16,620 --> 00:08:22,970
And you see, the Moon is rotating like this and the spaceship is rotating like this.

105
00:08:23,010 --> 00:08:29,040
So it's really on a stationary orbit quite close to the Earth and quite far from the Moon.

106
00:08:29,730 --> 00:08:36,210
So that's really, as I said, a typical trajectory of the of the satellites.

107
00:08:36,539 --> 00:08:40,559
So like from which we get our GPS and our internet.

108
00:08:42,030 --> 00:08:42,480
OK.

109
00:08:42,510 --> 00:08:43,980
So and the following lectures.

110
00:08:43,980 --> 00:08:46,440
I want to play now a bit with the starting conditions.

111
00:08:46,470 --> 00:08:53,010
You can if you want pulsed video and just try a bit for yourself, but I will explain to you four very

112
00:08:53,010 --> 00:08:57,480
interesting cases, and let's get started with the next lecture.

