In Example 6.21, the general solution was . Here is the CF, and is the general solution to the homogeneous equation . For the PI we can take any particular solution to the (inhomogeneous) equation, e.g. .
For Example 6.22, we obtained the general solution
The CF here is . (You may want to check that this is a solution for the homogeneous equation .) An obvious choice of PI is .