16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.1. FIRST-ORDER MODELS 163<br />

μ <br />

tg<br />

v := tanh V<br />

V<br />

To determine y(t), a second ODE is formed by equating dy=dt to v. To make<br />

the ¯nal expression appear in the desired form, the convert command is used<br />

to reexpress the hyperbolic tangent in terms of the hyperbolic sine and cosine.<br />

> ode2:=diff(y(t),t)=convert(v,sincos);<br />

ode2 := d<br />

μ <br />

tg<br />

sinh V<br />

V<br />

y(t) = μ <br />

dt tg<br />

cosh<br />

V<br />

Analytically solving ode2 for y(t), subject to the initial condition y(0) = 0,<br />

> dsolve(fode2,y(0)=0g,y(t));<br />

V<br />

y(t) =<br />

2 μ μ <br />

tg<br />

ln cosh<br />

V<br />

g<br />

produces an output that is identical in structure to equation (4.4), thus completing<br />

Vectoria's task.<br />

PROBLEMS:<br />

Problem 4-15: Return velocity<br />

A ball of unit mass is thrown vertically upward near the earth's surface with an<br />

initial speed v(0) = U. Assuming that Newton's law of air resistance prevails,<br />

show that after the ball rises to its maximum height and begins to fall it passes<br />

its initial position with a velocity v = (UV)=( p U 2 + V 2 ); where V is the<br />

terminal velocity. Hint: Reexpress the acceleration as<br />

dv<br />

dt =<br />

μ μ μ <br />

dv dx<br />

dv(x)<br />

= v(x)<br />

dx dt<br />

dx<br />

and note that at the maximum height the speed is zero.<br />

Problem 4-16: A Riccati equation<br />

Consider the following Riccati equation:<br />

y 0 (x)+y(x)=x + ay(x) 2 + b =0;<br />

with the initial condition y(0) = A, wherea, b, andAare real constants.<br />

(a) Analytically solve the ODE. Does the answer depend on the value of A?<br />

(b) What does the general solution look like if no initial condition is speci¯ed?<br />

Explain what happens mathematically when y(0) = A is imposed.<br />

(c) Taking a =5andb =2,plotthesolutionfory(0) = A over the range<br />

x = 0 to 2, using the plot option view=[0..2,-5..5].<br />

(d) Explain the origin of the singular points in the graph in terms of the<br />

behavior of Bessel functions.

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

Saved successfully!

Ooh no, something went wrong!