Sometimes it arrives to me that I try to solve a linear differential equation for a long time and in the end it turn out that it is not homogeneous in the first place.
Is there a way to see directly that a differential equation is not homogeneous?
Please, do tell me.
For a linear differential equation $$a_n(x)\frac{d^ny}{dx^n}+a_{n-1}(x)\frac{d^{n-1}y}{dx^{n-1}}+\cdots+a_1(x)\frac{dy}{dx}+a_0(x)y=g(x),$$ we say that it is homogenous if and only if $g(x)\equiv 0$. You can write down many examples of linear differential equations to check if they are homogenous or not. For example, $y''\sin x+y\cos x=y'$ is homogenous, but $y''\sin x+y\tan x+x=0$ is not and so on. As long as you can write the linear differential equation in the above form, you can tell what $g(x)$ is, and you will be able to tell whether it is homogenous or not.