Suppose a small cannonball weighing 16 pounds is shot vertically upward, with an initial velocity

v0 = 300 ft/s.
The answer to the question "How high does the cannonball go?" depends on whether we take air resistance into account. If air resistance is ignored and the positive direction is upward, then a model for the state of the cannonball is given by
d2s/dt2 = −g
(equation (12) of Section 1.3). Since
ds/dt = v(t)
the last differential equation is the same as
dv/dt = −g,
where we take
g = 32 ft/s2.
If air resistance is incorporated into the model, it stands to reason that the maximum height attained by the cannonball must be less than if air resistance is ignored.
(a) Assume air resistance is proportional to instantaneous velocity. If the positive direction is upward, a model for the state of the cannonball is given by
m dv/dt = −mg − kv,
where m is the mass of the cannonball and
k > 0
is a constant of proportionality. Suppose
k = 0.0025
and find the velocity
v(t)
of the cannonball at time t.

m dv/dt = -mg -kv

v' + (k/m)v = -g

use the integrating factor e^(kt/m) and you have

(e^(kt/m) v)' = -ge^(kt/m)
Now integrate and you have

e^(kt/m) v = -g(m/k)e^(kt/m) + c
v = -gm/k + c*e^(-kt/m)

Now just plug in your values

I worked it out without the integrating factor. I end up with

v=-m/k Ce^-(kt/m) - mg/k

In webassign, if I do the practice problem and get the wrong answer I can ask for the correct one. It gives the solution as 6700e^-0.005t - 6400
I'm not coming up with that.

I think my solution via separable DE is the same as yours via integrating factor....

That's the problem. I didn't change weight to mass.

Thanks for the help!

To find the velocity of the cannonball at time t, we need to solve the differential equation:

m * dv/dt = -mg - kv

Given that the mass of the cannonball, m, is 16 pounds and the constant of proportionality, k, is 0.0025, we can substitute these values into the equation:

16 * dv/dt = -16g - 0.0025v

Next, let's divide both sides of the equation by 16 to simplify it:

dv/dt = (-16g - 0.0025v)/16

Now, we can substitute the value of g, which is 32 ft/s^2, into the equation:

dv/dt = (-16 * 32 - 0.0025v)/16

Simplifying further:

dv/dt = (-512 - 0.0025v)/16

Now, this is a separable differential equation, so we can separate the variables and solve it. Let's move the v term to one side and the t term to the other side:

16 dv/(-512 - 0.0025v) = dt

Next, we integrate both sides with respect to their respective variables:

∫16 dv/(-512 - 0.0025v) = ∫dt

To integrate the left side, we use the substitution u = -512 - 0.0025v, which gives du = -0.0025 dv:

∫(16/(-0.0025)) du = ∫dt

(-6400) ln(|u|) = t + C

Now, let's substitute the value of u back in:

(-6400) ln(|(-512 - 0.0025v)|) = t + C

To find the constant of integration, we need to use the initial condition v(0) = v0 = 300 ft/s:

(-6400) ln(|(-512 - 0.0025 * 300)|) = (0) + C

(-6400) ln(|-1187|) = C

Now, we can rewrite the equation as:

(-6400) ln(|(-512 - 0.0025v)|) = t - 6400 ln(|-1187|)

To find the velocity v(t) at a specific time t, you can solve this equation for v.

ok will try to use feet instead of meters

mass = weight/g
m = 16 pounds/32 = .5

m dv/dt = - m g - k v

m dv/dt = -32 m - k v

dv/dt = -32 -(.0025/.5) v

dv/dt = -32 - .005 v

try v = - b + a e^-c t)
where a c and b are constants
then
dv/dt = -b - a c e^-ct
so
-32-.005(-b+ae^-ct) = -b -ac e^-ct
-32 +.005b -.005ae^-ct = -b -ace^-ct
32 = 1.005 b
b = 31.8
.005 = c
so
v = -31.8 + a e^-.005 t
but at t = 0, v = 300
300 = -31.8 + a e^0
a = 331.8

so v =-31.8 + 331.8 e^-.005 t