UNIHIVE

Study Hub UNIPORT MTH 340

MTH 340 · Ordinary Differential Equation

First-order equations: methods

Separable, homogeneous, exact, linear (integrating factor) and Bernoulli equations, and how to recognise each.

Our notes

2 min read

Separable: 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)

  1. Can the variables be separated?
  2. Is it linear in y (or in x, treating x as the unknown)?
  3. Is it homogeneous (every term of the same total degree)?
  4. Is it exact, or can an integrating factor make it exact?
  5. Is it Bernoulli?
  6. 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

Watch

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.

All MTH 340 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.