General wave equation and its solution