Problem 1.
Solve the following differential equation
y′ = − x2y, y(0) = 1,
by:
(a) Exactly (analytically).
(b) Euler's method.
(c) Runge-Kutta method.
and plot the three results in a single graph. Use 0 ≤ x ≤ 1 and h = 0.1.
Use the following syntax:
plot [0:1] "data1.txt" with line, "data2.txt" w l, sin(x)
where "data1.txt" contains data from the Euler method and "data2.txt" contains data from the R-K method.