There might be a simpler method but you can solve it like in the example here Examples of differential equations - Wikipedia, the free encyclopedia
Where p(x)= -(k+1) and q(x)= 1
There might be a simpler method but you can solve it like in the example here Examples of differential equations - Wikipedia, the free encyclopedia
Where p(x)= -(k+1) and q(x)= 1