Solve
Test for exactness before anything else. Write and . Then
These differ, so the equation is not exact and there is no potential function to read off directly.
Spot the structural clue. Both coefficients are functions of the single combination :
Whenever an equation depends on and only through , the substitution reduces it to a separable equation in and .
Change variables. Put , so and . Dividing the original equation by and solving for ,
so
Separate and split the improper fraction. Moving everything in to one side,
Rewriting as "polynomial plus proper fraction" is what makes the left side integrable in closed form.
Integrate both sides.
Substitute back and tidy. With ,
Verify by implicit differentiation. For ,
and identically (checked numerically at , and to machine precision), so the level curves of are exactly the solution curves. Equivalently, , showing is the integrating factor hidden behind the substitution.
Need to solve a different problem like this? Open the solver →