A differential equation relates a function to its derivatives. Two labels classify every DE on the paper:
Order = the highest derivative present. Degree = the power of that highest derivative after the equation is polynomial in all derivatives. If the derivatives sit inside a sine, exponential, log or root that cannot be cleared, the degree is not defined — a favourite one-marker.
(dx2d2y)3+(dxdy)2+y=0⇒order 2,degree 3dxdy+sin(dxdy)=0⇒order 1,degree not defined
General vs particular solution: the general solution of an nth-order DE carries exactly n arbitrary constants; a particular solution has none — the constants are fixed by the given conditions. Verifying a solution means differentiating the candidate and substituting back, never solving from scratch.
Method 1 — Variables Separable
If the equation can be pushed into the shape g(y)dy=f(x)dx, integrate both sides and add one constant:
dxdy=1+x21+y2⇒∫1+y2dy=∫1+x2dx⇒tan−1y=tan−1x+C
Leave implicit answers implicit — do not fight to isolate y unless the question demands it.
The Method-Picking Drill
Board questions never announce the method. Run this check in order:
Can x-terms and y-terms be separated? Separate and integrate.
Is dxdy=F(xy) (every term of the same total degree)? It is homogeneous — substitute y=vx.
Does it fit dxdy+P(x)y=Q(x)? It is linear — build the integrating factor.
None of the above in y? Try swapping roles: the equation may be linear in x with dydx+P(y)x=Q(y).
One equation, one method — the drill picks it in under a minute.
Worked Examples — Order, Degree, Verification, Separation
Example 1 — Order and degree
State the order and degree of (dx2d2y)3+(dxdy)2+y=0 and of dxdy+sin(dxdy)=0.
Step 1 — first equation: highest derivative is dx2d2y (order 2), raised to power 3 in a polynomial equation — degree 3.
Step 2 — second equation: order 1, but dxdy sits inside a sine, so no polynomial form exists.
Answer: order 2, degree 3; and order 1, degree not defined.
Example 2 — Verifying a solution
Verify that y=Acosx+Bsinx is a solution of y′′+y=0.
Answer: verified — with two arbitrary constants for a second-order equation, this is the general solution.
Example 3 — Separation of variables
Solve dxdy=1+x21+y2.
Step 1 — separate:1+y2dy=1+x2dx.
Step 2 — integrate both sides:tan−1y=tan−1x+C.
Answer:tan−1y=tan−1x+C — one constant, on one side, and the implicit form is a complete answer.
Example 4 — Separation with exponentials
Solve dxdy=ex+y.
Step 1 — split the exponential:ex+y=exey, so e−ydy=exdx.
Step 2 — integrate:−e−y=ex+C1.
Answer:ex+e−y=C — tidy the constant's sign at the end; examiners accept any equivalent constant.
Example 5 — A particular solution
Solve dxdy=ytanx given y(0)=1.
Step 1 — separate and integrate:∫ydy=∫tanxdx gives log∣y∣=log∣secx∣+logC, so y=Csecx.
Step 2 — apply the condition:1=Csec0=C.
Answer:y=secx — a particular solution has no arbitrary constant left.
Example 6 — Writing the constant as logC
Solve xdxdy=y, x>0, y>0.
Step 1 — separate:ydy=xdx, so logy=logx+logC.
Step 2 — combine the logs:logy=log(Cx).
Answer:y=Cx — when both sides produce logs, writing the constant as logC collapses the answer in one line.
Method 2 — Homogeneous Equations
A first-order DE is homogeneous when it can be written as dxdy=F(xy) — equivalently, replacing x by λx and y by λy leaves the right side unchanged.
The fixed routine: substitute y=vx, so that
dxdy=v+xdxdv
The equation always becomes separable in v and x. Solve, then replace v=xy at the end. (If the equation is instead dydx=G(yx), use x=vy symmetrically.)
Method 3 — Linear Differential Equations
The standard form is
dxdy+P(x)y=Q(x)First force the equation into this shape (divide out any coefficient of dxdy), then read off P and Q. The integrating factor is
IF=e∫Pdx
and the solution is always
y⋅IF=∫Q⋅IFdx+C
Useful simplification: ealogu=ua, so P=x2 gives IF =x2, and P=−3cotx gives IF =sin3x1 — never leave an IF as an unevaluated exponential of a log.
Linear in x: when the equation resists all y-forms, rewrite it as
dydx+P(y)x=Q(y),IF=e∫Pdy,x⋅IF=∫Q⋅IFdy+C
The roles of x and y swap completely — everything else is identical.
Worked Examples — Homogeneous and Linear
Example 7 — Homogeneous, the base case
Solve dxdy=xx+y.
Step 1 — confirm homogeneity and substitute y=vx:v+xdxdv=1+v.
Step 2 — separate:xdxdv=1, so dv=xdx and v=log∣x∣+C.
Step 3 — restore v=xy:
Answer:y=xlog∣x∣+Cx.
Example 8 — Homogeneous with a trig twist
Solve dxdy=xy+tanxy.
Step 1 — substitute y=vx:v+xdxdv=v+tanv, so xdxdv=tanv.