Convert the given equation to the form dy/dx + p(x)y = q(x). This is the standard form of an ordinary linear differential equation.
Evaluate the integrating factor u(x) = exp(int(p(x)dx)). The integrating factor, u(x), multiplied by the function p(x), will equal u'(x).
Evaluate int(u(x)q(x)dx). This, when the constant C is added to it and divided by the integrating factor u(x), will give you a solution to the differential equation.
Write down the form of the general solution. It is given in the form of y=(int(q(x)u(x)dx ) + C)/u(x).
Integrate both sides of the given equation. In the example y'=2x + 10, integrating y' will yield y and integrating 2x + 10 gives x^2 + x + C.