✓ تم التحقق من المنهج الرسميمعايير الجودة والصرامة ↗
9

الطرق العددية: طريقة أويلر وأويلر المحسنة (RK2) ورونج-كوتا (RK4)

📌 Differential Equations · Numerical Methods: Euler, Improved Euler (RK2), RK4 & Numerical Stability ODE Core · 9  ·  Numerical Methods

In scientific computing, weather forecasting, aerospace navigation, and chemical reactor design, nonlinear differential equations almost never possess closed-form analytical solutions. Instead, mathematicians and engineers rely on numerical integration algorithms to advance the solution forward step by step along discrete time grids. Understanding numerical ODE algorithms requires analyzing two competing forces: truncation error (the accuracy of the local Taylor polynomial approximation) and numerical stability (whether propagation errors attenuate or blow up uncontrollably). This chapter investigates Forward Euler, Heun's Predictor-Corrector (RK2), Fourth-Order Runge–Kutta (RK4), and the phenomenon of stiffness.

● Level 1 Foundation — Definition 9.1: Forward Euler's Method & Discrete Vector Fields

Consider the initial value problem: fraction dy over dt = f(t, y), y(t_0) = y_0. Discretize the time domain into uniform intervals of step size h > 0 , generating discrete grid points \( t_n = t_0 + n h \). Forward Euler's Method approximates the continuous solution \( y(t_{n+1}) \) by extrapolating along the tangent line evaluated at the beginning of the step: \[ y_{n+1} = y_n + h f(t_n, y_n), \qquad n = 0, 1, 2, \dots \]

حقل الاتجاهات \(y' = x + y\) مع الحل الدقيق \(y(x) = 2e^x - x - 1\) من \(y(0) = 1\)؛ التقعر للأعلى يجعل خطوات أويلر المماسية أقل من القيمة الفعلية.
▲ Level 1 Foundation — Theorem 9.1: Local Truncation Error \(O(h^{2})\) vs Global Error \(O(h)\)

1. Local Truncation Error (LTE): By Taylor's Theorem with Lagrange remainder, assuming \( y \in C^2 \): \[ y(t_n + h) = y(t_n) + h y'(t_n) + \frac{h^2}{2}y''(\xi_n) = y(t_n) + h f(t_n, y(t_n)) + \frac{h^2}{2}y''(\xi_n) \] for some \( \xi_n \in (t_n, t_{n+1}) \). The local error committed in a single step is: \[ e_{n+1} = y(t_{n+1}) - \big(y(t_n) + h f(t_n, y(t_n))\big) = \frac{h^2}{2}y''(\xi_n) = O(h^2). \]

2. Global Truncation Error (GTE): To integrate across a fixed interval \( [t_0, T] \), the total number of steps is \( N = \frac{T - t_0}{h} = O(h^{-1}) \). The accumulated global error is: \[ E(T) \le N \cdot O(h^2) = \left(\frac{T - t_0}{h}\right) \cdot C h^2 = O(h). \] Forward Euler is therefore a first-order method: halving the step size \( h \) only halves the global error.

● Level 2 Analytical Methods — Definition 9.2: Improved Euler (Heun / Predictor-Corrector) & RK2

Forward Euler's error arises because it evaluates slope exclusively at the beginning of the interval \( t_n \). Improved Euler (Heun's Method) eliminates first-order bias by averaging the slope at the start with a predicted slope at the end (analogous to the Trapezoidal Rule in numerical quadrature):

  1. Predictor step (Euler trial): \[ \tilde{y}_{n+1} = y_n + h f(t_n, y_n). \]
  2. Corrector step (Trapezoidal average): \[ y_{n+1} = y_n + \frac{h}{2}\Big[f(t_n, y_n) + f(t_{n+1}, \tilde{y}_{n+1})\Big]. \]

Heun's method has local truncation error \( O(h^3) \) and global error \( O(h^2) \), making it a second-order Runge–Kutta method (RK2).

Hierarchy of Numerical Integration Methods

Forward Euler (RK1)
Local error \( O(h^2) \), Global error \( O(h) \). Single function evaluation per step: \( y_{n+1} = y_n + h f_n \).
Heun's Method (RK2)
Local error \( O(h^3) \), Global error \( O(h^2) \). Two evaluations per step: predictor \( \tilde{y} \) and average slope.
Classical RK4
Local error \( O(h^5) \), Global error \( O(h^4) \). Four evaluations per step with Simpson-rule weighting.
Backward (Implicit) Euler
\( y_{n+1} = y_n + h f(t_{n+1}, y_{n+1}) \). Solves implicit equation at each step; unconditionally stable for stiff systems.
◆ Why It Works — First-Principles Derivation (Numerical Methods: Euler, Improved Euler (RK2), RK4 & Numerical Stability)

Why Integration by Parts & Integrating Factors Work: Differentiating a product \(u(x)v(x)\) gives \((uv)' = u'v + uv'\). Integrating both sides and rearranging yields the Integration by Parts formula:

\[ \int u\,\frac{dv}{dx}\,dx = u v - \int v\,\frac{du}{dx}\,dx \]

Similarly, for a linear first-order ODE \(y' + P(x)y = Q(x)\), multiplying by the integrating factor \(\mu(x) = e^{\int P(x)\,dx}\) (which satisfies \(\mu'(x) = P(x)\mu(x)\)) collapses the left-hand side into an exact product derivative: \(\dfrac{d}{dx}\bigl[\mu(x)y\bigr] = \mu(x)Q(x)\).

Worked example 9.A — Manual Step Comparison: Euler vs Heun
المسألة. Apply one step of step size \( h = 0.2 \) to approximate \( y(0.2) \) for \[ \frac{dy}{dt} = y - t^2 + 1, \qquad y(0) = 0.5. \] Compare Forward Euler and Heun's method with the exact analytical solution \( y(t) = t^2 + 2t + 1 - 0.5e^t \) (at \( t = 0.2 \), \( y(0.2) = 0.2^2 + 2(0.2) + 1 - 0.5e^{0.2} \approx 1.44 - 0.6107 = 0.8293 \)).
▸ عرض خطوات الحل بالتفصيل

Forward Euler:
\( f(t_0, y_0) = f(0, 0.5) = 0.5 - 0^2 + 1 = 1.5 \).
\( y_1 = y_0 + h f(0, 0.5) = 0.5 + 0.2(1.5) = 0.8000 \).
Absolute error: \( |0.8293 - 0.8000| = 0.0293 \).

Heun's Method (Improved Euler):
Predictor: \( \tilde{y}_1 = 0.8000 \).
Slope at endpoint: \( f(t_1, \tilde{y}_1) = f(0.2, 0.8) = 0.8 - (0.2)^2 + 1 = 0.8 - 0.04 + 1 = 1.76 \).
Average slope: \( \frac{f_0 + f_1}{2} = \frac{1.5 + 1.76}{2} = 1.63 \).
Corrector: \( y_1 = 0.5 + 0.2(1.63) = 0.5 + 0.326 = 0.8260 \).
Absolute error: \( |0.8293 - 0.8260| = 0.0033 \).
Notice that Heun's method reduces the error by nearly a factor of 10 in a single step!

⊙ مستكشف تفاعلي · Euler's method vs the exact الحل
تفاعلي
approx \(y(2)\)\(4.866\)
دقيق \(y(2)\)\(5.305\)
خطأ\(0.440\)

IVP يساوي Worked أمثلة 9.A/9.B's \(y' = y -x^{2} + 1\)، \(y(0) = 0.5\)، run out إلى \(x = 2\) مع \(h = 0.2 by\) default — matching plain أويلر's المعلوم خطأ من تقريبًا 0.44 عند أن الخطوة حجم. اسحب \(h\) أسفل نحو له الأصغر قيمة و لاحظ كهرماني polyline hug نيلي دقيق منحنى; علامة improved-أويلر checkbox عند نفس \(h\) و لاحظ خطأ drop بواسطة roughly order من المقدار، بالضبط كـ تعريف 9.2 predicts.

▲ Level 3 University Rigor — Theorem 9.2: Classical Fourth-Order Runge–Kutta (RK4) & Numerical Stiffness / \(A\)-Stability

1. Classical Fourth-Order Runge–Kutta (RK4): The gold standard explicit solver evaluates four slope samples per time step, weighted according to Simpson's Rule: \[ k_1 = f(t_n, y_n), \] \[ k_2 = f\left(t_n + \frac{h}{2}, \, y_n + \frac{h}{2}k_1\right), \] \[ k_3 = f\left(t_n + \frac{h}{2}, \, y_n + \frac{h}{2}k_2\right), \] \[ k_4 = f(t_n + h, \, y_n + h k_3). \] \[ y_{n+1} = y_n + \frac{h}{6}\big(k_1 + 2k_2 + 2k_3 + k_4\big). \] RK4 achieves local truncation error \( O(h^5) \) and global error \( O(h^4) \). Halving \( h \) reduces global error by a factor of \( 2^4 = 16 \).

2. Numerical Stiffness & Dahlquist Absolute Stability: Consider Dahlquist's linear test equation: \[ \frac{dy}{dt} = \lambda y, \qquad \operatorname{Re}(\lambda) < 0. \] The true solution \( y(t) = y_0 e^{\lambda t} \) decays exponentially to zero as \( t \to \infty \). Applying Forward Euler: \[ y_{n+1} = y_n + h(\lambda y_n) = (1 + h\lambda)y_n \implies y_n = (1 + h\lambda)^n y_0. \] For numerical stability (ensuring \( y_n \to 0 \)), the amplification factor must satisfy: \[ |1 + h\lambda| < 1 \implies -1 < 1 + h\lambda < 1 \implies h < \frac{2}{|\lambda|}. \] If \( h > \frac{2}{|\lambda|} \), the numerical solution diverges to infinity with alternating signs, even though the true solution is rapidly decaying! Systems possessing rapid decaying transients (large \( |\lambda| \)) are termed stiff. Stiff systems require Implicit (Backward) Euler: \[ y_{n+1} = y_n + h\lambda y_{n+1} \implies y_{n+1} = \frac{1}{1 - h\lambda}y_n. \] Since \( |1 - h\lambda| > 1 \) for all \( h > 0 \) whenever \( \operatorname{Re}(\lambda) < 0 \), Backward Euler is unconditionally A-stable.

Forward Euler creates a piecewise linear approximation that diverges from the true curve due to accumulating curvature truncation error, as compared below.

مقارنة استكمال المماس في طريقة أويلر الأمامية لمعادلة \(y' = y,\; y(0) = 1\) مع منحنى الحل الأسي الحقيقي \(y(x) = e^x\).
⚠️ Common Traps & University Pitfalls — Global vs. Local Error and Step Size Stiff Instability

Confusing Local and Global error orders: Forward Euler has local truncation error \( O(h^2) \), but its global error is \( O(h) \). Students often confuse the two and mistakenly expect Euler's method to have second-order global accuracy.

Rounding error vs. truncation error tradeoff: Reducing \( h \) reduces truncation error, but dramatically increases the total number of floating-point arithmetic operations \( N \). Eventually, machine roundoff error accumulates and overwhelms the solution if \( h \) is made excessively tiny.

Stiff instability blowup: In systems with fast decay (e.g. \( y' = -100y \)), choosing \( h = 0.05 \) violates \( h < 2/100 = 0.02 \). Forward Euler produces wildly oscillating explosive numbers \( y_n = (-4)^n \to \pm \infty \), mistaking mathematical decay for physical explosion!

Worked Example \(B\) — Numerical Methods: Euler, Improved Euler (RK2), RK4 & Numerical Stability (Medium Application)
المسألة. Consider the differential equation \( \dfrac{dy}{dx} = x + y \) with the initial condition \( y(0) = 1 \). You are asked to approximate \( y(0.2) \) using Euler's method. If the step size \( h = 0.1 \) is used, and it is known that the exact solution at \( x=0.2 \) is \( y(0.2) = 1.24 \), determine the value of \( k \) such that \( y(0.2)_{\text{Euler}} = 1.24 - k \).
▸ عرض خطوات الحل بالتفصيل

Euler's method for approximating the solution to \( \dfrac{dy}{dx} = f(x, y) \) with initial condition \( y(x_0) = y_0 \) and step size \( h \) is given by \( y_{n+1} = y_n + h f(x_n, y_n) \). In this problem, \( f(x, y) = x + y \), \( x_0 = 0 \), \( y_0 = 1 \), and \( h = 0.1 \). We want to approximate \( y(0.2) \) with \( h=0.1 \). This requires two steps: Step 1: From \( x_0 = 0 \) to \( x_1 = 0.1 \). \( y_1 = y_0 + h f(x_0, y_0) \) \( y_1 = 1 + 0.1 (0 + 1) \) \( y_1 = 1 + 0.1 (1) \) \( y_1 = 1 + 0.1 \) \( y_1 = 1.1 \) Step 2: From \( x_1 = 0.1 \) to \( x_2 = 0.2 \). \( y_2 = y_1 + h f(x_1, y_1) \) \( y_2 = 1.1 + 0.1 (0.1 + 1.1) \) \( y_2 = 1.1 + 0.1 (1.2) \) \( y_2 = 1.1 + 0.12 \) \( y_2 = 1.22 \) So, the approximation using Euler's method is \( y(0.2)_{\text{Euler}} = 1.22 \). We are given that the exact solution is \( y(0.2) = 1.24 \) and \( y(0.2)_{\text{Euler}} = 1.24 - k \). Substituting the value of \( y(0.2)_{\text{Euler}} \), we get: \( 1.22 = 1.24 - k \) \( k = 1.24 - 1.22 \) \( k = 0.02 \) Therefore, the value of \( k \) is 0.02.

Worked Example \(C\) — Numerical Methods: Euler, Improved Euler (RK2), RK4 & Numerical Stability (Hard Application)
المسألة. Consider the differential equation \(\frac{dy}{dx} = x + y\) with the initial condition \(y(0) = 1\). Use the Euler method with a step size \(h = 0.1\) to approximate the value of \(y(0.2)\).
▸ عرض خطوات الحل بالتفصيل

The Euler method approximates the solution to an initial value problem \(\frac{dy}{dx} = f(x, y)\), \(y(x_0) = y_0\) using the iterative formula \(y_{n+1} = y_n + h f(x_n, y_n)\), where \(h\) is the step size and \(x_{n+1} = x_n + h\). Given \(f(x, y) = x + y\), \(x_0 = 0\), \(y_0 = 1\), and \(h = 0.1\). For the first step (approximating y(0.1)): \(x_1 = x_0 + h = 0 + 0.1 = 0.1\) \(y_1 = y_0 + h f(x_0, y_0) = 1 + 0.1 (0 + 1) = 1 + 0.1(1) = 1.1\). For the second step (approximating y(0.2)): \(x_2 = x_1 + h = 0.1 + 0.1 = 0.2\) \(y_2 = y_1 + h f(x_1, y_1) = 1.1 + 0.1 (0.1 + 1.1) = 1.1 + 0.1 (1.2) = 1.1 + 0.12 = 1.22\). Therefore, the approximate value of \(y(0.2)\) using the Euler method is 1.22.

Worked Example \(D\) — Numerical Methods: Euler, Improved Euler (RK2), RK4 & Numerical Stability (Easy Application)
المسألة. Consider the differential equation \( \dfrac{dy}{dx} = x + y \) with the initial condition \( y(0) = 1 \). Use the Euler method with a step size of \( h = 0.1 \) to approximate \( y(0.2) \).
▸ عرض خطوات الحل بالتفصيل

Using Euler's method \( y_{n+1} = y_n + h(x_n + y_n) \) with \( x_0 = 0, y_0 = 1, h = 0.1 \): 1. \( y_1 = 1 + 0.1(0 + 1) = 1.100 \) at \( x_1 = 0.1 \). 2. \( y_2 = 1.1 + 0.1(0.1 + 1.1) = 1.1 + 0.12 = 1.220 \) at \( x_2 = 0.2 \).

Error Diagnosis — Common Student Traps vs. Exam-Board Method (Numerical Methods: Euler, Improved Euler (RK2), RK4 & Numerical Stability)
الخطأ الشائع لدى الطلابلماذا يفشل رياضياًالطريقة الصحيحة المعتمدة في الاختبار
Writing \(\ln|y| = x^2 + C \implies y = e^{x^2} + C\)Exponentiation distributes over addition as multiplication (\(e^{a+b} = e^a e^b\)), not addition.Write \(y = e^{x^2 + C} = Ae^{x^2}\) and solve for \(A\) using the initial condition.
Leaving original \(x\)-limits on a \(u\)-substituted definite integralEvaluates the antiderivative \(F(u)\) at \(x\)-values instead of \(u(x)\)-values.Convert bounds immediately: \(u_{\text{low}} = u(a)\) and \(u_{\text{high}} = u(b)\).
Computing total distance as \(\left|\int_{t_1}^{t_2} v(t)\,dt\right|\)Cancels forward and backward motion (net displacement) instead of accumulating total path length.Split the integral at every root where \(v(t) = 0\) and integrate \(|v(t)|\).
▲ Exam Pacing & Verification Strategy — Numerical Methods: Euler, Improved Euler (RK2), RK4 & Numerical Stability

Quick Verification Trick (University Ordinary Differential Equations): For any indefinite integral \(\int f(x)\,dx = F(x) + C\), differentiate your answer \(F'(x)\) mentally—especially the coefficient \(1/k\) from chain-rule reversal \(\int e^{kx}\,dx = \tfrac{1}{k}e^{kx} + C\)—before moving on.

Apply two steps of Heun's method (Improved Euler) with step size \( h = 0.1 \) to approximate \( y(0.2) \) for the IVP \[ \frac{dy}{dt} = 2t y, \qquad y(0) = 1. \] Compare your approximation with the exact analytical value \( y(0.2) = e^{(0.2)^2} = e^{0.04} \approx 1.04081077 \).
💡 Hint 1 of 3
تلميح للحل: استخدم العلاقة \([0, 0.1]\) ، \(t_0 = 0, y_0\) لتبسيط الخطوة.
💡 Hint 2 of 3
تلميح للحل: استخدم العلاقة \(k_1 = f(0, 1) = 2(0)(1) = 0\) ، \(\tilde{y}_1 = y_0 + h k_1 = 1 + 0.1(0)\) لتبسيط الخطوة.
💡 Hint 3 of 3
تلميح للحل: استخدم العلاقة \(|1.04081077 - 1.040704|\) لتبسيط الخطوة.

Step 1: First interval \( [0, 0.1] \):
Initial point: \( t_0 = 0, y_0 = 1 \).
Slope at start: \( k_1 = f(0, 1) = 2(0)(1) = 0 \).
Predictor: \( \tilde{y}_1 = y_0 + h k_1 = 1 + 0.1(0) = 1 \).
Slope at endpoint: \( k_2 = f(0.1, 1) = 2(0.1)(1) = 0.2 \).
Corrector: \[ y_1 = y_0 + \frac{h}{2}(k_1 + k_2) = 1 + \frac{0.1}{2}(0 + 0.2) = 1 + 0.01 = 1.0100. \]

Step 2: Second interval \( [0.1, 0.2] \):
Point: \( t_1 = 0.1, y_1 = 1.01 \).
Slope at start: \( k_1 = f(0.1, 1.01) = 2(0.1)(1.01) = 0.2020 \).
Predictor: \( \tilde{y}_2 = y_1 + h k_1 = 1.01 + 0.1(0.202) = 1.01 + 0.0202 = 1.0302 \).
Slope at endpoint: \( k_2 = f(0.2, 1.0302) = 2(0.2)(1.0302) = 0.41208 \).
Corrector: \[ y_2 = 1.01 + \frac{0.1}{2}(0.2020 + 0.41208) = 1.01 + 0.05(0.61408) = 1.01 + 0.030704 = 1.040704. \]

Step 3: Error evaluation:
Exact value: \( y(0.2) = e^{0.04} \approx 1.04081077 \).
Absolute error: \( |1.04081077 - 1.040704| = 0.000107 \), demonstrating second-order accuracy.

Consider the stiff chemical decay differential equation \[ \frac{dy}{dt} = -80y, \qquad y(0) = 1. \] (a) Determine the critical maximum step size \( h_{\text{crit}} \) for Forward Euler to remain stable. (b) Calculate the numerical solution after 2 steps with \( h = 0.03 \) versus \( h = 0.02 \).
💡 Hint 1 of 3
(a) Critical step size: For \( y' = \lambda y \) with \( \lambda = -80 \), Forward Euler amplification factor is \( 1 + h\lambda = 1 - 80h \).
💡 Hint 2 of 3
تلميح للحل: استخدم العلاقة \(|1 - 80h| < 1 \implies -1 < 1 - 80h < 1 \implies 0 < 80h < 2 \implies h < \frac{2}{80} = 0.025\) ، \(h_{\text{crit}} = 0.025\) لتبسيط الخطوة.
💡 Hint 3 of 3
تلميح للحل: استخدم العلاقة \(y_1 = -0.6\) ، \(y_2 = (-0.6)^2\) ، \(y_{10} = (-0.6)^{10}\) لتبسيط الخطوة.

(a) Critical step size: For \( y' = \lambda y \) with \( \lambda = -80 \), Forward Euler amplification factor is \( 1 + h\lambda = 1 - 80h \).
Absolute stability requires \( |1 - 80h| < 1 \implies -1 < 1 - 80h < 1 \implies 0 < 80h < 2 \implies h < \frac{2}{80} = 0.025 \).
Thus \( h_{\text{crit}} = 0.025 \).

(b) Numerical comparison:
With \( h = 0.03 > h_{\text{crit}} \): \( 1 - 80(0.03) = 1 - 2.4 = -1.4 \).
\( y_1 = -1.4(1) = -1.4 \), \( y_2 = (-1.4)^2 = 1.96 \), \( y_{10} = (-1.4)^{10} \approx 28.9 \) (explosive oscillation to \( \pm \infty \)).
With \( h = 0.02 < h_{\text{crit}} \): \( 1 - 80(0.02) = 1 - 1.6 = -0.6 \).
\( y_1 = -0.6 \), \( y_2 = (-0.6)^2 = 0.36 \), \( y_{10} = (-0.6)^{10} \approx 0.0060 \to 0 \) (stable decay to equilibrium zero).

[Practice 3 · Medium] The first-order differential equation \( \dfrac{df}{dx} = 12x - 2f \) has its slope field plotted below. Determine the slope \( \dfrac{df}{dx} \) at the point \( A(6, 23) \).
💡 Hint 1 of 3
تلميح للحل: استخدم العلاقة \((6, 23)\) لتبسيط الخطوة.
💡 Hint 2 of 3
تلميح للحل: استخدم العلاقة \(12(6) - 2(23)\) لتبسيط الخطوة.
💡 Hint 3 of 3
Evaluate \(12(6) - 2(23)\) step by step to obtain the final answer.
خطوات الحل التفصيلية: Evaluating at \((6, 23)\) gives \(12(6) - 2(23) = 26\).
[Practice 4 · Hard] Find a particular solution of \( y''-y'-6y=e^{2x}+18 \).
💡 Hint 1 of 3
تلميح للحل: استخدم العلاقة \(e^{2x}\) ، \(r=2\) ، \(r^2-r-6=0\) ، \(3,-2\) ، \(Ae^{2x}\) ، \((4-2-6)A=1\Rightarrow-4A=1\Rightarrow A=-\tfrac14\) لتبسيط الخطوة.
💡 Hint 2 of 3
تلميح للحل: استخدم العلاقة \(18\) ، \(B\) ، \(-6B = 18\Rightarrow B\) لتبسيط الخطوة.
💡 Hint 3 of 3
تلميح للحل: استخدم العلاقة \(y_p=-\tfrac14e^{2x}-3\) لتبسيط الخطوة.
Split the forcing (the superposition note): for \( e^{2x} \), \( r=2 \) isn't a root of \( r^2-r-6=0 \) (roots \( 3,-2 \)), so trial \( Ae^{2x} \) gives \( (4-2-6)A=1\Rightarrow-4A=1\Rightarrow A=-\tfrac14 \). For the constant \( 18 \), trial \( B \) gives \( -6B=18\Rightarrow B=-3 \). Adding the two pieces: \( y_p=-\tfrac14e^{2x}-3 \).
Consider the differential equation \( \dfrac{dy}{dx} = x + y \) with the initial condition \( y(0) = 1 \). Use the Euler method with a step size of \( h = 0.1 \) to approximate \( y(0.2) \).
💡 Hint 1 of 3
Using Euler's method \( y_{n+1} = y_n + h(x_n + y_n) \) with \(x_0 = 0, y_0 = 1, h\): 1.
💡 Hint 2 of 3
أعد كتابة العلاقة وبسّطها للحصول على: \(y_1 = 1 + 0.1(0 + 1) = 1.100\) at \(x_1 = 0.1\).
💡 Hint 3 of 3
تلميح للحل: استخدم العلاقة \(y_2 = 1.1 + 0.1(0.1 + 1.1) = 1.1 + 0.12\) ، \(x_2\) لتبسيط الخطوة.
Using Euler's method \( y_{n+1} = y_n + h(x_n + y_n) \) with \( x_0 = 0, y_0 = 1, h = 0.1 \): 1. \( y_1 = 1 + 0.1(0 + 1) = 1.100 \) at \( x_1 = 0.1 \). 2. \( y_2 = 1.1 + 0.1(0.1 + 1.1) = 1.1 + 0.12 = 1.220 \) at \( x_2 = 0.2 \).

الطرق العددية: طريقة أويلر وأويلر المحسنة (RK2) ورونج-كوتا (RK4) — مسألة مهيكلة من ٦ درجات

6 نقاط بدون آلة حاسبة
في موضوع الطرق العددية: طريقة أويلر وأويلر المحسنة (RK2) ورونج-كوتا (RK4)، ادرس الدالة \(f(x) = 2x^2 - 3x + 1\) على الفترة \([0, 3]\).
  1. (a)2 نقطة
    احسب قيمتي \(f(0)\) و \(f(2)\).
    معيار التصحيح والإجابة النموذجية
    • [M1] يعوّض القيمتين في الدالة (1 نقطة)
    • [A1] يحصل على 1 و 3 (1 نقطة)
  2. (b)2 نقطة
    أوجد المشتقة \(f'(x)\) والنقطة الحرجة \(x_c\).
    معيار التصحيح والإجابة النموذجية
    • [M1] يشتق الدالة التربيعية (1 نقطة)
    • [A1] يحل لإيجاد النقطة الحرجة (1 نقطة)
  3. (c)2 نقطة
    احسب متوسط معدل التغيّر من \(x = 0\) إلى \(x = 2\).
    معيار التصحيح والإجابة النموذجية
    • [M1] يطبّق قانون متوسط معدل التغيّر (1 نقطة)
    • [A1] يبسّط الناتج إلى 1 (1 نقطة)
الحل الكامل التفصيلي
(أ) \(f(0)=1\) و \(f(2)=3\). (ب) \(f'(x)=4x-3\). (ج) متوسط معدل التغيّر يساوي \(1\).
📝 اختبار الفصل