Our mathematicians aren't as good as SpaceX
Look up "Lossless Convexification of Nonconvex Control Bound and Pointing Constraints of the Soft Landing Optimal Control Problem" which is a 2013 IEEE paper. One of the authors is with SpaceX
Holy O'Fuck. I've played lots of KSP, but that math left me far, far behind. Like talking quantum physics to a sheep, far behind.
I don't even really understand what the title means, except it's somehow "how to land rockets on barges without earth-shattering kabooms"
The bios of the authors at the end are especially entertaining.