11.11.2014 Views

Introductory Differential Equations using Sage - William Stein

Introductory Differential Equations using Sage - William Stein

Introductory Differential Equations using Sage - William Stein

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.2. INITIAL VALUE PROBLEMS 15<br />

k1*eˆt + k2*eˆ(-t)<br />

sage: P = plot(eˆt/2-eˆ(-t)/2,0,3)<br />

sage: show(P)<br />

Figure 1.4: Solution to IVP x ′′ − x = 0, x(0) = 0, x ′ (0) = 1.<br />

You see in Figure 1.4 that the solution tends to infinity, as t gets larger.<br />

Exercises:<br />

1. Find the value of the constant C that makes x = Ce 3t a solution to the IVP x ′ = 3x,<br />

x(0) = 4.<br />

2. Verify that x = (C+t)cos(t) satisfies the differential equation x ′ +xtan(t)−cos(t) = 0<br />

and find the value of C that gives the initial condition x(2π) = 0.<br />

3. Determine a value of the constant C so that the given solution of the differential<br />

equation satisfies the initial condition.<br />

(a) y = ln(x + C) solves e y y ′ = 1, y(0) = 1.<br />

(b) y = Ce −x + x − 1 solves y ′ = x − y, y(0) = 3.<br />

4. Use <strong>Sage</strong> to check that the general solution to the falling body problem<br />

mv ′ + kv = mg,<br />

is v(t) = mg<br />

k<br />

+ ce−kt/m . If v(0) = v 0 , you can solve for c in terms of v 0 to get<br />

c = v 0 − mg<br />

k . Take m = k = v 0 = 1, g = 9.8 and use <strong>Sage</strong> to plot v(t) for 0 < t < 1.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!