Find the general solution of the second-order differential equation
where for
, and
for all other
.
If or
, then we have the equation
This is of the form with
and
. Therefore,
so the solutions are given by
If , then we have the equation
A particular solution to this equation is given by (since
in this case). Therefore, all solutions are of the form