29.1. FIRST ORDER LINEAR EQUATIONS 543

Let A be the amount of gas in the lake. Then

dAdt

= (1+ sin(t))×1000− A106 1000 = 1000(1+ sin(t))− 1

103 A

Rather than worry with the stupid numbers, write this as

A′+aA = b(1+ sin(t)) , A(0) = 0

Following the procedure for finding solutions to a linear equation,(eatA

)′= b(1+ sin(t))eat

Now it follows that, taking antiderivatives of both sides,

eatA = b(

eat

a3 +a

(a2 sin t−acos t +a2 +1

))+C

Since A(0) = 0, it follows that

0 = b(

1a3 +a

(−a+a2 +1

))+C

and so C = − ba3+a

(a2−a+1

). Therefore,

A = be−at(

eat

a3 +a

(a2 sin t−acos t +a2 +1

))+

(a−a2−1

)be−at

a3 +a

Now placing in the formula the values of a and b and then simplifying the result it followsthat A equals

106e−0.001 t(

1.0e0.001 t −0.001e0.001 t cos t +1.0×10−6e0.001 t sin t−0.999)

Then, dividing by the number of gallons in the lake, this yields for the number of gramsper gallon

e−0.001 t(

1.0e0.001 t −0.001e0.001 t cos t +1.0×10−6e0.001 t sin t−0.999)

After a long time, the terms having the negative exponential will disappear in the limit andthis yields for the number of grams per gallon the formula

1−0.001cos t +1.0×10−6 sin t

Note that this yields approximately 1 gram per gallon. Compare to the concentration of theincoming water. The concentration of the incoming water oscillates about 1 and so doesthe concentration of gas in the lake, although the oscillations are much much smaller. Thisis due to the large number of gallons in the lake. You might have expected this but youcould not have predicted exact values without the differential equation.

Example 29.1.14 A pumpkin is launched 30◦ from the horizontal at a speed of 60 feet persecond. It is acted on by the force of gravity which delivers an acceleration which is 32feet per second squared and an acceleration due to air resistance which we assume is .2times the speed which acts in the opposite direction to the direction of motion. Describethe position of the pumpkin as a function of time.

29.1. FIRST ORDER LINEAR EQUATIONS 543Let A be the amount of gas in the lake. ThendA . A ; 1a (1+sin(t)) x 1000 — 796 1000 = 1000 (1 + sin (t)) — T03Rather than worry with the stupid numbers, write this asAA’ +aA =b(1+sin(t)), A(0) =0Following the procedure for finding solutions to a linear equation,(e“A)' = b(1+sin(t)) e@Now it follows that, taking antiderivatives of both sides,atet4=o/( ; («?sinr —acost + a2+1) ) +CataSince A (0) = 0, it follows that_ ! _ 20=0(t( a+a +1))+eand so C = —2 (a? —a+1) . Therefore,a? +aa-a— 1) beataatA=be“ (5 (a’ sint — acost +a” + :)) + (ataNow placing in the formula the values of a and b and then simplifying the result it followsthat A equals10%e~ 0-001" (1 el? _ 9.001 6°! cost + 1.0 x 107609" gint — 0.999 )Then, dividing by the number of gallons in the lake, this yields for the number of gramsper gallone70.0011 (1.06001 ~ 0.001 6! cost + 1.0 x 1078¢-!? sin t — 0.999 )After a long time, the terms having the negative exponential will disappear in the limit andthis yields for the number of grams per gallon the formula1—0.001 cost +1.0 x 10~° sintNote that this yields approximately 1 gram per gallon. Compare to the concentration of theincoming water. The concentration of the incoming water oscillates about | and so doesthe concentration of gas in the lake, although the oscillations are much much smaller. Thisis due to the large number of gallons in the lake. You might have expected this but youcould not have predicted exact values without the differential equation.Example 29.1.14 A pumpkin is launched 30° from the horizontal at a speed of 60 feet persecond. It is acted on by the force of gravity which delivers an acceleration which is 32feet per second squared and an acceleration due to air resistance which we assume is .2times the speed which acts in the opposite direction to the direction of motion. Describethe position of the pumpkin as a function of time.