[Maple Math]

In this case, we have [Maple Math] , and the general solution is of the form [Maple Math] .

The condition [Maple Math] implies that [Maple Math] , and the condition [Maple Math] implies that [Maple Math] .

We can instruct Maple to verify this reasoning as follows:

> H:='H';de1 := diff(H(x),x$2)=omega^2*H(x);

[Maple Math]

[Maple Math]

> sol1 := dsolve(de1,H(x));

[Maple Math]

> H:=unapply(rhs(sol1),x);

[Maple Math]

> solve({D(H)(0)=0,H(Pi)=0},{_C1,_C2});

[Maple Math]