Professor, I think you have a slight error in the solution to P1. In Eq. 1,7 you have a term $\cos(2nt)$ at the end, but should this not be a function of $x$? As you have Eq. 1.7 right now, there is no $x$-dependence.