Analysis of singular solutions for two nonlinear wave equations