I think it's fine, but I agree with @haruspex that you have to check the factorisation of ##y''##.
Just a friendly reminder: there are critical points as well where the derivative doesn't exist. In this case, the first derivative exists for every ##x##, so you don't have to matter.