
\[w=Ae^{\sqrt{a}z}+Be^{-\sqrt{a}z},\]