ΣνΜDr. Sharon's Math PlatformSyvara Learning
≈

Numerical Method with Python (Math & Eng)

Numerical techniques for solving mathematical problems using Python.

Q24
RK4 step for y' = y − t²
For $y' = y - t^2 + 1$, $y(0) = 0.5$, take one step of classical Runge-Kutta (RK4) with $h = 0.5$. Compare with the exact solution $y(t) = (t+1)^2 - 0.5e^t$.
ODE Solvers 🟡 Intermediate 🔒 $1.99
Q25
Second-order Runge-Kutta for y' = x + y, y(0) = 0
Given the initial value problem $$y' = x + y, \qquad y(0) = 0,$$ find the value of $y$ approximately at $x = 0.5$ by the **second-order Runge-Kutta method**…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q26
RK2: y' = (y - x)/(1 + x), y(0) = 1 at x = 0.1 (h = 0.02)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.1$ for $$\dfrac{dy}{dx} = \dfrac{y - x}{1 + x}, \qquad y(0) = 1$$…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q27
RK2: y y' = x, y(0) = 1.5 at x = 0.2 (h = 0.1)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.2$ for $$y\,y' = x, \qquad y(0) = 1.5$$ (take $h = 0.1$). Compare the…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q28
RK2: y' = x - y, y(0) = 1 at x = 0.2 (h = 0.1)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.2$ for $$\dfrac{dy}{dx} = x - y, \qquad y(0) = 1$$ (take $h = 0.1$).…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q29
RK2: y' = x + y + xy, y(0) = 1 at x = 0.1 (h = 0.02)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.1$ for $$y' = x + y + xy, \qquad y(0) = 1$$ (take $h = 0.02$).…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q30
RK2: y' = 1 + y^2, y(0) = 0 at x = 0.4 (h = 0.2)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.4$ for $$\dfrac{dy}{dx} = 1 + y^2, \qquad y(0) = 0$$ (take…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q31
RK2: y' = (y + x)/(1 + x), y(0) = 1.2 at x = 0.1 (h = 0.025)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.1$ for $$\dfrac{dy}{dx} = \dfrac{y + x}{1 + x}, \qquad y(0) = 1.2$$…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q32
RK2: y y' = 2x, y(0) = 1.2 at x = 0.3 (h = 0.1)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.3$ for $$y\,y' = 2x, \qquad y(0) = 1.2$$ (take $h = 0.1$). Compare…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q33
RK2: y' = 2x - y, y(0) = 0.8 at x = 0.3 (h = 0.1)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.3$ for $$\dfrac{dy}{dx} = 2x - y, \qquad y(0) = 0.8$$ (take…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q34
RK2: y' = 1 + x + y + xy, y(0) = 0.5 at x = 0.1 (h = 0.025)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.1$ for $$y' = 1 + x + y + xy, \qquad y(0) = 0.5$$ (take $h = 0.025$).…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q35
RK2: y' = 4 + y^2, y(0) = 0 at x = 0.3 (h = 0.1)
Using the **second-order Runge-Kutta method**, find the value of $y$ at the point $x = 0.3$ for $$\dfrac{dy}{dx} = 4 + y^2, \qquad y(0) = 0$$ (take…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q36
Euler's method for y' = 3y: local and global truncation error
Consider the initial-value problem $y' = 3y$, $y(0) = 1$. The analytic solution is $y = e^{3x}$. **(a)** Approximate $y(0.10)$ using one step and Euler's…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q37
Euler step and exact solution for y' = x - 3y, y(0) = 1
Given the initial-value problem $y' = x - 3y$, $y(0) = 1$. **(a)** Approximate $y(0.1)$ using one step and Euler's method. **(b)** Find the analytic solution.…
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Q38
Second-order Runge-Kutta for y' = x^2 + y^2, y(0) = 1
Use the second-order Runge-Kutta method with $h = 0.1$ to approximate $y(0.5)$, given $$y' = x^2 + y^2, \qquad y(0) = 1.$$
ODE Solvers 🟡 Intermediate </> 🔒 $1.99
Working…