No one changed an ordinary differential equation into a partial differential equation. They just used partial derivatives to show show that the sum of two differentials can, in some circumstances, be written as a single differential- which makes the problem very easy.