Your choice of a particular function for the method of undetermined coefficients is incorrect. You're going to have to have the function

In solving the DE for the region

you're not applying the initial conditions at the correct location. It needs to be at

not

Try carrying those corrections through and see what happens.

Very interesting and fun problem, by the way! Thanks for posting!