Class 12 PCM . Mathematics . Mathematics Part II . Differential Equations

Chapter 9: DIFFERENTIAL EQUATIONS

Ch 9

Mathematics

Class 12 PCM

Lecture 1

Introduction

Reference video · Lecture 1Introduction

Differential Equations

Derivative relation
dydx=g(x),y=f(x)\frac{dy}{dx}=g(x),\qquad y=f(x)

Finding a function whose derivative is a given function is a basic example of a differential equation.

Recognising a differential equation

  1. Identify the dependent and independent variables.
  2. Check whether the equation contains a derivative of the dependent variable.
  3. If it contains such a derivative, it is a differential equation.
Worked example

Is xdydx+y=0x\frac{dy}{dx}+y=0 a differential equation?

  1. Classify the equation by checking for a derivative.
    xdydx+y=0x\frac{dy}{dx}+y=0
  2. The equation contains the derivative of yy with respect to xx.
Answer: Yes. It contains dydx\frac{dy}{dx}, the derivative of the dependent variable yy with respect to xx.

Ordinary and Partial Differential Equations

ODE vs PDE
PointODEPDE
Independent variablesOneMore than one
Derivatives taken with respect toOne independent variableMore than one independent variable

Classifying an equation as an ODE or PDE

  1. Identify the independent variable or variables.
  2. Check which variable or variables the derivatives are taken with respect to.
  3. One independent variable means ODE; more than one means PDE.
Worked example

Classify 2d2ydx2+(dydx)3=02\frac{d^2y}{dx^2}+\left(\frac{dy}{dx}\right)^3=0.

  1. Inspect the independent variable in the derivatives.
    2d2ydx2+(dydx)3=02\frac{d^2y}{dx^2}+\left(\frac{dy}{dx}\right)^3=0
  2. Both derivatives are with respect to xx, the only independent variable.
Answer: It is an ODE because its derivatives are with respect to only one independent variable, xx.

Derivative Notation and Order

Derivative notation
DerivativeNotation
First derivativedydx=y′\frac{dy}{dx}=y'
Second derivatived2ydx2=y′′\frac{d^2y}{dx^2}=y''
Third derivatived3ydx3=y′′′\frac{d^3y}{dx^3}=y'''
nnth derivativednydxn=y(n)\frac{d^ny}{dx^n}=y^{(n)}
Order
nn

If the highest derivative present is y(n)y^{(n)}, the equation is of order nn.

Finding the order

  1. List the derivatives that occur in the equation.
  2. Identify the derivative with the greatest differentiation order.
  3. State that derivative’s order as the order of the equation.
Worked example

Find the order of d3ydx3+x2(d2ydx2)3=0\frac{d^3y}{dx^3}+x^2\left(\frac{d^2y}{dx^2}\right)^3=0.

  1. Identify the highest derivative, noting that the second derivative is cubed.
    d3ydx3+x2(d2ydx2)3=0\frac{d^3y}{dx^3}+x^2\left(\frac{d^2y}{dx^2}\right)^3=0
  2. The highest derivative is the third derivative; the power on the second derivative does not change its order.
    d3ydx3\frac{d^3y}{dx^3}
Answer: The equation is of order 33.
⚠ Common mistake

Do not confuse the power of a derivative with its order: (d2ydx2)3\left(\frac{d^2y}{dx^2}\right)^3 is a squared-order derivative cubed, not a third derivative.

Practice

Is sin⁡x+cos⁡x=0\sin x+\cos x=0 a differential equation?

Hint: Check whether the equation contains a derivative.
Key step: It contains only xx and trigonometric functions, with no derivative.
Solution: No. It is an equation involving a variable, but it contains no derivative.
Practice

Classify dydx+y=0\frac{dy}{dx}+y=0 and state its order.

Hint: There is one independent variable; find the highest derivative.
Key step: The equation has a first derivative with respect to xx only.
Solution: It is an ODE of order 11.
Practice

Find the order of d2ydx2+(dydx)3=0\frac{d^2y}{dx^2}+\left(\frac{dy}{dx}\right)^3=0.

Hint: The power of a derivative does not alter the order of differentiation.
Key step: The highest derivative is d2ydx2\frac{d^2y}{dx^2}.
Solution: The equation is of order 22.

Quick recap

  • A differential equation contains derivatives of a dependent variable.
  • An ODE has derivatives with respect to one independent variable; a PDE has derivatives with respect to multiple independent variables.
  • In this chapter, “differential equation” refers to an ODE.
  • Derivative notation includes y′y', y′′y'', y′′′y''' and y(n)y^{(n)}.
  • The order is determined by the highest derivative present, not by the power to which a derivative is raised.
Lecture 2

Degree of a differential equation

Reference video · Lecture 2Degree of a differential equation

Order and Degree

Definition

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 yy. Order and degree, when defined, are positive integers.

Classifying order and degree
Differential equationOrderDegree
y′′′+2(y′′)2−y′+y=0y''' + 2(y'')^2 - y' + y = 031
(y′)2+y′−sin⁡2y=0(y')^2 + y' - \sin^2 y = 012
y′+sin⁡(y′)=0y' + \sin(y') = 01Not defined
y′′′+y2+ey′=0y''' + y^2 + e^{y'} = 03Not defined
Degree
deg⁡(E)=m\deg(E)=m

Here, mm is the power of the highest-order derivative; the equation must be polynomial in its derivatives.

Finding order and degree

  1. Identify the highest-order derivative; its order is the order of the equation.
    y′, y′′, y′′′,…y',\ y'',\ y''',\ldots
  2. Check whether the equation is polynomial in all derivatives.
  3. 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 xyd2ydx2+x(dydx)2−ydydx=0xy\frac{d^2y}{dx^2}+x\left(\frac{dy}{dx}\right)^2-y\frac{dy}{dx}=0.

  1. The highest-order derivative is the second derivative, so the order is two.
    d2ydx2\frac{d^2y}{dx^2}
  2. The equation is polynomial in its derivatives, and the highest-order derivative has power one.
    xyd2ydx2+x(dydx)2−ydydx=0xy\frac{d^2y}{dx^2}+x\left(\frac{dy}{dx}\right)^2-y\frac{dy}{dx}=0
Answer: Order =2=2; degree =1=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′)\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)y=\phi(x) of a solution is its solution curve or integral curve.

General solution form
y=ϕ(x;C1,…,Ck)y=\phi(x;C_1,\ldots,C_k)

Choosing fixed values for the arbitrary constants gives a particular solution.

Example family

  • General solution: y=asin⁡(x+b)y=a\sin(x+b), where a,b∈Ra,b\in\mathbb{R}, satisfies y′′+y=0y''+y=0 for arbitrary constants aa and bb.
  • Particular solution: Taking a=2a=2 and b=π4b=\frac{\pi}{4} gives y=2sin⁡(x+π4)y=2\sin\left(x+\frac{\pi}{4}\right).

Verifying a proposed solution

  1. Differentiate the proposed function as many times as the equation requires.
    y, y′, y′′,…y,\ y',\ y'',\ldots
  2. Substitute the function and its derivatives into the equation.
  3. Simplify to check that the left-hand side equals the right-hand side.
    L.H.S.=R.H.S.\text{L.H.S.}=\text{R.H.S.}
Worked example

Verify that y=acos⁡x+bsin⁡xy=a\cos x+b\sin x, where a,b∈Ra,b\in\mathbb{R}, is a solution of y′′+y=0y''+y=0.

  1. Differentiate the proposed function once and twice.
    y=acos⁡x+bsin⁡x,y′=−asin⁡x+bcos⁡x,y′′=−acos⁡x−bsin⁡xy=a\cos x+b\sin x,\qquad y'=-a\sin x+b\cos x,\qquad y''=-a\cos x-b\sin x
  2. Substitute the function and its second derivative into the equation.
    y′′+y=(−acos⁡x−bsin⁡x)+(acos⁡x+bsin⁡x)=0y''+y=(-a\cos x-b\sin x)+(a\cos x+b\sin x)=0
  3. The equation is satisfied for all real values of the arbitrary constants.
    y′′+y=0y''+y=0
Answer: Since y′′=−acos⁡x−bsin⁡xy''=-a\cos x-b\sin x, substitution gives y′′+y=0y''+y=0. Thus the function is a solution for arbitrary a,b∈Ra,b\in\mathbb{R}.
Practice

Find the order and degree of (y′)2+y′−sin⁡2y=0(y')^2+y'-\sin^2 y=0.

Hint: Check the highest-order derivative and the power of that derivative.
Key step: The highest-order derivative is y′y', and the equation is polynomial in derivatives.
Solution: The highest derivative is first order and has power two. Order =1=1; degree =2=2.
Practice

Determine whether the degree of y′+sin⁡(y′)=0y'+\sin(y')=0 is defined.

Hint: Check whether the equation is polynomial in its derivatives.
Key step: sin⁡(y′)\sin(y') is not a polynomial in y′y'.
Solution: The degree is not defined.
Practice

Verify that y=e−3xy=e^{-3x} solves y′′+y′−6y=0y''+y'-6y=0.

Hint: Find the first and second derivatives, then substitute.
Key step: y′=−3e−3xy'=-3e^{-3x} and y′′=9e−3xy''=9e^{-3x}.
Solution: y′′+y′−6y=9e−3x−3e−3x−6e−3x=0y''+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′)\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

Reference video · Lecture 3Methods of Solving First Order, First Degree Differential Equations

Differential Equations with Separable Variables

Separation and integration

When h(y)≠0h(y)\ne 0, place the yy-terms with dydy and the xx-terms with dxdx, then integrate both sides. If H′(y)=1h(y)H'(y)=\frac{1}{h(y)} and G′(x)=g(x)G'(x)=g(x), the general solution is H(y)=G(x)+CH(y)=G(x)+C.

Separation of variables
1h(y) dy=g(x) dx,∫1h(y) dy=∫g(x) dx\frac{1}{h(y)}\,dy=g(x)\,dx,\qquad \int\frac{1}{h(y)}\,dy=\int g(x)\,dx

Use this form when the equation can be factored into an xx-function times a yy-function.

Solving a separable equation

  1. Factor the right-hand side into functions of separate variables, if possible.
  2. Separate the variables, placing the yy-terms with dydy and the xx-terms with dxdx.
  3. Integrate both sides and include one arbitrary constant.
  4. For an initial condition, substitute the given point to determine the constant.
Worked example

Find the general solution of dydx=1+y21+x2\frac{dy}{dx}=\frac{1+y^2}{1+x^2}.

  1. Separate the variables.
    dy1+y2=dx1+x2\frac{dy}{1+y^2}=\frac{dx}{1+x^2}
  2. Integrate both sides.
    ∫dy1+y2=∫dx1+x2\int\frac{dy}{1+y^2}=\int\frac{dx}{1+x^2}
  3. Write the general solution.
    tan⁡−1y=tan⁡−1x+C\tan^{-1}y=\tan^{-1}x+C
Answer: tan⁡−1y=tan⁡−1x+C\tan^{-1}y=\tan^{-1}x+C.

Additional separable-equation results

  • Example: For dydx=x+12−y\frac{dy}{dx}=\frac{x+1}{2-y}, where y≠2y\ne2, separation gives (2−y) dy=(x+1) dx(2-y)\,dy=(x+1)\,dx. Integration yields x2+y2+2x−4y+C=0x^2+y^2+2x-4y+C=0.
  • Curve from a slope: If dydx=2xy2\frac{dy}{dx}=\frac{2x}{y^2} and the curve passes through (−2,3)(-2,3), then y33=x2+5\frac{y^3}{3}=x^2+5, or y=(3x2+15)1/3y=(3x^2+15)^{1/3}.
⚠ Common mistake

Dividing by h(y)h(y) can remove constant solutions satisfying h(y)=0h(y)=0; check these in the original equation. Also, ∫dy1+y2=tan⁡−1y\int\frac{dy}{1+y^2}=\tan^{-1}y, not tan⁡−1(y2)\tan^{-1}(y^2).

Initial Conditions and Curves

Using a given point

  • General solution: Integration gives a family of curves containing an arbitrary constant CC.
  • Particular solution: Substitute the given point (x0,y0)(x_0,y_0) into the general solution to find CC.
  • Curve slope: The tangent slope is dydx\frac{dy}{dx}; a specified slope therefore gives the differential equation.
  • Example: From x dy=(2x2+1) dxx\,dy=(2x^2+1)\,dx, x≠0x\ne0, obtain y=x2+ln⁡∣x∣+Cy=x^2+\ln|x|+C. The curve through (1,1)(1,1) is y=x2+ln⁡∣x∣y=x^2+\ln|x|.
Practice

Find the particular solution of dydx=−4xy2\frac{dy}{dx}=-4xy^2, given y(0)=1y(0)=1.

Hint: Separate the variables and use the initial condition after integrating.
Key step: −1y=−2x2+C-\frac{1}{y}=-2x^2+C; substituting (0,1)(0,1) gives C=−1C=-1.
Solution: Thus −1y=−2x2−1-\frac{1}{y}=-2x^2-1, so y=12x2+1y=\frac{1}{2x^2+1}.
Practice

Find the curve through (1,1)(1,1) whose differential equation is x dy=(2x2+1) dxx\,dy=(2x^2+1)\,dx, where x≠0x\ne0.

Hint: Divide by xx before integrating.
Key step: dydx=2x+1x\frac{dy}{dx}=2x+\frac{1}{x}, so y=x2+ln⁡∣x∣+Cy=x^2+\ln|x|+C.
Solution: Using (1,1)(1,1) gives C=0C=0. The curve is y=x2+ln⁡∣x∣y=x^2+\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
dPdt=kP,P(t)=P0ekt\frac{dP}{dt}=kP,\qquad P(t)=P_0e^{kt}

For growth rate kk per unit time and initial amount P0P_0, the amount after time tt is P(t)=P0ektP(t)=P_0e^{kt}. For a continuous annual rate of 5%5\%, k=5100=120k=\frac{5}{100}=\frac{1}{20}.

Doubling time

For continuous growth at rate kk, set 2P0=P0ekt2P_0=P_0e^{kt} to find the doubling time: t=ln⁡2kt=\frac{\ln 2}{k}. At a 5%5\% annual rate, this is 20ln⁡2≈13.8620\ln 2\approx13.86 years.

t=ln⁡2kt=\frac{\ln 2}{k}
Practice

A principal of Rs. 1000 grows continuously at 5%5\% per year. How long will it take to double?

Hint: Use P(t)=P0ektP(t)=P_0e^{kt} and set the amount equal to twice the initial principal.
Key step: 2000=1000et/202000=1000e^{t/20}, hence et/20=2e^{t/20}=2.
Solution: Taking natural logarithms gives t=20ln⁡2≈13.86t=20\ln 2\approx13.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 dydx=g(x)h(y)\frac{dy}{dx}=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 dPdt=kP\frac{dP}{dt}=kP and has solution P=P0ektP=P_0e^{kt}.
  • The doubling time under continuous growth is ln⁡2k\frac{\ln 2}{k}.
Lecture 4

Homogeneous differential equations

Reference video · Lecture 4Homogeneous differential equations

Homogeneous Functions

Scaling test

The scaling test is F(λx,λy)=λnF(x,y)F(\lambda x,\lambda y)=\lambda^nF(x,y) for every nonzero constant λ\lambda.

Examples of Homogeneous Functions
FunctionDegree / result
y2+2xyy^2+2xyDegree 22
2x−3y2x-3yDegree 11
cos⁡(y/x)\cos(y/x)Degree 00
sin⁡x+cos⁡y\sin x+\cos yNot homogeneous
Equivalent form

A homogeneous function of degree nn can be expressed as xng(y/x)x^n g(y/x) or, equivalently, as ynh(x/y)y^n h(x/y) wherever the ratios are defined.

Homogeneous Differential Equations

Definition

Homogeneous differential equation — An equation dydx=F(x,y)\frac{dy}{dx}=F(x,y) is homogeneous when F(x,y)F(x,y) is a homogeneous function of degree zero; equivalently, its right-hand side can be written as g(y/x)g(y/x).

Substitution for dydx=g(y/x)\frac{dy}{dx}=g(y/x)
y=vx,dydx=v+xdvdx,dvg(v)−v=dxxy=vx,\qquad \frac{dy}{dx}=v+x\frac{dv}{dx},\qquad \frac{dv}{g(v)-v}=\frac{dx}{x}

Put y=vxy=vx to make the equation separable.

Substitution when solving for xx as a function of yy
x=vy,dxdy=v+ydvdyx=vy,\qquad \frac{dx}{dy}=v+y\frac{dv}{dy}

For dxdy=h(x/y)\frac{dx}{dy}=h(x/y), put x=vyx=vy and separate the resulting variables.

Solve a Homogeneous Differential Equation

  1. Rewrite the right-hand side in terms of the ratio y/xy/x and verify degree zero.
  2. Substitute y=vxy=vx and differentiate using the product rule.
    y=vx,dydx=v+xdvdxy=vx,\qquad \frac{dy}{dx}=v+x\frac{dv}{dx}
  3. Replace y/xy/x by vv, then separate the variables vv and xx.
  4. Integrate both sides and replace vv by y/xy/x in the final solution.
Worked example

Show that (x−y)dydx=x+2y(x-y)\frac{dy}{dx}=x+2y is homogeneous and solve it.

  1. Solve (x−y)dydx=x+2y(x-y)\frac{dy}{dx}=x+2y.
  2. Divide by x−yx-y and set v=y/xv=y/x; the right-hand side depends only on vv, so the equation is homogeneous.
    dydx=1+2v1−v\frac{dy}{dx}=\frac{1+2v}{1-v}
  3. Use y=vxy=vx and rearrange to separate the variables.
    v+xdvdx=1+2v1−v,1−vv2+v+1 dv=dxxv+x\frac{dv}{dx}=\frac{1+2v}{1-v},\qquad \frac{1-v}{v^2+v+1}\,dv=\frac{dx}{x}
  4. Integrate, using a logarithm and the arctangent integral.
    −12ln⁡(v2+v+1)+3tan⁡−1 ⁣(2v+13)=ln⁡∣x∣+C-\frac{1}{2}\ln(v^2+v+1)+\sqrt{3}\tan^{-1}\!\left(\frac{2v+1}{\sqrt{3}}\right)=\ln|x|+C
  5. Replace vv by y/xy/x and combine the logarithms.
    ln⁡(x2+xy+y2)=23tan⁡−1 ⁣(x+2y3x)+C\ln(x^2+xy+y^2)=2\sqrt{3}\tan^{-1}\!\left(\frac{x+2y}{\sqrt{3}x}\right)+C
Answer: ln⁡(x2+xy+y2)=23tan⁡−1 ⁣(x+2y3x)+C\ln(x^2+xy+y^2)=2\sqrt{3}\tan^{-1}\!\left(\frac{x+2y}{\sqrt{3}x}\right)+C.
Practice

Solve xcos⁡(y/x)dydx=ycos⁡(y/x)+xx\cos(y/x)\frac{dy}{dx}=y\cos(y/x)+x.

Hint: Set v=y/xv=y/x and use y′=v+xv′y'=v+xv'.
Key step: The substitution reduces the equation to xdvdx=sec⁡vx\frac{dv}{dx}=\sec v.
Solution: ∫cos⁡v dv=∫dxx\int\cos v\,dv=\int\frac{dx}{x}, so sin⁡v=ln⁡∣x∣+C\sin v=\ln|x|+C. Hence sin⁡(y/x)=ln⁡∣x∣+C\sin(y/x)=\ln|x|+C.
Practice

Solve 2yex/y dx+(y−2xex/y) dy=02ye^{x/y}\,dx+(y-2xe^{x/y})\,dy=0, given x=0x=0 when y=1y=1.

Hint: Treat xx as a function of yy and put v=x/yv=x/y.
Key step: The equation becomes ydvdy=−12evy\frac{dv}{dy}=-\frac{1}{2e^v}.
Solution: 2ev dv=−dyy2e^v\,dv=-\frac{dy}{y} gives 2ex/y+ln⁡∣y∣=C2e^{x/y}+\ln|y|=C. The condition gives C=2C=2, so 2ex/y+ln⁡∣y∣=22e^{x/y}+\ln|y|=2.
Practice

Find the family of curves whose tangent slope is x2+y22xy\frac{x^2+y^2}{2xy}.

Hint: Put v=y/xv=y/x in the slope equation.
Key step: After substitution, 2v1−v2 dv=dxx\frac{2v}{1-v^2}\,dv=\frac{dx}{x}.
Solution: −ln⁡∣1−v2∣=ln⁡∣x∣+C-\ln|1-v^2|=\ln|x|+C, so x(v2−1)=Cx(v^2-1)=C. Substituting v=y/xv=y/x and renaming the constant gives x2−y2=Cxx^2-y^2=Cx.
⚠ Common mistake

Do not substitute y=vxy=vx without differentiating it: the derivative is dydx=v+xdvdx\frac{dy}{dx}=v+x\frac{dv}{dx}, not just vv.

Quick recap

  • A function is homogeneous of degree nn if F(λx,λy)=λnF(x,y)F(\lambda x,\lambda y)=\lambda^nF(x,y).
  • A first-order equation dydx=F(x,y)\frac{dy}{dx}=F(x,y) is homogeneous when FF has degree zero.
  • Write a degree-zero right-hand side as g(y/x)g(y/x) and substitute y=vxy=vx.
  • Use dydx=v+xdvdx\frac{dy}{dx}=v+x\frac{dv}{dx}, then separate and integrate.
  • For equations in dxdy\frac{dx}{dy}, use x=vyx=vy and dxdy=v+ydvdy\frac{dx}{dy}=v+y\frac{dv}{dy}.
Lecture 5

Linear differential equations

Reference video · Lecture 5Linear differential equations

First-Order Linear Differential Equations

Definition

First-order linear differential equation — An equation in the dependent variable yy is first-order linear if it can be written as dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x), where PP and QQ depend only on xx.

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 dydx\frac{dy}{dx} equal to 11 before identifying P(x)P(x) and Q(x)Q(x).
  • Examples: dydx+y=sin⁡x\frac{dy}{dx}+y=\sin x and dydx+1xy=ex\frac{dy}{dx}+\frac{1}{x}y=e^x are linear equations in yy.
  • Further examples: dydx+yxlog⁡x=1x\frac{dy}{dx}+\frac{y}{x\log x}=\frac{1}{x}, dxdy+x=cos⁡y\frac{dx}{dy}+x=\cos y, and dxdy−2yx=y2e−y\frac{dx}{dy}-\frac{2}{y}x=y^2e^{-y} are also linear in their dependent variables.
Integrating Factor and General Solution
I.F.=e∫P(x) dx,y I.F.=∫Q(x) I.F. dx+C\mathrm{I.F.}=e^{\int P(x)\,dx},\qquad y\,\mathrm{I.F.}=\int Q(x)\,\mathrm{I.F.}\,dx+C

For dydx+P(x)y=Q(x)\frac{dy}{dx}+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 ddx(y I.F.)=Q(x) I.F.\frac{d}{dx}(y\,\mathrm{I.F.})=Q(x)\,\mathrm{I.F.}. Integrating this identity gives the general solution.

Solving an Equation in y and x

  1. Rearrange into standard form and identify P(x)P(x) and Q(x)Q(x).
    dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x)
  2. Calculate the integrating factor.
    I.F.=e∫P(x) dx\mathrm{I.F.}=e^{\int P(x)\,dx}
  3. Multiply through by the integrating factor and express the left side as a product derivative.
    ddx(y I.F.)=Q(x) I.F.\frac{d}{dx}(y\,\mathrm{I.F.})=Q(x)\,\mathrm{I.F.}
  4. Integrate both sides and include the arbitrary constant CC.
    y I.F.=∫Q(x) I.F. dx+Cy\,\mathrm{I.F.}=\int Q(x)\,\mathrm{I.F.}\,dx+C
Worked example

Find the general solution of dydx−y=cos⁡x\frac{dy}{dx}-y=\cos x.

  1. Solve the equation and identify its coefficients.
    dydx−y=cos⁡x,P=−1,Q=cos⁡x\frac{dy}{dx}-y=\cos x,\qquad P=-1,\quad Q=\cos x
  2. Find the integrating factor.
    I.F.=e∫−1 dx=e−x\mathrm{I.F.}=e^{\int -1\,dx}=e^{-x}
  3. Multiply through by e−xe^{-x} and write the left side as a product derivative.
    ddx(ye−x)=e−xcos⁡x\frac{d}{dx}(ye^{-x})=e^{-x}\cos x
  4. Integrate; applying integration by parts gives the integral shown.
    ye−x=∫e−xcos⁡x dx+C=e−x(sin⁡x−cos⁡x)2+Cye^{-x}=\int e^{-x}\cos x\,dx+C=\frac{e^{-x}(\sin x-\cos x)}{2}+C
  5. Multiply by exe^x to obtain the general solution.
    y=sin⁡x−cos⁡x2+Cexy=\frac{\sin x-\cos x}{2}+Ce^x
Answer: y=sin⁡x−cos⁡x2+Cexy=\frac{\sin x-\cos x}{2}+Ce^x
⚠ Common mistake

Do not identify PP before putting the equation in standard form. Keep its sign: in dydx−y=cos⁡x\frac{dy}{dx}-y=\cos x, P=−1P=-1.

Equations with x as the Dependent Variable

Definition

Linear equation in x — When xx is the dependent variable and yy is independent, the standard form is dxdy+P1(y)x=Q1(y)\frac{dx}{dy}+P_1(y)x=Q_1(y).

Integrating Factor when x Depends on y
I.F.=e∫P1(y) dy,x I.F.=∫Q1(y) I.F. dy+C\mathrm{I.F.}=e^{\int P_1(y)\,dy},\qquad x\,\mathrm{I.F.}=\int Q_1(y)\,\mathrm{I.F.}\,dy+C

Treat yy as the independent variable and apply the same method.

Practice

Solve xdydx+2y=x2x\frac{dy}{dx}+2y=x^2, for x≠0x\ne 0.

Hint: Divide by xx first, then find the integrating factor.
Key step: The standard form has P=2xP=\frac{2}{x}, so the integrating factor is x2x^2 (up to a nonzero constant factor).
Solution: Divide by xx: dydx+2xy=x\frac{dy}{dx}+\frac{2}{x}y=x. Then I.F.=e∫2/x dx=x2\mathrm{I.F.}=e^{\int 2/x\,dx}=x^2 on each interval where x≠0x\ne0. Thus ddx(x2y)=x3\frac{d}{dx}(x^2y)=x^3, so x2y=x44+Cx^2y=\frac{x^4}{4}+C and y=x24+Cx2y=\frac{x^2}{4}+\frac{C}{x^2}.
Practice

Solve y dx−(x+2y2) dy=0y\,dx-(x+2y^2)\,dy=0, treating xx as a function of yy.

Hint: Rearrange into the form dxdy+P1(y)x=Q1(y)\frac{dx}{dy}+P_1(y)x=Q_1(y).
Key step: The equation becomes dxdy−xy=2y\frac{dx}{dy}-\frac{x}{y}=2y, with integrating factor 1y\frac{1}{y}.
Solution: Rearrange to dxdy−xy=2y\frac{dx}{dy}-\frac{x}{y}=2y. For y≠0y\ne0, its integrating factor is e∫−1/y dy=1/ye^{\int -1/y\,dy}=1/y. Hence ddy(x/y)=2\frac{d}{dy}(x/y)=2, so x/y=2y+Cx/y=2y+C and x=2y2+Cyx=2y^2+Cy.

Initial Conditions and Applications

Using a Given Point

  • General solution: Contains an arbitrary constant CC and represents a family of curves.
  • Particular solution: Substitute the given point or initial condition into the general solution to determine CC.
  • Curve problems: Translate a slope condition into dydx=f(x,y)\frac{dy}{dx}=f(x,y), then rearrange into linear form if possible.
  • Curve example: If dydx=x+xy\frac{dy}{dx}=x+xy and the curve passes through (0,1)(0,1), its equation is y=−1+2ex2/2y=-1+2e^{x^2/2}.
Practice

Solve dydx+ycot⁡x=2x+x2cot⁡x\frac{dy}{dx}+y\cot x=2x+x^2\cot x, given y=0y=0 at x=π2x=\frac{\pi}{2}.

Hint: The integrating factor is sin⁡x\sin x. Recognise the right-hand side after multiplication as a product derivative.
Key step: 2xsin⁡x+x2cos⁡x=ddx(x2sin⁡x)2x\sin x+x^2\cos x=\frac{d}{dx}(x^2\sin x).
Solution: The integrating factor is e∫cot⁡x dx=sin⁡xe^{\int\cot x\,dx}=\sin x. Therefore ddx(ysin⁡x)=2xsin⁡x+x2cos⁡x=ddx(x2sin⁡x)\frac{d}{dx}(y\sin x)=2x\sin x+x^2\cos x=\frac{d}{dx}(x^2\sin x). Integrating gives ysin⁡x=x2sin⁡x+Cy\sin x=x^2\sin x+C. Using y=0y=0 at x=π2x=\frac{\pi}{2} gives C=−π24C=-\frac{\pi^2}{4}, so y=x2−π24sin⁡xy=x^2-\frac{\pi^2}{4\sin x} where sin⁡x≠0\sin x\ne0.

Quick recap

  • A first-order linear equation in yy has the form dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x).
  • Its integrating factor is e∫P(x) dxe^{\int P(x)\,dx}.
  • Multiplying by the integrating factor makes the left side ddx(y I.F.)\frac{d}{dx}(y\,\mathrm{I.F.}).
  • When xx depends on yy, use dxdy+P1(y)x=Q1(y)\frac{dx}{dy}+P_1(y)x=Q_1(y) and integrate with respect to yy.
  • Use a given point or initial condition to determine the constant CC and obtain a particular solution.
  • For the curve with slope dydx=x+xy\frac{dy}{dx}=x+xy through (0,1)(0,1), the solution is y=−1+2ex2/2y=-1+2e^{x^2/2}.
Lecture 6

Miscellaneous Examples

Reference video · Lecture 6Miscellaneous Examples

Verifying a Function as a Solution

Definition

Solution of a differential equation — A function is a solution if substituting it and its required derivatives makes the differential equation an identity.

Verification

  1. Differentiate the proposed function to obtain every derivative in the equation.
  2. Substitute the function and derivatives into the left-hand side, then simplify.
  3. If the left-hand side equals the right-hand side, the function is a solution.
Worked example

Verify that y=eax(c1cos⁡bx+c2sin⁡bx)y=e^{ax}(c_1\cos bx+c_2\sin bx) satisfies y′′−2ay′+(a2+b2)y=0y''-2ay'+(a^2+b^2)y=0.

  1. Verify that the given function satisfies the differential equation.
    y=eax(c1cos⁡bx+c2sin⁡bx),y′′−2ay′+(a2+b2)y=0y=e^{ax}(c_1\cos bx+c_2\sin bx),\qquad y''-2ay'+(a^2+b^2)y=0
  2. Differentiate once.
    y′=eax[(ac1+bc2)cos⁡bx+(ac2−bc1)sin⁡bx]y'=e^{ax}\big[(ac_1+bc_2)\cos bx+(ac_2-bc_1)\sin bx\big]
  3. Differentiate again.
    y′′=eax[((a2−b2)c1+2abc2)cos⁡bx+((a2−b2)c2−2abc1)sin⁡bx]y''=e^{ax}\big[((a^2-b^2)c_1+2ab c_2)\cos bx+((a^2-b^2)c_2-2ab c_1)\sin bx\big]
  4. Substituting these expressions into the left-hand side makes the coefficients of both sine and cosine equal to zero.
    y′′−2ay′+(a2+b2)y=0y''-2ay'+(a^2+b^2)y=0
Answer: The substitution gives 00, 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 yy alongside dydy and terms in xx alongside dxdx.

Separable Form
g(y) dy=f(x) dxg(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⁡(dydx)=3x+4y\log\left(\frac{dy}{dx}\right)=3x+4y, given y=0y=0 when x=0x=0.

  1. Rewrite the logarithmic equation in derivative form.
    log⁡(dydx)=3x+4y⟹e−4y dy=e3x dx\log\left(\frac{dy}{dx}\right)=3x+4y\quad\Longrightarrow\quad e^{-4y}\,dy=e^{3x}\,dx
  2. Integrate both sides.
    ∫e−4y dy=∫e3x dx⟹−14e−4y=13e3x+C\int e^{-4y}\,dy=\int e^{3x}\,dx\quad\Longrightarrow\quad -\frac14e^{-4y}=\frac13e^{3x}+C
  3. Rearrange and apply the condition y(0)=0y(0)=0.
    4e3x+3e−4y+12C=0,4+3+12C=0⟹C=−7124e^{3x}+3e^{-4y}+12C=0,\qquad 4+3+12C=0\quad\Longrightarrow\quad C=-\frac7{12}
  4. Substitute the constant to obtain the particular solution.
    4e3x+3e−4y−7=04e^{3x}+3e^{-4y}-7=0
Answer: 4e3x+3e−4y−7=04e^{3x}+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/xy/x (or x/yx/y).

Substitution y=vxy=vx

  1. Set y=vxy=vx, so the ratio y/xy/x becomes vv.
    y=vxy=vx
  2. Differentiate using the product rule.
    dydx=v+xdvdx\frac{dy}{dx}=v+x\frac{dv}{dx}
  3. Separate the resulting equation in vv and xx, then integrate.
  4. Replace vv by y/xy/x in the final relation.
    v=yxv=\frac{y}{x}
Worked example

Solve (x dy−y dx)ysin⁡(y/x)=(y dx+x dy)xcos⁡(y/x)(x\,dy-y\,dx)y\sin(y/x)=(y\,dx+x\,dy)x\cos(y/x).

  1. Write the equation as a derivative and divide the numerator and denominator by x2x^2.
    dydx=xycos⁡(y/x)+y2sin⁡(y/x)xysin⁡(y/x)−x2cos⁡(y/x)=vcos⁡v+v2sin⁡vvsin⁡v−cos⁡v\frac{dy}{dx}=\frac{xy\cos(y/x)+y^2\sin(y/x)}{xy\sin(y/x)-x^2\cos(y/x)}=\frac{v\cos v+v^2\sin v}{v\sin v-\cos v}
  2. Use y=vxy=vx and substitute dy/dx=v+x dv/dxdy/dx=v+x\,dv/dx.
    v+xdvdx=vcos⁡v+v2sin⁡vvsin⁡v−cos⁡vv+x\frac{dv}{dx}=\frac{v\cos v+v^2\sin v}{v\sin v-\cos v}
  3. Rearrange to separate the variables.
    (tan⁡v−1v)dv=2dxx\left(\tan v-\frac1v\right)dv=2\frac{dx}{x}
  4. Integrate both sides.
    ln⁡∣sec⁡v∣−ln⁡∣v∣=2ln⁡∣x∣+C⟹sec⁡vv=Cx2\ln|\sec v| -\ln|v|=2\ln|x|+C\quad\Longrightarrow\quad \frac{\sec v}{v}=Cx^2
  5. Replace vv by y/xy/x and absorb nonzero constants into CC.
    sec⁡(yx)=Cxy\sec\left(\frac{y}{x}\right)=Cxy
Answer: sec⁡(yx)=Cxy\sec\left(\frac{y}{x}\right)=Cxy.

First-Order Linear Equations

Definition

First-order linear differential equation — An equation of the form dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x) is first-order linear; PP and QQ depend only on xx.

Integrating Factor and Solution
I.F.=e∫P(x) dx,y e∫P(x) dx=∫Q(x)e∫P(x) dx dx+C\mathrm{I.F.}=e^{\int P(x)\,dx},\qquad y\,e^{\int P(x)\,dx}=\int Q(x)e^{\int P(x)\,dx}\,dx+C

For a linear equation in yy, multiply throughout by the integrating factor; the left side becomes a product derivative.

Worked example

Solve (tan⁡−1y−x) dy=(1+y2) dx(\tan^{-1}y-x)\,dy=(1+y^2)\,dx.

  1. Treat xx as the dependent variable and rewrite the equation in linear form with respect to yy.
    dxdy+x1+y2=tan⁡−1y1+y2\frac{dx}{dy}+\frac{x}{1+y^2}=\frac{\tan^{-1}y}{1+y^2}
  2. Find the integrating factor.
    I.F.=e∫dy1+y2=etan⁡−1y\mathrm{I.F.}=e^{\int\frac{dy}{1+y^2}}=e^{\tan^{-1}y}
  3. Multiply through by the integrating factor and integrate.
    xetan⁡−1y=∫tan⁡−1y1+y2etan⁡−1y dy+Cxe^{\tan^{-1}y}=\int\frac{\tan^{-1}y}{1+y^2}e^{\tan^{-1}y}\,dy+C
  4. Set t=tan⁡−1yt=\tan^{-1}y, so dt=dy/(1+y2)dt=dy/(1+y^2), and evaluate the integral.
    ∫tet dt=et(t−1)\int te^t\,dt=e^t(t-1)
  5. Substitute back and divide by the integrating factor.
    xetan⁡−1y=etan⁡−1y(tan⁡−1y−1)+C⟹x=tan⁡−1y−1+Ce−tan⁡−1yxe^{\tan^{-1}y}=e^{\tan^{-1}y}(\tan^{-1}y-1)+C\quad\Longrightarrow\quad x=\tan^{-1}y-1+Ce^{-\tan^{-1}y}
Answer: x=tan⁡−1y−1+Ce−tan⁡−1yx=\tan^{-1}y-1+Ce^{-\tan^{-1}y}.

Core Terms and Classifications

Definition

Differential equation — An equation involving derivatives of a dependent variable with respect to one or more independent variables.

Order, Degree and Solutions
TermMeaning
OrderThe order of the highest derivative present.
DegreeThe positive-integer power of the highest-order derivative, when the equation is polynomial in its derivatives.
General solutionA solution containing as many arbitrary constants as the order of the differential equation.
Particular solutionA solution with the arbitrary constants fixed, usually by given conditions.
Practice

Solve dydx=xe−y\frac{dy}{dx}=xe^{-y}, given y(0)=0y(0)=0.

Hint: Separate the variables before integrating.
Key step: Integrate ey dy=x dxe^y\,dy=x\,dx, then apply the condition.
Solution: ey=1+x22e^y=1+\frac{x^2}{2}, hence y=ln⁡(1+x22)y=\ln\left(1+\frac{x^2}{2}\right).
Practice

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

Hint: Find the integrating factor and write the left side as a product derivative.
Key step: The integrating factor is exe^x, so (yex)′=e2x(ye^x)'=e^{2x}.
Solution: yex=12e2x+Cye^x=\frac12e^{2x}+C, so y=12ex+Ce−xy=\frac12e^x+Ce^{-x}.

Quick recap

  • A proposed solution is verified by substitution into the differential equation.
  • Separable equations are solved by placing each variable with its differential and integrating.
  • For a homogeneous equation in y/xy/x, use y=vxy=vx and dy/dx=v+x dv/dxdy/dx=v+x\,dv/dx.
  • For dy/dx+P(x)y=Q(x)dy/dx+P(x)y=Q(x), the integrating factor is e∫P(x) dxe^{\int P(x)\,dx}.
  • The order is the highest derivative order; the degree is defined only when the equation is polynomial in derivatives.
  • A general solution has arbitrary constants; applying conditions gives a particular solution.

Formula sheet

Derivative relation
dydx=g(x),y=f(x)\frac{dy}{dx}=g(x),\qquad y=f(x)
Order
nn
Degree
deg⁡(E)=m\deg(E)=m
General solution form
y=ϕ(x;C1,…,Ck)y=\phi(x;C_1,\ldots,C_k)
Separation of variables
1h(y) dy=g(x) dx,∫1h(y) dy=∫g(x) dx\frac{1}{h(y)}\,dy=g(x)\,dx,\qquad \int\frac{1}{h(y)}\,dy=\int g(x)\,dx
Exponential growth model
dPdt=kP,P(t)=P0ekt\frac{dP}{dt}=kP,\qquad P(t)=P_0e^{kt}
Substitution for dydx=g(y/x)\frac{dy}{dx}=g(y/x)
y=vx,dydx=v+xdvdx,dvg(v)−v=dxxy=vx,\qquad \frac{dy}{dx}=v+x\frac{dv}{dx},\qquad \frac{dv}{g(v)-v}=\frac{dx}{x}
Substitution when solving for xx as a function of yy
x=vy,dxdy=v+ydvdyx=vy,\qquad \frac{dx}{dy}=v+y\frac{dv}{dy}
Integrating Factor and General Solution
I.F.=e∫P(x) dx,y I.F.=∫Q(x) I.F. dx+C\mathrm{I.F.}=e^{\int P(x)\,dx},\qquad y\,\mathrm{I.F.}=\int Q(x)\,\mathrm{I.F.}\,dx+C
Integrating Factor when x Depends on y
I.F.=e∫P1(y) dy,x I.F.=∫Q1(y) I.F. dy+C\mathrm{I.F.}=e^{\int P_1(y)\,dy},\qquad x\,\mathrm{I.F.}=\int Q_1(y)\,\mathrm{I.F.}\,dy+C
Separable Form
g(y) dy=f(x) dxg(y)\,dy=f(x)\,dx
Integrating Factor and Solution
I.F.=e∫P(x) dx,y e∫P(x) dx=∫Q(x)e∫P(x) dx dx+C\mathrm{I.F.}=e^{\int P(x)\,dx},\qquad y\,e^{\int P(x)\,dx}=\int Q(x)e^{\int P(x)\,dx}\,dx+C

Mathematics — ALL CHAPTERS

1

Relations And Functions

View

2

Inverse Trigonometric Functions

View

3

Matrices

View

4

DETERMINANTS 

View

5

Continuity And Differentiability

View

6

Application Of Derivatives

View

7

Integrals

View

8

APPLICATION OF INTEGRALS

View

9

DIFFERENTIAL EQUATIONS

View

10

VECTOR ALGEBRA

View

11

Three Dimensional Geometry

View

12

Linear Programming

View

13

Probability

View

14

Proofs In Mathematics

View

15

Mathematical Modelling

View