Find all solutions of the second-order linear differential equation

on the interval .

The given second-order linear differential equation is of the form

These values of and give us . Hence, and . By Theorem 8.7 (page 326-327 of Apostol) we then have

Therefore,

for constants and .

How did you simplify the answer to not contain any cos or sin here?