Reported: [CASE:5287941] DSolve gives wrong solution. V 14.3
Using V 14.3, why DSolve gives solution $y=0$ which satisfies the IC given, but not the ode itself?
ode=Cos[x]*D[y[x],{x,2}]+3*y[x]==1; (* ID #22122*) ic={y[1]==0,Derivative[1][y][0]==0}; sol=DSolve[{ode,ic},y,x] ode /. sol ic /. sol Does this happen also in earlier versions? I tried it on V 14.2 and it gives same result.



{}. $\endgroup${y[0] == 0 /. First@DSolve[ode, y, x], y'[0] == 0 /. First@DSolve[ode, y, x]} // Solve[#, {C[1], C[2]}] &$\endgroup$y[1]==0in there and noty[0] == 0. But we get same result anyway, which is that $c_1=0,c_2=0$ which gives $y=0$ solution. But I would think that DSolve should check again now that the solution satisfies the ode also, and not just the IC. It seems then DSolve does not do this extra check, which is strange. $\endgroup$y[1]==0. I don't have time to spelunk it, but it certainly seems a bug. $\endgroup$