State whether (2xy)dx+(x2)dy=0 is exact. If yes, give F.
Recall Solution
M=2xy,N=x2. Differentiate: My=2x (treat x as frozen, derivative of 2xy in y is 2x),
Nx=2x. Since My=Nx, it is exact.
Find F: F=∫2xydx=x2y+ϕ(y). Here ϕ(y) is the undetermined function defined above
(the "x-constant" that may still depend on y). Then Fy=x2+ϕ′(y) must equal N=x2, so
ϕ′=0, i.e. ϕ is a genuine constant, absorbed into C.
x2y=C.
Solve (3x2+y)dx+xdy=0 using an integrating factor.
Recall Solution
M=3x2+y,N=x. My=1,Nx=1. Wait — equal! It is already exact.
F=∫(3x2+y)dx=x3+xy+ϕ(y) (with ϕ(y) the undetermined x-constant);
Fy=x+ϕ′(y)=x⇒ϕ′=0.
x3+xy=C.
(Lesson: always test BEFORE hunting a factor — sometimes there is nothing to fix.)
Show that (3xy+y2)dx+(x2+xy)dy=0 admits an x-only factor but NOT a y-only factor, and
explain why in terms of the surviving variable.
Recall Solution
M=3xy+y2,N=x2+xy. My=3x+2y,Nx=2x+y.
x-test: NMy−Nx=x2+xy(3x+2y)−(2x+y)=x(x+y)x+y=x1.
The (x+y) cancels — pure x. ✓ So μ(x)=e∫(1/x)dx=eln∣x∣=x (on x>0) exists.
y-test: MNx−My=3xy+y2(2x+y)−(3x+2y)=y(3x+y)−x−y.
No cancellation: −x−y over y(3x+y) still carries x. ✗ So no μ(y).
Why: a y-only factor requires the ratio's x's to all cancel — but here the numerator's x
and the denominator's x live in different combinations (−x−y vs 3x+y), so nothing cleans up.
This is Worked Example 1 from the parent, giving x3y+21x2y2=C.
Goal: combine techniques, recognise when a special-form factor (like μ=e∫Pdx from
Linear first-order ODEs) is the same idea, and integrate by parts inside the potential.
The linear ODE dxdy+xy=x can be written in differential form. Put it as
Mdx+Ndy=0, find its integrating factor by the x-test, and confirm it matches the linear
factor e∫Pdx.
Recall Solution
Rewrite: dy=(x−xy)dx, i.e. (xy−x)dx+dy=0.
So M=xy−x,N=1. My=x1,Nx=0. Not exact.
x-test: NMy−Nx=11/x−0=x1 — pure x. ✓
μ=e∫(1/x)dx=eln∣x∣=x (on x>0).
Linear-ODE factor: P(x)=x1, so e∫Pdx=eln∣x∣=x. Same factor. ✓
Solve ydx+(2x−yey)dy=0 (parent Worked Example 2). Find the factor, then determine ϕ(y)
by integration by parts shown in full, and verify the boxed answer.
Recall Solution
Factor.M=y,N=2x−yey, My=1,Nx=2; not exact. x-test 2x−yey1−2 keeps x. ✗
y-test MNx−My=y2−1=y1 — pure y. ✓
μ=e∫(1/y)dy=eln∣y∣=y (on y=0).
Build F.F=∫y2dx=xy2+ϕ(y). Differentiate in y and match N∗:
Fy=2xy+ϕ′(y)=2xy−y2ey⟹ϕ′(y)=−y2ey.
Integrate ϕ′=−y2ey by parts (why parts? the integrand is a polynomial × exponential —
parts peels one power of y off per pass, and ey never gets worse).
Use ∫udv=uv−∫vdu.
Assemble.xy2−ey(y2−2y+2)=C.Check (differentiate the boxed F): Fx=y2=M∗ ✓; and
Fy=2xy−[ey(y2−2y+2)+ey(2y−2)]=2xy−y2ey=N∗ ✓ (the two exponential pieces cancel to
leave exactly −y2ey, confirming the parts computation).
From the first: 2b+2=3a+3⇒2b=3a+1. Combine with 3b=2a+4:
multiply first by 3, second by 2: 6b=9a+3 and 6b=4a+8⇒9a+3=4a+8⇒5a=5⇒a=1,
then 2b=3+1=4⇒b=2. So μ=xy2.
Multiply original by xy2: M∗=xy2(2y−6x)=2xy3−6x2y2, N∗=xy2(3x−4x2y−1)=3x2y2−4x3y.
Re-test: My∗=6xy2−12x2y, Nx∗=6xy2−12x2y. ✓
Prove the general principle you just used: if μ=xayb makes Mdx+Ndy=0 exact, the
exponents a,b solve a linear system (so mastery = matching powers, not guessing).
Recall Solution (sketch)
Exactness demands ∂y(xaybM)=∂x(xaybN). Product rule:
xayb(byM+My)=xayb(axN+Nx).
Cancel xayb=0:
ybM+My=xaN+Nx⟹byM−axN=Nx−My.
When M,N are polynomials, each distinct monomial in x,y gives one linear equation in a,b.
Two independent monomials ⇒ a 2×2 linear system ⇒ unique (a,b) when it is consistent.
That is exactly the pair of equations solved in Ex 5.1. ■