You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/examples/perturbation.md
+19-26Lines changed: 19 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,51 +41,45 @@ Let's go back to our quintic. We can define a Symbolics variable as `@variables
41
41
42
42
We introduce a tuning parameter $\epsilon$ into our equation: $x^5 + \epsilon x = 1$. If $\epsilon = 1$, we get our original problem. For $\epsilon = 0$, the problem transforms to an easy one: $x^5 = 1$ which has an exact real solution $x = 1$ (and four complex solutions which we ignore here). We expand $x$ as a power series on $\epsilon$:
This equation should hold for each power of $\epsilon$. Therefore,
63
61
64
-
$$
62
+
```math
65
63
1 + 5 a_1 = 0
66
-
\,,
67
-
$$
64
+
```
68
65
69
66
and
70
67
71
-
$$
68
+
```math
72
69
a_1 + 5 a_2 + 10 a_1^2 = 0
73
-
\,.
74
-
$$
70
+
```
75
71
76
72
This system of equations does not initially seem to be linear because of the presence of terms like $10 a_1^2$, but upon closer inspection is found to be in fact linear (this is a feature of the perturbation methods). In addition, the system is in a triangular form, meaning the first equation depends only on $a_1$, the second one on $a_1$ and $a_2$, such that we can replace the result of $a_1$ from the first one into the second equation and remove the non-linear term. We solve the first equation to get $a_1 = -\frac{1}{5}$. Substituting in the second one and solve for $a_2$:
Solving the original problem, $x(1) = 0.76$, compared to 0.7548 calculated numerically. We can improve the accuracy by including more terms in the expansion of $x$. However, the calculations, while straightforward, become messy and intractable to do manually very quickly. This is why a CAS is very helpful to solve perturbation problems.
91
85
@@ -195,10 +189,9 @@ Remember the numerical value is 0.7549. The two functions `collect_powers` and `
195
189
196
190
Historically, the perturbation methods were first invented to solve orbital calculations of the Moon and the planets. In homage to this history, our second example has a celestial theme. Our goal is solve the Kepler's equation:
197
191
198
-
$$
192
+
```math
199
193
E - e\sin(E) = M
200
-
\,.
201
-
$$
194
+
```
202
195
203
196
where $e$ is the *eccentricity* of the elliptical orbit, $M$ is the *mean anomaly*, and $E$ (unknown) is the *eccentric anomaly* (the angle between the position of a planet in an elliptical orbit and the point of periapsis). This equation is central to solving two-body Keplerian orbits.
204
197
@@ -270,10 +263,10 @@ The result is 1.5876, compared to the numerical value of 1.5875. It is customary
270
263
271
264
Comparing the formula to the one for 𝐸 in the [Wikipedia article on the Kepler's equation](https://en.wikipedia.org/wiki/Kepler%27s_equation):
0 commit comments