Solve the boundary value problem
y^{\prime\prime}+2y=0,\quad y(0)=0,\quad y(\pi)=0. (15)
The general solution of the differential equation is again given by equation (8),
y=c_{1}\cos\left({\sqrt{2}}\,x\right)+c_{2}\sin\left({\sqrt{2}}\,x\right).\qquad\qquad\qquad\qquad\qquad\qquad(8)
y=c_{1}\cos\left({\sqrt{2}}x\right)+c_{2}\sin\left({\sqrt{2}}x\right).
The first boundary condition requires that c_{1} = 0, and the second boundary condition leads to c_{2}\sin\left({\sqrt{2}}\pi\right)=0. Since \sin\left({\sqrt{2}}\pi\right)\neq 0, it follows that c_{2} = 0 also. Consequently, y = 0 for all x is the only solution of the problem (15). This example illustrates that a homogeneous boundary value problem may have only the trivial solution y = 0.