Complex methods for partial differential equations