How many arbitrary constants will be there in the general solution of a second order differential equation?
The logic is straightforward: after simplifying, 2 is left. The method is simple: formula → substitution → calculation → answer.
Ref: NCERT Mathematics Class XII — Differential Equations