I'm taking a differential equations course, and I was wondering what the intuition behind multiplying by x to get a linearly independent solution to a 2nd order homogeneous linear ODE is. Consider the DE: $$ y^{\prime\prime} + 4y^{\prime} + 4y = 0 $$ Evaluating the characteristic polynomial: $$ \lambda^2 + 4\lambda + 4 = 0\\ (\lambda+2)^2=0, \lambda=-2\ \text{(double root)}\\ y=c_1e^{-2x}+c_2xe^{-2x} $$ I'm trying to get a hold of why multiplying by $x$ makes sense. I understand the derivation via variation of coefficients, but I don't get why it makes sense. Why does multiplying a solution to a differential equation by $x$ to get another solution that is linearly independent make sense? Is it a guess, or is there some deeper intuition for why this makes sense in the case of a double root? Does multiplying a function of $x$ by $x$ always produce a new linearly independent function?
My teacher mentioned something about it being the first term of some taylor series expansion for $f(\epsilon)$ when nudging $x$ by $\epsilon$ in the first solution to the DE, but I didn't really understand that explanation. Is there more to that explanation?
Here's an explanation as to why all solutions of the differential equation $$\sum_{k=0}^n \binom{n}{k}(-\lambda)^{n-k} y^{(k)}=0$$ must be of the form $$c_1e^{\lambda x}+c_2xe^{\lambda x}+c_3x^2e^{\lambda x}+\cdots + c_n x^{n-1}e^{\lambda x}$$ for some constants $c_1,c_2,c_3\ldots, c_n$. Note that the characteristic polynomial of the above differential equation is $(x-\lambda)^n$, so hopefully this helps with your inquiry (in particular by setting $n=2$).
We first prove a short lemma: If $y$ is a $n$-times differentiable function, then $$\frac{d^n}{dx^n}\left(ye^{-\lambda x}\right)=e^{-\lambda x}\sum_{k=0}^n\binom{n}{k}(-\lambda)^{n-k}y^{(k)}.$$ We'll prove this by induction. The base case $n=0$ is easily verifiable. Now, if we assume the statement is true for some particular $n$, then \begin{align*} \frac{d^{n+1}}{dx^{n+1}}\left(ye^{-\lambda x}\right)&=\frac{d}{dx}\left[e^{-\lambda x}\sum_{k=0}^n\binom{n}{k}(-\lambda)^{n-k}y^{(k)}\right]\\ &=e^{-\lambda x}\left[\sum_{k=0}^n\binom{n}{k}(-\lambda)^{n-k}y^{(k+1)}\right]+e^{-\lambda x}\left[\sum_{k=0}^n\binom{n}{k}(-\lambda)^{n+1-k}y^{(k)}\right]\\ &=e^{-\lambda x}\sum_{k=0}^{n+1}\binom{n+1}{k}(-\lambda)^{n+1-k}y^{(k)}. \end{align*} Hence, the lemma is proven. If $y$ satisfies the differential equation above, then by the lemma we have $$\frac{d^n}{dx^n}\left(ye^{-\lambda x}\right)=0.$$ Since the only functions whose $n$th derivative is zero are polynomials of degree strictly less than $n$, it follows that $$ye^{-\lambda x}=c_1+c_2x+c_3x^2+\cdots + c_n x^{n-1}$$ for some constants $c_1,c_2,c_3\ldots, c_n$. This yields the desired result.