Nonlocal potentials and their local equivalents