M=2x+y, N=x+2y.
Test:My=1, Nx=1 ⟹ exact.
Integrate M in x (treat y as a constant):
F=∫(2x+y)dx+g(y)=x2+xy+g(y).
The g(y) is the "constant" of x-integration — it can depend on y because y was frozen.
Differentiate in y, match N:Fy=x+g′(y)=!x+2y⇒g′(y)=2y.Integrate:g(y)=y2.
Answer:x2+xy+y2=c.
Be careful with the minus sign: N=−(xsiny−y2)=−xsiny+y2.
M=cosy.
Test:My=−siny; Nx=−siny ⟹ exact.
Integrate M:F=∫cosydx+g(y)=xcosy+g(y) (here cosy is a constant w.r.t. x).
Match N:Fy=−xsiny+g′(y)=−xsiny+y2⇒g′(y)=y2⇒g(y)=31y3.Answer:xcosy+31y3=c.
Show ydx−xdy=0 is not exact, then note what fixes it.
Recall Solution 3.1
M=y, N=−x. My=1, Nx=−1. 1=−1 ⟹ not exact.What fixes it: multiply by the integrating factor μ=1/x2 (a separate topic — see Integrating Factors for ODEs). Then
x2ydx−x1dy=0,M=x2y,N=−x1.
Now My=1/x2 and Nx=1/x2 ⟹ exact, and the left side is exactly −d(y/x). Solution: y/x=c.
For which constant a is (axy+y2)dx+(x2+2xy)dy=0 exact? Then solve it.
Recall Solution 3.2
M=axy+y2, N=x2+2xy.
Force the test:My=ax+2y, Nx=2x+2y.
Match them: ax+2y=2x+2y for allx,y ⟹ a=2.
With a=2: M=2xy+y2.
Integrate M:F=∫(2xy+y2)dx+g(y)=x2y+xy2+g(y).Match N:Fy=x2+2xy+g′(y)=x2+2xy⇒g′(y)=0⇒g(y)=0.Answer:a=2 and x2y+xy2=c.
Solve (y1+2x)dx+(−y2x+3y2)dy=0 by integrating N in y first (the symmetric route). State the domain restriction.
Recall Solution 4.1
M=y1+2x, N=−y2x+3y2. (Requires y=0.)
Test:My=−y21; Nx=−y21 ⟹ exact. ✓
Integrate N in y (treat x as constant), add h(x) this time:
F=∫(−y2x+3y2)dy+h(x)=yx+y3+h(x).
(Note ∫−x/y2dy=−x⋅(−1/y)=x/y.)
Match Fx=M:Fx=y1+h′(x)=!y1+2x⇒h′(x)=2x⇒h(x)=x2.Answer:yx+y3+x2=c,y=0.
A student integrated M=6x2+4xy and got F=2x3+2x2y+g(y), then matched against N=2x2−3y2. Complete the solution — and explain, using the picture, why no term of N gets integrated twice.
Recall Solution 4.3
Test first (the student skipped it): My=4x, Nx=4x ⟹ exact. ✓
Match N:Fy=2x2+g′(y)=!2x2−3y2⇒g′(y)=−3y2⇒g(y)=−y3.Answer:2x3+2x2y−y3=c.Why no double-counting: the part of N that equals 2x2 is already produced by differentiating ∫Mdx=2x3+2x2y in y. On the hill picture, that slope is already built into F. Only the leftover slope −3y2 — the part with no x in it — is new information, and it becomes g′(y). Subtracting it out is exactly step M of I-D-M-I.
Consider (y2−1)dx+(2xy)dy=0. Solve it. Then examine the degenerate levelc=0 geometrically: what curve(s) does F(x,y)=0 describe?
Recall Solution 5.2
M=y2−1, N=2xy.
Test:My=2y, Nx=2y ⟹ exact.
Integrate M:F=∫(y2−1)dx+g(y)=x(y2−1)+g(y)=xy2−x+g(y).Match N:Fy=2xy+g′(y)=2xy⇒g′(y)=0⇒g(y)=0.General solution:xy2−x=c, i.e. x(y2−1)=c.Degenerate level c=0:x(y2−1)=0 splits into x=0 (the y-axis) ory2=1, i.e. y=1 and y=−1 (two horizontal lines). So the single level curve F=0 is actually a union of three straight lines crossing the plane — a reminder that a contour F=c need not be one smooth curve; it can branch or split where the level passes through a saddle/crossing.
The equation Mdx+Ndy=0 with M=2xy3+y is exact for a suitable N with N(0,y)=y4. Reconstruct N.
Recall Solution 5.3
Exactness demands Nx=My. Compute My=∂y∂(2xy3+y)=6xy2+1.
So Nx=6xy2+1. Integrate in x to recover N (the "constant" is a function of y):
N=∫(6xy2+1)dx+φ(y)=3x2y2+x+φ(y).Pin φ using N(0,y)=y4: set x=0: N(0,y)=0+0+φ(y)=y4⇒φ(y)=y4.Answer:N=3x2y2+x+y4.
(Quick check that a real F exists: F=x2y3+xy+51y5 gives Fx=2xy3+y=M and Fy=3x2y2+x+y4=N. ✓)
Show that every separable equationp(x)dx+q(y)dy=0 is automatically exact. Where does the potential come from?
Recall Solution 5.4
Here M=p(x) depends on x only; N=q(y) depends on y only.
Test:My=∂y∂p(x)=0 (no y inside), and Nx=∂x∂q(y)=0 (no x inside).
0=0 ⟹ always exact. ✓
The potential:F=∫p(x)dx+∫q(y)dy, and the solution is ∫pdx+∫qdy=c — precisely the answer the separable method gives. So separable equations are a special, "already-split" case of exact ones.
Recall One-line self-check of the whole ladder
If you can (a) run My=?Nx, (b) integrate either coefficient and patch with g(y) or h(x), (c) apply an initial condition to fix c, and (d) reverse the process to build an exact equation from a chosen F — you own this topic.