Method of matched asymptotic expansions