Quantum scattering via the log derivative version of the Kohn variational principle