By inspection find a particular solution of $y''+2y=−4x$.
Write the answer in the form $a_nx^n+\ldots+a_0$ with the highest degree order.
I know how to do this when there's one variable, by finding the value of $y$, but when there are two I'm not sure if I have to find the value of both $x$ and $y$ or ...?
Any help would be appreciated. Thank you!
Here you can use the method of undetermined coefficients, where the solution will be the sum of complementary solution (homogenous solution) and the particular solution.
Let $y=e^{\lambda x}$
$$\frac{d^2}{d^2x}(e^{\lambda x}) + 2e^{\lambda x}= 0$$
I'll leave the solution as an exercise, but you should get some function of $Y$ that requires Euler's identity.
Next, you find the particular solution, often denoted as $y_p$. In this case, the particular solution will take the form $y_p (x) = a_1 + a_2 x$. You can plug this into your differential equation and solve for $a_1$ and $a_2$.
Then let $y = y_h + y_p$ and that is your implicit solution. Solve for any constants with initial conditions as you normally would.