


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!



CS/Math 3414 Assignment 10
Solution Sketches
x′^ = x x(0) = c
is given by x = cet. If the initial value is perturbed by so that x(0) = c + , then the solution will be given by x = (c + )et. The error at t = 10 would be e^10 and the error at t = 20 would be e^20. In other words, the solution would be grossly wrong. If, on the other hand, the initial vlaue problem was:
x′^ = −x x(0) = c
then the solution is given by x = ce−t. In this case, the effect of the perturbation would be negligible.
x(t + h) = x(t) + hx′(t) +
h^2 2
x′′(t) +
h^3 6
x′′′(t)
x(0.1) can be calculated as:
x(0 + 0.1) = x(0) + 0. 1 x′(0) +
x′′(0) +
x′′′(0)
x(0) is given in the problem to be 1. So is x′(0) (its value is 2). x′′(0) can be calculated from the differential equation: x′′^ = x^2 et^ + x′. Thus, x′′(0) = 1^2 e^0 + 2 = 3. Similarly, x′′′(0) can be calculated by first finding x′′′(t) and then substituting t = 0. x′′′(t) is just the derivative of the given differential equation: x′′′^ = 2xx′et^ + x^2 et^ + x′′. So, x′′′(0) = 2(2)e^0 + e^0 + 3 = 8. Putting it all together, we get:
x(0 + 0.1) = x(0) + 0. 1 x′(0) +
x′′(0) +
x′′′(0)
= 1 + 0.1(2) + (0.1)^2 /2 + (0.1)^3 /6 = 1 + 0.2 + 0.015 + 0. 00133 = 1. 21633
x′^ = y y′^ = x
x′′^ = y′^ = x y′′^ = x′^ = y x′′′^ = x′^ = y y′′′^ = y′^ = x x′′′′^ = y′^ = x y′′′′^ = x′^ = y x′′′′′′^ = x′^ = y y′′′′′^ = y′^ = x This gives us the following equation for x:
x(t + h) = x + hx′^ +
h^2 x′′^ +
h^3 x′′′^ +
h^4 x′′′′^ +
h^5 x′′′′′
= x(1 +
h^2 +
h^4 ) + y(h +
h^3 +
h^5 )
Similarly,
y(t + h) = y + hy′^ +
h^2 y′′^ +
h^3 y′′′^ +
h^4 y′′′′^ +
h^5 y′′′′′
= y(1 +
h^2 +
h^4 ) + x(h +
h^3 +
h^5 )
x′ 1 = x 3 (by definition) x′ 2 = x 4 (by definition) x′ 3 = 3 x^2 − 7 y^2 + sin(t) + cos(x′y′) (from the problem) = 3 x^21 − 7 x^22 + sin(t) + cos(x 3 x 4 ) x′ 4 = y′′ = x′′ 2 = x 5 x′ 5 = y + x^2 − cos(t) − sin(xy′′) (from the problem) = x 2 + x^21 − cos(t) − sin(x 1 x 5 )
The net effect of this juggling is that we have managed to convert a system of higher-order differential equations into a system of first-order equations (with more variables). Notice that the left side contains the derivatives and the right side is now free of derivatives. So, the final answer is: (^)
x′ 1 x′ 2 x′ 3 x′ 4 x′ 5
x 3 x 4 3 x^21 − 7 x^22 + sin(t) + cos(x 3 x 4 ) x 5 x 2 + x^21 − cos(t) − sin(x 1 x 5 )
This system can be solved by our usual Taylor series method for a system of first-order equations (see previous answer). But the question only asks us to express the given problem as a system of first-order equations, not solve it.
computedx(1) = trueinitialvalue + p; count = 1; for j = 0+h:h: count = count + 1; xoft = computedx(count-1); xdashoft = 4xoft - 5exp(-(j-h)); xdashdashoft = 4xdashoft + 5exp(-(j-h)); xdashdashdashoft = 4xdashdashoft - 5exp(-(j-h)); computedx(count) = xoft + ... h * xdashoft + ... (hh/2) * xdashdashoft + ... (hh*h/6) * xdashdashdashoft; end plot(t,computedx,’r+’); end xlabel(’t’); ylabel(’x’); title(’trajectories of solutions of an unstable differential equation’);
Here’s the plot produced. The blue line is the true solution and the red lines are the computed solutions. As can be seen, they diverge as t increases.
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
0
1
2
t
x
trajectories of solutions of an unstable differential equation