Constructing analytic solutions on the Tricomi equation