📚 Analytical Solution of First Order Differential Equations: Integrating Factors | 一阶微分方程的解析解法:积分因子
First order differential equations appear throughout mathematics, physics, and engineering. While some can be solved by direct integration or separation of variables, many cannot be written in separated form at all. The method of integrating factors provides a powerful and systematic technique for solving linear first order differential equations of the form dy/dx + P(x)y = Q(x). In this article, we will develop the method from first principles, derive the integrating factor, and work through carefully chosen examples that reflect the style of AQA A-Level examination questions.
一阶微分方程在数学、物理和工程领域中随处可见。有些方程可以通过直接积分或分离变量法求解,但许多方程根本无法写成可分离的形式。积分因子法为求解形如 dy/dx + P(x)y = Q(x) 的线性一阶微分方程提供了一种强大且系统的技巧。本文将从头推导积分因子的由来,并配合精心挑选的例题(与 AQA A-Level 考试题型保持一致)帮助读者彻底掌握这一方法。
1. What is a Linear First Order Differential Equation? | 什么是线性一阶微分方程?
A first order differential equation involves only the first derivative dy/dx and the dependent variable y. A linear first order equation is one in which y and dy/dx appear only to the first power, with no products such as y(dy/dx) or nonlinear terms like y². The most general form is:
一阶微分方程只涉及一阶导数 dy/dx 和因变量 y。线性一阶方程是指 y 和 dy/dx 仅以一次幂出现,不包含 y(dy/dx) 这样的乘积项或 y² 之类的非线性项。其最一般的形式为:
dy/dx + P(x)y = Q(x)
where P(x) and Q(x) are continuous functions of x. When Q(x) = 0, the equation is said to be homogeneous; when Q(x) ≠ 0, it is non-homogeneous. The method of integrating factors handles the non-homogeneous case directly.
其中 P(x) 和 Q(x) 是关于 x 的连续函数。当 Q(x) = 0 时,方程称为齐次的;当 Q(x) ≠ 0 时,方程称为非齐次的。积分因子法可以直接处理非齐次情形。
2. The Standard Form: Why It Matters | 标准形式:为什么它如此重要
Before applying the integrating factor method, the equation must first be rewritten in the standard form dy/dx + P(x)y = Q(x). This means the coefficient of dy/dx must be 1. Many exam questions deliberately present the equation in a form where the coefficient is not 1, such as x(dy/dx) + 2y = x³. In such cases, division by the coefficient of dy/dx is the essential first step.
在应用积分因子法之前,必须先将方程改写成标准形式 dy/dx + P(x)y = Q(x)。这意味着 dy/dx 的系数必须化为 1。许多考题故意给出系数不为 1 的形式,例如 x(dy/dx) + 2y = x³。此时,第一步就是用 dy/dx 的系数去除整个方程。
For the example above, dividing through by x gives:
对于上述例子,整体除以 x 得到:
dy/dx + (2/x)y = x²
Now P(x) = 2/x and Q(x) = x², and the equation is in the required standard form. Identifying P(x) and Q(x) correctly is the single most common point of failure in exam solutions.
现在 P(x) = 2/x,Q(x) = x²,方程已化成了所需的标准形式。正确识别 P(x) 和 Q(x) 是考试中最常见的失分点。
3. Deriving the Integrating Factor | 推导积分因子
The key insight behind the integrating factor method is to multiply the equation by a carefully chosen function I(x) that turns the left-hand side into an exact derivative. Suppose we multiply the standard form by I(x):
积分因子法的核心思想是:用一个精心挑选的函数 I(x) 乘以方程,使左边变成一个精确的导数。假设我们用 I(x) 乘以标准形式:
I(x)(dy/dx) + I(x)P(x)y = I(x)Q(x)
We would like the left-hand side to equal d/dx[I(x)y]. By the product rule, d/dx[I(x)y] = I(x)(dy/dx) + (dI/dx)y. Comparing terms, we need dI/dx = I(x)P(x). This is a separable differential equation for I(x):
我们希望左边等于 d/dx[I(x)y]。根据乘积法则,d/dx[I(x)y] = I(x)(dy/dx) + (dI/dx)y。对比各项可知,我们需要 dI/dx = I(x)P(x)。这是一个关于 I(x) 的可分离微分方程:
dI/I = P(x)dx → ln|I| = ∫P(x)dx → I(x) = e^(∫P(x)dx)
The constant of integration is omitted when finding the integrating factor, since we only need one such function. The choice I(x) = e^(∫P(x)dx) guarantees that the left-hand side collapses into a single derivative.
在求积分因子时省略积分常数,因为我们只需要一个这样的函数即可。选取 I(x) = e^(∫P(x)dx) 可以确保左边坍缩为一个单独的导数。
4. The General Solution Method | 通解方法
Once the integrating factor I(x) = e^(∫P(x)dx) has been found, the solution procedure follows a fixed sequence of steps:
一旦求得积分因子 I(x) = e^(∫P(x)dx),求解过程就按照固定步骤进行:
-
English: Multiply both sides of the standard form by I(x), giving I(x)(dy/dx) + I(x)P(x)y = I(x)Q(x).
-
中文:将标准形式两边同乘 I(x),得到 I(x)(dy/dx) + I(x)P(x)y = I(x)Q(x)。
-
English: Recognise the left-hand side as d/dx[I(x)y], so the equation becomes d/dx[I(x)y] = I(x)Q(x).
-
中文:识别左边为 d/dx[I(x)y],于是方程化为 d/dx[I(x)y] = I(x)Q(x)。
-
English: Integrate both sides with respect to x: I(x)y = ∫I(x)Q(x)dx + C.
-
中文:两边对 x 积分:I(x)y = ∫I(x)Q(x)dx + C。
-
English: Divide by I(x) to obtain the general solution y = (1/I(x))[∫I(x)Q(x)dx + C].
-
中文:除以 I(x) 得到通解 y = (1/I(x))[∫I(x)Q(x)dx + C]。
This systematic approach means that once P(x) and Q(x) are identified, the rest is a matter of careful integration. The constant C is determined later by any initial condition provided.
这一系统化方法意味着一旦识别出 P(x) 和 Q(x),剩下的就是仔细积分的问题。常数 C 稍后由给定的初始条件确定。
5. Worked Example 1: Basic Application | 例题一:基本应用
Problem: Solve the differential equation dy/dx + 3y = 6, given that y = 1 when x = 0.
题目:求解微分方程 dy/dx + 3y = 6,已知 x = 0 时 y = 1。
Solution: Comparing with the standard form, P(x) = 3 and Q(x) = 6. The integrating factor is:
求解:与标准形式对比,P(x) = 3,Q(x) = 6。积分因子为:
I(x) = e^(∫3dx) = e^(3x)
Multiplying through by e^(3x):
两边同乘 e^(3x):
e^(3x)(dy/dx) + 3e^(3x)y = 6e^(3x)
The left-hand side is d/dx(e^(3x)y). Integrating both sides:
左边是 d/dx(e^(3x)y)。两边积分:
e^(3x)y = ∫6e^(3x)dx = 2e^(3x) + C
Therefore y = 2 + Ce^(-3x). Using the initial condition y(0) = 1: 1 = 2 + C gives C = -1. Hence the particular solution is:
因此 y = 2 + Ce^(-3x)。利用初始条件 y(0) = 1:1 = 2 + C,得 C = -1。故特解为:
y = 2 – e^(-3x)
Notice that as x → ∞, y → 2, which represents the equilibrium solution of the original equation.
注意当 x → ∞ 时,y → 2,这是原方程的平衡解。
6. Worked Example 2: Equation Requiring Rearrangement | 例题二:需要整理的方程
Problem: Solve the differential equation x(dy/dx) + 2y = x³ for x > 0, given that y = 1 when x = 1.
题目:求解微分方程 x(dy/dx) + 2y = x³(x > 0),已知 x = 1 时 y = 1。
Solution: Divide throughout by x to obtain the standard form:
求解:整体除以 x 得到标准形式:
dy/dx + (2/x)y = x²
Here P(x) = 2/x and Q(x) = x². The integrating factor is:
此处 P(x) = 2/x,Q(x) = x²。积分因子为:
I(x) = e^(∫(2/x)dx) = e^(2ln|x|) = x²
Multiplying the standard form by x²:
将标准形式乘以 x²:
x²(dy/dx) + 2xy = x⁴
The left-hand side is d/dx(x²y). Integrating both sides:
左边是 d/dx(x²y)。两边积分:
x²y = ∫x⁴dx = x⁵/5 + C
Thus y = x³/5 + C/x². Using y(1) = 1: 1 = 1/5 + C gives C = 4/5. The particular solution is:
因此 y = x³/5 + C/x²。由 y(1) = 1:1 = 1/5 + C,得 C = 4/5。特解为:
y = x³/5 + 4/(5x²)
This example illustrates the crucial step of dividing through by the coefficient of dy/dx before identifying P(x).
此例说明了在识别 P(x) 之前先用 dy/dx 的系数除整个方程这一关键步骤。
7. Worked Example 3: Trigonometric Coefficients | 例题三:含三角函数的系数
Problem: Solve the differential equation dy/dx + y·tan x = sin x, for -π/2 < x < π/2, given that y = 0 when x = 0.
题目:求解微分方程 dy/dx + y·tan x = sin x(-π/2 < x < π/2),已知 x = 0 时 y = 0。
Solution: The equation is already in standard form with P(x) = tan x and Q(x) = sin x. The integrating factor is:
求解:方程已是标准形式,其中 P(x) = tan x,Q(x) = sin x。积分因子为:
I(x) = e^(∫tan x dx) = e^(-ln|cos x|) = 1/cos x = sec x
Multiplying through by sec x:
两边同乘 sec x:
sec x(dy/dx) + y·sec x·tan x = sin x·sec x = tan x
The left-hand side is d/dx(y·sec x). Integrating both sides:
左边是 d/dx(y·sec x)。两边积分:
y·sec x = ∫tan x dx = -ln|cos x| + C
Using y(0) = 0: 0 × 1 = -ln(1) + C gives C = 0. Hence y·sec x = -ln(cos x), so:
由 y(0) = 0:0 × 1 = -ln(1) + C,得 C = 0。因此 y·sec x = -ln(cos x),即:
y = -cos x·ln(cos x)
This example shows how integrating factors involving trigonometric functions require careful use of standard integrals.
此例展示了涉及三角函数的积分因子需要小心使用标准积分公式。
8. Particular Solutions and Initial Conditions | 特解与初始条件
In AQA examinations, questions often provide an initial condition y(x₀) = y₀ and ask for the particular solution. The general solution containing the arbitrary constant C is first obtained, and then C is evaluated by substitution. It is essential to substitute the initial condition into the general solution after dividing by the integrating factor, not before.
在 AQA 考试中,题目通常给出初始条件 y(x₀) = y₀,并求特解。首先求出含有任意常数 C 的通解,然后通过代入求出 C。务必在除以积分因子之后才将初始条件代入通解,而不是在此之前。
Consider the case where the integration ∫I(x)Q(x)dx cannot be performed in closed form. In this situation, the general solution is expressed in terms of an indefinite integral:
考虑 ∫I(x)Q(x)dx 无法闭式积分的情形。此时,通解用不定积分表示:
y = e^(-∫P(x)dx) · [∫e^(∫P(x)dx)Q(x)dx + C]
This integral form is accepted in A-Level marking schemes and is often expected when Q(x) involves non-elementary functions or products requiring integration by parts.
这种积分形式在 A-Level 评分标准中是被接受的,当 Q(x) 涉及非初等函数或需要用分部积分处理的乘积时,通常期望使用这种形式。
9. Common Exam Pitfalls | 常见考试易错点
Students frequently lose marks on integrating factor questions for preventable reasons. The following table summarises the most common errors and how to avoid them:
学生在积分因子题目上失分往往是因为一些可以避免的原因。下表总结了最常见的错误及其规避方法:
| Common Mistake | 常见错误 | Correction | 正确做法 |
| Forgetting to divide by the coefficient of dy/dx before identifying P(x) | 在识别 P(x) 之前忘了用 dy/dx 的系数除整个方程 | Always rewrite as dy/dx + P(x)y = Q(x) first | 始终先改写成 dy/dx + P(x)y = Q(x) |
| Omitting the absolute value when integrating 1/x | 对 1/x 积分时省略绝对值符号 | Use ln|x| and simplify using laws of logarithms | 使用 ln|x|,并利用对数法则化简 |
| Forgetting the constant of integration C | 忘记积分常数 C | Always include C when integrating I(x)Q(x) | 对 I(x)Q(x) 积分时始终保留 C |
| Substituting the initial condition before dividing by I(x) | 在除以 I(x) 之前代入初始条件 | Obtain y explicitly, then apply y(x₀) = y₀ | 先解出显式 y,再代入 y(x₀) = y₀ |
| Incorrectly simplifying e^(2ln|x|) as 2x instead of x² | 将 e^(2ln|x|) 错误化简为 2x 而不是 x² | Recall e^(a·ln|b|) = |b|^a | 记住 e^(a·ln|b|) = |b|^a |
Additionally, when the integrating factor simplifies, always check that the left-hand side is indeed the derivative of I(x)y by applying the product rule mentally. This verification takes seconds and catches most algebraic slips.
此外,当积分因子化简后,务必用乘积法则在心中验证左边确实是 I(x)y 的导数。这种验证只需几秒钟,却能捕捉到大多数代数错误。
10. Applications in Physical Contexts | 实际应用场景
First order linear differential equations arise naturally in many physical situations. Newton’s law of cooling, dT/dt = -k(T – T_env), is exactly of the form that the integrating factor method solves. Electrical RC circuits, where the charge q(t) satisfies R(dq/dt) + q/C = V(t), are another classic example. In each case, P(x) and Q(x) have direct physical interpretations, and the integrating factor method provides both the transient behaviour (via the complementary function involving C) and the steady-state response.
一阶线性微分方程在众多物理场景中自然出现。牛顿冷却定律 dT/dt = -k(T – T_env) 正是积分因子法可以解决的方程形式。RC 电路中的电荷 q(t) 满足 R(dq/dt) + q/C = V(t),是另一个经典例子。在每种情况下,P(x) 和 Q(x) 都有直接的物理含义,积分因子法同时给出了瞬态行为(涉及 C 的补函数)和稳态响应。
For AQA examinations, application problems typically provide a differential equation derived from a physical law and ask you to solve it using the integrating factor method. The mathematics is identical to the abstract problems; the context merely dictates the initial conditions and the expected form of the final answer.
对于 AQA 考试而言,应用题通常给出由物理定律导出的微分方程,并要求用积分因子法求解。其数学过程与抽象问题完全一致;情境背景只是决定了初始条件和最终答案的预期形式。
11. Summary of the Method | 方法总结
The integrating factor method can be summarised in four compact steps:
积分因子法可以概括为四个紧凑步骤:
Step 1: Rewrite as dy/dx + P(x)y = Q(x) | 步骤一:改写为标准形式
Step 2: Compute I = e^(∫P(x)dx) | 步骤二:计算 I = e^(∫P(x)dx)
Step 3: Multiply through and integrate: Iy = ∫I·Q(x)dx + C | 步骤三:两边同乘并积分:Iy = ∫I·Q(x)dx + C
Step 4: Divide by I and apply initial conditions | 步骤四:除以 I 并代入初始条件
Mastery of this method requires practice with a variety of P(x) functions — constants, powers of x, reciprocals, and trigonometric functions. Each case produces a distinct integrating factor, and fluency in recognising and simplifying these factors is the key to success in the examination.
熟练掌握此方法需要对各种 P(x) 函数进行练习——常数、x 的幂、倒数函数和三角函数。每种情况都会产生不同的积分因子,能够熟练识别并化简这些因子是在考试中取得成功的关键。
Published by TutorHao | Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导