Number of arbitrary constants in an ODE

constantsordinary differential equations

Consider the general solution of a differential equation-
$$y=(C_1+C_2)\cos(x+C_3)+C_4\exp(x)+C_5$$
Without differentiating this equation and finding the differential equation for it, how can we say what the order of that DE is. Ofcourse, we can always count the number of arbitrary constants, which in this case I think are $4$ (since $C_1+ C_2$ is just one). But my textbook says that the DE has order $3$. Am I missing something? I think my mistake is in not absorbing one more constant, which I tried doing in the following way-
$$y=K (\cos C_3 \cos x-\sin C_3 \sin x)+C_4\exp(x)+C_5$$
and then we can also absorb the cosine and sine of $C_3$. But even here, it appears to me that we still have $4$ constants.
Any help is appreciated.

Best Answer

You can indeed rewrite the solution as

$$y=a\cos x+b\sin x+ce^x+d$$ where the four constants are independent. As the functions $\cos x,\sin x,e^x$ and $1$ are linearly independent, the expression does have four DOFs.


The terms will be respectively eliminated by the operators $D^2+1,D-1$, and $D$, giving the equation

$$(D^2+1)(D-1)Dy=0$$

or

$$y''''-y'''+y''-y'=0$$ like said in the comments.

Related Question