For \(x>0\) and \(y>0\), the variables \(x\) and \(y\) are related by the differential equation \(\frac{\mathrm{d}y}{\mathrm{d}x}=y^3-\frac{y}{x}\), and \(y=2\) when \(x=1\).
Euler’s method gives a numerical estimate of a solution curve. Starting from a known point, it moves a short distance \(h\) in the \(x\)-direction along a straight line whose gradient is the value of \(\frac{\mathrm{d}y}{\mathrm{d}x}\) at that point.
Each step therefore increases the estimate of \(y\) by \(h\) multiplied by the gradient at the present point. Write \(y_n\) for the estimate of \(y\) when \(x=x_n\), where \(x_0=1\) and \(y_0=2\). Applied to this differential equation, the method is
\[x_{n+1}=x_n+h,\qquad y_{n+1}=y_n+h\left(y_n^3-\frac{y_n}{x_n}\right).\]
The gradient is recalculated from the latest values of \(x\) and \(y\) before every new step, and unrounded values are carried forward throughout.
Video solution locked
A free account saves your progress; this video needs a course plan.
680+ questions here come with free worked solutions. A free account saves your questions and progress; this one needs a course plan.
Create a free account to practise similar questions.
Need help? Join our JC Math tuition classes.
Learn more