Order — The order of a differential equation is the order of its highest-order derivative.
Definition
Degree — When a differential equation is polynomial in its derivatives, its degree is the power of the highest-order derivative.
Properties of degree
Degree is defined only when the equation is polynomial in its derivatives; it need not be polynomial in y. Order and degree, when defined, are positive integers.
Classifying order and degree
Differential equation
Order
Degree
y′′′+2(y′′)2−y′+y=0
3
1
(y′)2+y′−sin2y=0
1
2
y′+sin(y′)=0
1
Not defined
y′′′+y2+ey′=0
3
Not defined
Degree
deg(E)=m
Here, m is the power of the highest-order derivative; the equation must be polynomial in its derivatives.
Finding order and degree
Identify the highest-order derivative; its order is the order of the equation.
y′,y′′,y′′′,…
Check whether the equation is polynomial in all derivatives.
If it is polynomial, the power of the highest-order derivative is the degree; otherwise, degree is undefined.
Worked example
Find the order and degree of xydx2d2y+x(dxdy)2−ydxdy=0.
The highest-order derivative is the second derivative, so the order is two.
dx2d2y
The equation is polynomial in its derivatives, and the highest-order derivative has power one.
xydx2d2y+x(dxdy)2−ydxdy=0
Answer: Order =2; degree =1.
⚠ Common mistake
Do not use the power of a derivative as the degree before checking polynomial form. A derivative inside a function such as sin(y′) makes the degree undefined.
General and Particular Solutions
Definition
Solution of a differential equation — A solution is a function that satisfies the equation when the function and its derivatives are substituted.
General and particular solutions
A general solution (primitive) contains arbitrary constants. Assigning specific values to those constants gives a particular solution, which has no arbitrary constants. The graph y=ϕ(x) of a solution is its solution curve or integral curve.
General solution form
y=ϕ(x;C1,…,Ck)
Choosing fixed values for the arbitrary constants gives a particular solution.
Example family
General solution:y=asin(x+b), where a,b∈R, satisfies y′′+y=0 for arbitrary constants a and b.
Particular solution: Taking a=2 and b=4π gives y=2sin(x+4π).
Verifying a proposed solution
Differentiate the proposed function as many times as the equation requires.
y,y′,y′′,…
Substitute the function and its derivatives into the equation.
Simplify to check that the left-hand side equals the right-hand side.
L.H.S.=R.H.S.
Worked example
Verify that y=acosx+bsinx, where a,b∈R, is a solution of y′′+y=0.
Differentiate the proposed function once and twice.
y=acosx+bsinx,y′=−asinx+bcosx,y′′=−acosx−bsinx
Substitute the function and its second derivative into the equation.
y′′+y=(−acosx−bsinx)+(acosx+bsinx)=0
The equation is satisfied for all real values of the arbitrary constants.
y′′+y=0
Answer: Since y′′=−acosx−bsinx, substitution gives y′′+y=0. Thus the function is a solution for arbitrary a,b∈R.
Practice
Find the order and degree of (y′)2+y′−sin2y=0.
Hint: Check the highest-order derivative and the power of that derivative.
Key step: The highest-order derivative is y′, and the equation is polynomial in derivatives.
Solution: The highest derivative is first order and has power two. Order =1; degree =2.
Practice
Determine whether the degree of y′+sin(y′)=0 is defined.
Hint: Check whether the equation is polynomial in its derivatives.
Key step:sin(y′) is not a polynomial in y′.
Solution: The degree is not defined.
Practice
Verify that y=e−3x solves y′′+y′−6y=0.
Hint: Find the first and second derivatives, then substitute.
Key step:y′=−3e−3x and y′′=9e−3x.
Solution:y′′+y′−6y=9e−3x−3e−3x−6e−3x=0, so the function is a solution.
Quick recap
Order is the order of the highest-order derivative present.
Degree is the power of the highest-order derivative, provided the equation is polynomial in its derivatives.
Degree is undefined when derivatives occur in non-polynomial functions such as sin(y′).
A solution is a function that satisfies a differential equation after substitution.
A general solution contains arbitrary constants; fixing their values gives a particular solution.
The graph of a solution is its solution curve or integral curve.
Lecture 3
Methods of Solving First Order, First Degree Differential Equations
When h(y)=0, place the y-terms with dy and the x-terms with dx, then integrate both sides. If H′(y)=h(y)1 and G′(x)=g(x), the general solution is H(y)=G(x)+C.
Separation of variables
h(y)1dy=g(x)dx,∫h(y)1dy=∫g(x)dx
Use this form when the equation can be factored into an x-function times a y-function.
Solving a separable equation
Factor the right-hand side into functions of separate variables, if possible.
Separate the variables, placing the y-terms with dy and the x-terms with dx.
Integrate both sides and include one arbitrary constant.
For an initial condition, substitute the given point to determine the constant.
Worked example
Find the general solution of dxdy=1+x21+y2.
Separate the variables.
1+y2dy=1+x2dx
Integrate both sides.
∫1+y2dy=∫1+x2dx
Write the general solution.
tan−1y=tan−1x+C
Answer:tan−1y=tan−1x+C.
Additional separable-equation results
Example: For dxdy=2−yx+1, where y=2, separation gives (2−y)dy=(x+1)dx. Integration yields x2+y2+2x−4y+C=0.
Curve from a slope: If dxdy=y22x and the curve passes through (−2,3), then 3y3=x2+5, or y=(3x2+15)1/3.
⚠ Common mistake
Dividing by h(y) can remove constant solutions satisfying h(y)=0; check these in the original equation. Also, ∫1+y2dy=tan−1y, not tan−1(y2).
Initial Conditions and Curves
Using a given point
General solution: Integration gives a family of curves containing an arbitrary constant C.
Particular solution: Substitute the given point (x0,y0) into the general solution to find C.
Curve slope: The tangent slope is dxdy; a specified slope therefore gives the differential equation.
Example: From xdy=(2x2+1)dx, x=0, obtain y=x2+ln∣x∣+C. The curve through (1,1) is y=x2+ln∣x∣.
Practice
Find the particular solution of dxdy=−4xy2, given y(0)=1.
Hint: Separate the variables and use the initial condition after integrating.
Find the curve through (1,1) whose differential equation is xdy=(2x2+1)dx, where x=0.
Hint: Divide by x before integrating.
Key step:dxdy=2x+x1, so y=x2+ln∣x∣+C.
Solution: Using (1,1) gives C=0. The curve is y=x2+ln∣x∣.
Continuous Growth and Decay
Definition
Continuous proportional growth — A quantity grows continuously at a rate proportional to its current amount when its rate of change equals a constant times the amount.
Exponential growth model
dtdP=kP,P(t)=P0ekt
For growth rate k per unit time and initial amount P0, the amount after time t is P(t)=P0ekt. For a continuous annual rate of 5%, k=1005=201.
Doubling time
For continuous growth at rate k, set 2P0=P0ekt to find the doubling time: t=kln2. At a 5% annual rate, this is 20ln2≈13.86 years.
t=kln2
Practice
A principal of Rs. 1000 grows continuously at 5% per year. How long will it take to double?
Hint: Use P(t)=P0ekt and set the amount equal to twice the initial principal.
Key step:2000=1000et/20, hence et/20=2.
Solution: Taking natural logarithms gives t=20ln2≈13.86 years.
★ Remember
Separate variables before integrating; include one arbitrary constant.
Use an initial point to select one particular curve from the family.
Continuous proportional growth leads to an exponential model.
Quick recap
A separable equation has the form dxdy=g(x)h(y).
Separate the variables and integrate both sides to obtain the general solution.
Check values that were divided out; they may give additional constant solutions.
Use a given point to determine the arbitrary constant and find a particular curve.
Continuous proportional growth satisfies dtdP=kP and has solution P=P0ekt.
The doubling time under continuous growth is kln2.
The scaling test is F(λx,λy)=λnF(x,y) for every nonzero constant λ.
Examples of Homogeneous Functions
Function
Degree / result
y2+2xy
Degree 2
2x−3y
Degree 1
cos(y/x)
Degree 0
sinx+cosy
Not homogeneous
Equivalent form
A homogeneous function of degree n can be expressed as xng(y/x) or, equivalently, as ynh(x/y) wherever the ratios are defined.
Homogeneous Differential Equations
Definition
Homogeneous differential equation — An equation dxdy=F(x,y) is homogeneous when F(x,y) is a homogeneous function of degree zero; equivalently, its right-hand side can be written as g(y/x).
Substitution for dxdy=g(y/x)
y=vx,dxdy=v+xdxdv,g(v)−vdv=xdx
Put y=vx to make the equation separable.
Substitution when solving for x as a function of y
x=vy,dydx=v+ydydv
For dydx=h(x/y), put x=vy and separate the resulting variables.
Solve a Homogeneous Differential Equation
Rewrite the right-hand side in terms of the ratio y/x and verify degree zero.
Substitute y=vx and differentiate using the product rule.
y=vx,dxdy=v+xdxdv
Replace y/x by v, then separate the variables v and x.
Integrate both sides and replace v by y/x in the final solution.
Worked example
Show that (x−y)dxdy=x+2y is homogeneous and solve it.
Solve (x−y)dxdy=x+2y.
Divide by x−y and set v=y/x; the right-hand side depends only on v, so the equation is homogeneous.
dxdy=1−v1+2v
Use y=vx and rearrange to separate the variables.
v+xdxdv=1−v1+2v,v2+v+11−vdv=xdx
Integrate, using a logarithm and the arctangent integral.
−21ln(v2+v+1)+3tan−1(32v+1)=ln∣x∣+C
Replace v by y/x and combine the logarithms.
ln(x2+xy+y2)=23tan−1(3xx+2y)+C
Answer:ln(x2+xy+y2)=23tan−1(3xx+2y)+C.
Practice
Solve xcos(y/x)dxdy=ycos(y/x)+x.
Hint: Set v=y/x and use y′=v+xv′.
Key step: The substitution reduces the equation to xdxdv=secv.
Solution:∫cosvdv=∫xdx, so sinv=ln∣x∣+C. Hence sin(y/x)=ln∣x∣+C.
Practice
Solve 2yex/ydx+(y−2xex/y)dy=0, given x=0 when y=1.
Hint: Treat x as a function of y and put v=x/y.
Key step: The equation becomes ydydv=−2ev1.
Solution:2evdv=−ydy gives 2ex/y+ln∣y∣=C. The condition gives C=2, so 2ex/y+ln∣y∣=2.
Practice
Find the family of curves whose tangent slope is 2xyx2+y2.
Hint: Put v=y/x in the slope equation.
Key step: After substitution, 1−v22vdv=xdx.
Solution:−ln∣1−v2∣=ln∣x∣+C, so x(v2−1)=C. Substituting v=y/x and renaming the constant gives x2−y2=Cx.
⚠ Common mistake
Do not substitute y=vx without differentiating it: the derivative is dxdy=v+xdxdv, not just v.
Quick recap
A function is homogeneous of degree n if F(λx,λy)=λnF(x,y).
A first-order equation dxdy=F(x,y) is homogeneous when F has degree zero.
Write a degree-zero right-hand side as g(y/x) and substitute y=vx.
Use dxdy=v+xdxdv, then separate and integrate.
For equations in dydx, use x=vy and dydx=v+ydydv.
First-order linear differential equation — An equation in the dependent variable y is first-order linear if it can be written as dxdy+P(x)y=Q(x), where P and Q depend only on x.
Recognising the Standard Form
Order: The highest derivative present is a first derivative.
Linearity: The dependent variable and its derivative occur only to the first power and are not multiplied together.
Standard form: Make the coefficient of dxdy equal to 1 before identifying P(x) and Q(x).
Examples:dxdy+y=sinx and dxdy+x1y=ex are linear equations in y.
Further examples:dxdy+xlogxy=x1, dydx+x=cosy, and dydx−y2x=y2e−y are also linear in their dependent variables.
Integrating Factor and General Solution
I.F.=e∫P(x)dx,yI.F.=∫Q(x)I.F.dx+C
For dxdy+P(x)y=Q(x), multiply through by the integrating factor to make the left side a product derivative.
Integrating-factor property
The integrating factor is chosen so that dxd(yI.F.)=Q(x)I.F.. Integrating this identity gives the general solution.
Solving an Equation in y and x
Rearrange into standard form and identify P(x) and Q(x).
dxdy+P(x)y=Q(x)
Calculate the integrating factor.
I.F.=e∫P(x)dx
Multiply through by the integrating factor and express the left side as a product derivative.
dxd(yI.F.)=Q(x)I.F.
Integrate both sides and include the arbitrary constant C.
yI.F.=∫Q(x)I.F.dx+C
Worked example
Find the general solution of dxdy−y=cosx.
Solve the equation and identify its coefficients.
dxdy−y=cosx,P=−1,Q=cosx
Find the integrating factor.
I.F.=e∫−1dx=e−x
Multiply through by e−x and write the left side as a product derivative.
dxd(ye−x)=e−xcosx
Integrate; applying integration by parts gives the integral shown.
ye−x=∫e−xcosxdx+C=2e−x(sinx−cosx)+C
Multiply by ex to obtain the general solution.
y=2sinx−cosx+Cex
Answer:y=2sinx−cosx+Cex
⚠ Common mistake
Do not identify P before putting the equation in standard form. Keep its sign: in dxdy−y=cosx, P=−1.
Equations with x as the Dependent Variable
Definition
Linear equation in x — When x is the dependent variable and y is independent, the standard form is dydx+P1(y)x=Q1(y).
Integrating Factor when x Depends on y
I.F.=e∫P1(y)dy,xI.F.=∫Q1(y)I.F.dy+C
Treat y as the independent variable and apply the same method.
Practice
Solve xdxdy+2y=x2, for x=0.
Hint: Divide by x first, then find the integrating factor.
Key step: The standard form has P=x2, so the integrating factor is x2 (up to a nonzero constant factor).
Solution: Divide by x: dxdy+x2y=x. Then I.F.=e∫2/xdx=x2 on each interval where x=0. Thus dxd(x2y)=x3, so x2y=4x4+C and y=4x2+x2C.
Practice
Solve ydx−(x+2y2)dy=0, treating x as a function of y.
Hint: Rearrange into the form dydx+P1(y)x=Q1(y).
Key step: The equation becomes dydx−yx=2y, with integrating factor y1.
Solution: Rearrange to dydx−yx=2y. For y=0, its integrating factor is e∫−1/ydy=1/y. Hence dyd(x/y)=2, so x/y=2y+C and x=2y2+Cy.
Initial Conditions and Applications
Using a Given Point
General solution: Contains an arbitrary constant C and represents a family of curves.
Particular solution: Substitute the given point or initial condition into the general solution to determine C.
Curve problems: Translate a slope condition into dxdy=f(x,y), then rearrange into linear form if possible.
Curve example: If dxdy=x+xy and the curve passes through (0,1), its equation is y=−1+2ex2/2.
Practice
Solve dxdy+ycotx=2x+x2cotx, given y=0 at x=2π.
Hint: The integrating factor is sinx. Recognise the right-hand side after multiplication as a product derivative.
Key step:2xsinx+x2cosx=dxd(x2sinx).
Solution: The integrating factor is e∫cotxdx=sinx. Therefore dxd(ysinx)=2xsinx+x2cosx=dxd(x2sinx). Integrating gives ysinx=x2sinx+C. Using y=0 at x=2π gives C=−4π2, so y=x2−4sinxπ2 where sinx=0.
Quick recap
A first-order linear equation in y has the form dxdy+P(x)y=Q(x).
Its integrating factor is e∫P(x)dx.
Multiplying by the integrating factor makes the left side dxd(yI.F.).
When x depends on y, use dydx+P1(y)x=Q1(y) and integrate with respect to y.
Use a given point or initial condition to determine the constant C and obtain a particular solution.
For the curve with slope dxdy=x+xy through (0,1), the solution is y=−1+2ex2/2.
Solution of a differential equation — A function is a solution if substituting it and its required derivatives makes the differential equation an identity.
Verification
Differentiate the proposed function to obtain every derivative in the equation.
Substitute the function and derivatives into the left-hand side, then simplify.
If the left-hand side equals the right-hand side, the function is a solution.
Worked example
Verify that y=eax(c1cosbx+c2sinbx) satisfies y′′−2ay′+(a2+b2)y=0.
Verify that the given function satisfies the differential equation.
Substituting these expressions into the left-hand side makes the coefficients of both sine and cosine equal to zero.
y′′−2ay′+(a2+b2)y=0
Answer: The substitution gives 0, so the proposed function is a solution.
Separation of Variables
Definition
Separable differential equation — An equation is separable when its variables can be placed on opposite sides, with terms in y alongside dy and terms in x alongside dx.
Separable Form
g(y)dy=f(x)dx
Separate the variables, integrate both sides, then use any initial condition to find the constant.
Worked example
Find the particular solution of log(dxdy)=3x+4y, given y=0 when x=0.
Rewrite the logarithmic equation in derivative form.
log(dxdy)=3x+4y⟹e−4ydy=e3xdx
Integrate both sides.
∫e−4ydy=∫e3xdx⟹−41e−4y=31e3x+C
Rearrange and apply the condition y(0)=0.
4e3x+3e−4y+12C=0,4+3+12C=0⟹C=−127
Substitute the constant to obtain the particular solution.
4e3x+3e−4y−7=0
Answer:4e3x+3e−4y−7=0.
Homogeneous Differential Equations
Definition
Homogeneous differential equation — A first-order equation is homogeneous if its right-hand side can be written as a function of the ratio y/x (or x/y).
Substitution y=vx
Set y=vx, so the ratio y/x becomes v.
y=vx
Differentiate using the product rule.
dxdy=v+xdxdv
Separate the resulting equation in v and x, then integrate.
Replace v by y/x in the final relation.
v=xy
Worked example
Solve (xdy−ydx)ysin(y/x)=(ydx+xdy)xcos(y/x).
Write the equation as a derivative and divide the numerator and denominator by x2.