Well, your problem is that those two equations are NOT of the form and can be put in that form in a number of different ways. For example, just adding them gives . In that case , , , and .
If you were to subtract the two equations rather than add, you would get and that would a different f.
Personally, what I would do is integrate and , treating as a constant. That will give x and y as functions of and .