Given a general solution, find its differential equation.

ordinary differential equations

So usually, a differential equation question is asking to find a general solution. But this is the other way around.

I have a general solution $$y=\frac{1}{c_1 \cos x+c_2 \sin x},$$ and I want to find the differential equation to it. This, I think, is about finding $c_1$ and $c_2$. So, I calculated the derivative, $$y'=\frac{c_1 \sin x -c_1 \cos x}{(c_2 \sin x+c_2 \cos x)^2}.$$

Now, it's time to subtract $y-y'$ and let them cancel out to find $c_1$,$c_2$ right? Or is the next step to find $y''$ and see if they have cancelling out terms and find $c_1$ and $c_2$?

Best Answer

$$y=\frac{1}{c_1 \cos x+c_2 \sin x}$$ $$\dfrac 1 y={c_1 \cos x+c_2 \sin x}$$ Substitute $u=1/y$: $$u={c_1 \cos x+c_2 \sin x}$$ $$u''+u=0$$ It's easier now..

Related Question