Ordinary differential equations of first order — Unit 1 Notes (Engineering Mathematics II)

BAS201 · Unit 1

Ordinary differential equations of first order notes — Unit 1

Free unit-wise study notes on ordinary differential equations of first order for Engineering Mathematics II, Semester 2 of B.Tech — Computer Science & Engineering — key concepts, examples, important questions and a revision checklist for semester exams.

Comprehensive 18-page hand-written notes covering First Order Ordinary Differential Equations. Master Exact Equations, Integrating Factors, Bernoulli's Equation, and practical applications like Orthogonal Trajectories and Newton's Law of Cooling.

Notebook — 18 pages

Page 1

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

1. Intro to Differential Equations

An equation involving independent variables, dependent variables, and derivatives of dependent variables with respect to independent variables is called a Differential Equation.

Order and Degree

  • Order: The highest order derivative present in the differential equation.
  • Degree: The highest power (exponent) of the highest order derivative, provided the equation is written as a polynomial in derivatives (i.e., free from radicals and fractions).

Next — Page 2 — Variable Separable Method

1 of 18

Page 2

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

2. Variable Separable Method

If a first-order, first-degree differential equation dydx=f(x,y)\frac{dy}{dx} = f(x, y) can be expressed in the form f(x)dx+g(y)dy=0f(x)dx + g(y)dy = 0, then it is called variable separable.

  1. 1.Group all terms involving xx and dxdx on one side.
  2. 2.Group all terms involving yy and dydy on the other side.
  3. 3.Integrate both sides independently.
  4. 4.Add an arbitrary constant CC to one side of the equation.

Example: Solve dydx=xy\frac{dy}{dx} = \frac{x}{y}

y,dy=x,dx\Rightarrow y\\,dy = x\\,dx
y,dy=x,dx\Rightarrow \int y\\,dy = \int x\\,dx
y22=x22+C\Rightarrow \frac{y^2}{2} = \frac{x^2}{2} + C

Next — Page 3 — Homogeneous Differential Eq.

2 of 18

Page 3

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

3. Homogeneous Differential Eq.

A differential equation of the form dydx=f(x,y)g(x,y)\frac{dy}{dx} = \frac{f(x,y)}{g(x,y)} is Homogeneous if f(x,y)f(x,y) and g(x,y)g(x,y) are homogeneous functions of the same degree.

Solution Method:

  1. 1.Substitute y=vxy = vx.
  2. 2.Differentiate with respect to xx: dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}.
  3. 3.Substitute these back into the original equation.
  4. 4.The equation will reduce to a Variable Separable form in terms of vv and xx.
  5. 5.Integrate and replace vv with yx\frac{y}{x} in the final answer.

Next — Page 4 — Equations Reducible to Homogeneous

3 of 18

Page 4

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

4. Reducible to Homogeneous

Equations of the form: dydx=a1x+b1y+c1a2x+b2y+c2\frac{dy}{dx} = \frac{a_1x + b_1y + c_1}{a_2x + b_2y + c_2}

Case 1: If a1a2b1b2\frac{a_1}{a_2} \neq \frac{b_1}{b_2}

Put x=X+hx = X + h and y=Y+ky = Y + k. Choose hh and kk such that the constants vanish: a1h+b1k+c1=0a_1h + b_1k + c_1 = 0 and a2h+b2k+c2=0a_2h + b_2k + c_2 = 0. The equation becomes homogeneous in X,YX, Y.

Case 2: If a1a2=b1b2=m\frac{a_1}{a_2} = \frac{b_1}{b_2} = m

Put (a1x+b1y)=t(a_1x + b_1y) = t and differentiate w.r.t xx. The equation reduces directly to Variable Separable form.

Next — Page 5 — Exact Differential Equations

4 of 18

Page 5

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

5. Exact Differential Equations

An equation M(x,y)dx+N(x,y)dy=0M(x,y)dx + N(x,y)dy = 0 is Exact if it is the total differential of some function U(x,y)=cU(x,y) = c (i.e., dU=0dU = 0).

Solution of an Exact Equation:

M,dx (treating y as constant);+;(terms in N free from x),dy=C\int M\\,dx \text{ (treating y as constant)} \\;+\\; \int (\text{terms in } N \text{ free from } x)\\,dy = C

Next — Page 6 — Exact Eq. Example

5 of 18

Page 6

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

6. Exact Eq. Example

Solve: (x2y)dx+(y2x)dy=0(x^2 - y)dx + (y^2 - x)dy = 0

  • Here, M=x2yM = x^2 - y and N=y2xN = y^2 - x.
  • My=1\frac{\partial M}{\partial y} = -1 and Nx=1\frac{\partial N}{\partial x} = -1.
  • Since My=Nx\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}, the equation is Exact.

Integration:
(x2y),dx [y is constant]=x33xy\int (x^2 - y)\\,dx \text{ [y is constant]} = \frac{x^3}{3} - xy

(terms in N free from x),dy=y2,dy=y33\int (\text{terms in } N \text{ free from } x)\\,dy = \int y^2\\,dy = \frac{y^3}{3}

Final Solution:
x33xy+y33=C\frac{x^3}{3} - xy + \frac{y^3}{3} = C

Next — Page 7 — Integrating Factors (I.F.)

6 of 18

Page 7

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

7. Integrating Factors (I.F.)

If Mdx+Ndy=0Mdx + Ndy = 0 is NOT exact (M/yN/x\partial M / \partial y \neq \partial N / \partial x), we multiply it by a suitable function u(x,y)u(x,y) called an Integrating Factor (I.F.) to make it exact.

Rule 1: Homogeneous Equations

If MM and NN are homogeneous functions of the same degree, and Mx+Ny0Mx + Ny \neq 0, then:
I.F.=1Mx+NyI.F. = \frac{1}{Mx + Ny}

Rule 2: f1(xy)y,dx+f2(xy)x,dy=0f_1(xy)y\\,dx + f_2(xy)x\\,dy = 0

If the equation is of this form and MxNy0Mx - Ny \neq 0, then:
I.F.=1MxNyI.F. = \frac{1}{Mx - Ny}

Next — Page 8 — I.F. Rules 3 and 4

7 of 18

Page 8

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

8. I.F. Rules 3 and 4

Rule 3: Function of xx alone

If 1N(MyNx)=f(x)\frac{1}{N} \left( \frac{\partial M}{\partial y} - \frac{\partial N}{\partial x} \right) = f(x) (a function of xx only or a constant), then:
I.F.=ef(x),dxI.F. = e^{\int f(x)\\,dx}

Rule 4: Function of yy alone

If 1M(NxMy)=g(y)\frac{1}{M} \left( \frac{\partial N}{\partial x} - \frac{\partial M}{\partial y} \right) = g(y) (a function of yy only or a constant), then:
I.F.=eg(y),dyI.F. = e^{\int g(y)\\,dy}

Next — Page 9 — Linear Differential Equations

8 of 18

Page 9

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

9. Linear Differential Eq.

A first-order differential equation is linear if the dependent variable (yy) and its derivative (dydx\frac{dy}{dx}) appear only in the first degree, and are not multiplied together.

Standard Form: dydx+Py=Q\frac{dy}{dx} + Py = Q
where
PP and QQ are functions of xx only (or constants).

  1. 1.Identify PP and QQ.
  2. 2.Calculate the Integrating Factor: I.F.=eP,dxI.F. = e^{\int P\\,dx}
  3. 3.Write the solution directly: y×(I.F.)=Q×(I.F.),dx+Cy \times (I.F.) = \int Q \times (I.F.)\\,dx + C

Next — Page 10 — Linear Eq. Example

9 of 18

Page 10

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

10. Linear Eq. Example

Solve: dydx+1xy=x2\frac{dy}{dx} + \frac{1}{x}y = x^2

  • Compare with dydx+Py=Q\frac{dy}{dx} + Py = Q. Here P=1x,Q=x2P = \frac{1}{x}, Q = x^2.
  • I.F.=e1x,dx=elnx=xI.F. = e^{\int \frac{1}{x}\\,dx} = e^{\ln x} = x.
  • Solution: y(x)=(x2)(x),dx+Cy \cdot (x) = \int (x^2) \cdot (x)\\,dx + C
  • xy=x3,dx+Cxy = \int x^3\\,dx + C
  • xy=x44+Cxy = \frac{x^4}{4} + C

Next — Page 11 — Bernoulli's Equation

10 of 18

Page 11

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

11. Bernoulli's Equation

An equation of the form: dydx+Py=Qyn\frac{dy}{dx} + Py = Qy^n where PP and QQ are functions of xx alone, is called Bernoulli's Equation.

It is non-linear but can be reduced to a linear form.

  1. 1.Divide the entire equation by yny^n: yndydx+Py1n=Qy^{-n}\frac{dy}{dx} + Py^{1-n} = Q
  2. 2.Put y1n=vy^{1-n} = v. Differentiate w.r.t xx: (1n)yndydx=dvdx(1-n)y^{-n}\frac{dy}{dx} = \frac{dv}{dx}.
  3. 3.Substitute this back. The equation becomes a standard Linear Equation in vv and xx.

Next — Page 12 — Exact vs Linear

11 of 18

Page 12

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

12. Choosing the Right Method

During exams, the method is rarely given. Use this checklist in order:

ODE Decision Matrix
ConditionMethod to Use
Can xx and yy terms be separated easily?Variable Separable
Are all terms of the same degree?Homogeneous (y=vxy=vx)
Is it in the form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x)?Linear Equation (I.F.I.F.)
Does it have a yny^n term on the RHS?Bernoulli's Eq. (Reduce to Linear)
Is M/y=N/x\partial M / \partial y = \partial N / \partial x?Exact Equation
None of the above?Find an I.F. using Rules 1-4

Next — Page 13 — Applications: Orthogonal Trajectories

12 of 18

Page 13

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

13. Orthogonal Trajectories

A curve that cuts every member of a given family of curves at a right angle (9090^\circ) is called an Orthogonal Trajectory.

Cartesian Coordinates (x,yx, y):

  1. 1.Differentiate the given family equation f(x,y,c)=0f(x,y,c)=0 w.r.t xx to find dydx\frac{dy}{dx}.
  2. 2.Eliminate the arbitrary constant cc to form the differential equation.
  3. 3.Replace dydx\frac{dy}{dx} with dxdy-\frac{dx}{dy} (since product of perpendicular slopes is 1-1).
  4. 4.Solve the new differential equation to get the orthogonal family.

Next — Page 14 — O.T. in Polar Coordinates

13 of 18

Page 14

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

14. O.T. in Polar Coordinates

For curves given in polar form r=f(θ)r = f(\theta):

  1. 1.Differentiate the given equation w.r.t θ\theta to find drdθ\frac{dr}{d\theta}.
  2. 2.Eliminate the arbitrary constant to form the differential equation.
  3. 3.Replace drdθ\frac{dr}{d\theta} with r2dθdr-r^2\frac{d\theta}{dr}.
  4. 4.Solve the resulting differential equation to find the orthogonal trajectories.

Next — Page 15 — Newton's Law of Cooling

14 of 18

Page 15

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

15. Newton's Law of Cooling

The rate of change of temperature of a body is proportional to the difference between its own temperature and the temperature of the surrounding medium.

dTdt=k(TTs)\frac{dT}{dt} = -k(T - T_s)

  • TT = Temperature of the body at time tt
  • TsT_s = Temperature of the surrounding (constant)
  • kk = Positive constant of proportionality (the negative sign shows temp is decreasing)

This is a simple Variable Separable ODE. Integrating gives:
ln(TTs)=kt+C\ln(T - T_s) = -kt + C

Next — Page 16 — Simple Electrical Circuits

15 of 18

Page 16

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

16. Simple Electrical Circuits

ODEs are heavily used to model transient currents in circuits.

L-R Series Circuit

By Kirchhoff's Voltage Law, the sum of voltage drops across an Inductor (LL) and a Resistor (RR) equals the applied voltage E(t)E(t):

Ldidt+Ri=E(t)L\frac{di}{dt} + Ri = E(t)

This is a standard First-Order Linear Differential Equation.
Divide by
LL: didt+RLi=EL\frac{di}{dt} + \frac{R}{L}i = \frac{E}{L}.
Here,
P=RLP = \frac{R}{L} and I.F.=eRt/LI.F. = e^{Rt/L}.

Next — Page 17 — R-C Series Circuit

16 of 18

Page 17

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

17. R-C Series Circuit

For a circuit with a Resistor (RR) and a Capacitor (CC):

Ri+1Cq=E(t)R i + \frac{1}{C}q = E(t)

Since current i=dqdti = \frac{dq}{dt}, the equation becomes:

Rdqdt+1Cq=E(t)R\frac{dq}{dt} + \frac{1}{C}q = E(t)

This is a linear ODE in terms of charge qq.
I.F.=et/RCI.F. = e^{t/RC}.
Once
q(t)q(t) is found by integrating, differentiate it to find the transient current i(t)i(t).

Next — Page 18 — Unit 1 Revision Checklist

17 of 18

Page 18

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 1

18. Unit 1 Revision Checklist

Test yourself before the exam:

  • Can I determine the order and degree of a complex ODE containing radicals?
  • What is the condition for an equation to be Exact?
  • If an equation is homogeneous, what substitution must I make?
  • Write the Integrating Factor formula for a Linear Differential Equation.
  • What substitution converts Bernoulli's equation into a linear equation?
  • In polar coordinates, what do you replace dr/dθdr/d\theta with to find orthogonal trajectories?

18 of 18

Continue in this subject