


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Jeffrey Hellrung Friday, November 18, 2005 Math 269A, Assignment 07
yn+1 = yn + dt 2
f (yn) + dt 2
f (yn+1).
Solution We apply the model problem y′^ = λy = f (y) to the method:
yn+1 = yn + h 2
λyn + h 2
λyn+1 ⇒ yn+1 = 2 + λh 2 − λh
yn,
hence any λh in the region of absolute stability satisfies
∣∣^ 2 +^ λh 2 − λh
4 + |λh|^2 + 4ℜ(λh) 4 + |λh|^2 − 4 ℜ(λh)
⇒ ℜ(λh) < 0.
∂F 1 ∂y 1 (y, t)^ · · ·^
∂F 1 ∂yn (y, t) .. .
∂Fn ∂y 1 (y, t)^ · · ·^
∂Fn ∂yn (y, t)
Solution We consider the equivalent autonomous system dz/dt = G(z), z ∈ Rn+1, G : Rn+1^ → Rn+1, where
zi = yi, 1 ≤ i ≤ n, zn+1 = t, Gi(z) = Fi(z), 1 ≤ i ≤ n, Gn+1(z) = 1 ,
whose Jacobian is evidently
∂G 1 ∂z 1 · · ·^
∂G 1 ∂zn
∂G 1 ∂zn+ .. .
∂Gn ∂z 1 · · ·^
∂Gn ∂zn
∂Gn ∂zn+ ∂Gn+ ∂z 1 · · ·^
∂Gn+ ∂zn
∂Gn+ ∂zn+
z
∂F 1 ∂y 1 · · ·^
∂F 1 ∂yn
∂F 1 ∂t .. .
∂Fn ∂y 1 · · ·^
∂Fn ∂yn
∂Fn ∂t 0 · · · 0 0
(y,t)
which has, other than an additional eigenvalue of 0, precisely the same eigenvalues as
∂F 1 ∂y 1 · · ·^
∂F 1 ∂yn .. .
∂Fn ∂y 1 · · ·^
∂Fn ∂yn
(y,t)
dy 1 dy^ dt^ =^ y^2 y^1 (0) = 1/^2 2 dt = (1^ −^ y
2 1 )y^2 −^ y^1 y^2 (0) = 1/^2
(a) Compute the matrix of partial derivatives (∂Fi/∂yj ). (b) Given that solutions of the van der Pol equation tend to stay within a distance of ‖y(0)‖ from the origin, estimate the eigenvalues of the matrix (∂Fi/∂yj ). (c) Is this a stiff system of differential equations? Explain.
Solution
(a) The matrix of partial derivatives is given by
J(F )y =
∂Fi ∂yj
y
− 1 − 2 y 1 y 2 1 − y 12
(b) The characteristic polynomial P of J(F )y is
P (λ) = det(λI − J(F )y ) =
λ − 1 1 + 2y 1 y 2 λ − (1 − y 12 )
∣ =^ λ
(^2) − (1 − y 2 1 )λ^ + 1 + 2y^1 y^2 ,
whose roots are given by
λ± =
1 − y^21 ±
(1 − y^21 )^2 − 4(1 + 2y 1 y 2 )
We now attempt to estimate the eigenvalues. Suppose first that |y(t)| ≤
3 / 2 < 1, i.e.,
y^21 + y^22 ≤
Then (1 − y^21 )^2 ≤ 1 , |y 1 y 2 | ≤
hence (1 − y 12 )^2 − 4(1 + 2y 1 y 2 ) ≤ 1 − 4
so it follows that ℜ(λ±) = (1 − y^21 )/2, which is bounded between 1/8 and 1/2. We can likewise bound ℑ(λ±) above in absolute value by 7 − 1 /16. Now suppose that |y(t)| ≤ α^2 for some general α ≥ 1. Then if
(1 − y 1 )^2 − 4(1 + 2y 1 y 2 ) ≤ 0 ,
we obtain similar bounds as above on ℜ(λ±), namely |ℜ(λ±)| ≤ α^2 /2. On the other hand, if the term in the square root is nonnegative, we have
0 ≤
(1 − y 1 )^2 − 4(1 + 2y 1 y 2 ) ≤ | 1 − y 1 |^2 + 2
2 |y 1 y 2 | ≤ 1 + y^21 + 2α,
hence we find (after some algebra) that
−(α^2 + α) ≤ λ− ≤
(1 − y^21 ) ≤ λ+ ≤ 1 + α.
In particular, the difference in the eigenvalues is bounded by
λ+ − λ− ≤ (1 + α) + (α^2 + α) = (α + 1)^2.
h y( |Ty^ ()T− )y|N
0568 16548. 7
0562 3. 80716
0556 − 0. 0101236
0549 − 0. 00969219
0543 − 0. 00656675
0538 − 0. 00463731
05 − 0. 00123071
04 − 0. 000205429
025 − 0. 0000186377 It appears that a timestep of about 0.055 is required to get a qualitatively correct solution. (b) From the above tables, the Forward Euler method requires a timestep around 0.005 to get the desired accuracy, while the 4th^ Order Runge-Kutta method requires a timestep around 0.025. (c) Once a qualitatively correct solution is achieved, the approximate solution is already within a relative error of 0.01 to the true solution for either method. The 4th^ Order Runge-Kutta method achieves a qualitatively correct solution at a somewhat larger timestep than the Forward Euler method, but it’s not a very significant difference.
Use the Trapezoidal method to solve the Curtiss-Hirschfelder equation for t ∈ [0, 10]. Determine the size of the timestep required to get an accuracy in the solution at t = 10.0 of approximately 5 · 10 −^5. How does this timestep compare to the your results in computational problem 1(b)? Solution The following tables gives the error of the approximated solution to the relative solution at t = 10. 0 for the given timestep for the Trapezoidal method. h y( |Ty^ ()T− )y|N 2. 50 0. 0136753 1. 00 0. 000855576 0. 25 0. 0000628888 0. 20 0. 0000401612 It appears that a timestep of about 0.20 is required to get the desired accuracy, which is about 8 times the corresponding timestep for the 4th^ Order Runge Kutta method and 40 times the corresponding timestep for the Forward Euler method.