Differential Equations Quiz: Eulers Method
18 questions · exam conditions
0:00
Eulers MethodQuestion 1 of 18

Euler's method is used to approximate y(2)y(2) for the initial value problem y=y+1y' = y+1, y(0)=0y(0) = 0. With a step size hh, the global error in the approximation is EE. If the step size is reduced to h/3h/3, what will be the approximate new global error?

E/9E/9
E/3E/3
3E3E
E/3E/\sqrt{3}
← Back to quizzes

Differential Equations Quiz

Differential Equations Quiz: Eulers Method

Practice Eulers Method in Differential Equations with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Eulers Method, giving you a quick way to practice the rules, question types, and explanations that matter most for Differential Equations.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

Euler's method is used to approximate y(2)y(2) for the initial value problem y=y+1y' = y+1, y(0)=0y(0) = 0. With a step size hh, the global error in the approximation is EE. If the step size is reduced to h/3h/3, what will be the approximate new global error?

  1. E/9E/9
  2. E/3E/3 (correct answer)
  3. 3E3E
  4. E/3E/\sqrt{3}
Explanation: Euler's method is a first-order method, which means its global truncation error is approximately proportional to the step size hh. We can write this relationship as EChE \approx C \cdot h for some constant CC. Let the initial error be E1E_1 with step size h1=hh_1=h, so E1=EChE_1 = E \approx C \cdot h. Let the new error be E2E_2 with step size h2=h/3h_2 = h/3. Then E2Ch2=C(h/3)=(Ch)/3E/3E_2 \approx C \cdot h_2 = C \cdot (h/3) = (C \cdot h)/3 \approx E/3. Therefore, reducing the step size by a factor of 3 reduces the global error by approximately the same factor.

Question 2

One step of Euler's method with a step size of h=0.2h=0.2 is used to approximate y(1.2)y(1.2) for the initial value problem y+2y=3xy' + 2y = 3x, starting from y(1)=y0y(1)=y_0. If the resulting approximation is y1=4y_1 = 4, what is the value of the initial condition y0y_0?

  1. 17/317/3 (correct answer)
  2. 17/717/7
  3. 10/310/3
  4. 55
Explanation: First, rewrite the differential equation in the form y=f(x,y)y' = f(x, y): y=3x2yy' = 3x - 2y. The initial point is (x0,y0)=(1,y0)(x_0, y_0) = (1, y_0), the step size is h=0.2h=0.2, and the result of the first step is y1=y(1.2)4y_1 = y(1.2) \approx 4. The formula for one step of Euler's method is y1=y0+hf(x0,y0)y_1 = y_0 + h \cdot f(x_0, y_0). Substituting the known values: 4=y0+0.2f(1,y0)4 = y_0 + 0.2 \cdot f(1, y_0). The function is f(1,y0)=3(1)2y0=32y0f(1, y_0) = 3(1) - 2y_0 = 3 - 2y_0. So the equation becomes: 4=y0+0.2(32y0)4 = y_0 + 0.2(3 - 2y_0). Now, we solve for y0y_0: 4=y0+0.60.4y04 = y_0 + 0.6 - 0.4y_0 3.4=0.6y03.4 = 0.6y_0 y0=3.4/0.6=34/6=17/3y_0 = 3.4 / 0.6 = 34/6 = 17/3.

Question 3

Consider the initial value problem y=2yy' = -2y, y(0)=1y(0)=1. The true solution, y(x)=e2xy(x)=e^{-2x}, approaches 0 as xx \to \infty. If Euler's method is applied with a step size h=1.2h=1.2, what is the long-term behavior of the sequence of approximations yny_n?

  1. yny_n approaches 0.
  2. yny_n approaches a non-zero constant.
  3. yny_n grows without bound.
  4. yny_n oscillates with increasing amplitude. (correct answer)
Explanation: The recurrence relation for Euler's method applied to y=2yy'=-2y is yn+1=yn+h(2yn)=yn(12h)y_{n+1} = y_n + h(-2y_n) = y_n(1-2h). This is a geometric sequence with ratio r=12hr = 1-2h. The long-term behavior depends on the value of this ratio. With h=1.2h=1.2, the ratio is r=12(1.2)=12.4=1.4r = 1 - 2(1.2) = 1 - 2.4 = -1.4. The sequence of approximations is given by yn=y0(r)n=1(1.4)ny_n = y_0(r)^n = 1(-1.4)^n. Since the base of the exponentiation, -1.4, is negative, the sign of yny_n will alternate between positive and negative, meaning the sequence oscillates. Since the magnitude of the base, 1.4=1.4>1|-1.4| = 1.4 > 1, the amplitude of these oscillations will increase without bound. Therefore, yny_n oscillates with increasing amplitude.

Question 4

The approximation for y(1)y(1) is computed for the initial value problem y=y2y' = y^2, y(0)=1y(0)=-1 using Euler's method with nn steps. Let yny_n be the resulting approximation. What is the value of limnyn\lim_{n \to \infty} y_n?

  1. 1/2-1/2 (correct answer)
  2. 00
  3. 1-1
  4. -\infty
Explanation: The problem asks for the limit of the Euler's method approximation as the number of steps nn goes to infinity. As nn \to \infty, the step size h=(10)/nh = (1-0)/n approaches 0. In the limit as h0h \to 0, the approximation from Euler's method converges to the true solution. Therefore, we need to find the true value of y(1)y(1). The differential equation is separable: dy/dx=y2    y2dy=dxdy/dx = y^2 \implies y^{-2} dy = dx. Integrating both sides gives y1=x+C-y^{-1} = x + C, or y(x)=1x+Cy(x) = -\frac{1}{x+C}. We use the initial condition y(0)=1y(0)=-1 to find CC: 1=10+C    C=1-1 = -\frac{1}{0+C} \implies C=1. The true solution is y(x)=1x+1y(x) = -\frac{1}{x+1}. The value of the solution at x=1x=1 is y(1)=11+1=12y(1) = -\frac{1}{1+1} = -\frac{1}{2}. Since limnyn=y(1)\lim_{n \to \infty} y_n = y(1), the limit is 1/2-1/2.

Question 5

Using Euler's method with a step size of h=1h=1, an approximation for the solution to the initial value problem y=x2yy' = x - 2y, y(0)=1y(0)=1 is calculated. What is the value of the second approximation, y2y_2, which corresponds to an approximation of y(2)y(2)?

  1. 1-1
  2. 3-3
  3. 2 (correct answer)
  4. 3
Explanation: We are given (x0,y0)=(0,1)(x_0, y_0) = (0, 1), h=1h=1, and f(x,y)=x2yf(x, y) = x - 2y. The formula for Euler's method is yn+1=yn+hf(xn,yn)y_{n+1} = y_n + h \cdot f(x_n, y_n). Step 1: Find y1y(1)y_1 \approx y(1). x0=0,y0=1x_0 = 0, y_0 = 1. The slope at this point is f(0,1)=02(1)=2f(0, 1) = 0 - 2(1) = -2. y1=y0+hf(x0,y0)=1+1(2)=1y_1 = y_0 + h \cdot f(x_0, y_0) = 1 + 1 \cdot (-2) = -1. So, the first approximation point is (x1,y1)=(1,1)(x_1, y_1) = (1, -1). Step 2: Find y2y(2)y_2 \approx y(2). x1=1,y1=1x_1 = 1, y_1 = -1. The slope at this new point is f(1,1)=12(1)=1+2=3f(1, -1) = 1 - 2(-1) = 1 + 2 = 3. y2=y1+hf(x1,y1)=1+1(3)=2y_2 = y_1 + h \cdot f(x_1, y_1) = -1 + 1 \cdot (3) = 2. Thus, the second approximation is y2=2y_2 = 2.

Question 6

Consider two initial value problems, both approximated using Euler's method with the same small step size hh over the interval [0,1][0, 1]. IVP 1: y=yy' = y, y(0)=1y(0)=1 IVP 2: z=2zz' = 2z, z(0)=1z(0)=1 Let Ey(1)E_y(1) and Ez(1)E_z(1) be the global errors for the respective approximations at x=1x=1. How are the magnitudes of these errors, Ey(1)|E_y(1)| and Ez(1)|E_z(1)|, most likely to compare?

  1. Ey(1)>Ez(1)|E_y(1)| > |E_z(1)|
  2. Ey(1)<Ez(1)|E_y(1)| < |E_z(1)| (correct answer)
  3. Ey(1)Ez(1)|E_y(1)| \approx |E_z(1)|
  4. The relationship cannot be determined without knowing the value of hh.
Explanation: The error in Euler's method is closely related to the magnitude of the second derivative of the solution, which measures the curve's concavity. A larger second derivative implies the curve bends away from its tangent line more sharply, leading to a larger error in the linear approximation. For IVP 1, the solution is y(x)=exy(x) = e^x. The second derivative is y(x)=exy''(x) = e^x. For IVP 2, the solution is z(x)=e2xz(x) = e^{2x}. The second derivative is z(x)=4e2xz''(x) = 4e^{2x}. Over the interval [0,1][0, 1], the value of z(x)=4e2xz''(x) = 4e^{2x} is always significantly larger than y(x)=exy''(x) = e^x. Because the solution curve for IVP 2 is much more concave up than the solution for IVP 1, its approximation by straight line segments will be less accurate. Therefore, the magnitude of the global error for IVP 2 will be larger than that for IVP 1, meaning Ez(1)>Ey(1)|E_z(1)| > |E_y(1)|.

Question 7

The initial value problem y=xy2y' = x - y^2, y(0)=1y(0)=1 is approximated using Euler's method with a small positive step size hh. Which of the following statements is true about the approximation yE(x)y_E(x) for xx in a small interval just greater than 0?

  1. yE(x)y_E(x) will be an underestimate of the true solution y(x)y(x). (correct answer)
  2. yE(x)y_E(x) will be an overestimate of the true solution y(x)y(x).
  3. yE(x)y_E(x) will be equal to the true solution y(x)y(x).
  4. The relationship between yE(x)y_E(x) and y(x)y(x) cannot be determined without knowing the value of hh.
Explanation: The error behavior of Euler's method depends on the concavity of the solution curve, which is determined by the sign of the second derivative, yy''. Given y=xy2y' = x - y^2, we can find yy'' using implicit differentiation with respect to xx: y=ddx(xy2)=12yyy'' = \frac{d}{dx}(x - y^2) = 1 - 2y \cdot y'. Substituting the expression for yy', we get y=12y(xy2)=12xy+2y3y'' = 1 - 2y(x - y^2) = 1 - 2xy + 2y^3. At the initial point (x0,y0)=(0,1)(x_0, y_0) = (0, 1), we have y(0)=12(0)(1)+2(1)3=3y''(0) = 1 - 2(0)(1) + 2(1)^3 = 3. Since y>0y'' > 0 at the initial point, the solution curve is concave up. Euler's method uses tangent line segments to approximate the curve. For a concave up function, the tangent lines lie below the curve, resulting in an underestimate.

Question 8

Consider the initial value problem y=cos(x)yy' = \cos(x) - y, with y(0)=0y(0)=0. Let yE(x)y_E(x) be the approximation of the true solution y(x)y(x) using Euler's method with a small positive step size. Which of the following statements about the error is true for the approximation near x=0x=0?

  1. The method will initially produce an underestimate because y(0)=0y(0)=0.
  2. The method will initially produce an overestimate because the solution is initially concave down. (correct answer)
  3. The method will produce the exact solution because cos(x)\cos(x) is an even function.
  4. The error will initially be zero and then become an underestimate for all x>0x>0.
Explanation: The nature of the error in Euler's method (overestimate vs. underestimate) depends on the concavity of the solution curve, determined by the sign of yy''. We have y=cos(x)yy' = \cos(x) - y. Differentiating with respect to xx gives y=sin(x)yy'' = -\sin(x) - y'. Substituting yy' yields y=sin(x)(cos(x)y)=ysin(x)cos(x)y'' = -\sin(x) - (\cos(x) - y) = y - \sin(x) - \cos(x). At the initial point (x0,y0)=(0,0)(x_0, y_0) = (0, 0), the second derivative is y(0)=0sin(0)cos(0)=001=1y''(0) = 0 - \sin(0) - \cos(0) = 0 - 0 - 1 = -1. Since y<0y'' < 0 at the starting point, the solution curve is concave down. Euler's method follows tangent lines, which lie above a concave down curve. Therefore, for xx slightly greater than 0, the approximation will be an overestimate.

Question 9

For a given initial value problem, Euler's method with a step size of h=0.2h = 0.2 is used to approximate y(T)y(T), and the resulting global error is found to be approximately 0.080.08. If the step size is changed to h=0.05h = 0.05, what is the expected global error for the new approximation of y(T)y(T)?

  1. 0.0050.005
  2. 0.010.01
  3. 0.020.02 (correct answer)
  4. 0.040.04
Explanation: Euler's method is a first-order method, which means its global truncation error is approximately proportional to the step size hh. Let the error be EhChE_h \approx C \cdot h for some constant CC. We are given that for h1=0.2h_1 = 0.2, the error E0.2E_{0.2} is 0.080.08. We can estimate CC as CE0.2/h1=0.08/0.2=0.4C \approx E_{0.2} / h_1 = 0.08 / 0.2 = 0.4. Now, we can predict the error for the new step size h2=0.05h_2 = 0.05: E0.05Ch2=0.40.05=0.02E_{0.05} \approx C \cdot h_2 = 0.4 \cdot 0.05 = 0.02. Alternatively, since the error is proportional to hh, the ratio of the new error to the old error should be the same as the ratio of the new step size to the old step size: Enew/Eold=hnew/holdE_{new} / E_{old} = h_{new} / h_{old}. So, Enew=Eold(hnew/hold)=0.08(0.05/0.2)=0.08(1/4)=0.02E_{new} = E_{old} \cdot (h_{new} / h_{old}) = 0.08 \cdot (0.05 / 0.2) = 0.08 \cdot (1/4) = 0.02.

Question 10

Euler's method with a step size of h=0.2h=0.2 is used to approximate the solution to the initial value problem y=xyy' = x - y with y(0)=2y(0) = 2. What is the resulting approximation for y(0.4)y(0.4)?

  1. 1.201.20
  2. 1.321.32 (correct answer)
  3. 1.601.60
  4. 1.281.28
Explanation: We need to perform two steps of Euler's method. Let (x0,y0)=(0,2)(x_0, y_0) = (0, 2) and h=0.2h=0.2. The formula is yn+1=yn+hf(xn,yn)y_{n+1} = y_n + h \cdot f(x_n, y_n). Step 1: Find y1y(0.2)y_1 \approx y(0.2). x0=0x_0 = 0, y0=2y_0 = 2. The slope is f(x0,y0)=02=2f(x_0, y_0) = 0 - 2 = -2. y1=y0+hf(x0,y0)=2+0.2(2)=20.4=1.6y_1 = y_0 + h \cdot f(x_0, y_0) = 2 + 0.2(-2) = 2 - 0.4 = 1.6. So, (x1,y1)=(0.2,1.6)(x_1, y_1) = (0.2, 1.6). Step 2: Find y2y(0.4)y_2 \approx y(0.4). x1=0.2x_1 = 0.2, y1=1.6y_1 = 1.6. The slope is f(x1,y1)=0.21.6=1.4f(x_1, y_1) = 0.2 - 1.6 = -1.4. y2=y1+hf(x1,y1)=1.6+0.2(1.4)=1.60.28=1.32y_2 = y_1 + h \cdot f(x_1, y_1) = 1.6 + 0.2(-1.4) = 1.6 - 0.28 = 1.32. Thus, the approximation for y(0.4)y(0.4) is 1.321.32.

Question 11

Consider the initial value problem y=2yy' = 2y, y(0)=1y(0)=1. Let A1A_1 be the approximation of y(0.2)y(0.2) using Euler's method with one step (h=0.2h=0.2), and let A2A_2 be the approximation of y(0.2)y(0.2) using two steps (h=0.1h=0.1). What is the value of A2A1A_2 - A_1?

  1. 0.04-0.04
  2. 0.000.00
  3. 0.040.04 (correct answer)
  4. 0.240.24
Explanation: First, we calculate A1A_1 with h=0.2h=0.2. The initial point is (x0,y0)=(0,1)(x_0, y_0) = (0, 1). The slope is f(0,1)=2(1)=2f(0, 1) = 2(1) = 2. A1=y1=y0+hf(x0,y0)=1+0.2(2)=1.4A_1 = y_1 = y_0 + h \cdot f(x_0, y_0) = 1 + 0.2(2) = 1.4. Next, we calculate A2A_2 with h=0.1h=0.1. This requires two steps. Step 1: from x=0x=0 to x=0.1x=0.1. (x0,y0)=(0,1)(x_0, y_0) = (0, 1). The slope is f(0,1)=2(1)=2f(0, 1) = 2(1) = 2. y1=1+0.1(2)=1.2y_1 = 1 + 0.1(2) = 1.2. The new point is (0.1,1.2)(0.1, 1.2). Step 2: from x=0.1x=0.1 to x=0.2x=0.2. (x1,y1)=(0.1,1.2)(x_1, y_1) = (0.1, 1.2). The slope is f(0.1,1.2)=2(1.2)=2.4f(0.1, 1.2) = 2(1.2) = 2.4. A2=y2=y1+hf(x1,y1)=1.2+0.1(2.4)=1.2+0.24=1.44A_2 = y_2 = y_1 + h \cdot f(x_1, y_1) = 1.2 + 0.1(2.4) = 1.2 + 0.24 = 1.44. Finally, we find the difference: A2A1=1.441.4=0.04A_2 - A_1 = 1.44 - 1.4 = 0.04.

Question 12

Let Euler's method be used to approximate the solution to the initial value problem y=cos(x)y' = \cos(x) with y(0)=0y(0)=0 on the interval [0,4][0, 4]. Which statement best describes the error of the approximation for y(4)y(4)?

  1. The approximation is a guaranteed overestimate.
  2. The approximation is a guaranteed underestimate.
  3. The approximation is exact because the derivative function is simple.
  4. The approximation is neither a guaranteed overestimate nor a guaranteed underestimate. (correct answer)
Explanation: When analyzing Euler's method error behavior, you need to understand how the method's linear approximation interacts with the actual curve's concavity over the entire interval. Euler's method uses tangent line segments to approximate the solution. Whether this creates an overestimate or underestimate depends on the concavity of the true solution. For y=cos(x)y' = \cos(x) with y(0)=0y(0) = 0, the exact solution is y=sin(x)y = \sin(x). The key insight is examining y=sin(x)y'' = -\sin(x) over [0,4][0,4]. The second derivative changes sign multiple times: it's negative on (0,π)(0,\pi), positive on (π,2π)(\pi,2\pi), negative on (2π,3π)(2\pi,3\pi), and positive on (3π,4](3\pi,4] since 4>3π4 > 3\pi. When the solution is concave down (y<0y'' < 0), Euler's method overestimates; when concave up (y>0y'' > 0), it underestimates. Answer A is wrong because the solution isn't always concave down over [0,4][0,4] - there are intervals where y>0y'' > 0. Answer B is wrong for the same reason in reverse - the solution isn't always concave up. Answer C is incorrect because Euler's method is only exact for linear functions, and sin(x)\sin(x) is nonlinear despite having a "simple" derivative. Answer D is correct because the concavity changes multiple times over the interval, so Euler's method sometimes overestimates and sometimes underestimates, making the cumulative error at x=4x = 4 unpredictable in sign. Study tip: For Euler's method error analysis, always check the second derivative of the exact solution to determine concavity changes over the entire interval.

Question 13

Consider the initial value problem y=yx2y' = y - x^2 with y(0)=2y(0) = 2. An approximation of the solution is computed using Euler's method with a small step size h>0h > 0. For x>0x > 0 near x=0x=0, which of the following statements is true about the approximation?

  1. The approximation will be an overestimate of the true solution.
  2. The approximation will be an underestimate of the true solution. (correct answer)
  3. The approximation will be exact because the differential equation is linear.
  4. It is not possible to determine if the approximation is an overestimate or underestimate without knowing the step size hh.
Explanation: To determine if Euler's method overestimates or underestimates, we examine the concavity of the solution curve by finding the second derivative, yy''. Given y=yx2y' = y - x^2, we differentiate with respect to xx: y=ddx(yx2)=y2xy'' = \frac{d}{dx}(y - x^2) = y' - 2x. Substituting the expression for yy', we get y=(yx2)2x=yx22xy'' = (y - x^2) - 2x = y - x^2 - 2x. We evaluate the sign of yy'' at the initial point (0,2)(0, 2): y(0)=2022(0)=2y''(0) = 2 - 0^2 - 2(0) = 2. Since y(0)>0y''(0) > 0, the solution curve is concave up near x=0x=0. Euler's method works by following tangent lines. For a concave up curve, the tangent line at any point lies below the curve. Therefore, each step of Euler's method will fall below the true solution, resulting in an underestimate.

Question 14

When using Euler's method, the global error at step nn is generally not equal to the sum of the local errors from steps 1 to nn. Which of the following is the primary reason for this discrepancy?

  1. The step size hh must be variable for the errors to be additive, but it is typically kept constant.
  2. Local error is of order O(h2)O(h^2) while global error is of order O(h)O(h), and these orders are mathematically incompatible.
  3. Each step's calculation begins from a point that is already an approximation, not a point on the true solution curve. (correct answer)
  4. Round-off errors from computer arithmetic accumulate and become larger than the local truncation errors.
Explanation: Local error at a step is defined as the error introduced in that single step, under the assumption that the starting point of the step lies on the true solution curve. However, in practice, after the first step, every subsequent step begins from a point (xn,yn)(x_n, y_n) that is already an approximation and is not on the true curve. The slope f(xn,yn)f(x_n, y_n) is calculated at this approximate point, not at the correct point (xn,y(xn))(x_n, y(x_n)) on the true solution. This propagation and compounding of errors from previous steps is the fundamental reason why the total global error is not simply the sum of the individual local errors.

Question 15

Euler's method with step size hh is applied to the IVP y=2xy' = 2x, y(0)=0y(0)=0. The approximation for y(1)y(1) is found to be 0.90.9. What was the step size hh used?

  1. 0.050.05
  2. 0.200.20
  3. 0.150.15
  4. 0.100.10 (correct answer)
Explanation: When you encounter Euler's method problems, you're working with a numerical technique that approximates solutions to differential equations by taking small linear steps. The key is understanding how the step size affects the approximation accuracy. For the IVP y=2xy' = 2x, y(0)=0y(0) = 0, Euler's method uses the formula yn+1=yn+hf(xn,yn)y_{n+1} = y_n + h \cdot f(x_n, y_n), where f(x,y)=2xf(x,y) = 2x. Starting at (0,0)(0,0), each step adds h2xnh \cdot 2x_n to the current yy-value. With n=1hn = \frac{1}{h} steps to reach x=1x = 1, the approximation becomes: y1h[2(0)+2(h)+2(2h)++2((n1)h)]y_1 \approx h[2(0) + 2(h) + 2(2h) + \ldots + 2((n-1)h)] =2h2[0+1+2++(n1)]=2h2(n1)n2=h2n(n1)= 2h^2[0 + 1 + 2 + \ldots + (n-1)] = 2h^2 \cdot \frac{(n-1)n}{2} = h^2n(n-1) Since n=1hn = \frac{1}{h}, this becomes h21h(1h1)=h(1h1)=1hh^2 \cdot \frac{1}{h} \cdot (\frac{1}{h} - 1) = h(\frac{1}{h} - 1) = 1 - h. Setting 1h=0.91 - h = 0.9 gives us h=0.1h = 0.1, which is answer choice D. Choice A (h=0.05h = 0.05) would give y(1)0.95y(1) \approx 0.95, choice B (h=0.20h = 0.20) would give y(1)0.8y(1) \approx 0.8, and choice C (h=0.15h = 0.15) would give y(1)0.85y(1) \approx 0.85. Strategy tip: For Euler's method problems, always set up the systematic calculation pattern first. The arithmetic series that emerges from the step-by-step process often simplifies dramatically, making these problems more manageable than they initially appear.

Question 16

For the initial value problem y=2x+yy' = 2x + y with y(0)=1y(0) = 1, a single step of Euler's method gives the approximation y(h)1.2y(h) \approx 1.2. What was the step size hh used?

  1. 0.100.10
  2. 0.150.15
  3. 0.170.17
  4. 0.200.20 (correct answer)
Explanation: Euler's method formula for one step is y1=y0+hf(x0,y0)y_1 = y_0 + h \cdot f(x_0, y_0). We are given the initial condition (x0,y0)=(0,1)(x_0, y_0) = (0, 1) and the result y1=1.2y_1 = 1.2. The function defining the slope is f(x,y)=2x+yf(x, y) = 2x + y. First, we evaluate the slope at the initial point: f(x0,y0)=f(0,1)=2(0)+1=1f(x_0, y_0) = f(0, 1) = 2(0) + 1 = 1. Now, we plug the known values into the formula: 1.2=1+h(1)1.2 = 1 + h \cdot (1). Solving for hh, we get 1.21=h1.2 - 1 = h, which means h=0.2h = 0.2.

Question 17

To approximate y(0.1)y(0.1) for the initial value problem 2yy=4x2y' - y = 4x, y(0)=3y(0) = 3, one step of Euler's method is used with h=0.1h=0.1. What is the resulting approximation?

  1. 3.153.15 (correct answer)
  2. 3.003.00
  3. 2.852.85
  4. 3.303.30
Explanation: When you encounter Euler's method problems, you're applying a fundamental numerical technique that approximates solutions to differential equations by taking small linear steps based on the slope at each point. First, you need to express the differential equation in the form y=f(x,y)y' = f(x,y). Starting with 2yy=4x2y' - y = 4x, solve for yy': y=y+4x2y' = \frac{y + 4x}{2}. This gives you the slope function. Euler's method uses the formula: yn+1=yn+hf(xn,yn)y_{n+1} = y_n + h \cdot f(x_n, y_n), where hh is the step size. With your initial condition y(0)=3y(0) = 3, you have x0=0x_0 = 0, y0=3y_0 = 3, and h=0.1h = 0.1. Calculate the slope at the initial point: f(0,3)=3+4(0)2=32=1.5f(0,3) = \frac{3 + 4(0)}{2} = \frac{3}{2} = 1.5 Apply Euler's formula: y1=y0+hf(x0,y0)=3+0.1(1.5)=3+0.15=3.15y_1 = y_0 + h \cdot f(x_0, y_0) = 3 + 0.1(1.5) = 3 + 0.15 = 3.15 This confirms answer A) 3.153.15 is correct. Answer B) 3.003.00 would result from forgetting to add the increment (hfh \cdot f) to the initial value. Answer C) 2.852.85 likely comes from subtracting instead of adding the increment. Answer D) 3.303.30 suggests doubling the correct increment, possibly from miscalculating the slope function. Remember: Euler's method always moves in the direction of the slope. Double-check your slope calculation by carefully solving for yy', and verify you're adding (not subtracting) the increment hf(x,y)h \cdot f(x,y).

Question 18

Consider the initial value problem y=3y' = 3 with y(1)=5y(1) = 5. If Euler's method is used to approximate y(4)y(4), what can be said about the error of the approximation?

  1. The error is exactly zero for any step size hh. (correct answer)
  2. The error is non-zero and is proportional to the step size hh.
  3. The error is non-zero and is proportional to the square of the step size, h2h^2.
  4. The error is positive because the solution is an increasing function.
Explanation: The exact solution to the differential equation y=3y' = 3 with y(1)=5y(1) = 5 can be found by direct integration: y(x)=3x+Cy(x) = 3x + C. Using the initial condition, 5=3(1)+C5 = 3(1) + C, which gives C=2C=2. The exact solution is the line y(x)=3x+2y(x) = 3x + 2. Euler's method approximates the solution curve by taking steps along tangent lines. For a linear function, the tangent line at any point is the function itself. Therefore, each step of Euler's method will land exactly on the true solution line, regardless of the step size hh. As a result, the error will be exactly zero.