First order differential equations
Solving a differential equation determines a family of functions until a condition fixes the constant.
Try a fresh questionRead the worked method
For a separable equation, move all factors involving y to one side and all factors involving x to the other, then integrate. Dividing by a factor of y can remove an equilibrium solution; check the original equation for those cases.
Apply an initial or boundary condition after finding the general solution. Substitute the result back into the original equation to check it. In a model, discuss whether the solution makes sense within its intended domain.
Worked example
Solve dy/dx = 2y with y(0) = 3.
- For y ≠ 0, integrate dy/y = 2 dx to get ln|y| = 2x + C.
- Write y = Ae^(2x).
- The initial condition gives A = 3.
Answer: y = 3e^(2x)
Revise first: Integration and exact area.
Use the initial condition after integrating
For y′+p(x)y=q(x), the integrating factor turns the left side into a product derivative. It is nonzero on the interval where the equation is defined. Keep a constant when integrating and use the initial condition afterwards. If coefficients involve 1/x, specify an interval that does not cross zero.
A variable coefficient
Solve on x>0 with y(1)=2. The factor is x², so . Hence , and C=7/4.
Resonant forcing
For , multiplying by e^(−x) gives . Thus . The factor x is required because eˣ already solves the homogeneous equation.
A mistake worth checking
A particular solution alone need not satisfy the initial value. Omitting the homogeneous term removes the freedom needed to fit it.
Why can the first solution not simply be extended through x=0?
The differential equation contains 2/x and is undefined there; this solution also has a pole because C≠0. Its stated interval is part of the problem.
Try this before opening the working
Solve , with y(0)=5, and verify it.
Compare your reasoning
The solution is y=2+3e^(−3x). Its derivative is −9e^(−3x), so y′+3y=6, and its initial value is 5.
Forcing terms and repeated roots
A first-order linear equation y′ + py = q uses the integrating factor e^(∫p dx). Multiplying by it turns the left side into the derivative of a product. Keep the integration constant until you apply the initial condition.
For a constant-coefficient second-order homogeneous equation, substitute y = e^(rx) to obtain the auxiliary equation. Two distinct real roots give two exponential terms. A repeated root r instead gives (A + Bx)e^(rx); writing two copies of e^(rx) gives only one independent solution.
A forced equation needs a complementary function and a particular integral. A polynomial trial is useful for polynomial forcing, provided it is not already part of the complementary function. If it overlaps, multiply the trial by a sufficient power of x.
Solving y′ + 2y = 4x + 6, y(0) = 5
- Try y_p = ax + b. Then y_p′ + 2y_p = 2ax + a + 2b.
- Comparing coefficients gives a = 2 and 2 + 2b = 6, hence b = 2.
- The homogeneous solution is Ce^(−2x), so y = 2x + 2 + Ce^(−2x).
- The initial condition gives C = 3. Differentiate and substitute: y′ + 2y = 4x + 6, and y(0) = 5.
For y″ − 4y′ + 4y = 0, why is y = Ae^(2x) + Be^(2x) insufficient?
Both terms are multiples of the same function. The repeated root needs y = (A + Bx)e^(2x).
Take the idea further
With y(0) = 1 and y′(0) = 0 in that repeated-root equation, A = 1 and B = −2.
Find the constant and check the model
For y′ + 2y = 0, the integrating factor e²ˣ gives d(e²ˣy)/dx = 0. Thus y = Ce⁻²ˣ. An initial condition fixes C; it is not an optional final detail.
For y′ + 2y = 6 and y(0) = 1, a constant particular solution is 3. The full solution is y = 3 − 2e⁻²ˣ. Substitution gives y′ + 2y = 6, and y approaches 3 as x increases. The equilibrium is visible both in the differential equation and in the solution.
If this describes a cooling or mixing model, the constant coefficients assume an unchanged environment or flow. A mathematically correct solution need not remain a realistic model after those assumptions fail. State the time interval and units in an application.
Check the condition
The initial condition should be applied to the particular solution alone.
A different problem
Replace the initial value 1 by 5. Find the new constant and decide whether the solution approaches the equilibrium from above or below.
Try with support · Try a demanding form
Choose a method in an exam-style question. The course filter checks whether it fits your route; extension tasks are labelled.
After feedback, try a fresh question without help. Your revision queue uses delayed retrieval once you choose a course.
Practise first order differential equations
Course mapping
These specification references show where the topic occurs. The questions cover only some parts of each topic.
- 9FM0 · core · 9 Differential equations: First order differential equations
- 7367 · core · I Differential equations: First order differential equations
- H245 · core · 9 Differential equations: First order differential equations
- H645 · core · Differential equations: First order differential equations
- 9FM0 · core · 9 Differential equations: An exponential growth differential equation
- 7367 · core · I Differential equations: An exponential growth differential equation
- H245 · core · 9 Differential equations: An exponential growth differential equation
- H645 · core · Differential equations: An exponential growth differential equation
- 9FM0 · core · 9 Differential equations: A differential equation with a repeated root
- 7367 · core · I Differential equations: A differential equation with a repeated root
- H245 · core · 9 Differential equations: A differential equation with a repeated root
- H645 · core · Differential equations: A differential equation with a repeated root
- 9FM0 · core · 9 Differential equations: A polynomial particular integral
- 7367 · core · I Differential equations: A polynomial particular integral
- H245 · core · 9 Differential equations: A polynomial particular integral
- H645 · core · Differential equations: A polynomial particular integral
- 9FM0 · core · 9 Differential equations: A first-order equation with a forcing term
- 7367 · core · I Differential equations: A first-order equation with a forcing term
- H245 · core · 9 Differential equations: A first-order equation with a forcing term
- H645 · core · Differential equations: A first-order equation with a forcing term
- 9FM0 · core · 9: differential equations and particular integrals: A coefficient in a resonant particular integral
- 7367 · core · I1–I2, I5–I6: first-order and exponential particular integrals: A coefficient in a resonant particular integral
- H245 · core · 4.10: integrating factors and non-homogeneous equations: A coefficient in a resonant particular integral
- H645 · core · Pc9–Pc14: integrating factors and resonant trials: A coefficient in a resonant particular integral
Next practice: Hyperbolic functions.