complex variable technique