The given differential equation is a non-homogeneous second-order linear equation.
The complementary solution is \( c_1 \cos \sqrt{3}x + c_2 \sin \sqrt{3}x \), and the particular solution is of the form \( -\frac{2}{3}x \).
Therefore, the total solution is \( c_1 \cos \sqrt{3}x + c_2 \sin \sqrt{3}x - \frac{2}{3}x \).