I've been stuck on this equation.
$y''+2y'=0$ is fairly simple, the general solution comes out as $y=c_{1}+c_{2}e^{-2x}$.
But when I try to solve the particular equation including the $x$ on the right I get stuck lacking a variable or like another equation. By the guessing method:
$y_{s} = Ax+B$, $y'_{s} = A$, $y''_{s} = 0$
Which leaves me with
$y_{s} = \frac{x}{2}+B$
Is there any other way to solve it or can it not be solved and the variable $B$ will be stuck there until I get some sort of more information / another equation or something?
The reason why your solution doesn’t work is because this is a “failure case” - that is to say that the usual particular integral is not independent of the complementary function, due to the appearance of the constant term in both.
Instead of using $y=Ax+B$ as the particular integral you have to use instead $$y=Ax^2+Bx$$ $$\implies y’=2Ax+B\implies y’’=2A$$
And then, $$2A+4Ax+2B=x\implies A=\frac14, B=-\frac14$$
Now you can write out the complete solution.