Order, Degree and What Counts as a Solution

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.

(d2ydx2)3+(dydx)2+y=0order 2, degree 3\left(\frac{d^2y}{dx^2}\right)^3 + \left(\frac{dy}{dx}\right)^2 + y = 0 \quad\Rightarrow\quad \text{order } 2,\ \text{degree } 3 dydx+sin(dydx)=0order 1, degree not defined\frac{dy}{dx} + \sin\left(\frac{dy}{dx}\right) = 0 \quad\Rightarrow\quad \text{order } 1,\ \text{degree not defined}

General vs particular solution: the general solution of an nnth-order DE carries exactly nn 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)dxg(y)\,dy = f(x)\,dx, integrate both sides and add one constant: dydx=1+y21+x2    dy1+y2=dx1+x2    tan1y=tan1x+C\frac{dy}{dx} = \frac{1 + y^2}{1 + x^2} \;\Rightarrow\; \int\frac{dy}{1+y^2} = \int\frac{dx}{1+x^2} \;\Rightarrow\; \tan^{-1}y = \tan^{-1}x + C Leave implicit answers implicit — do not fight to isolate yy unless the question demands it.

The Method-Picking Drill

Board questions never announce the method. Run this check in order:

  1. Can xx-terms and yy-terms be separated? Separate and integrate.
  2. Is dydx=F(yx)\frac{dy}{dx} = F\left(\frac{y}{x}\right) (every term of the same total degree)? It is homogeneous — substitute y=vxy = vx.
  3. Does it fit dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)\,y = Q(x)? It is linear — build the integrating factor.
  4. None of the above in yy? Try swapping roles: the equation may be linear in xx with dxdy+P(y)x=Q(y)\frac{dx}{dy} + 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 (d2ydx2)3+(dydx)2+y=0\left(\dfrac{d^2y}{dx^2}\right)^3 + \left(\dfrac{dy}{dx}\right)^2 + y = 0 and of dydx+sin(dydx)=0\dfrac{dy}{dx} + \sin\left(\dfrac{dy}{dx}\right) = 0.

Step 1 — first equation: highest derivative is d2ydx2\frac{d^2y}{dx^2} (order 22), raised to power 33 in a polynomial equation — degree 33.

Step 2 — second equation: order 11, but dydx\frac{dy}{dx} sits inside a sine, so no polynomial form exists.

Answer: order 22, degree 33; and order 11, degree not defined.

Example 2 — Verifying a solution

Verify that y=Acosx+Bsinxy = A\cos x + B\sin x is a solution of y+y=0y'' + y = 0.

Step 1 — differentiate twice: y=Asinx+Bcosxy' = -A\sin x + B\cos x, y=AcosxBsinx=yy'' = -A\cos x - B\sin x = -y.

Step 2 — substitute: y+y=y+y=0y'' + y = -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 dydx=1+y21+x2\dfrac{dy}{dx} = \dfrac{1 + y^2}{1 + x^2}.

Step 1 — separate: dy1+y2=dx1+x2\dfrac{dy}{1 + y^2} = \dfrac{dx}{1 + x^2}.

Step 2 — integrate both sides: tan1y=tan1x+C\tan^{-1}y = \tan^{-1}x + C.

Answer: tan1y=tan1x+C\tan^{-1}y = \tan^{-1}x + C — one constant, on one side, and the implicit form is a complete answer.

Example 4 — Separation with exponentials

Solve dydx=ex+y\dfrac{dy}{dx} = e^{x+y}.

Step 1 — split the exponential: ex+y=exeye^{x+y} = e^x e^y, so eydy=exdxe^{-y}\,dy = e^x\,dx.

Step 2 — integrate: ey=ex+C1-e^{-y} = e^x + C_1.

Answer: ex+ey=Ce^x + e^{-y} = C — tidy the constant's sign at the end; examiners accept any equivalent constant.

Example 5 — A particular solution

Solve dydx=ytanx\dfrac{dy}{dx} = y\tan x given y(0)=1y(0) = 1.

Step 1 — separate and integrate: dyy=tanxdx\int\dfrac{dy}{y} = \int\tan x\,dx gives logy=logsecx+logC\log\vert y\vert = \log\vert\sec x\vert + \log C, so y=Csecxy = C\sec x.

Step 2 — apply the condition: 1=Csec0=C1 = C\sec 0 = C.

Answer: y=secxy = \sec x — a particular solution has no arbitrary constant left.

Example 6 — Writing the constant as logC\log C

Solve xdydx=yx\dfrac{dy}{dx} = y, x>0x > 0, y>0y > 0.

Step 1 — separate: dyy=dxx\dfrac{dy}{y} = \dfrac{dx}{x}, so logy=logx+logC\log y = \log x + \log C.

Step 2 — combine the logs: logy=log(Cx)\log y = \log(Cx).

Answer: y=Cxy = Cx — when both sides produce logs, writing the constant as logC\log C collapses the answer in one line.

Method 2 — Homogeneous Equations

A first-order DE is homogeneous when it can be written as dydx=F(yx)\frac{dy}{dx} = F\left(\frac{y}{x}\right) — equivalently, replacing xx by λx\lambda x and yy by λy\lambda y leaves the right side unchanged.

The fixed routine: substitute y=vxy = vx, so that dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx} The equation always becomes separable in vv and xx. Solve, then replace v=yxv = \frac{y}{x} at the end. (If the equation is instead dxdy=G(xy)\frac{dx}{dy} = G\left(\frac{x}{y}\right), use x=vyx = vy symmetrically.)

Method 3 — Linear Differential Equations

The standard form is dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)\,y = Q(x) First force the equation into this shape (divide out any coefficient of dydx\frac{dy}{dx}), then read off PP and QQ. The integrating factor is IF=ePdx\text{IF} = e^{\int P\,dx} and the solution is always yIF=QIFdx+Cy\cdot\text{IF} = \int Q\cdot\text{IF}\,dx + C Useful simplification: ealogu=uae^{a\log u} = u^a, so P=2xP = \frac{2}{x} gives IF =x2= x^2, and P=3cotxP = -3\cot x gives IF =1sin3x= \frac{1}{\sin^3 x} — never leave an IF as an unevaluated exponential of a log.

Linear in xx: when the equation resists all yy-forms, rewrite it as dxdy+P(y)x=Q(y),IF=ePdy,xIF=QIFdy+C\frac{dx}{dy} + P(y)\,x = Q(y), \qquad \text{IF} = e^{\int P\,dy}, \qquad x\cdot\text{IF} = \int Q\cdot\text{IF}\,dy + C The roles of xx and yy swap completely — everything else is identical.

Worked Examples — Homogeneous and Linear

Example 7 — Homogeneous, the base case

Solve dydx=x+yx\dfrac{dy}{dx} = \dfrac{x + y}{x}.

Step 1 — confirm homogeneity and substitute y=vxy = vx: v+xdvdx=1+vv + x\dfrac{dv}{dx} = 1 + v.

Step 2 — separate: xdvdx=1x\dfrac{dv}{dx} = 1, so dv=dxxdv = \dfrac{dx}{x} and v=logx+Cv = \log\vert x\vert + C.

Step 3 — restore v=yxv = \frac{y}{x}:

Answer: y=xlogx+Cxy = x\log\vert x\vert + Cx.

Example 8 — Homogeneous with a trig twist

Solve dydx=yx+tanyx\dfrac{dy}{dx} = \dfrac{y}{x} + \tan\dfrac{y}{x}.

Step 1 — substitute y=vxy = vx: v+xdvdx=v+tanvv + x\dfrac{dv}{dx} = v + \tan v, so xdvdx=tanvx\dfrac{dv}{dx} = \tan v.

Step 2 — separate: cotvdv=dxx\int\cot v\,dv = \int\dfrac{dx}{x} gives logsinv=logx+logC\log\vert\sin v\vert = \log\vert x\vert + \log C.

Answer: sinyx=Cx\sin\dfrac{y}{x} = Cx — the whole solution is two integrals from the table.

Example 9 — Homogeneous with an initial condition

Solve dydx=2xy+y2x2\dfrac{dy}{dx} = \dfrac{2xy + y^2}{x^2} with y(1)=1y(1) = 1.

Step 1 — substitute y=vxy = vx: v+xdvdx=2v+v2v + x\dfrac{dv}{dx} = 2v + v^2, so xdvdx=v+v2x\dfrac{dv}{dx} = v + v^2.

Step 2 — separate with partial fractions: dvv(1+v)=dxx\dfrac{dv}{v(1 + v)} = \dfrac{dx}{x} gives logv1+v=logx+logC\log\left\vert\dfrac{v}{1+v}\right\vert = \log\vert x\vert + \log C, so yx+y=Cx\dfrac{y}{x + y} = Cx.

Step 3 — apply y(1)=1y(1) = 1: 12=C\dfrac{1}{2} = C.

Answer: 2y=x(x+y)2y = x(x + y), that is y=x22xy = \dfrac{x^2}{2 - x} — partial fractions from the Integrals chapter finish homogeneous problems constantly.

Example 10 — Linear, the template

Solve dydx+y=ex\dfrac{dy}{dx} + y = e^x.

Step 1 — read off P=1P = 1, Q=exQ = e^x: IF =e1dx=ex= e^{\int 1\,dx} = e^x.

Step 2 — the solution formula: yex=exexdx=e2x2+Cy e^x = \int e^x\cdot e^x\,dx = \dfrac{e^{2x}}{2} + C.

Answer: y=ex2+Cexy = \dfrac{e^x}{2} + Ce^{-x}.

Example 11 — Linear with IF a power of xx

Solve dydx+yx=x2\dfrac{dy}{dx} + \dfrac{y}{x} = x^2.

Step 1 — IF: edx/x=elogx=xe^{\int dx/x} = e^{\log x} = x.

Step 2 — solve: yx=x2xdx=x44+Cyx = \int x^2\cdot x\,dx = \dfrac{x^4}{4} + C.

Answer: y=x34+Cxy = \dfrac{x^3}{4} + \dfrac{C}{x} — always simplify elog()e^{\log(\cdot)} before integrating.

Example 12 — Linear with a condition and a trig IF

Solve dydx3ycotx=sin2x\dfrac{dy}{dx} - 3y\cot x = \sin 2x given y(π2)=2y\left(\dfrac{\pi}{2}\right) = 2.

Step 1 — IF: e3cotxdx=e3logsinx=1sin3xe^{-3\int\cot x\,dx} = e^{-3\log\vert\sin x\vert} = \dfrac{1}{\sin^3 x}.

Step 2 — solve: ysin3x=2sinxcosxsin3xdx=2cotxcscxdx=2sinx+C\dfrac{y}{\sin^3 x} = \int\dfrac{2\sin x\cos x}{\sin^3 x}\,dx = \int 2\cot x\csc x\,dx = -\dfrac{2}{\sin x} + C.

Step 3 — apply the condition: at x=π2x = \dfrac{\pi}{2}: 2=2+C2 = -2 + C, so C=4C = 4.

Answer: y=4sin3x2sin2xy = 4\sin^3 x - 2\sin^2 x.

Example 13 — Linear in xx

Solve ydxdy=x+2y2y\dfrac{dx}{dy} = x + 2y^2.

Step 1 — standard form in xx: dxdyxy=2y\dfrac{dx}{dy} - \dfrac{x}{y} = 2y, so P(y)=1yP(y) = -\dfrac{1}{y}, Q(y)=2yQ(y) = 2y.

Step 2 — IF: edy/y=1ye^{-\int dy/y} = \dfrac{1}{y}.

Step 3 — solve: xy=2y1ydy=2y+C\dfrac{x}{y} = \int 2y\cdot\dfrac{1}{y}\,dy = 2y + C.

Answer: x=2y2+Cyx = 2y^2 + Cy — when the yy-form looks hopeless, the xx-form is usually a three-line linear.