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.

138 CHAPTER 3. LINEAR ODE MODELS<br />

> restart: with(plots): with(plottools):<br />

Measuring y vertically downward, the origin y = 0 is chosen to be at the top<br />

end of the bungee cord (length L) where it is attached to the bridge. If the cord<br />

has a mass density ² per unit length, and g is the acceleration due to gravity,<br />

the tension T in the cord is given by T = ²g(L ¡ y), which is entered.<br />

> T:=epsilon*g*(L-y);<br />

T := ²g(L ¡ y)<br />

At the top end (y = 0), the cord has a tension T = ²gL, because the cord must<br />

support its entire weight. At the bottom end, y = L andthetensioniszero.<br />

The cord is now allowed to undergo a small transverse displacement dÃ(y; t)<br />

at time t from the equilibrium position. The above expression for T will still<br />

be valid. To understand this, consider the cord segment of arc length<br />

ds = p (dy) 2 +(dÃ) 2 = p 1+(dÃ=dy) 2 dy<br />

showninFigure3.9. Lettingμ be the angle with the vertical, and noting that<br />

the forces still balance in the y-direction, then<br />

(T cos μ) y ¡ (T cos μ) y+dy =(²ds) g; (3.4)<br />

with cos μ = dy=ds. Assuming that dÃ=dy ¿ 1, one has ds ¼ dy and cos μ ¼ 1,<br />

so the vertical force equation (3.4) reduces to<br />

T (y) ¡ T (y + dy) =(²dy) g: (3.5)<br />

Taylor expanding the left-hand side of (3.5) to the ¯rst power in dy, and dividing<br />

both sides by dy, yields @T=@y = ¡²g. The expression T = ²g(L ¡ y) follows<br />

on integrating and evaluating the constant at y =0.<br />

In the Ã-direction, Newton's second law yields<br />

(T sin μ) y+dy ¡ (T sin μ) y =(²ds) @2Ã @t2 (3.6)<br />

with sin μ = dÃ=ds. For dÃ=dy ¿ 1, sin μ ¼ @Ã=@y, partial derivatives being<br />

used because one also has time as an independent variable. So (3.6) becomes<br />

μ<br />

T (y) @Ã<br />

μ<br />

¡ T (y)<br />

@y y+dy<br />

@Ã<br />

<br />

=(²dy)<br />

@y y<br />

@2Ã ; (3.7)<br />

@t2 or, on Taylor expanding the left-hand side for small dy, dividing by dy, and<br />

taking the limit dy ! 0,<br />

μ<br />

@<br />

T (y)<br />

@y<br />

@Ã<br />

<br />

= ²<br />

@y<br />

@2Ã : (3.8)<br />

@t2 This equation of motion is now entered,<br />

> eq:=diff(T*diff(psi(y,t),y),y)=epsilon*diff(psi(y,t),t,t);<br />

μ <br />

μ μ <br />

2<br />

2<br />

@<br />

@ @<br />

eq := ¡²g Ã(y; t) + ²g(L ¡ y) Ã(y; t) = ² Ã(y; t)<br />

@y @y2 @t2

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

Saved successfully!

Ooh no, something went wrong!