Your differential equation falls under the general form :
dy/dt = a.y + b
where a, b are some constants (a non zero).
The general solution is :
y(t) = K.exp(at) - b/a
with K any constant.
You are asked to solve this equation using 3 different methods ? I can only see 1 method, but maybe it can be written under 3 different forms :
(a) Let's first solve :
mv' = - pv
v' = - pv/m
v(t) = K.exp(- pt/m) for any constant K
Now let's solve :
0 = -pv - mg
pv = - mg
v = - mg/p
And finally let's add together our 2 solutions :
v(t) = K.exp( - pt/m) - mg/p
(b) It is a known fact that a first-order linear equation dy/dt = a.y + b has solutions of the form : y(t) = K.exp(at) - b/a (see above)
mv' = - pv - mg
v' = - pv/m - g
Let's denote a = - p/m and b = - g :
v(t) = K.exp( pt/m ) - (-g) / ( - p/m)
v(t) = K.exp( - pt/m) - gm/p
(c) Let's P = v + mg / p
v = P - mg / p
P' = v'
Let's substitute v with P in our differential equation :
m P' = - p( P - mg/p ) - mg
m P' = - p P + mg - mg
m P' = - p P
P' = - p P / m
Hence P = K. exp( - pt/m )
Now let's get back to v :
v = P - mg / p = K.exp ( -pt/m) - mg / p
I'm not sure I did the work as it was expected, since, for me, those "3" methods are exactly similar...
Is it a maths course or a physics course ?