Suppose a small single-stage rocket of total mass m(t) is launched vertically, the positive direction is upward, the air resistance is linear, and the rocket consumes its fuel at a constant rate.
A mathematical model for the velocity v(t) of the rocket is given by
where k is the air resistance constant of proportionality,is the constant rate at which fuel is consumed, R is the thrust of the rocket, , is the total mass of the rocket at t=0, and g is the acceleration due to gravity.
I will show how to solve for part a.
(a) Find the velocity v(t) of the rocket if
I looks like a super daunting equation at first but at least all of these inputs are in matching units, so we should be able to plug and a play to start breaking down our answer. and the IVP they have set up starts at the origin (0,0) so any constants of integration should be fairly simple to come up with at the end as well.
So starting off with filling in values
This can be simplified of course.
Now even though the integrating factor could be written out by hand, I thought I’d try my hand at coding a handle that would work for matlab to produce an answer.
I came up with the following:
(t*(3*t + 25))/125
while this answer is exact, it’s not how we usually write a velocity function, so the proper expansion is