MTH 340 · Ordinary Differential Equation
Our notes
2 min readSeparable: y′ = f(x)g(y)
Write dy/g(y) = f(x)dx and integrate both sides.
Worked example. y′ = xy, y(0) = 2. ∫dy/y = ∫x dx: ln|y| = x²/2 + C, so y = Ae^(x²/2). y(0) = 2 gives y = 2e^(x²/2). Check: y′ = 2x e^(x²/2) = xy ✓.
Homogeneous: y′ = F(y/x)
Substitute y = vx, so y′ = v + xv′; the equation becomes separable in v and x.
Worked example. y′ = (x + y)/x = 1 + y/x. Then v + xv′ = 1 + v, so v′ = 1/x, v = ln|x| + C, y = x ln|x| + Cx. Check: y′ = ln|x| + 1 + C, and 1 + y/x = 1 + ln|x| + C ✓.
Exact: M(x, y)dx + N(x, y)dy = 0
Exact if ∂M/∂y = ∂N/∂x. Then there is F with F_x = M, F_y = N, and the solution is F(x, y) = C.
Worked example. (2xy + 3)dx + (x² − 1)dy = 0. M_y = 2x = N_x: exact.
F = ∫(2xy + 3)dx = x²y + 3x + h(y). F_y = x² + h′(y) = x² − 1, so h = −y.
Solution: x²y + 3x − y = C.
Integrating factors: if (M_y − N_x)/N depends on x only, μ(x) = exp∫[(M_y − N_x)/N]dx makes it exact (similarly in y with (N_x − M_y)/M).
Linear: y′ + P(x)y = Q(x)
Multiply by the integrating factor μ = e^(∫P dx): (μy)′ = μQ, so μy = ∫μQ dx + C.
Worked example. y′ + 2y = 4x. μ = e^(2x). (ye^(2x))′ = 4xe^(2x). By parts, ∫4xe^(2x)dx = 2xe^(2x) − e^(2x). So y = 2x − 1 + Ce^(−2x).
Check: y′ = 2 − 2Ce^(−2x); y′ + 2y = 2 − 2Ce^(−2x) + 4x − 2 + 2Ce^(−2x) = 4x ✓.
Bernoulli: y′ + P(x)y = Q(x)yⁿ (n ≠ 0, 1)
Put v = y^(1−n); the equation becomes linear in v.
Worked example. y′ + y = y² (n = 2). v = 1/y, v′ = −y′/y². Divide the equation by y²: y′/y² + 1/y = 1, i.e. −v′ + v = 1, so v′ − v = −1. μ = e^(−x): (ve^(−x))′ = −e^(−x), ve^(−x) = e^(−x) + C, v = 1 + Ce^x. y = 1/(1 + Ce^x).
Check: y′ = −Ce^x/(1 + Ce^x)²; y′ + y = (−Ce^x + 1 + Ce^x)/(1 + Ce^x)² = 1/(1 + Ce^x)² = y² ✓.
Recognising the type (try in this order)
- Can the variables be separated?
- Is it linear in y (or in x, treating x as the unknown)?
- Is it homogeneous (every term of the same total degree)?
- Is it exact, or can an integrating factor make it exact?
- Is it Bernoulli?
- Does a substitution help (y′ = f(ax + by + c): put u = ax + by)?
Exams usually ask: solve one equation of each type, usually with an initial condition; test exactness and find an integrating factor; reduce a Bernoulli equation to linear form.
Common mistake: forgetting to multiply the right-hand side by the integrating factor, or dropping the constant before dividing by μ: y = (∫μQ dx + C)/μ, so C ends up multiplying e^(−∫P dx).
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Calculus Volume 2, 4.3 Separable Equations
(opens openstax.org in a new tab)
OpenStax, Calculus Volume 2, 4.3 Separable Equations, CC BY-NC-SA 4.0 · licence
-
Calculus Volume 2, 4.5 First-Order Linear Equations
(opens openstax.org in a new tab)
OpenStax, Calculus Volume 2, 4.5 First-Order Linear Equations, CC BY-NC-SA 4.0 · licence
-
Differential Equations - Exact Equations
Paul's Online Notes: worked examples step by step. About 0.5 MB a page.
(opens tutorial.math.lamar.edu in a new tab)
-
Differential Equations - Bernoulli Differential Equations
Paul's Online Notes: worked examples step by step. About 0.5 MB a page.
(opens tutorial.math.lamar.edu in a new tab)
-
Lebl, Notes on Diffy Qs: Differential Equations for Engineers
A whole free textbook: read online or download the PDF (about 4 MB). Every MTH 340 topic, with exercises and answers.
(opens jirka.org in a new tab)
Jiří Lebl, Notes on Diffy Qs, CC BY-NC-SA 4.0 · licence
Watch
-
Separable First-Order Differential Equations
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
Exact First-Order Differential Equations
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
-
Homogeneous Differential Equations and Bernoulli Differential Equations
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
Linear Differential Equations & the Method of Integrating Factors
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
2. First-Order Equations
1 h 21 min · ≈ 365 MB · about ₦205
(opens youtube.com in a new tab)
-
Lec 3 | MIT 18.03 Differential Equations, Spring 2006
50 min · ≈ 225 MB · about ₦126
(opens youtube.com in a new tab)
-
Introduction to Linear Differential Equations and Integrating Factors (Differential Equations 15)
1 h 7 min · ≈ 302 MB · about ₦170
(opens youtube.com in a new tab)
-
Solving Exact Differential Equations (Differential Equations 29)
52 min · ≈ 234 MB · about ₦131
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.