  Nonlocal nucleon-nucleus optical potential with rotational quadrupole
deformation enabling the excitation of the ${}^{24}\mathrm{Mg}(2^+)$ state is
developed; it fits well the proton-${}^{24}\mathrm{Mg}$ elastic and inelastic
differential cross section in the beam energy range from 30 to 45 MeV per
nucleon. The inelastic deuteron-${}^{24}\mathrm{Mg}$ scattering leading to the
excited ${}^{24}\mathrm{Mg}(2^+)$ state is studied in the same energy regime by
solving the three-body Faddeev-type equations for transition operators. Effects
of the optical potential nonlocality are evaluated by comparison with local
models. Significant effects on the inelastic differential cross section are
found at forward angles up to the first peak and at larger angles beyond the
second peak. Nonlocal optical potential provides a simultaneous reasonable
reproduction of the experimental data for the elastic and inelastic
proton-${}^{24}\mathrm{Mg}$ and deuteron-${}^{24}\mathrm{Mg}$ scattering, not
achieved using local potentials.
