Machine-translated by Google. Questions are authored in English.
Top

Numerical Solution of ODEs Questions and Answers

1.

Using Euler's method taking step size = 0.1, the approximate value of \(y\) obtained corresponding to \(x = 0.2\) for the initial value problem \(\frac{dy}{dx} = x^{2} + y^{2}\) and \(y(0) = 1\), is

Exam Year(s)

GATE Mathematics - 2012,

Answer: C

Euler's method gives 1.222.

Euler's method updates \(y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})\) with \(f(x, y) = x^{2} + y^{2}\) and \(h = 0.1\).

\[ \begin{aligned} y_{1} &= 1 + 0.1(0^{2} + 1^{2}) = 1.1 \\ y_{2} &= 1.1 + 0.1(0.1^{2} + 1.1^{2}) \\ &= 1.1 + 0.1(0.01 + 1.21) = 1.222 \end{aligned} \]

So \(y(0.2) \approx 1.222\). The value 1.122 adds the second increment, 0.122, to the starting value 1 instead of to 1.1; 1.110 and 1.322 do not come from the two Euler steps.

Please log in or register to report this question.

2.

For the initial value problem

\(y' = f(x, y),\ y(x_{0}) = y_{0}\),

generate approximations \(y_{n}\) to \(y(x_{n})\), \(x_{n} = x_{0} + nh\), for a fixed \(h \gt 0\) and \(n = 1, 2, 3, \ldots\), using the recursion formula

\(y_{n} = y_{n-1} + ak_{1} + bk_{2}\), where

\(k_{1} = hf(x_{n-1}, y_{n-1})\) and \(k_{2} = hf(x_{n-1} + \alpha h, y_{n-1} + \beta k_{1})\).

Which one of the following choices of \(a, b, \alpha, \beta\) for the above recursion formula gives the Runge-Kutta method of order 2 ?

Exam Year(s)

GATE Mathematics - 2024,

Answer: C

The second-order Runge-Kutta choice is \(a = 0.25, b = 0.75, \alpha = 2/3, \beta = 2/3\).

Matching the Taylor expansion of \(y(x_{n})\) to second order requires

\[ \begin{aligned} a + b &= 1 \\ b\alpha &= \tfrac{1}{2},\quad b\beta = \tfrac{1}{2} \end{aligned} \]

For \(a = 0.25, b = 0.75, \alpha = \beta = 2/3\): \(a + b = 1\) and \(b\alpha = b\beta = 0.5\). This is Ralston's method.

\(a = b = 1\) gives \(a + b = 2\). \(a = b = 0.5, \alpha = \beta = 2\) gives \(b\alpha = 1\). \(a = b = 0.5, \alpha = 1, \beta = 2\) gives \(b\beta = 1\). Each fails a condition.

Please log in or register to report this question.

Loading…
Tags: Numerical Solution of ODEs Questions and Answers || Numerical Solution of ODEs MCQ Questions and Answers || Numerical Solution of ODEs GK Questions and Answers || Numerical Solution of ODEs GK MCQ Questions || Numerical Solution of ODEs Multiple Choice Questions and Answers || Numerical Solution of ODEs GK || GK on Numerical Solution of ODEs || Numerical Methods Questions and Answers || Numerical Methods MCQ Questions and Answers || Numerical Methods GK Questions and Answers || GK on Numerical Methods