The order of a differential equation is simply the order of the highest derivative appearing in it. No need to solve anything first.
What is the order of 2x2dx2d2y−3dxdy+y=0?
Solution: The highest derivative present is dx2d2y, a second derivative, so the order is 2.
Order and degree
The degree is the power of the highest-order derivative, once the equation is written as a polynomial in its derivatives. If a derivative sits inside a function like sin or ex, the degree is not defined.
Order is the highest derivative; degree is that derivative's power
Equation
Order
Degree
dxdy+y=x
1
1
(dx2d2y)3+(dxdy)4+y=0
2
3
(dxdy)2=1+x
1
2
dx2d2y+sin(dxdy)=0
2
not defined
In the second row, the degree is 3 even though a 4th power appears. Degree belongs to the highest-order derivative, dx2d2y, not to the biggest exponent.
Three types of first-order equation
How to recognise and solve each type
Type
Form
Method
Variable separable
dxdy=g(x)h(y)
Separate: h(y)dy=g(x)dx, then integrate both sides
Homogeneous
dxdy=F(xy)
Substitute y=vx, so dxdy=v+xdxdv, then separate
Linear
dxdy+P(x)y=Q(x)
Multiply by the integrating factor e∫Pdx: y⋅IF=∫Q⋅IFdx
The worked example below on separating variables covers the first type. The other two follow it.
Worked example: forming an equation from a family of curves
Form the differential equation representing the family of curves y=mx, where m is an arbitrary constant.
Solution: Differentiate y=mx with respect to x:
dxdy=m
Since m=xy from the original equation, substituting eliminates the arbitrary constant, giving the differential equation:
dxdy=xy
Worked example: solving by separating variables
Find the equation of the curve passing through (−2,3), given that the slope of the tangent at any point (x,y) is y22x.
Solution: The slope is dxdy=y22x. Separating variables and integrating both sides:
y2dy=2xdx⇒∫y2dy=∫2xdx⇒3y3=x2+C
Using the point (−2,3) to find C:
327=4+C⇒9=4+C⇒C=5
So 3y3=x2+5, or equivalently:
y3=3x2+15
Worked example: a homogeneous equation
Solve dxdy=xx+y for x>0.
Solution: The right side is 1+xy, a function of xy, so the equation is homogeneous. Substitute y=vx:
v+xdxdv=1+v⇒xdxdv=1⇒∫dv=∫xdx⇒v=lnx+C
Replacing v with xy:
y=xlnx+Cx
Worked example: a linear equation
Solve dxdy+xy=x2 for x>0.
Solution: This is linear with P(x)=x1 and Q(x)=x2. The integrating factor is e∫x1dx=elnx=x. Multiplying through by it turns the left side into the derivative of xy:
dxd(xy)=x3⇒xy=4x4+C⇒y=4x3+xC
Common mistakes
Confusing order and degree. Order is which derivative is highest; degree is the power it is raised to.
Giving a degree when it isn't defined. If a derivative appears inside sin, log or an exponential, there is no degree.
Dropping C before dividing. In xy=4x4+C, dividing by x gives xC, not C. Add the constant as soon as you integrate.
Writing the integrating factor wrongly. It is e∫Pdx, using P from the standard form with the coefficient of dxdy equal to 1. Divide through first if it isn't.
Continue learning
Solving a differential equation almost always ends in integration, and separating variables here works the same way integration by parts handles a trickier product.