The distance from the home plate is described by variable z. Then, the increasing rate is described by the derivative of z with respect to time, t.
Applying the Pythagorean theorem, the relation between z, x, and y is:
The derivative of x with respect to time is the speed of the player, that is,