Yes, that's correct for p(x). To find the general solution y, a function of x, to this problem, you find
i) the general solution to the related homogeneous equation y' - 0.2y = 0
ii) find anyone particular solution to the original homogenous equation
iii) add them
So finding the general solution to y' - 0.2y = 0 means finding a family of solutions to this equation. We can do it:
y' - 0.2y = 0
y' = 0.2y
dy/dx = 0.2y
dy/y = 0.2dx
lny = 0.2x + C
y = exp(0.2x + C)
y = a*exp(0.2x) [where a = eC]
So this gives a family of solutions, paramterized by a. In other words, for EACH real number a, y(x) = ae0.2x is a solution to y' - 0.2y = 0. We write yh(x) = ae0.2x, where the subscript "h" stands for "homogenous"
We now look for yp, a particular solution to the original equation:
y' - 0.2y = p(x)
Since p(x) is a degree 1 polynomial, it's a rule of thumb that we ought to guess a degree 1 polynomial for our particular solution. Well a degree 1 polynomial is just one of the form mx+b, so we let this be our guess of yp, and we sub it into see if it works, and what values of m, b we need:
If yp = mx+b, then yp' = m, so:
yp' - 0.2yp = -0.02x
m - 0.2(mx + b) = -0.02x
-0.2mx + (m - 0.2b) = -0.02x + 0
So -0.2m = -0.02 [equating coefficients of x] and m-0.2b = 0 [equating coefficients of 1]
We get m = 1/10, b = 1/2, giving yp = 0.1x + 0.5
So the general solution is y = yh + yp = ae0.2x + 0.1x + 0.5. What this means is that a function y of x is a solution to dy/dx = 0.2y - 0.02x if and only if there is some real number a such that y(x) = ae0.2x + 0.1x + 0.5. So if every solution comes in the form ae0.2x + 0.1x + 0.5, which of these have derivative constant?
y' = 0.2ae0.2x + 0.1
Well this is constant iff a = 0, correct? And a = 0 iff y = 0.1x + 0.5. So y' is constant iff y = 0.1x + 0.5 which implies that y is in the form y = mx+b.