After solving an ODE with 'Solve' function, I'm getting a result as
Now I know that the coefficients $c_1, c_2$ have to be zero when I impose further restrictions on the solution, so after obtaining the above solution, how I can set the coefficients $c_1, c_2$ to zero so that I will only have the last term on the solution?
sol
is the solution, Try:sol2 = sol /. {C[1] -> 0, C[2] -> 0}
$\endgroup$sol /. C[_Integer] :> 0
btw, the title of your question should beDSolve
notSolve
$\endgroup$