Unit E5: Differential Equations
and Modelling单元 E5:微分方程与建模
A differential equation links a quantity to its own rate of change, which is how populations, temperatures and interacting species are modelled. E5 covers the AHL toolkit: setting up equations from words, separation of variables with initial conditions, slope fields, Euler's method for one equation, for coupled systems and for second-order equations, and coupled linear systems $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$ solved with eigenvalues and eigenvectors, with equilibrium points and phase portraits. Technology is expected throughout, so every worked example shows the method and what the GDC does.微分方程把一个量与它自身的变化率联系起来,种群、温度和相互作用的物种都是这样建模的。E5 涵盖 AHL 工具集:由文字叙述建立方程、带初始条件的分离变量法、斜率场、单个方程、耦合方程组与二阶方程的欧拉法,以及用特征值与特征向量求解耦合线性方程组 $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$,并讨论平衡点与相图。全程预期使用技术工具,所以每个例题都展示方法以及 GDC 的作用。
This unit is HL only; SL students can skip it. Differential equations, slope fields, Euler's method and phase portraits (AHL 5.14 to 5.18) are additional higher level content in IB Mathematics: Applications and Interpretation, so they are not part of the SL course. Switch the course button at the top of the page to HL to read the full unit.
本单元仅限 HL;SL 学生可以跳过。微分方程、斜率场、欧拉法与相图(AHL 5.14 至 5.18)属于 IB 数学:应用与解释的高级附加内容(additional higher level),不在 SL 课程中。如需阅读完整单元,请把页面顶部的课程按钮切换到 HL。
Setting Up Differential Equations and Separation of Variables建立微分方程与分离变量法 HL AHL 5.14
- Translate a statement of proportionality or a rate of change in context into a differential equation, defining the constant and its sign.
- Explain the difference between a general solution (with an arbitrary constant) and a particular solution fixed by an initial condition.
- Solve $\dfrac{dy}{dx} = f(x)g(y)$ by separation of variables, including exponential growth and decay and Newton's law of cooling.
- Use two pieces of data to find both the constant of integration and the constant of proportionality.
- Check a solution by substituting back into the differential equation, and state the domain on which it is valid.
- 把比例关系或情境中的变化率(
rate of change)翻译成微分方程,并说明常数的含义与正负。 - 解释通解(含任意常数)与由初始条件确定的特解之间的区别。
- 用分离变量法求解 $\dfrac{dy}{dx} = f(x)g(y)$,包括指数增长与衰减以及牛顿冷却定律。
- 利用两组数据同时求出积分常数与比例常数。
- 把解代回微分方程进行检验,并说明解成立的定义域。
From a statement to a differential equation从文字叙述到微分方程
A differential equation (DE) is an equation that contains a derivative of an unknown function. When a quantity $y$ changes with time $t$, its rate of change is $\dfrac{dy}{dt}$. The phrase "proportional to" means "equals a constant times": "the rate of change of $y$ is proportional to $y$" becomes $\dfrac{dy}{dt} = ky$, where $k$ is the constant of proportionality. Decide the sign of $k$ from the words: if $y$ is growing, $k > 0$; for "the rate of decrease is proportional to $y$" write $\dfrac{dy}{dt} = -ky$ with $k > 0$. Newton's law of cooling says the rate of change of an object's temperature $T$ is proportional to the difference between $T$ and the surroundings $T_{s}$, which gives $\dfrac{dT}{dt} = -k(T - T_{s})$ with $k > 0$: the object warms when $T < T_{s}$ and cools when $T > T_{s}$.
微分方程(differential equation,DE)是含有未知函数导数的方程。量 $y$ 随时间 $t$ 变化时,其变化率为 $\dfrac{dy}{dt}$。"与……成正比"(proportional to)的意思是"等于一个常数乘以……":例如"$y$ 的变化率与 $y$ 成正比"写成 $\dfrac{dy}{dt} = ky$,其中 $k$ 为比例常数。$k$ 的正负由文字决定:$y$ 增长时 $k > 0$;"减少的速率与 $y$ 成正比"则写成 $\dfrac{dy}{dt} = -ky$,且 $k > 0$。牛顿冷却定律指出,物体温度 $T$ 的变化率与 $T$ 和环境温度 $T_{s}$ 之差成正比,即 $\dfrac{dT}{dt} = -k(T - T_{s})$,$k > 0$:当 $T < T_{s}$ 时物体升温,当 $T > T_{s}$ 时物体降温。
Separation of variables分离变量法
If the equation can be written $\dfrac{dy}{dx} = f(x)\,g(y)$, with $x$-terms and $y$-terms multiplying, you can separate the variables: move every $y$ to one side with $dy$ and every $x$ to the other with $dx$, then integrate each side. One constant of integration is enough, because the two constants merge into one:
若方程可以写成 $\dfrac{dy}{dx} = f(x)\,g(y)$,即 $x$ 的部分与 $y$ 的部分相乘,就可以分离变量(separation of variables):把含 $y$ 的项连同 $dy$ 移到一侧,含 $x$ 的项连同 $dx$ 移到另一侧,再分别积分。只需要一个积分常数,因为两侧的常数可合并为一个:
The result with the arbitrary constant $c$ is the general solution: a whole family of curves. An initial condition such as $y(0) = 80$ picks one curve; the result is the particular solution. Two cautions. Dividing by $g(y)$ assumes $g(y) \neq 0$, so check separately whether a constant solution with $g(y) = 0$ (for example $y = 0$) is also a solution. And when you integrate $\dfrac{1}{y}$, write $\ln|y|$; the sign of $y$ is fixed by the initial condition, so you can usually drop the modulus and say which sign you are using.
含任意常数 $c$ 的结果称为通解(general solution),表示一整族曲线。给定初始条件(initial condition),例如 $y(0) = 80$,就选出其中一条曲线,得到特解(particular solution)。有两点要注意。除以 $g(y)$ 默认了 $g(y) \neq 0$,所以要单独检查使 $g(y) = 0$ 的常数函数(例如 $y = 0$)是否也是解。对 $\dfrac{1}{y}$ 积分时应写作 $\ln|y|$;$y$ 的符号由初始条件决定,因此通常可以去掉绝对值,但要说明所取的符号。
Worked Example: exponential decay from two data points例题:由两组数据求指数衰减
The mass $m$ grams of a radioactive sample decreases at a rate proportional to $m$. Initially $m = 80$ and after 5 days $m = 60$. (a) Write down a differential equation. (b) Solve it for $m$ in terms of $t$ (days). (c) Find $m$ after 10 days. (d) Find the half-life, to 3 significant figures.某放射性样品的质量 $m$ 克以与 $m$ 成正比的速率减少。开始时 $m = 80$,5 天后 $m = 60$。(a) 写出微分方程。(b) 求 $m$ 关于 $t$(天)的表达式。(c) 求 10 天后的 $m$。(d) 求半衰期,保留 3 位有效数字。
(a) The rate of decrease is proportional to $m$, so $\dfrac{dm}{dt} = -km$ with $k > 0$.
(a) 减少的速率与 $m$ 成正比,所以 $\dfrac{dm}{dt} = -km$,$k > 0$。
(b) Separate: $\displaystyle\int \frac{1}{m}\,dm = \int -k\,dt$, so $\ln m = -kt + c$ (here $m > 0$). Then $m = Ae^{-kt}$ with $A = e^{c}$. The initial condition $m(0) = 80$ gives $A = 80$. The second datum $m(5) = 60$ gives $60 = 80e^{-5k}$, so $e^{-5k} = \dfrac{3}{4}$ and $k = \dfrac{1}{5}\ln\dfrac{4}{3} = 0.0575$ (3 s.f.). Since $e^{-5k} = \dfrac{3}{4}$, we can write $m = 80\left(\dfrac{3}{4}\right)^{t/5}$.
(b) 分离变量:$\displaystyle\int \frac{1}{m}\,dm = \int -k\,dt$,所以 $\ln m = -kt + c$(此处 $m > 0$)。于是 $m = Ae^{-kt}$,其中 $A = e^{c}$。初始条件 $m(0) = 80$ 给出 $A = 80$。第二组数据 $m(5) = 60$ 给出 $60 = 80e^{-5k}$,故 $e^{-5k} = \dfrac{3}{4}$,$k = \dfrac{1}{5}\ln\dfrac{4}{3} = 0.0575$(3 位有效数字)。由于 $e^{-5k} = \dfrac{3}{4}$,也可写成 $m = 80\left(\dfrac{3}{4}\right)^{t/5}$。
(c) $m(10) = 80\left(\dfrac{3}{4}\right)^{2} = 80 \times 0.5625 = 45$ grams.
(c) $m(10) = 80\left(\dfrac{3}{4}\right)^{2} = 80 \times 0.5625 = 45$ 克。
(d) Half of 80 is 40, so $40 = 80e^{-kt}$, giving $t = \dfrac{\ln 2}{k} = \dfrac{5\ln 2}{\ln(4/3)} = 12.0$ days (3 s.f.). On a GDC, store the exact value of $k$, then either solve $80e^{-kt} = 40$ with the equation solver or find the intersection of $y = 80e^{-kx}$ with $y = 40$.
(d) 80 的一半是 40,所以 $40 = 80e^{-kt}$,得 $t = \dfrac{\ln 2}{k} = \dfrac{5\ln 2}{\ln(4/3)} = 12.0$ 天(3 位有效数字)。用 GDC 时,先存储 $k$ 的精确值,再用方程求解器解 $80e^{-kt} = 40$,或求 $y = 80e^{-kx}$ 与 $y = 40$ 的交点。
Check by substitution. From $m = 80e^{-kt}$, $\dfrac{dm}{dt} = -80ke^{-kt} = -km$, which is the differential equation, and $m(0) = 80$.
代回检验。由 $m = 80e^{-kt}$ 得 $\dfrac{dm}{dt} = -80ke^{-kt} = -km$,正是原微分方程,且 $m(0) = 80$。
Why this works. The constant $A$ is the starting value and $k$ is the decay rate; two pieces of data are needed because there are two unknown constants.
为什么可行。常数 $A$ 是初始值,$k$ 是衰减率;有两个未知常数,所以需要两组数据。
Worked Example: Newton's law of cooling例题:牛顿冷却定律
A drink at $90^{\circ}$C is placed in a room at $20^{\circ}$C. Its temperature $T$ satisfies $\dfrac{dT}{dt} = -k(T - 20)$ with $k > 0$, where $t$ is in minutes. After 10 minutes $T = 60$. (a) Solve the equation for $T$. (b) Find $T$ after 20 minutes. (c) Find when $T = 30$. (d) What happens to $T$ as $t \to \infty$?一杯 $90^{\circ}$C 的饮料放在 $20^{\circ}$C 的房间里。温度 $T$ 满足 $\dfrac{dT}{dt} = -k(T - 20)$,$k > 0$,$t$ 的单位为分钟。10 分钟后 $T = 60$。(a) 求 $T$。(b) 求 20 分钟后的 $T$。(c) 求 $T = 30$ 的时刻。(d) 当 $t \to \infty$ 时 $T$ 如何变化?
(a) Separate: $\displaystyle\int \frac{1}{T - 20}\,dT = \int -k\,dt$. The drink stays above 20, so $T - 20 > 0$ and $\ln(T - 20) = -kt + c$, that is $T = 20 + Ae^{-kt}$. From $T(0) = 90$: $A = 70$. From $T(10) = 60$: $40 = 70e^{-10k}$, so $e^{-10k} = \dfrac{4}{7}$ and $k = \dfrac{1}{10}\ln\dfrac{7}{4} = 0.0560$ (3 s.f.). Hence $T = 20 + 70e^{-kt}$.
(a) 分离变量:$\displaystyle\int \frac{1}{T - 20}\,dT = \int -k\,dt$。饮料温度始终高于 20,所以 $T - 20 > 0$,$\ln(T - 20) = -kt + c$,即 $T = 20 + Ae^{-kt}$。由 $T(0) = 90$ 得 $A = 70$。由 $T(10) = 60$ 得 $40 = 70e^{-10k}$,所以 $e^{-10k} = \dfrac{4}{7}$,$k = \dfrac{1}{10}\ln\dfrac{7}{4} = 0.0560$(3 位有效数字)。因此 $T = 20 + 70e^{-kt}$。
(b) $e^{-20k} = \left(\dfrac{4}{7}\right)^{2} = \dfrac{16}{49}$, so $T(20) = 20 + 70 \times \dfrac{16}{49} = 20 + 22.857\ldots = 42.9^{\circ}$C (3 s.f.).
(b) $e^{-20k} = \left(\dfrac{4}{7}\right)^{2} = \dfrac{16}{49}$,所以 $T(20) = 20 + 70 \times \dfrac{16}{49} = 20 + 22.857\ldots = 42.9^{\circ}$C(3 位有效数字)。
(c) $30 = 20 + 70e^{-kt}$ gives $e^{-kt} = \dfrac{1}{7}$, so $t = \dfrac{\ln 7}{k} = \dfrac{10\ln 7}{\ln(7/4)} = 34.8$ minutes (3 s.f.). A GDC graph of $y = 20 + 70e^{-kx}$ and $y = 30$ confirms the intersection.
(c) $30 = 20 + 70e^{-kt}$ 得 $e^{-kt} = \dfrac{1}{7}$,所以 $t = \dfrac{\ln 7}{k} = \dfrac{10\ln 7}{\ln(7/4)} = 34.8$ 分钟(3 位有效数字)。在 GDC 上画出 $y = 20 + 70e^{-kx}$ 与 $y = 30$ 的图像,可以确认交点。
(d) $e^{-kt} \to 0$, so $T \to 20$: the drink approaches room temperature and never goes below it.
(d) $e^{-kt} \to 0$,所以 $T \to 20$:饮料温度趋近室温,且永远不会低于室温。
Check by substitution. $\dfrac{dT}{dt} = -70ke^{-kt} = -k(T - 20)$, and $T(0) = 20 + 70 = 90$.
代回检验。$\dfrac{dT}{dt} = -70ke^{-kt} = -k(T - 20)$,且 $T(0) = 20 + 70 = 90$。
Worked Example: a separable equation and its domain例题:可分离方程及其定义域
Solve $\dfrac{dy}{dx} = 2xy^{2}$ with $y(0) = 1$, and state the values of $x$ for which your solution is valid.求解 $\dfrac{dy}{dx} = 2xy^{2}$,$y(0) = 1$,并说明所得解成立的 $x$ 的取值范围。
Here $f(x) = 2x$ and $g(y) = y^{2}$. For $y \neq 0$: $\displaystyle\int y^{-2}\,dy = \int 2x\,dx$, so $-\dfrac{1}{y} = x^{2} + c$. The condition $y(0) = 1$ gives $-1 = c$, so $-\dfrac{1}{y} = x^{2} - 1$ and
这里 $f(x) = 2x$,$g(y) = y^{2}$。当 $y \neq 0$ 时:$\displaystyle\int y^{-2}\,dy = \int 2x\,dx$,所以 $-\dfrac{1}{y} = x^{2} + c$。条件 $y(0) = 1$ 给出 $-1 = c$,于是 $-\dfrac{1}{y} = x^{2} - 1$,即
$$ y = \frac{1}{1 - x^{2}}. $$
$$ y = \frac{1}{1 - x^{2}}. $$
Domain. The formula fails at $x = \pm 1$, where $y$ becomes unbounded. The solution through $(0, 1)$ is the branch on $-1 < x < 1$, the interval that contains the initial point. The constant function $y = 0$ is also a solution, lost when we divided by $y^{2}$, but it does not pass through $(0, 1)$.
定义域。该公式在 $x = \pm 1$ 处失效,此时 $y$ 无界。过 $(0, 1)$ 的解是 $-1 < x < 1$ 上的那一支,即包含初始点的区间。常数函数 $y = 0$ 也是解,它在除以 $y^{2}$ 时丢失了,但不经过 $(0, 1)$。
Check by substitution. $y = (1 - x^{2})^{-1}$ gives $\dfrac{dy}{dx} = 2x(1 - x^{2})^{-2} = 2xy^{2}$, and $y(0) = 1$.
代回检验。$y = (1 - x^{2})^{-1}$ 给出 $\dfrac{dy}{dx} = 2x(1 - x^{2})^{-2} = 2xy^{2}$,且 $y(0) = 1$。
Why this works. A solution of a differential equation is a function on an interval; a formula can be defined on more than one interval, so the initial condition decides which piece is the answer.
为什么可行。微分方程的解是某个区间上的函数;一个公式可能在多个区间上有定义,所以由初始条件决定哪一段才是答案。
Say what each constant is and give its sign before solving: write "$k > 0$" next to the equation. Use both pieces of data in order: the initial condition fixes the constant of integration, the second datum fixes $k$. Finish by substituting back, state units, and round only at the end by storing exact values on the GDC.
解题前先说明每个常数的含义和正负:在方程旁写出"$k > 0$"。两组数据依次使用:初始条件确定积分常数,第二组数据确定 $k$。最后代回检验、写明单位,并在 GDC 中存储精确值,只在最后一步取近似。
Write "the rate of change of $V$ is proportional to $V$" as a differential equation and state its general solution.把"$V$ 的变化率与 $V$ 成正比"写成微分方程,并写出其通解。
$\dfrac{dV}{dt} = kV$ with $k$ a constant. Separating, $\displaystyle\int \frac{1}{V}\,dV = \int k\,dt$ gives $\ln|V| = kt + c$, so $V = Ae^{kt}$ where $A$ is an arbitrary constant. Check: $\dfrac{dV}{dt} = kAe^{kt} = kV$.
$\dfrac{dV}{dt} = kV$,其中 $k$ 为常数。分离变量,$\displaystyle\int \frac{1}{V}\,dV = \int k\,dt$ 得 $\ln|V| = kt + c$,所以 $V = Ae^{kt}$,$A$ 为任意常数。检验:$\dfrac{dV}{dt} = kAe^{kt} = kV$。
Solve $\dfrac{dy}{dx} = \dfrac{x}{y}$ with $y(0) = 3$.求解 $\dfrac{dy}{dx} = \dfrac{x}{y}$,$y(0) = 3$。
Separate: $\displaystyle\int y\,dy = \int x\,dx$, so $\dfrac{y^{2}}{2} = \dfrac{x^{2}}{2} + c$, that is $y^{2} = x^{2} + C$. From $y(0) = 3$: $C = 9$. Since $y(0) = 3 > 0$, take the positive root: $y = \sqrt{x^{2} + 9}$. Check: $\dfrac{dy}{dx} = \dfrac{x}{\sqrt{x^{2} + 9}} = \dfrac{x}{y}$.
分离变量:$\displaystyle\int y\,dy = \int x\,dx$,所以 $\dfrac{y^{2}}{2} = \dfrac{x^{2}}{2} + c$,即 $y^{2} = x^{2} + C$。由 $y(0) = 3$ 得 $C = 9$。因为 $y(0) = 3 > 0$,取正根:$y = \sqrt{x^{2} + 9}$。检验:$\dfrac{dy}{dx} = \dfrac{x}{\sqrt{x^{2} + 9}} = \dfrac{x}{y}$。
A cup of tea at $80^{\circ}$C is in a room at $20^{\circ}$C and cools by Newton's law. After 5 minutes it is at $62^{\circ}$C. Find its temperature after 10 minutes.一杯 $80^{\circ}$C 的茶放在 $20^{\circ}$C 的房间里,按牛顿冷却定律降温。5 分钟后为 $62^{\circ}$C。求 10 分钟后的温度。
$T = 20 + Ae^{-kt}$ with $A = 60$. At $t = 5$: $42 = 60e^{-5k}$, so $e^{-5k} = 0.7$ and $k = \dfrac{1}{5}\ln\dfrac{10}{7} = 0.0713$. At $t = 10$: $e^{-10k} = 0.7^{2} = 0.49$, so $T = 20 + 60 \times 0.49 = 49.4^{\circ}$C.
$T = 20 + Ae^{-kt}$,$A = 60$。$t = 5$ 时:$42 = 60e^{-5k}$,所以 $e^{-5k} = 0.7$,$k = \dfrac{1}{5}\ln\dfrac{10}{7} = 0.0713$。$t = 10$ 时:$e^{-10k} = 0.7^{2} = 0.49$,所以 $T = 20 + 60 \times 0.49 = 49.4^{\circ}$C。
Slope Fields and Solution Curves斜率场与解曲线 HL AHL 5.15
- Compute the gradient $\dfrac{dy}{dx} = f(x, y)$ at chosen points and draw the corresponding short segments of a slope field.
- Read a slope field: where the gradient is zero, positive or negative, and where it is the same along rows or columns.
- Sketch a solution curve through a given point by following the segments.
- Explain why two different solution curves do not cross, and identify constant (horizontal) solutions.
- Match a differential equation to its slope field using values of the gradient.
- 在选定的点计算梯度 $\dfrac{dy}{dx} = f(x, y)$,并画出斜率场(
slope field)中相应的短线段。 - 读斜率场:梯度何处为零、为正、为负,以及何处沿行或沿列保持相同。
- 沿着线段方向,画出过给定点的解曲线(
solution curve)。 - 解释为什么两条不同的解曲线不会相交,并识别常数(水平)解。
- 利用梯度的取值,把微分方程与其斜率场对应起来。
What a slope field shows斜率场表示什么
A first-order equation $\dfrac{dy}{dx} = f(x, y)$ tells you the gradient of a solution at every point $(x, y)$, even when you cannot solve it. A slope field (direction field) draws a short segment of gradient $f(x, y)$ at each point of a grid. A solution curve is a curve that is tangent to the segments everywhere: start at the initial point and keep following the direction of the nearest segments. To build a slope field by hand, make a table of $f(x, y)$ at grid points and sketch each segment; Figure 1 uses spacing $0.5$ in $x$ and $1$ in $y$.
一阶方程 $\dfrac{dy}{dx} = f(x, y)$ 给出解在每一点 $(x, y)$ 处的梯度,即使无法求出解析解。斜率场(方向场)在网格的每个点画一小段梯度为 $f(x, y)$ 的线段。解曲线是处处与线段相切的曲线:从初始点出发,沿附近线段的方向一路画下去。手工作斜率场时,先列出网格点上 $f(x, y)$ 的值,再画各线段;图 1 在 $x$ 方向取间距 $0.5$,在 $y$ 方向取间距 $1$。
Features to read: the segments are horizontal where $f(x, y) = 0$ (stationary points of solutions); if $f$ depends on $x$ only, segments are identical along each vertical line; if $f$ depends on $y$ only, they are identical along each horizontal line. A horizontal line $y = c$ with $f(x, c) = 0$ for every $x$ is a constant solution. Because there is exactly one segment at each point, two different solution curves of the equations in this unit never cross.
需要读出的特征:在 $f(x, y) = 0$ 处线段水平(解的驻点);若 $f$ 只与 $x$ 有关,则每条竖直线上的线段相同;若 $f$ 只与 $y$ 有关,则每条水平线上的线段相同。若水平线 $y = c$ 使得对所有 $x$ 都有 $f(x, c) = 0$,则它是常数解(constant solution)。由于每个点只有一条线段,本单元中的方程的两条不同解曲线永远不会相交。
Worked Example: reading and checking the slope field of $dy/dx = xy$例题:读并验证 $dy/dx = xy$ 的斜率场
For $\dfrac{dy}{dx} = xy$: (a) find the gradient at $(1, 1)$, $(2, 3)$, $(-1, 2)$ and $(0, 5)$; (b) describe the field on the axes and its symmetry; (c) sketch the solution through $(0, 1)$ and confirm it by separation of variables.对于 $\dfrac{dy}{dx} = xy$:(a) 求 $(1, 1)$、$(2, 3)$、$(-1, 2)$ 与 $(0, 5)$ 处的梯度;(b) 描述坐标轴上的线段与场的对称性;(c) 画出过 $(0, 1)$ 的解曲线,并用分离变量法验证。
(a) Substitute $f(x, y) = xy$: $f(1, 1) = 1$, $f(2, 3) = 6$ (steep), $f(-1, 2) = -2$, $f(0, 5) = 0$.
(a) 代入 $f(x, y) = xy$:$f(1, 1) = 1$,$f(2, 3) = 6$(很陡),$f(-1, 2) = -2$,$f(0, 5) = 0$。
(b) On the $x$-axis ($y = 0$) and the $y$-axis ($x = 0$) the gradient is $0$, so all segments there are horizontal; so $y = 0$ is a constant solution. Since $f(-x, y) = -f(x, y)$, the field on the left is the mirror image of the field on the right (segments tilt the opposite way).
(b) 在 $x$ 轴($y = 0$)与 $y$ 轴($x = 0$)上梯度为 $0$,所以那里所有线段水平;因此 $y = 0$ 是常数解。由于 $f(-x, y) = -f(x, y)$,左侧的场是右侧的镜像(线段倾斜方向相反)。
(c) Starting at $(0, 1)$ the segment is horizontal; for $x > 0$ and $y > 0$ the gradient is positive and increasing, so the curve rises ever more steeply, and by symmetry the same on the left. Separation: $\displaystyle\int \frac{1}{y}\,dy = \int x\,dx$ gives $\ln y = \dfrac{x^{2}}{2} + c$ for $y > 0$; $y(0) = 1$ gives $c = 0$, so $y = e^{x^{2}/2}$. Check at $x = 1$: $y = e^{0.5} = 1.6487$ and $\dfrac{dy}{dx} = xy = 1.6487$, and the derivative of $e^{x^{2}/2}$ is $xe^{x^{2}/2}$, as required.
(c) 从 $(0, 1)$ 出发,线段水平;当 $x > 0$ 且 $y > 0$ 时梯度为正且不断增大,所以曲线越来越陡,左侧由对称性同理。分离变量:$\displaystyle\int \frac{1}{y}\,dy = \int x\,dx$ 在 $y > 0$ 时给出 $\ln y = \dfrac{x^{2}}{2} + c$;$y(0) = 1$ 得 $c = 0$,所以 $y = e^{x^{2}/2}$。在 $x = 1$ 检验:$y = e^{0.5} = 1.6487$,$\dfrac{dy}{dx} = xy = 1.6487$,而 $e^{x^{2}/2}$ 的导数是 $xe^{x^{2}/2}$,符合要求。
Why this works. The segments are tangent lines of the solutions; following them traces the solution that the equation forces.
为什么可行。线段就是解的切线;沿着它们画,就描出了方程所决定的那条解。
Worked Example: a field that cannot be separated: $dy/dx = x - y$例题:无法分离变量的场:$dy/dx = x - y$
For $\dfrac{dy}{dx} = x - y$ with $y(0) = 1$: (a) find where the segments are horizontal and the sign of the gradient on either side; (b) describe the solution curve through $(0, 1)$; (c) verify by substitution that $y = x - 1 + 2e^{-x}$ is the solution and find its stationary point.对于 $\dfrac{dy}{dx} = x - y$,$y(0) = 1$:(a) 求线段水平之处,以及两侧梯度的正负;(b) 描述过 $(0, 1)$ 的解曲线;(c) 代入验证 $y = x - 1 + 2e^{-x}$ 是该解,并求其驻点。
(a) $x - y = 0$ on the line $y = x$, so segments there are horizontal. Below the line ($y < x$) the gradient $x - y$ is positive; above it ($y > x$) it is negative. For example $f(0, 1) = -1$ and $f(2, 0) = 2$.
(a) 在直线 $y = x$ 上 $x - y = 0$,所以那里的线段水平。直线下方($y < x$)梯度 $x - y$ 为正;上方($y > x$)为负。例如 $f(0, 1) = -1$,$f(2, 0) = 2$。
(b) The curve starts at $(0, 1)$, above the line, with gradient $-1$, so it falls until it meets the line $y = x$, where its gradient is $0$, and afterwards it rises, because it is then below the line. So there is a minimum on the line $y = x$.
(b) 曲线从直线上方的 $(0, 1)$ 出发,梯度为 $-1$,因此下降,直到与直线 $y = x$ 相遇,此处梯度为 $0$;之后曲线位于直线下方,梯度为正,开始上升。所以最小值出现在直线 $y = x$ 上。
(c) This equation is not separable, so we verify instead. $y = x - 1 + 2e^{-x}$ gives $\dfrac{dy}{dx} = 1 - 2e^{-x}$, while $x - y = x - (x - 1 + 2e^{-x}) = 1 - 2e^{-x}$: equal. Also $y(0) = -1 + 2 = 1$. Stationary point: $1 - 2e^{-x} = 0$ gives $x = \ln 2 = 0.693$, and $y = \ln 2 - 1 + 1 = \ln 2$, so it lies on $y = x$ as predicted. Since $\dfrac{d^{2}y}{dx^{2}} = 2e^{-x} > 0$, it is a minimum at $(0.693, 0.693)$.
(c) 该方程不能分离变量,所以改用代入验证。$y = x - 1 + 2e^{-x}$ 给出 $\dfrac{dy}{dx} = 1 - 2e^{-x}$,而 $x - y = x - (x - 1 + 2e^{-x}) = 1 - 2e^{-x}$:相等。又 $y(0) = -1 + 2 = 1$。驻点:$1 - 2e^{-x} = 0$ 得 $x = \ln 2 = 0.693$,$y = \ln 2 - 1 + 1 = \ln 2$,位于 $y = x$ 上,与预测一致。因为 $\dfrac{d^{2}y}{dx^{2}} = 2e^{-x} > 0$,所以 $(0.693, 0.693)$ 是最小值点。
Why this works. The slope field gives the qualitative shape without any solving; the explicit solution then confirms it, and Euler's method (next topic) approximates it numerically.
为什么可行。斜率场不用求解就给出曲线的大致形状;显式解再加以确认,而欧拉法(下一节)则给出数值近似。
When asked to sketch a solution curve, mark the initial point first, then draw a smooth curve that is tangent to the nearby segments, never crossing a segment at a visibly different angle. Say where the curve is increasing or decreasing and where it has a stationary point; those statements come straight from the sign of $f(x, y)$.
要求画解曲线时,先标出初始点,再画一条与附近线段相切的光滑曲线,不要以明显不同的角度穿过线段。说明曲线在何处递增或递减、何处有驻点;这些结论直接来自 $f(x, y)$ 的符号。
For $\dfrac{dy}{dx} = x + y$, find the gradient of the segments at $(1, 2)$, $(-1, 1)$ and $(0, -3)$.对于 $\dfrac{dy}{dx} = x + y$,求 $(1, 2)$、$(-1, 1)$ 与 $(0, -3)$ 处线段的梯度。
$f(1, 2) = 3$, $f(-1, 1) = 0$ (a horizontal segment) and $f(0, -3) = -3$.
$f(1, 2) = 3$,$f(-1, 1) = 0$(水平线段),$f(0, -3) = -3$。
Explain why two different solution curves of a slope field of $\dfrac{dy}{dx} = f(x, y)$ cannot cross at a point.解释为什么斜率场 $\dfrac{dy}{dx} = f(x, y)$ 的两条不同解曲线不能在某点相交。
At the common point there is only one segment, so every solution through that point must have the single gradient $f(x, y)$ there. Two curves crossing would have different gradients at that point, which the equation does not allow.
在公共点处只有一条线段,所以经过该点的每个解在此处都必须有唯一的梯度 $f(x, y)$。两条曲线相交意味着该点梯度不同,而方程不允许这样。
A slope field has horizontal segments exactly along $y = 0$ and $y = 2$. The equation $\dfrac{dy}{dx} = y(y - 2)$ fits. State the sign of the gradient for $0 < y < 2$ and describe the solution that starts at $(0, 1)$.某斜率场的水平线段恰好出现在 $y = 0$ 与 $y = 2$ 上。方程 $\dfrac{dy}{dx} = y(y - 2)$ 与之吻合。说明 $0 < y < 2$ 时梯度的符号,并描述从 $(0, 1)$ 出发的解。
For $0 < y < 2$, $y > 0$ and $y - 2 < 0$, so the gradient is negative (for instance $f(x, 1) = -1$). The solution from $(0, 1)$ decreases. It cannot cross the constant solution $y = 0$, so it stays above it and levels off towards $y = 0$ as $x$ increases.
当 $0 < y < 2$ 时,$y > 0$ 且 $y - 2 < 0$,所以梯度为负(例如 $f(x, 1) = -1$)。从 $(0, 1)$ 出发的解递减。它不能穿过常数解 $y = 0$,所以始终在其上方,并随着 $x$ 增大而趋于 $y = 0$。
Euler's Method for First-Order Equations一阶方程的欧拉法 HL AHL 5.16
- State Euler's method for $\dfrac{dy}{dx} = f(x, y)$: $x_{n+1} = x_{n} + h$ and $y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})$.
- Set out an Euler table to a stated number of decimal places, using the unrounded values for the next step.
- Use a GDC spreadsheet or list to carry out many steps.
- Explain the effect of the step size on accuracy, and whether an estimate is above or below the true value.
- Compare an Euler estimate with an exact solution found earlier.
- 写出(
state)一阶方程 $\dfrac{dy}{dx} = f(x, y)$ 的欧拉法:$x_{n+1} = x_{n} + h$,$y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})$。 - 按规定的小数位数列出欧拉法表格,下一步使用未取近似的数值。
- 用 GDC 的电子表格或列表完成多步计算。
- 解释步长对精度的影响,并判断估计值偏大还是偏小。
- 把欧拉法的估计值与前面求得的精确解进行比较。
Euler's method欧拉法
When a differential equation cannot be solved exactly, or you only need numbers, Euler's method follows the tangent line for a short horizontal distance $h$, the step size (step length), then recomputes the gradient and repeats. From the initial point $(x_{0}, y_{0})$:
当微分方程无法精确求解,或只需要数值时,欧拉法(Euler's method)沿切线前进一小段水平距离 $h$,即步长(step size),然后重新计算梯度并重复。从初始点 $(x_{0}, y_{0})$ 出发:
To reach $x = x_{end}$ you need $\dfrac{x_{end} - x_{0}}{h}$ steps. Each row of the table needs $x_{n}$, $y_{n}$, the gradient $f(x_{n}, y_{n})$, and the new $y_{n+1}$. Carry the unrounded values forward and round only the numbers you display, to the number of decimal places the question states. On a GDC, put $x$ in one column of a spreadsheet and $y$ in the next, enter the formula for the first step, and fill down; or store the update in a recursion. Always check the first step by hand.
要到达 $x = x_{end}$,需要 $\dfrac{x_{end} - x_{0}}{h}$ 步。表格每一行需要 $x_{n}$、$y_{n}$、梯度 $f(x_{n}, y_{n})$ 与新的 $y_{n+1}$。往后传递的是未取近似的数值,只对显示的数字按题目规定的小数位数取近似。用 GDC 时,在电子表格的一列放 $x$,下一列放 $y$,输入第一步的公式后向下填充;也可以把更新式存为递推。第一步务必手算核对。
Accuracy. Each step replaces the curve by its tangent, and errors accumulate, so a smaller step size usually gives a closer estimate (at the cost of more steps). Where the solution curve is concave up ($y'' > 0$), tangent lines lie below the curve and Euler's estimates are too small; where it is concave down they are too large.
精度。每一步都用切线代替曲线,误差会累积,所以步长越小,估计值通常越接近真值(代价是步数更多)。在解曲线向上凹($y'' > 0$)之处,切线位于曲线下方,欧拉估计值偏小;在向下凹之处则偏大。
Worked Example: Euler tables for $dy/dx = x - y$ with two step sizes例题:$dy/dx = x - y$ 的两种步长欧拉表
Use Euler's method for $\dfrac{dy}{dx} = x - y$, $y(0) = 1$, to estimate $y(1)$ with (a) $h = 0.5$ and (b) $h = 0.25$, giving values to 4 decimal places. (c) Compare with the exact value $y(1) = 2e^{-1}$ found in topic E5.2.用欧拉法对 $\dfrac{dy}{dx} = x - y$,$y(0) = 1$,分别取 (a) $h = 0.5$ 与 (b) $h = 0.25$ 估计 $y(1)$,结果保留 4 位小数。(c) 与 E5.2 中求得的精确值 $y(1) = 2e^{-1}$ 比较。
(a) Two steps. Row 0: $f(0, 1) = -1$, so $y_{1} = 1 + 0.5(-1) = 0.5$. Row 1: $f(0.5, 0.5) = 0$, so $y_{2} = 0.5 + 0.5(0) = 0.5$. So $y(1) \approx 0.5000$.
(a) 两步。第 0 行:$f(0, 1) = -1$,所以 $y_{1} = 1 + 0.5(-1) = 0.5$。第 1 行:$f(0.5, 0.5) = 0$,所以 $y_{2} = 0.5 + 0.5(0) = 0.5$。故 $y(1) \approx 0.5000$。
(b) Four steps; the table is below. Row 2 gives $f(0.5, 0.625) = -0.125$, so $y_{3} = 0.625 - 0.03125 = 0.59375$. Row 3 gives $f(0.75, 0.59375) = 0.15625$, so $y_{4} = 0.59375 + 0.0390625 = 0.6328125$. So $y(1) \approx 0.6328$.
(b) 四步,表格见下。第 2 行 $f(0.5, 0.625) = -0.125$,所以 $y_{3} = 0.625 - 0.03125 = 0.59375$。第 3 行 $f(0.75, 0.59375) = 0.15625$,所以 $y_{4} = 0.59375 + 0.0390625 = 0.6328125$。故 $y(1) \approx 0.6328$。
| $n$ | $x_{n}$ | $y_{n}$ | $f(x_{n}, y_{n})$ | $y_{n+1}$ |
|---|---|---|---|---|
| 0 | 0 | 1.0000 | $-1.0000$ | 0.7500 |
| 1 | 0.25 | 0.7500 | $-0.5000$ | 0.6250 |
| 2 | 0.5 | 0.6250 | $-0.1250$ | 0.5938 |
| 3 | 0.75 | 0.5938 | 0.1563 | 0.6328 |
(c) The exact value is $2e^{-1} = 0.7358$. The errors are $0.7358 - 0.5000 = 0.2358$ for $h = 0.5$ and $0.7358 - 0.6328 = 0.1030$ for $h = 0.25$: halving the step size more than halved the error. Both estimates are below the exact value because the solution is concave up ($\dfrac{d^{2}y}{dx^{2}} = 2e^{-x} > 0$).
(c) 精确值为 $2e^{-1} = 0.7358$。误差分别为:$h = 0.5$ 时 $0.7358 - 0.5000 = 0.2358$,$h = 0.25$ 时 $0.7358 - 0.6328 = 0.1030$:步长减半,误差缩小到一半以下。两个估计值都低于精确值,因为解向上凹($\dfrac{d^{2}y}{dx^{2}} = 2e^{-x} > 0$)。
Why this works. Each row uses the gradient at the left end of the step for the whole step; the shorter the step, the less the gradient changes across it.
为什么可行。每一行都用步长左端点的梯度来代表整个步长;步长越短,梯度在其中的变化越小。
Worked Example: the effect of step size when $dy/dx = y$例题:$dy/dx = y$ 中步长的影响
The solution of $\dfrac{dy}{dx} = y$, $y(0) = 1$ is $y = e^{x}$. Use Euler's method to estimate $y(1)$ with $h = 0.5$, $h = 0.25$ and $h = 0.1$, and compare with $e = 2.7183$.$\dfrac{dy}{dx} = y$,$y(0) = 1$ 的解为 $y = e^{x}$。用欧拉法分别取 $h = 0.5$、$h = 0.25$ 与 $h = 0.1$ 估计 $y(1)$,并与 $e = 2.7183$ 比较。
Here $f(x, y) = y$, so each step is $y_{n+1} = y_{n} + hy_{n} = (1 + h)y_{n}$ and $y_{n} = (1 + h)^{n}$. For $h = 0.5$: $y_{1} = 1.5$, $y_{2} = 2.25$. For $h = 0.25$, four steps: $1.25^{4} = 2.4414$. For $h = 0.1$, ten steps: $1.1^{10} = 2.5937$ (a GDC power key, or fill down ten rows).
这里 $f(x, y) = y$,所以每一步为 $y_{n+1} = y_{n} + hy_{n} = (1 + h)y_{n}$,$y_{n} = (1 + h)^{n}$。$h = 0.5$:$y_{1} = 1.5$,$y_{2} = 2.25$。$h = 0.25$,四步:$1.25^{4} = 2.4414$。$h = 0.1$,十步:$1.1^{10} = 2.5937$(用 GDC 的乘方键,或向下填充十行)。
| Step size $h$步长 $h$ | Steps步数 | $y(1)$ estimate$y(1)$ 估计值 | Error $e - y(1)$误差 $e - y(1)$ |
|---|---|---|---|
| 0.5 | 2 | 2.2500 | 0.4683 |
| 0.25 | 4 | 2.4414 | 0.2769 |
| 0.1 | 10 | 2.5937 | 0.1245 |
All three estimates are below $e$, because $e^{x}$ is concave up, and the error shrinks as $h$ decreases. Reducing the step size improves the estimate but never makes it exact, and it costs more steps.
三个估计值都低于 $e$,因为 $e^{x}$ 向上凹,且误差随 $h$ 减小而减小。减小步长能改善估计,但不会使之精确,而且需要更多步数。
Why this works. The estimate $(1 + h)^{1/h}$ approaches $e$ as $h \to 0$, which is the limit that defines $e$.
为什么可行。当 $h \to 0$ 时,估计值 $(1 + h)^{1/h}$ 趋近于 $e$,这正是 $e$ 的极限定义。
State the step size, the number of steps and the formula $y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})$ before the table. Round only the displayed entries to the requested decimal places and keep full values in the calculation; rounding at every step changes the later rows. If a question asks whether the estimate is an over- or under-estimate, answer from the concavity of the solution.
在表格之前写出步长、步数和公式 $y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})$。只对显示的数字按要求取小数位数,计算时保留完整数值;每一步都取近似会改变后面的各行。若题目问估计值偏大还是偏小,应根据解的凹凸性回答。
Use Euler's method with $h = 0.2$ for $\dfrac{dy}{dx} = x + y$, $y(0) = 1$, to estimate $y(0.4)$.用欧拉法,取 $h = 0.2$,对 $\dfrac{dy}{dx} = x + y$,$y(0) = 1$ 估计 $y(0.4)$。
$y_{1} = 1 + 0.2(0 + 1) = 1.2$. $y_{2} = 1.2 + 0.2(0.2 + 1.2) = 1.2 + 0.28 = 1.48$. So $y(0.4) \approx 1.48$.
$y_{1} = 1 + 0.2(0 + 1) = 1.2$。$y_{2} = 1.2 + 0.2(0.2 + 1.2) = 1.2 + 0.28 = 1.48$。故 $y(0.4) \approx 1.48$。
Euler's method with $h = 0.5$ gives $y(1) = 2.25$ for $\dfrac{dy}{dx} = y$, $y(0) = 1$. The exact value is $e = 2.718$. Is the estimate an over-estimate or an under-estimate, and why?对 $\dfrac{dy}{dx} = y$,$y(0) = 1$,取 $h = 0.5$ 的欧拉法得 $y(1) = 2.25$,精确值为 $e = 2.718$。估计值偏大还是偏小?为什么?
An under-estimate. The solution $y = e^{x}$ is concave up ($y'' = y > 0$), so each tangent line lies below the curve, and the error accumulates in the same direction.
偏小。解 $y = e^{x}$ 向上凹($y'' = y > 0$),所以每条切线都在曲线下方,误差沿同一方向累积。
A population satisfies $\dfrac{dN}{dt} = 0.05N$ with $N(0) = 200$. Use Euler's method with $h = 2$ to estimate $N(4)$ and compare with the exact value $200e^{0.2}$ to 3 significant figures.某种群满足 $\dfrac{dN}{dt} = 0.05N$,$N(0) = 200$。用 $h = 2$ 的欧拉法估计 $N(4)$,并与精确值 $200e^{0.2}$ 比较(3 位有效数字)。
$N_{1} = 200 + 2(0.05 \times 200) = 220$. $N_{2} = 220 + 2(0.05 \times 220) = 242$. The exact value is $200e^{0.2} = 244$ (3 s.f.), so the estimate $242$ is about $2.3$ too low.
$N_{1} = 200 + 2(0.05 \times 200) = 220$。$N_{2} = 220 + 2(0.05 \times 220) = 242$。精确值 $200e^{0.2} = 244$(3 位有效数字),所以估计值 $242$ 约低了 $2.3$。
Euler's Method for Coupled Systems耦合方程组的欧拉法 HL AHL 5.16
- Write a coupled system $\dfrac{dx}{dt} = f(t, x, y)$, $\dfrac{dy}{dt} = g(t, x, y)$ from a context with two interacting quantities.
- Apply Euler's method to a coupled system, updating both variables from the same row of values.
- Set out a table of $t$, $x$, $y$ and both rates to a stated number of decimal places.
- Find an equilibrium of a coupled system by setting both rates to zero, and interpret it.
- Interpret the results of a coupled Euler calculation in context.
- 由含有两个相互作用量的情境写出耦合方程组(
coupled system)$\dfrac{dx}{dt} = f(t, x, y)$,$\dfrac{dy}{dt} = g(t, x, y)$。 - 对耦合方程组使用欧拉法,两个变量都由同一行的数值更新。
- 按规定的小数位数列出 $t$、$x$、$y$ 及两个变化率的表格。
- 令两个变化率均为零,求耦合方程组的平衡点(
equilibrium),并解释其含义。 - 在情境中解释耦合欧拉计算的结果。
Two quantities that depend on each other相互依赖的两个量
Many models track two quantities whose rates of change each depend on both quantities, such as a predator and its prey, or the amounts of a substance in two connected tanks. Such a coupled system of first-order equations is written with $t$ as the independent variable:
许多模型同时追踪两个量,其中每个量的变化率都依赖于两个量,例如捕食者与猎物,或两个相连水箱中某种物质的含量。这样的一阶方程耦合方程组以 $t$ 为自变量,写作:
Euler's method for a coupled system with step size $h$ updates both variables at the same time, always using the values from row $n$:
耦合方程组的欧拉法,步长为 $h$,同时更新两个变量,并且始终使用第 $n$ 行的数值:
The most common slip is to use the new $x_{n+1}$ when computing $y_{n+1}$; that mixes two different times. Compute both rates in row $n$ first, then both new values. An equilibrium (constant solution) of the system is a point where both rates are zero, $f = 0$ and $g = 0$, so neither quantity changes. On a GDC spreadsheet use one column each for $t$, $x$, $y$, and fill down formulas that refer to the row above.
最常见的错误是在计算 $y_{n+1}$ 时用了新的 $x_{n+1}$,这样就把两个不同时刻的数混在了一起。应先在第 $n$ 行算出两个变化率,再算两个新值。方程组的平衡点(常数解)是两个变化率同时为零的点,即 $f = 0$ 且 $g = 0$,此时两个量都不再变化。用 GDC 电子表格时,$t$、$x$、$y$ 各占一列,向下填充引用上一行的公式。
Worked Example: a coupled linear system例题:耦合线性方程组
Use Euler's method with $h = 0.1$ for $\dfrac{dx}{dt} = -2x + y$, $\dfrac{dy}{dt} = x - 2y$, with $x(0) = 3$ and $y(0) = 1$, to estimate $x$ and $y$ at $t = 0.3$. Show the table to 3 decimal places.用 $h = 0.1$ 的欧拉法,对 $\dfrac{dx}{dt} = -2x + y$,$\dfrac{dy}{dt} = x - 2y$,$x(0) = 3$,$y(0) = 1$,估计 $t = 0.3$ 时的 $x$ 与 $y$。表格保留 3 位小数。
Three steps. Row 0: $\dfrac{dx}{dt} = -2(3) + 1 = -5$ and $\dfrac{dy}{dt} = 3 - 2(1) = 1$, so $x_{1} = 3 + 0.1(-5) = 2.5$ and $y_{1} = 1 + 0.1(1) = 1.1$. Row 1 uses $(2.5, 1.1)$: $\dfrac{dx}{dt} = -5 + 1.1 = -3.9$, $\dfrac{dy}{dt} = 2.5 - 2.2 = 0.3$, so $x_{2} = 2.11$ and $y_{2} = 1.13$. Row 2 uses $(2.11, 1.13)$: $\dfrac{dx}{dt} = -4.22 + 1.13 = -3.09$, $\dfrac{dy}{dt} = 2.11 - 2.26 = -0.15$.
共三步。第 0 行:$\dfrac{dx}{dt} = -2(3) + 1 = -5$,$\dfrac{dy}{dt} = 3 - 2(1) = 1$,所以 $x_{1} = 3 + 0.1(-5) = 2.5$,$y_{1} = 1 + 0.1(1) = 1.1$。第 1 行用 $(2.5, 1.1)$:$\dfrac{dx}{dt} = -5 + 1.1 = -3.9$,$\dfrac{dy}{dt} = 2.5 - 2.2 = 0.3$,所以 $x_{2} = 2.11$,$y_{2} = 1.13$。第 2 行用 $(2.11, 1.13)$:$\dfrac{dx}{dt} = -4.22 + 1.13 = -3.09$,$\dfrac{dy}{dt} = 2.11 - 2.26 = -0.15$。
| $n$ | $t_{n}$ | $x_{n}$ | $y_{n}$ | $dx/dt$ | $dy/dt$ |
|---|---|---|---|---|---|
| 0 | 0 | 3.000 | 1.000 | $-5.000$ | 1.000 |
| 1 | 0.1 | 2.500 | 1.100 | $-3.900$ | 0.300 |
| 2 | 0.2 | 2.110 | 1.130 | $-3.090$ | $-0.150$ |
| 3 | 0.3 | 1.801 | 1.115 |
So at $t = 0.3$, $x \approx 1.801$ and $y \approx 1.115$. Both rates in each row were computed from the same $(x_{n}, y_{n})$. (The exact solution, found in topic E5.5, gives $x = 1.888$ and $y = 1.075$.)
所以 $t = 0.3$ 时 $x \approx 1.801$,$y \approx 1.115$。每一行的两个变化率都由同一对 $(x_{n}, y_{n})$ 算出。(E5.5 中求得的精确解给出 $x = 1.888$,$y = 1.075$。)
Why this works. It is the one-variable method run twice per row; the coupling only enters through the rates, which use both current values.
为什么可行。这就是单变量方法每行做两次;耦合只体现在变化率中,它们同时使用两个当前值。
Worked Example: predator and prey例题:捕食者与猎物
The populations of prey $x$ and predators $y$ (in individuals, $t$ in years) satisfy $\dfrac{dx}{dt} = 0.1x - 0.002xy$ and $\dfrac{dy}{dt} = 0.001xy - 0.05y$, with $x(0) = 100$ and $y(0) = 20$. (a) Use Euler's method with $h = 1$ to estimate both populations at $t = 4$ (3 decimal places). (b) Show that $(50, 50)$ is an equilibrium and interpret it.猎物数量 $x$ 与捕食者数量 $y$(单位:只,$t$ 的单位为年)满足 $\dfrac{dx}{dt} = 0.1x - 0.002xy$,$\dfrac{dy}{dt} = 0.001xy - 0.05y$,且 $x(0) = 100$,$y(0) = 20$。(a) 用 $h = 1$ 的欧拉法估计 $t = 4$ 时两个种群的数量(保留 3 位小数)。(b) 证明 $(50, 50)$ 是平衡点并解释其含义。
(a) Row 0: $\dfrac{dx}{dt} = 10 - 4 = 6$ and $\dfrac{dy}{dt} = 2 - 1 = 1$, so $(x_{1}, y_{1}) = (106, 21)$. Row 1: $\dfrac{dx}{dt} = 10.6 - 4.452 = 6.148$, $\dfrac{dy}{dt} = 2.226 - 1.05 = 1.176$, so $(112.148, 22.176)$. Continue with the table.
(a) 第 0 行:$\dfrac{dx}{dt} = 10 - 4 = 6$,$\dfrac{dy}{dt} = 2 - 1 = 1$,所以 $(x_{1}, y_{1}) = (106, 21)$。第 1 行:$\dfrac{dx}{dt} = 10.6 - 4.452 = 6.148$,$\dfrac{dy}{dt} = 2.226 - 1.05 = 1.176$,所以 $(112.148, 22.176)$。其余各行见表格。
| $t$ | $x$ | $y$ | $dx/dt$ | $dy/dt$ |
|---|---|---|---|---|
| 0 | 100.000 | 20.000 | 6.000 | 1.000 |
| 1 | 106.000 | 21.000 | 6.148 | 1.176 |
| 2 | 112.148 | 22.176 | 6.241 | 1.378 |
| 3 | 118.389 | 23.554 | 6.262 | 1.611 |
| 4 | 124.651 | 25.165 |
At $t = 4$: about $124.651$ prey and $25.165$ predators. Both populations are increasing, and the predators are growing faster in relative terms. (A population of $124.651$ individuals is a model value; the model works with continuous quantities.)
$t = 4$ 时:猎物约 $124.651$ 只,捕食者约 $25.165$ 只。两个种群都在增加,且捕食者的相对增长更快。($124.651$ 只是模型值;模型处理的是连续量。)
(b) Set both rates to zero. $0.1x - 0.002xy = 0.002x(50 - y)$ is zero when $y = 50$ (for $x \neq 0$), and $0.001xy - 0.05y = 0.001y(x - 50)$ is zero when $x = 50$ (for $y \neq 0$). Check: $\dfrac{dx}{dt} = 5 - 0.002(2500) = 0$ and $\dfrac{dy}{dt} = 0.001(2500) - 2.5 = 0$. At 50 prey and 50 predators the prey growth exactly balances the loss to predators, and the predator gain exactly balances their death rate, so both populations stay constant.
(b) 令两个变化率都为零。$0.1x - 0.002xy = 0.002x(50 - y)$ 在 $y = 50$ 时为零($x \neq 0$),$0.001xy - 0.05y = 0.001y(x - 50)$ 在 $x = 50$ 时为零($y \neq 0$)。检验:$\dfrac{dx}{dt} = 5 - 0.002(2500) = 0$,$\dfrac{dy}{dt} = 0.001(2500) - 2.5 = 0$。有 50 只猎物和 50 只捕食者时,猎物的增长恰好抵消被捕食的损失,捕食者的增加恰好抵消其死亡,所以两个种群都保持不变。
Why this works. An equilibrium is just the solution of $f = 0$, $g = 0$ together; the Euler rows show how the populations move when they start away from it.
为什么可行。平衡点就是方程组 $f = 0$,$g = 0$ 的联立解;欧拉表格则显示种群从偏离平衡点的位置出发时如何变化。
Label the columns $t$, $x$, $y$, $\dfrac{dx}{dt}$, $\dfrac{dy}{dt}$ and fill the two rate columns before touching the next row. State which variable is which in context and give units in the final sentence. For an equilibrium, solve $f = 0$ and $g = 0$ together and say what it means in the situation.
把各列标为 $t$、$x$、$y$、$\dfrac{dx}{dt}$、$\dfrac{dy}{dt}$,在进入下一行之前先填好两个变化率列。说明情境中每个变量的含义,并在最后一句写明单位。求平衡点时联立解 $f = 0$ 与 $g = 0$,并说明它在该情境中的含义。
Use Euler's method with $h = 0.5$ for $\dfrac{dx}{dt} = 2y$, $\dfrac{dy}{dt} = -x$ with $x(0) = 1$, $y(0) = 1$ to estimate $x$ and $y$ at $t = 1$.用 $h = 0.5$ 的欧拉法,对 $\dfrac{dx}{dt} = 2y$,$\dfrac{dy}{dt} = -x$,$x(0) = 1$,$y(0) = 1$,估计 $t = 1$ 时的 $x$ 与 $y$。
Row 0: rates $2(1) = 2$ and $-1$, so $x_{1} = 1 + 0.5(2) = 2$ and $y_{1} = 1 + 0.5(-1) = 0.5$. Row 1: rates $2(0.5) = 1$ and $-2$, so $x_{2} = 2 + 0.5(1) = 2.5$ and $y_{2} = 0.5 + 0.5(-2) = -0.5$. So $(x, y) \approx (2.5, -0.5)$ at $t = 1$.
第 0 行:变化率为 $2(1) = 2$ 与 $-1$,所以 $x_{1} = 1 + 0.5(2) = 2$,$y_{1} = 1 + 0.5(-1) = 0.5$。第 1 行:变化率为 $2(0.5) = 1$ 与 $-2$,所以 $x_{2} = 2 + 0.5(1) = 2.5$,$y_{2} = 0.5 + 0.5(-2) = -0.5$。故 $t = 1$ 时 $(x, y) \approx (2.5, -0.5)$。
A student computing the first step of the system in question 1 uses the new value $x_{1} = 2$ in the $y$ update. What does the student get for $y_{1}$, and what is the error?一名学生在计算第 1 题方程组的第一步时,在 $y$ 的更新中用了新值 $x_{1} = 2$。该生得到的 $y_{1}$ 是多少?错在哪里?
The student gets $y_{1} = 1 + 0.5(-2) = 0$, instead of the correct $0.5$. The error is mixing times: both updates in row $n$ must use the values $(x_{n}, y_{n})$ from that same row.
该生得到 $y_{1} = 1 + 0.5(-2) = 0$,而正确值是 $0.5$。错误在于混用了不同时刻:第 $n$ 行的两个更新都必须使用同一行的数值 $(x_{n}, y_{n})$。
Find the non-zero equilibrium of $\dfrac{dx}{dt} = 6x - 3xy$, $\dfrac{dy}{dt} = xy - 4y$, with $x, y > 0$.求 $\dfrac{dx}{dt} = 6x - 3xy$,$\dfrac{dy}{dt} = xy - 4y$($x, y > 0$)的非零平衡点。
Factorise: $\dfrac{dx}{dt} = 3x(2 - y)$ is zero for $y = 2$, and $\dfrac{dy}{dt} = y(x - 4)$ is zero for $x = 4$. The equilibrium is $(4, 2)$. Check: $24 - 24 = 0$ and $8 - 8 = 0$.
因式分解:$\dfrac{dx}{dt} = 3x(2 - y)$ 在 $y = 2$ 时为零,$\dfrac{dy}{dt} = y(x - 4)$ 在 $x = 4$ 时为零。平衡点为 $(4, 2)$。检验:$24 - 24 = 0$,$8 - 8 = 0$。
Coupled Linear Systems: Eigenvalues, Equilibria and Phase Portraits耦合线性方程组:特征值、平衡点与相图 HL AHL 5.17
- Write a coupled linear system as $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$ and find the equilibrium point.
- Find the eigenvalues and eigenvectors of $A$ (by hand for $2 \times 2$, and with a GDC) and write the general solution for real distinct eigenvalues.
- Use initial conditions to find the constants in the general solution.
- Classify the equilibrium from the eigenvalues: stable or unstable node, saddle point, stable or unstable spiral, centre.
- Sketch a phase portrait showing the eigenvector directions and the direction of travel on trajectories.
- 把耦合线性方程组写成 $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$,并求平衡点。
- 求 $A$ 的特征值与特征向量($2 \times 2$ 手算,也可用 GDC),并在特征值为互异实数时写出通解。
- 利用初始条件求通解中的常数。
- 根据特征值对平衡点分类:稳定或不稳定结点、鞍点、稳定或不稳定螺旋点、中心。
- 画出相图(
phase portrait),标出特征向量方向以及轨线上的运动方向。
The linear system and its equilibrium线性方程组及其平衡点
A coupled linear system has the form $\dfrac{dx}{dt} = ax + by$, $\dfrac{dy}{dt} = cx + dy$, which in matrix form is $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$ with $\mathbf{x} = \binom{x}{y}$ and $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$. The equilibrium point is where $A\mathbf{x} = \mathbf{0}$. If $\det A \neq 0$ the only equilibrium is the origin. It is stable if trajectories that start near it move towards it as $t \to \infty$, and unstable otherwise.
耦合线性方程组的形式为 $\dfrac{dx}{dt} = ax + by$,$\dfrac{dy}{dt} = cx + dy$,写成矩阵形式即 $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$,其中 $\mathbf{x} = \binom{x}{y}$,$A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$。平衡点(equilibrium point)满足 $A\mathbf{x} = \mathbf{0}$。若 $\det A \neq 0$,唯一的平衡点是原点。如果从平衡点附近出发的轨线在 $t \to \infty$ 时趋向它,则称它是稳定的,否则是不稳定的。
Eigenvalues, eigenvectors and the general solution特征值、特征向量与通解
Try a solution of the form $\mathbf{x} = \mathbf{v}e^{\lambda t}$. Substituting gives $\lambda\mathbf{v}e^{\lambda t} = A\mathbf{v}e^{\lambda t}$, so $A\mathbf{v} = \lambda\mathbf{v}$: $\lambda$ must be an eigenvalue of $A$ with eigenvector $\mathbf{v}$. The eigenvalues solve $\lambda^{2} - (a + d)\lambda + (ad - bc) = 0$. For two distinct real eigenvalues $\lambda_{1}, \lambda_{2}$ with eigenvectors $\mathbf{v}_{1}, \mathbf{v}_{2}$ the general solution is
尝试形如 $\mathbf{x} = \mathbf{v}e^{\lambda t}$ 的解。代入得 $\lambda\mathbf{v}e^{\lambda t} = A\mathbf{v}e^{\lambda t}$,即 $A\mathbf{v} = \lambda\mathbf{v}$:$\lambda$ 必须是 $A$ 的特征值(eigenvalue),$\mathbf{v}$ 是特征向量(eigenvector)。特征值满足 $\lambda^{2} - (a + d)\lambda + (ad - bc) = 0$。当有两个互异实特征值 $\lambda_{1}, \lambda_{2}$,对应特征向量 $\mathbf{v}_{1}, \mathbf{v}_{2}$ 时,通解为
The constants $c_{1}, c_{2}$ come from the initial values: put $t = 0$ and solve $c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} = \mathbf{x}(0)$. A GDC returns eigenvalues and eigenvectors for a matrix you enter; it may scale an eigenvector differently from your hand method, and any non-zero multiple is correct. The trace and determinant give a check: $\lambda_{1} + \lambda_{2} = a + d$ and $\lambda_{1}\lambda_{2} = ad - bc$.
常数 $c_{1}, c_{2}$ 由初始值确定:令 $t = 0$,解 $c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} = \mathbf{x}(0)$。GDC 可以对输入的矩阵给出特征值与特征向量;它给出的特征向量可能与手算相差一个倍数,任何非零倍数都是正确的。迹与行列式可用来检验:$\lambda_{1} + \lambda_{2} = a + d$,$\lambda_{1}\lambda_{2} = ad - bc$。
Classifying the equilibrium平衡点的分类
| Eigenvalues of $A$$A$ 的特征值 | Type of equilibrium at the origin原点处平衡点的类型 | Behaviour of trajectories轨线的行为 |
|---|---|---|
| real, both negative实数,均为负 | stable node稳定结点 | approach the origin趋向原点 |
| real, both positive实数,均为正 | unstable node不稳定结点 | move away from the origin远离原点 |
| real, opposite signs实数,异号 | saddle point (unstable)鞍点(不稳定) | approach along one eigenvector, leave along the other沿一个特征向量方向趋近,沿另一个方向离开 |
| complex $a \pm bi$, $a < 0$复数 $a \pm bi$,$a < 0$ | stable spiral稳定螺旋点 | spiral in towards the origin向内螺旋趋向原点 |
| complex $a \pm bi$, $a > 0$复数 $a \pm bi$,$a > 0$ | unstable spiral不稳定螺旋点 | spiral out away from the origin向外螺旋远离原点 |
| complex $\pm bi$ ($a = 0$)复数 $\pm bi$($a = 0$) | centre中心 | closed loops around the origin; no approach, no escape绕原点的闭曲线;既不趋近也不远离 |
Reading the table: the real part of an eigenvalue controls growth ($e^{\lambda t}$ shrinks for $\lambda < 0$ and grows for $\lambda > 0$). For a node, trajectories approaching the origin are tangent to the eigenvector whose eigenvalue is closer to zero (the slower decay), since the faster mode dies first. For complex eigenvalues the imaginary part makes the trajectory turn; the sense of rotation is the direction of $A\binom{1}{0} = \binom{a}{c}$ at the point $(1, 0)$: upward ($c > 0$) means anticlockwise. A quick shortcut with $T = a + d$ and $D = ad - bc$: $D < 0$ always gives a saddle point; $D > 0$ with $T < 0$ is stable and $T > 0$ unstable.
读表:特征值的实部控制增长($\lambda < 0$ 时 $e^{\lambda t}$ 衰减,$\lambda > 0$ 时增长)。对结点而言,趋向原点的轨线与特征值更接近零(衰减更慢)的特征向量相切,因为衰减更快的分量先消失。对复特征值,虚部使轨线转动;转动方向由点 $(1, 0)$ 处的 $A\binom{1}{0} = \binom{a}{c}$ 的方向决定:向上($c > 0$)表示逆时针。令 $T = a + d$,$D = ad - bc$,有一个快速判断:$D < 0$ 一定是鞍点;$D > 0$ 且 $T < 0$ 为稳定,$T > 0$ 为不稳定。
Worked Example: a saddle point with an initial condition例题:带初始条件的鞍点
Consider $\dfrac{dx}{dt} = x + 2y$, $\dfrac{dy}{dt} = 3x + 2y$ (Figure 3). (a) Find the eigenvalues and eigenvectors of $A = \begin{pmatrix} 1 & 2 \\ 3 & 2 \end{pmatrix}$. (b) Classify the equilibrium. (c) Find the solution with $x(0) = 3$, $y(0) = 2$.考虑 $\dfrac{dx}{dt} = x + 2y$,$\dfrac{dy}{dt} = 3x + 2y$(图 3)。(a) 求 $A = \begin{pmatrix} 1 & 2 \\ 3 & 2 \end{pmatrix}$ 的特征值与特征向量。(b) 对平衡点分类。(c) 求满足 $x(0) = 3$,$y(0) = 2$ 的解。
(a) The characteristic equation is $\lambda^{2} - 3\lambda - 4 = 0$ (trace $3$, determinant $2 - 6 = -4$), so $(\lambda - 4)(\lambda + 1) = 0$ and $\lambda = 4$ or $\lambda = -1$. For $\lambda = 4$: $(A - 4I)\mathbf{v} = \begin{pmatrix} -3 & 2 \\ 3 & -2 \end{pmatrix}\mathbf{v} = \mathbf{0}$ gives $3v_{1} = 2v_{2}$, so $\mathbf{v}_{1} = \binom{2}{3}$. For $\lambda = -1$: $\begin{pmatrix} 2 & 2 \\ 3 & 3 \end{pmatrix}\mathbf{v} = \mathbf{0}$ gives $v_{1} = -v_{2}$, so $\mathbf{v}_{2} = \binom{1}{-1}$. Check: $A\binom{2}{3} = \binom{8}{12} = 4\binom{2}{3}$ and $A\binom{1}{-1} = \binom{-1}{1} = -\binom{1}{-1}$. A GDC eigenvalue function returns the same eigenvalues, with eigenvectors that are multiples of these.
(a) 特征方程为 $\lambda^{2} - 3\lambda - 4 = 0$(迹 $3$,行列式 $2 - 6 = -4$),即 $(\lambda - 4)(\lambda + 1) = 0$,$\lambda = 4$ 或 $\lambda = -1$。$\lambda = 4$:$(A - 4I)\mathbf{v} = \begin{pmatrix} -3 & 2 \\ 3 & -2 \end{pmatrix}\mathbf{v} = \mathbf{0}$ 给出 $3v_{1} = 2v_{2}$,所以 $\mathbf{v}_{1} = \binom{2}{3}$。$\lambda = -1$:$\begin{pmatrix} 2 & 2 \\ 3 & 3 \end{pmatrix}\mathbf{v} = \mathbf{0}$ 给出 $v_{1} = -v_{2}$,所以 $\mathbf{v}_{2} = \binom{1}{-1}$。检验:$A\binom{2}{3} = \binom{8}{12} = 4\binom{2}{3}$,$A\binom{1}{-1} = \binom{-1}{1} = -\binom{1}{-1}$。GDC 的特征值功能给出相同的特征值,特征向量是它们的倍数。
(b) The eigenvalues $4 > 0$ and $-1 < 0$ have opposite signs ($\det A = -4 < 0$), so the origin is a saddle point, unstable. Trajectories approach along the line through $\binom{1}{-1}$ and leave along the line through $\binom{2}{3}$.
(b) 特征值 $4 > 0$ 与 $-1 < 0$ 异号($\det A = -4 < 0$),所以原点是鞍点,不稳定。轨线沿过 $\binom{1}{-1}$ 的直线趋近,沿过 $\binom{2}{3}$ 的直线离开。
(c) $\mathbf{x} = c_{1}e^{4t}\binom{2}{3} + c_{2}e^{-t}\binom{1}{-1}$. At $t = 0$: $2c_{1} + c_{2} = 3$ and $3c_{1} - c_{2} = 2$. Adding, $5c_{1} = 5$, so $c_{1} = 1$ and $c_{2} = 1$. Hence $x = 2e^{4t} + e^{-t}$ and $y = 3e^{4t} - e^{-t}$.
(c) $\mathbf{x} = c_{1}e^{4t}\binom{2}{3} + c_{2}e^{-t}\binom{1}{-1}$。$t = 0$ 时:$2c_{1} + c_{2} = 3$,$3c_{1} - c_{2} = 2$。相加得 $5c_{1} = 5$,所以 $c_{1} = 1$,$c_{2} = 1$。因此 $x = 2e^{4t} + e^{-t}$,$y = 3e^{4t} - e^{-t}$。
Check by substitution. $\dfrac{dx}{dt} = 8e^{4t} - e^{-t}$ and $x + 2y = 2e^{4t} + e^{-t} + 6e^{4t} - 2e^{-t} = 8e^{4t} - e^{-t}$. Also $\dfrac{dy}{dt} = 12e^{4t} + e^{-t}$ and $3x + 2y = 6e^{4t} + 3e^{-t} + 6e^{4t} - 2e^{-t} = 12e^{4t} + e^{-t}$.
代回检验。$\dfrac{dx}{dt} = 8e^{4t} - e^{-t}$,而 $x + 2y = 2e^{4t} + e^{-t} + 6e^{4t} - 2e^{-t} = 8e^{4t} - e^{-t}$。又 $\dfrac{dy}{dt} = 12e^{4t} + e^{-t}$,而 $3x + 2y = 6e^{4t} + 3e^{-t} + 6e^{4t} - 2e^{-t} = 12e^{4t} + e^{-t}$。
Long-term behaviour. As $t \to \infty$ the $e^{4t}$ term dominates, so the trajectory leaves the origin region heading in the direction $\binom{2}{3}$. As $t \to -\infty$ the $e^{-t}$ term dominates and the trajectory comes in from the direction $\binom{1}{-1}$, as drawn in Figure 3.
长期行为。当 $t \to \infty$ 时 $e^{4t}$ 项起主导,轨线沿 $\binom{2}{3}$ 方向离开原点附近。当 $t \to -\infty$ 时 $e^{-t}$ 项起主导,轨线从 $\binom{1}{-1}$ 方向而来,如图 3 所示。
Worked Example: a stable node例题:稳定结点
For $\dfrac{dx}{dt} = -2x + y$, $\dfrac{dy}{dt} = x - 2y$ with $x(0) = 3$, $y(0) = 1$ (the system of the Euler table in topic E5.4): (a) find the eigenvalues and eigenvectors; (b) solve; (c) classify the equilibrium and say which direction trajectories approach the origin along; (d) compare with the Euler values at $t = 0.3$.对 $\dfrac{dx}{dt} = -2x + y$,$\dfrac{dy}{dt} = x - 2y$,$x(0) = 3$,$y(0) = 1$(即 E5.4 欧拉表中的方程组):(a) 求特征值与特征向量;(b) 求解;(c) 对平衡点分类,并说明轨线沿哪个方向趋近原点;(d) 与 $t = 0.3$ 处的欧拉值比较。
(a) $A = \begin{pmatrix} -2 & 1 \\ 1 & -2 \end{pmatrix}$: trace $-4$, determinant $3$, so $\lambda^{2} + 4\lambda + 3 = 0$ and $\lambda = -1$ or $\lambda = -3$. For $\lambda = -1$: $\begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix}\mathbf{v} = \mathbf{0}$ gives $\mathbf{v} = \binom{1}{1}$. For $\lambda = -3$: $\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}\mathbf{v} = \mathbf{0}$ gives $\mathbf{v} = \binom{1}{-1}$.
(a) $A = \begin{pmatrix} -2 & 1 \\ 1 & -2 \end{pmatrix}$:迹 $-4$,行列式 $3$,所以 $\lambda^{2} + 4\lambda + 3 = 0$,$\lambda = -1$ 或 $\lambda = -3$。$\lambda = -1$:$\begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix}\mathbf{v} = \mathbf{0}$ 给出 $\mathbf{v} = \binom{1}{1}$。$\lambda = -3$:$\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}\mathbf{v} = \mathbf{0}$ 给出 $\mathbf{v} = \binom{1}{-1}$。
(b) $\mathbf{x} = c_{1}e^{-t}\binom{1}{1} + c_{2}e^{-3t}\binom{1}{-1}$. At $t = 0$: $c_{1} + c_{2} = 3$ and $c_{1} - c_{2} = 1$, so $c_{1} = 2$ and $c_{2} = 1$. Hence $x = 2e^{-t} + e^{-3t}$ and $y = 2e^{-t} - e^{-3t}$. Check: $\dfrac{dx}{dt} = -2e^{-t} - 3e^{-3t}$ and $-2x + y = -4e^{-t} - 2e^{-3t} + 2e^{-t} - e^{-3t} = -2e^{-t} - 3e^{-3t}$; also $\dfrac{dy}{dt} = -2e^{-t} + 3e^{-3t}$ and $x - 2y = 2e^{-t} + e^{-3t} - 4e^{-t} + 2e^{-3t} = -2e^{-t} + 3e^{-3t}$.
(b) $\mathbf{x} = c_{1}e^{-t}\binom{1}{1} + c_{2}e^{-3t}\binom{1}{-1}$。$t = 0$ 时:$c_{1} + c_{2} = 3$,$c_{1} - c_{2} = 1$,所以 $c_{1} = 2$,$c_{2} = 1$。因此 $x = 2e^{-t} + e^{-3t}$,$y = 2e^{-t} - e^{-3t}$。检验:$\dfrac{dx}{dt} = -2e^{-t} - 3e^{-3t}$,而 $-2x + y = -4e^{-t} - 2e^{-3t} + 2e^{-t} - e^{-3t} = -2e^{-t} - 3e^{-3t}$;又 $\dfrac{dy}{dt} = -2e^{-t} + 3e^{-3t}$,而 $x - 2y = 2e^{-t} + e^{-3t} - 4e^{-t} + 2e^{-3t} = -2e^{-t} + 3e^{-3t}$。
(c) Both eigenvalues are negative, so every trajectory tends to the origin: a stable node. The $e^{-3t}$ term dies faster, so as $t \to \infty$ trajectories approach the origin tangent to $\binom{1}{1}$, the eigenvector for $\lambda = -1$.
(c) 两个特征值都是负数,所以每条轨线都趋向原点:稳定结点。$e^{-3t}$ 项衰减更快,所以当 $t \to \infty$ 时,轨线与 $\lambda = -1$ 对应的特征向量 $\binom{1}{1}$ 相切地趋近原点。
(d) At $t = 0.3$: $x = 2e^{-0.3} + e^{-0.9} = 1.481 + 0.407 = 1.888$ and $y = 1.481 - 0.407 = 1.075$ (3 d.p.). The Euler values $1.801$ and $1.115$ with $h = 0.1$ are close but not equal; a smaller step size would bring them closer.
(d) $t = 0.3$ 时:$x = 2e^{-0.3} + e^{-0.9} = 1.481 + 0.407 = 1.888$,$y = 1.481 - 0.407 = 1.075$(保留 3 位小数)。$h = 0.1$ 的欧拉值 $1.801$ 与 $1.115$ 接近但不相等;减小步长会使它们更接近。
Worked Example: spirals and centres from complex eigenvalues例题:由复特征值得到螺旋点与中心
Classify the origin for $\dfrac{d\mathbf{x}}{dt} = P\mathbf{x}$, $Q\mathbf{x}$ and $R\mathbf{x}$, where $P = \begin{pmatrix} -1 & -2 \\ 2 & -1 \end{pmatrix}$, $Q = \begin{pmatrix} 0 & -2 \\ 2 & 0 \end{pmatrix}$ and $R = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$. For spirals and centres give the sense of rotation.对 $\dfrac{d\mathbf{x}}{dt} = P\mathbf{x}$、$Q\mathbf{x}$、$R\mathbf{x}$ 的原点分类,其中 $P = \begin{pmatrix} -1 & -2 \\ 2 & -1 \end{pmatrix}$,$Q = \begin{pmatrix} 0 & -2 \\ 2 & 0 \end{pmatrix}$,$R = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$。对螺旋点与中心,给出旋转方向。
$P$. Trace $-2$, determinant $1 + 4 = 5$: $\lambda^{2} + 2\lambda + 5 = 0$, so $\lambda = -1 \pm 2i$. The real part $-1 < 0$, so a stable spiral. At $(1, 0)$ the velocity is $P\binom{1}{0} = \binom{-1}{2}$, upward, so the rotation is anticlockwise while the distance shrinks.
$P$。迹 $-2$,行列式 $1 + 4 = 5$:$\lambda^{2} + 2\lambda + 5 = 0$,所以 $\lambda = -1 \pm 2i$。实部 $-1 < 0$,故为稳定螺旋点。在 $(1, 0)$ 处速度为 $P\binom{1}{0} = \binom{-1}{2}$,向上,所以逆时针旋转,同时距离缩小。
$Q$. Trace $0$, determinant $4$: $\lambda^{2} + 4 = 0$, so $\lambda = \pm 2i$, real part $0$: a centre. At $(1, 0)$ the velocity is $\binom{0}{2}$, upward, so anticlockwise. Indeed $x\dfrac{dx}{dt} + y\dfrac{dy}{dt} = -2xy + 2xy = 0$, so $x^{2} + y^{2}$ is constant: the trajectories are circles.
$Q$。迹 $0$,行列式 $4$:$\lambda^{2} + 4 = 0$,所以 $\lambda = \pm 2i$,实部为 $0$:中心。在 $(1, 0)$ 处速度为 $\binom{0}{2}$,向上,所以逆时针。事实上 $x\dfrac{dx}{dt} + y\dfrac{dy}{dt} = -2xy + 2xy = 0$,所以 $x^{2} + y^{2}$ 为常数:轨线是圆。
$R$. Trace $4$, determinant $3$: $\lambda^{2} - 4\lambda + 3 = 0$, so $\lambda = 1$ or $3$, both positive: an unstable node. Eigenvectors: $\binom{1}{-1}$ for $\lambda = 1$ and $\binom{1}{1}$ for $\lambda = 3$. Trajectories leave the origin, tangent to $\binom{1}{-1}$ near the origin (slower growth) and turning towards $\binom{1}{1}$ far away.
$R$。迹 $4$,行列式 $3$:$\lambda^{2} - 4\lambda + 3 = 0$,所以 $\lambda = 1$ 或 $3$,均为正:不稳定结点。特征向量:$\lambda = 1$ 对应 $\binom{1}{-1}$,$\lambda = 3$ 对应 $\binom{1}{1}$。轨线离开原点,在原点附近与 $\binom{1}{-1}$ 相切(增长较慢),远处则转向 $\binom{1}{1}$ 方向。
Why this works. The real part of an eigenvalue sets whether $e^{\lambda t}$ grows or decays, and a non-zero imaginary part adds a turn; with real part $0$ there is only the turn.
为什么可行。特征值的实部决定 $e^{\lambda t}$ 是增长还是衰减,非零虚部则带来旋转;实部为 $0$ 时只有旋转。
Give the eigenvalues, say what their signs (or real parts) imply, and name the type of equilibrium and its stability in one sentence. For a sketch, draw and label the eigenvector lines first, put arrows on them (towards the origin for a negative eigenvalue, away for a positive one), then add a few trajectories that follow those arrows. For a spiral or centre, state the sense of rotation from $A\binom{1}{0}$.
给出特征值,说明其符号(或实部)意味着什么,并用一句话写出平衡点的类型及稳定性。画草图时,先画出并标注特征向量所在直线,在其上画箭头(负特征值朝向原点,正特征值远离原点),再添加若干沿这些箭头走向的轨线。对螺旋点或中心,由 $A\binom{1}{0}$ 说明旋转方向。
Find the eigenvalues and eigenvectors of $A = \begin{pmatrix} 3 & 1 \\ 0 & -2 \end{pmatrix}$ and classify the equilibrium of $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$.求 $A = \begin{pmatrix} 3 & 1 \\ 0 & -2 \end{pmatrix}$ 的特征值与特征向量,并对 $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$ 的平衡点分类。
The matrix is triangular, so the eigenvalues are the diagonal entries $3$ and $-2$. For $\lambda = 3$: $\mathbf{v} = \binom{1}{0}$. For $\lambda = -2$: $\begin{pmatrix} 5 & 1 \\ 0 & 0 \end{pmatrix}\mathbf{v} = \mathbf{0}$ gives $5v_{1} + v_{2} = 0$, so $\mathbf{v} = \binom{1}{-5}$ (check: $A\binom{1}{-5} = \binom{-2}{10} = -2\binom{1}{-5}$). The eigenvalues have opposite signs, so the origin is a saddle point.
该矩阵是三角矩阵,所以特征值就是对角元素 $3$ 与 $-2$。$\lambda = 3$:$\mathbf{v} = \binom{1}{0}$。$\lambda = -2$:$\begin{pmatrix} 5 & 1 \\ 0 & 0 \end{pmatrix}\mathbf{v} = \mathbf{0}$ 给出 $5v_{1} + v_{2} = 0$,所以 $\mathbf{v} = \binom{1}{-5}$(检验:$A\binom{1}{-5} = \binom{-2}{10} = -2\binom{1}{-5}$)。特征值异号,所以原点是鞍点。
Show that $\dfrac{d\mathbf{x}}{dt} = \begin{pmatrix} 0 & 1 \\ -4 & 0 \end{pmatrix}\mathbf{x}$ has a centre at the origin and state the sense of rotation.证明 $\dfrac{d\mathbf{x}}{dt} = \begin{pmatrix} 0 & 1 \\ -4 & 0 \end{pmatrix}\mathbf{x}$ 的原点是中心,并说明旋转方向。
Trace $0$ and determinant $4$ give $\lambda^{2} + 4 = 0$, so $\lambda = \pm 2i$, with real part $0$: a centre. At $(1, 0)$ the velocity is $\binom{0}{-4}$, which points downward, so the rotation is clockwise.
迹为 $0$,行列式为 $4$,得 $\lambda^{2} + 4 = 0$,所以 $\lambda = \pm 2i$,实部为 $0$:中心。在 $(1, 0)$ 处速度为 $\binom{0}{-4}$,指向下方,所以旋转方向为顺时针。
Find the equilibrium of $\dfrac{dx}{dt} = 6 - 2x$, $\dfrac{dy}{dt} = x - y$. The equations in $u = x - 3$ and $v = y - 3$ are $\dfrac{du}{dt} = -2u$, $\dfrac{dv}{dt} = u - v$, with matrix $\begin{pmatrix} -2 & 0 \\ 1 & -1 \end{pmatrix}$. Classify the equilibrium.求 $\dfrac{dx}{dt} = 6 - 2x$,$\dfrac{dy}{dt} = x - y$ 的平衡点。关于 $u = x - 3$ 与 $v = y - 3$ 的方程为 $\dfrac{du}{dt} = -2u$,$\dfrac{dv}{dt} = u - v$,矩阵为 $\begin{pmatrix} -2 & 0 \\ 1 & -1 \end{pmatrix}$。对该平衡点分类。
Set $6 - 2x = 0$ and $x - y = 0$: $x = 3$ and $y = 3$, so the equilibrium is $(3, 3)$. The matrix is triangular with eigenvalues $-2$ and $-1$, both negative and distinct, so $(3, 3)$ is a stable node.
令 $6 - 2x = 0$ 且 $x - y = 0$:$x = 3$,$y = 3$,所以平衡点为 $(3, 3)$。该矩阵是三角矩阵,特征值为 $-2$ 与 $-1$,互异且均为负,所以 $(3, 3)$ 是稳定结点。
Second-Order Differential Equations by Euler's Method二阶微分方程的欧拉法 HL AHL 5.18
- Rewrite a second-order differential equation $y'' = f(t, y, y')$ as a pair of coupled first-order equations by introducing $z = y'$.
- Apply Euler's method to the pair, with initial values for both $y$ and $y'$.
- Write the system in matrix form when it is linear and use the eigenvalues to describe the behaviour.
- Interpret $y$ and $y'$ in a context such as a mass on a spring.
- Describe how the estimate drifts from the exact solution for an oscillating system.
- 通过引入 $z = y'$,把二阶微分方程 $y'' = f(t, y, y')$ 改写成一对耦合的一阶方程。
- 对这一对方程使用欧拉法,初始值同时给定 $y$ 与 $y'$。
- 若方程是线性的,写成矩阵形式,并用特征值描述其行为。
- 在弹簧上的质点等情境中解释 $y$ 与 $y'$ 的含义。
- 描述对于振荡系统,估计值如何偏离精确解。
Turning one second-order equation into two first-order equations把一个二阶方程化为两个一阶方程
A second-order differential equation contains $y''$, for example $y'' = f(t, y, y')$. Euler's method only knows how to advance first-order equations, so introduce a new variable for the first derivative, $z = y'$. Then $y'' = z'$ and the single equation becomes a pair of coupled first-order equations (a system of coupled first-order equations):
二阶微分方程(second-order differential equation)含有 $y''$,例如 $y'' = f(t, y, y')$。欧拉法只能推进一阶方程,所以为一阶导数引入新变量 $z = y'$。于是 $y'' = z'$,这一个方程就变成一对耦合的一阶方程(耦合一阶方程组):
Both initial values are needed: $y(t_{0})$ and $y'(t_{0}) = z(t_{0})$. Now apply the coupled Euler method of topic E5.4 with the pair $(y, z)$: $y_{n+1} = y_{n} + h\,z_{n}$ and $z_{n+1} = z_{n} + h\,f(t_{n}, y_{n}, z_{n})$. If the equation is linear with constant coefficients, such as $y'' + py' + qy = 0$, the system is $\dfrac{d}{dt}\binom{y}{z} = \begin{pmatrix} 0 & 1 \\ -q & -p \end{pmatrix}\binom{y}{z}$, whose eigenvalues satisfy $\lambda^{2} + p\lambda + q = 0$, so topic E5.5 classifies its behaviour.
两个初始值都需要:$y(t_{0})$ 与 $y'(t_{0}) = z(t_{0})$。然后对 $(y, z)$ 使用 E5.4 的耦合欧拉法:$y_{n+1} = y_{n} + h\,z_{n}$,$z_{n+1} = z_{n} + h\,f(t_{n}, y_{n}, z_{n})$。若方程是常系数线性方程,如 $y'' + py' + qy = 0$,则方程组为 $\dfrac{d}{dt}\binom{y}{z} = \begin{pmatrix} 0 & 1 \\ -q & -p \end{pmatrix}\binom{y}{z}$,其特征值满足 $\lambda^{2} + p\lambda + q = 0$,因此可以用 E5.5 的方法判断其行为。
Worked Example: a damped equation as a system例题:把阻尼方程化为方程组
Consider $y'' + 3y' + 2y = 0$ with $y(0) = 1$ and $y'(0) = 0$. (a) Write it as a pair of first-order equations and as a matrix system, and classify the equilibrium. (b) Use Euler's method with $h = 0.1$ to estimate $y(0.5)$ and $y'(0.5)$ (4 decimal places). (c) Compare with the exact solution $y = 2e^{-t} - e^{-2t}$.考虑 $y'' + 3y' + 2y = 0$,$y(0) = 1$,$y'(0) = 0$。(a) 写成一对一阶方程和矩阵方程组,并对平衡点分类。(b) 用 $h = 0.1$ 的欧拉法估计 $y(0.5)$ 与 $y'(0.5)$(保留 4 位小数)。(c) 与精确解 $y = 2e^{-t} - e^{-2t}$ 比较。
(a) Let $z = y'$. Then $y' = z$ and $z' = y'' = -3z - 2y$. In matrix form $\dfrac{d}{dt}\binom{y}{z} = \begin{pmatrix} 0 & 1 \\ -2 & -3 \end{pmatrix}\binom{y}{z}$ with trace $-3$ and determinant $2$, so $\lambda^{2} + 3\lambda + 2 = 0$ and $\lambda = -1$ or $-2$. Both negative: a stable node, so $y$ and $y'$ both decay to $0$ with no oscillation.
(a) 令 $z = y'$。则 $y' = z$,$z' = y'' = -3z - 2y$。矩阵形式为 $\dfrac{d}{dt}\binom{y}{z} = \begin{pmatrix} 0 & 1 \\ -2 & -3 \end{pmatrix}\binom{y}{z}$,迹为 $-3$,行列式为 $2$,所以 $\lambda^{2} + 3\lambda + 2 = 0$,$\lambda = -1$ 或 $-2$。均为负:稳定结点,所以 $y$ 与 $y'$ 都衰减到 $0$,没有振荡。
(b) With $y_{n+1} = y_{n} + 0.1z_{n}$ and $z_{n+1} = z_{n} + 0.1(-3z_{n} - 2y_{n})$: row 0 uses $(y, z) = (1, 0)$ and gives rate $z' = -2$, so $y_{1} = 1$ and $z_{1} = -0.2$. Row 1: $z' = 0.6 - 2 = -1.4$, so $y_{2} = 1 - 0.02 = 0.98$ and $z_{2} = -0.2 - 0.14 = -0.34$. The rest is in the table.
(b) 用 $y_{n+1} = y_{n} + 0.1z_{n}$ 与 $z_{n+1} = z_{n} + 0.1(-3z_{n} - 2y_{n})$:第 0 行用 $(y, z) = (1, 0)$,变化率 $z' = -2$,所以 $y_{1} = 1$,$z_{1} = -0.2$。第 1 行:$z' = 0.6 - 2 = -1.4$,所以 $y_{2} = 1 - 0.02 = 0.98$,$z_{2} = -0.2 - 0.14 = -0.34$。其余见表格。
| $t_{n}$ | $y_{n}$ | $z_{n} = y'_{n}$ | $z'$ |
|---|---|---|---|
| 0 | 1.0000 | 0.0000 | $-2.0000$ |
| 0.1 | 1.0000 | $-0.2000$ | $-1.4000$ |
| 0.2 | 0.9800 | $-0.3400$ | $-0.9400$ |
| 0.3 | 0.9460 | $-0.4340$ | $-0.5900$ |
| 0.4 | 0.9026 | $-0.4930$ | $-0.3262$ |
| 0.5 | 0.8533 | $-0.5256$ |
So $y(0.5) \approx 0.8533$ and $y'(0.5) \approx -0.5256$.
所以 $y(0.5) \approx 0.8533$,$y'(0.5) \approx -0.5256$。
(c) Exact: $y(0.5) = 2e^{-0.5} - e^{-1} = 0.8452$ and $y'(0.5) = -2e^{-0.5} + 2e^{-1} = -0.4773$. The Euler values are close, with errors of about $0.008$ and $0.048$. Check the exact solution: $y'' + 3y' + 2y = (2e^{-t} - 4e^{-2t}) + 3(-2e^{-t} + 2e^{-2t}) + 2(2e^{-t} - e^{-2t}) = 0$, and $y(0) = 1$, $y'(0) = -2 + 2 = 0$.
(c) 精确值:$y(0.5) = 2e^{-0.5} - e^{-1} = 0.8452$,$y'(0.5) = -2e^{-0.5} + 2e^{-1} = -0.4773$。欧拉值很接近,误差分别约为 $0.008$ 和 $0.048$。检验精确解:$y'' + 3y' + 2y = (2e^{-t} - 4e^{-2t}) + 3(-2e^{-t} + 2e^{-2t}) + 2(2e^{-t} - e^{-2t}) = 0$,且 $y(0) = 1$,$y'(0) = -2 + 2 = 0$。
Why this works. Knowing $y$ and $y'$ at one time is exactly the information needed to find $y''$ from the equation, so the pair $(y, z)$ is a complete state that Euler can advance.
为什么可行。已知某一时刻的 $y$ 与 $y'$,恰好足以由方程求出 $y''$,所以 $(y, z)$ 是一个完整的状态,欧拉法可以向前推进。
Worked Example: an oscillating system例题:振荡系统
A mass on a spring satisfies $y'' = -4y$, where $y$ is the displacement in metres and $t$ is in seconds, with $y(0) = 0$ and $y'(0) = 2$. (a) Write the system and classify the equilibrium. (b) Use Euler's method with $h = 0.1$ for three steps. (c) Compare with the exact solution $y = \sin 2t$ and comment.弹簧上的质点满足 $y'' = -4y$,其中 $y$ 为位移(单位:米),$t$ 的单位为秒,$y(0) = 0$,$y'(0) = 2$。(a) 写出方程组并对平衡点分类。(b) 用 $h = 0.1$ 的欧拉法计算三步。(c) 与精确解 $y = \sin 2t$ 比较并评论。
(a) With $z = y'$: $y' = z$ and $z' = -4y$, matrix $\begin{pmatrix} 0 & 1 \\ -4 & 0 \end{pmatrix}$, so $\lambda^{2} + 4 = 0$ and $\lambda = \pm 2i$: a centre. Trajectories in the $(y, z)$ plane are closed loops, which matches a motion that repeats.
(a) 令 $z = y'$:$y' = z$,$z' = -4y$,矩阵为 $\begin{pmatrix} 0 & 1 \\ -4 & 0 \end{pmatrix}$,所以 $\lambda^{2} + 4 = 0$,$\lambda = \pm 2i$:中心。$(y, z)$ 平面内的轨线是闭曲线,与周而复始的运动吻合。
(b) Row 0: $(y, z) = (0, 2)$, $z' = 0$, so $y_{1} = 0.2$ and $z_{1} = 2$. Row 1: $z' = -0.8$, so $y_{2} = 0.4$ and $z_{2} = 1.92$. Row 2: $z' = -1.6$, so $y_{3} = 0.4 + 0.192 = 0.592$ and $z_{3} = 1.92 - 0.16 = 1.76$. So at $t = 0.3$: $y \approx 0.592$ and $y' \approx 1.76$.
(b) 第 0 行:$(y, z) = (0, 2)$,$z' = 0$,所以 $y_{1} = 0.2$,$z_{1} = 2$。第 1 行:$z' = -0.8$,所以 $y_{2} = 0.4$,$z_{2} = 1.92$。第 2 行:$z' = -1.6$,所以 $y_{3} = 0.4 + 0.192 = 0.592$,$z_{3} = 1.92 - 0.16 = 1.76$。故 $t = 0.3$ 时 $y \approx 0.592$,$y' \approx 1.76$。
(c) Exact: $y(0.3) = \sin 0.6 = 0.565$ and $y'(0.3) = 2\cos 0.6 = 1.65$ (3 s.f.); the estimate $0.592$ is too large. For this system the quantity $y^{2} + \dfrac{z^{2}}{4}$ is constant (equal to $1$) for the exact solution, but one Euler step multiplies it by $1 + 4h^{2} = 1.04$; after three steps it is $1.04^{3} = 1.125$, matching $0.592^{2} + \dfrac{1.76^{2}}{4} = 1.125$. So Euler's method makes a centre drift outwards, and the oscillation appears to gain energy unless $h$ is very small.
(c) 精确值:$y(0.3) = \sin 0.6 = 0.565$,$y'(0.3) = 2\cos 0.6 = 1.65$(3 位有效数字);估计值 $0.592$ 偏大。对于这个系统,精确解满足 $y^{2} + \dfrac{z^{2}}{4}$ 为常数(等于 $1$),但欧拉法每走一步就把它乘以 $1 + 4h^{2} = 1.04$;三步后为 $1.04^{3} = 1.125$,与 $0.592^{2} + \dfrac{1.76^{2}}{4} = 1.125$ 吻合。所以欧拉法使中心向外漂移,振荡看起来不断获得能量,除非 $h$ 非常小。
Why this works. Each Euler step moves along the tangent to a circle-like loop, which lands slightly outside it; a smaller $h$ reduces the drift per step but needs more steps.
为什么可行。每个欧拉步沿着类圆闭曲线的切线前进,落点略在曲线之外;$h$ 越小,每步漂移越小,但步数越多。
Write the substitution $z = y'$ explicitly and show both first-order equations before any numbers. Give both initial values and keep $y$ and $y'$ in separate columns of the table. When asked to comment on accuracy, compare with an exact value or a smaller step size, and name the quantity that should be constant for an oscillation.
在代入任何数字之前,明确写出代换 $z = y'$ 并列出两个一阶方程。给出两个初始值,并在表格中把 $y$ 与 $y'$ 分列。若题目要求评论精度,应与精确值或更小的步长比较,并指出振荡中本应保持不变的量。
Write $y'' + 4y' + 3y = 0$ as a pair of first-order equations, give the matrix, and classify the equilibrium.把 $y'' + 4y' + 3y = 0$ 写成一对一阶方程,给出矩阵,并对平衡点分类。
With $z = y'$: $y' = z$ and $z' = -3y - 4z$. The matrix is $\begin{pmatrix} 0 & 1 \\ -3 & -4 \end{pmatrix}$, with $\lambda^{2} + 4\lambda + 3 = 0$, so $\lambda = -1$ or $-3$. Both are negative and distinct: a stable node.
令 $z = y'$:$y' = z$,$z' = -3y - 4z$。矩阵为 $\begin{pmatrix} 0 & 1 \\ -3 & -4 \end{pmatrix}$,$\lambda^{2} + 4\lambda + 3 = 0$,所以 $\lambda = -1$ 或 $-3$。均为负且互异:稳定结点。
For $y'' = -y$ with $y(0) = 0$ and $y'(0) = 1$, use Euler's method with $h = 0.5$ to estimate $y(1)$.对 $y'' = -y$,$y(0) = 0$,$y'(0) = 1$,用 $h = 0.5$ 的欧拉法估计 $y(1)$。
With $z = y'$: $y_{n+1} = y_{n} + 0.5z_{n}$ and $z_{n+1} = z_{n} - 0.5y_{n}$. Row 0: $y_{1} = 0 + 0.5(1) = 0.5$ and $z_{1} = 1 - 0 = 1$. Row 1: $y_{2} = 0.5 + 0.5(1) = 1$ and $z_{2} = 1 - 0.5(0.5) = 0.75$. So $y(1) \approx 1$, compared with the exact $\sin 1 = 0.841$.
令 $z = y'$:$y_{n+1} = y_{n} + 0.5z_{n}$,$z_{n+1} = z_{n} - 0.5y_{n}$。第 0 行:$y_{1} = 0 + 0.5(1) = 0.5$,$z_{1} = 1 - 0 = 1$。第 1 行:$y_{2} = 0.5 + 0.5(1) = 1$,$z_{2} = 1 - 0.5(0.5) = 0.75$。所以 $y(1) \approx 1$,精确值 $\sin 1 = 0.841$。
A displacement satisfies $x'' = -x - 0.5x'$ with $x(0) = 2$ and $x'(0) = 0$. Use Euler's method with $h = 0.2$ to estimate $x$ and $x'$ at $t = 0.4$.位移满足 $x'' = -x - 0.5x'$,$x(0) = 2$,$x'(0) = 0$。用 $h = 0.2$ 的欧拉法估计 $t = 0.4$ 时的 $x$ 与 $x'$。
Let $v = x'$, so $x' = v$ and $v' = -x - 0.5v$. Row 0: $(x, v) = (2, 0)$, $v' = -2$, so $x_{1} = 2 + 0.2(0) = 2$ and $v_{1} = 0 + 0.2(-2) = -0.4$. Row 1: $v' = -2 - 0.5(-0.4) = -1.8$, so $x_{2} = 2 + 0.2(-0.4) = 1.92$ and $v_{2} = -0.4 + 0.2(-1.8) = -0.76$. So $x(0.4) \approx 1.92$ and $x'(0.4) \approx -0.76$.
令 $v = x'$,则 $x' = v$,$v' = -x - 0.5v$。第 0 行:$(x, v) = (2, 0)$,$v' = -2$,所以 $x_{1} = 2 + 0.2(0) = 2$,$v_{1} = 0 + 0.2(-2) = -0.4$。第 1 行:$v' = -2 - 0.5(-0.4) = -1.8$,所以 $x_{2} = 2 + 0.2(-0.4) = 1.92$,$v_{2} = -0.4 + 0.2(-1.8) = -0.76$。故 $x(0.4) \approx 1.92$,$x'(0.4) \approx -0.76$。
Exam Strategy and Common Pitfalls考试策略与常见陷阱
- Define the constant and its sign. "Proportional to" needs a constant $k$; write $k > 0$ and choose the sign in the equation from the words (growth or decay).
- 说明常数及其正负。"成正比"需要一个常数 $k$;写出 $k > 0$,并根据文字(增长或衰减)在方程中确定符号。
- Use both pieces of data in order. The initial condition fixes the constant of integration; the second datum fixes $k$.
- 依次使用两组数据。初始条件确定积分常数,第二组数据确定 $k$。
- Check constant solutions and the domain. Dividing by $g(y)$ can lose a solution; state the interval on which your formula answers the question.
- 检查常数解与定义域。除以 $g(y)$ 可能丢失一个解;说明你的公式在哪个区间内回答了问题。
- Euler tables: state $h$, the number of steps and the formula; carry unrounded values and round only the displayed entries.
- 欧拉表:写出 $h$、步数和公式;传递未取近似的数值,只对显示的数字取近似。
- Coupled systems: both updates in a row use the same $(x_{n}, y_{n})$; second-order equations need two initial values.
- 耦合方程组:同一行的两个更新使用同一对 $(x_{n}, y_{n})$;二阶方程需要两个初始值。
- Check eigenvalues with trace and determinant, then substitute the eigenvector back into $A\mathbf{v} = \lambda\mathbf{v}$.
- 用迹与行列式检验特征值,再把特征向量代回 $A\mathbf{v} = \lambda\mathbf{v}$。
- Name the equilibrium and its stability: eigenvalue signs (or real parts) decide node, saddle point, spiral or centre.
- 写出平衡点的类型与稳定性:由特征值的符号(或实部)判定结点、鞍点、螺旋点或中心。
For exams sat under the 2021 syllabus (through November 2028), IB Mathematics: Applications and Interpretation HL has three papers, and technology is required on Papers 1, 2 and 3. Paper 1 (2 hours, 110 marks, 30%) has compulsory short-response questions; Paper 2 (2 hours, 110 marks, 30%) has compulsory extended-response questions; Paper 3 (55 marks, 20%) has two compulsory extended-response problems. The internal assessment, a mathematical exploration, is the remaining 20%. Because a GDC is always available, practise filling Euler recursions down a spreadsheet or list and use the GDC for eigenvalues, eigenvectors and equation solving, while still writing the method that shows how you got each result.
按 2021 年大纲参加考试(至 2028 年 11 月)时,IB 数学:应用与解释 HL 共有三份试卷,Papers 1、2 与 3 都要求使用技术工具。Paper 1(2 小时,110 分,占 30%)为必答短答题;Paper 2(2 小时,110 分,占 30%)为必答长答题;Paper 3(55 分,占 20%)有两道必答的长答题。其余 20% 是内部评估(internal assessment),即数学探究(mathematical exploration)。由于始终可以使用 GDC,要练习在电子表格或列表中向下填充欧拉递推,并用 GDC 求特征值、特征向量和解方程,同时仍写出体现每个结果来源的方法。
Flashcards (HL unit)闪卡(HL 单元)
Unit E5 Practice Quiz (HL unit)单元 E5 练习测验(HL 单元)
Readiness Checklist (HL unit)备考清单(HL 单元)
Tick each item when you can do it cold, without notes, on your first attempt. The entire unit is HL only, so every item below is HL content.
每一条都要"裸做"做对(不看笔记、一次过)才打勾。本单元为纯 HL,所以下面每一条都是 HL 内容。
- Translate a statement about a rate of change or proportionality into a differential equation and state the sign of the constant把关于变化率或比例关系的叙述翻译成微分方程,并说明常数的正负
- Solve a separable equation with an initial condition and check it by substitution求解带初始条件的可分离方程,并代回检验
- Use two pieces of data to find the integration constant and the constant of proportionality (growth, decay, cooling)用两组数据求积分常数与比例常数(增长、衰减、冷却)
- State the domain on which a particular solution is valid说明特解成立的定义域
- Calculate gradients on a grid and draw the segments of a slope field在网格上计算梯度并画出斜率场的线段
- Sketch a solution curve through a given point and identify constant solutions画出过给定点的解曲线并识别常数解
- Set out an Euler table for one equation to a stated number of decimal places按规定小数位数列出单个方程的欧拉表
- Explain the effect of the step size and whether an estimate is too large or too small解释步长的影响,并判断估计值偏大还是偏小
- Apply Euler's method to a coupled system, updating both variables from the same row对耦合方程组使用欧拉法,两个变量由同一行更新
- Rewrite a second-order equation as two first-order equations and apply Euler to it把二阶方程改写成两个一阶方程并使用欧拉法
- Find eigenvalues and eigenvectors of a 2 x 2 matrix and write the general solution of $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$求 2 x 2 矩阵的特征值与特征向量,并写出 $\dfrac{d\mathbf{x}}{dt} = A\mathbf{x}$ 的通解
- Classify the equilibrium (node, saddle point, spiral, centre), state its stability and sketch the phase portrait对平衡点分类(结点、鞍点、螺旋点、中心),说明其稳定性并画出相图
How to use this guide本指南使用说明
How to use this guide本指南使用说明
E5 is one of the HL-only units of this course: it covers the 2021 sub-topics AHL 5.14 (setting up differential equations, separation of variables), AHL 5.15 (slope fields), AHL 5.16 (Euler's method, including coupled systems), AHL 5.17 (phase portraits, eigenvalues, equilibria) and AHL 5.18 (second-order equations by Euler's method). The sections build on each other: a second-order equation (E5.6) becomes a coupled pair (E5.4), a linear coupled pair is a matrix system whose eigenvalues (E5.5) predict how Euler's method behaves, and the exact solutions of E5.1 and E5.2 give you values to test the numerical methods of E5.3 against.E5 是本课程的纯 HL 单元之一,涵盖 2021 年大纲子主题 AHL 5.14(建立微分方程、分离变量法)、AHL 5.15(斜率场)、AHL 5.16(欧拉法,包括耦合方程组)、AHL 5.17(相图、特征值、平衡点)与 AHL 5.18(二阶方程的欧拉法)。各节层层递进:二阶方程(E5.6)化为耦合方程对(E5.4),线性耦合方程对是矩阵方程组,其特征值(E5.5)可预测欧拉法的行为,而 E5.1 与 E5.2 的精确解则为检验 E5.3 的数值方法提供了对照值。
Learn three moves. Solving: separate, integrate, use the initial condition, then the second datum, and substitute back. Euler: $y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})$, with both variables updated from the same row for a system. Phase portraits: find the eigenvalues, read the type from their signs or real parts, and draw the eigenvector lines first.
掌握三招。求解:分离变量、积分、用初始条件,再用第二组数据,最后代回检验。欧拉法:$y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})$,对方程组则两个变量由同一行更新。相图:求特征值,由符号或实部判断类型,并先画出特征向量所在直线。
Connect the ideas: explain why the sign of an eigenvalue's real part decides stability, why a smaller step size improves an Euler estimate, and why Euler's method drifts outwards on a centre. Practise multi-part context problems end to end, interpreting every result in the units of the situation.
把各个概念串起来:解释为什么特征值实部的符号决定稳定性,为什么减小步长能改善欧拉估计,以及为什么欧拉法在中心处会向外漂移。完整练习多小问的情境题,并用情境的单位解读每个结果。