A847 of 55
0 XP
  1. Hook
  2. Problems

A8 · Problem set 10

Problem set 10: numerical solutions and stiffness

These problems use lessons 45 and 46: stepping methods, their accuracy and order, and the stability limits that make stiff circuits hard. On the test equation y˙=−ay, every method multiplies by a fixed factor per step, which makes its behavior easy to compute exactly.

Check

Forward Euler steps y˙=−1y from y=1 with h = 0.1.

(a)

What is y after 20 steps?

(b)

What is the error?

Check

A circuit's fastest time constant is 10 µs.

(a)

What is the largest stable forward Euler step?

Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.

Check

Backward Euler steps y˙=−10y from 1 with h = 0.1.

(a)

What factor does each step multiply by?

(b)

What is y after 5 steps?

Check

The trapezoidal rule steps y˙=−ay with ah = 4.

(a)

What factor does each step multiply by?

Check

One RK4 step of size 0.5 on y˙=−y from 1.

(a)

What does it give?

(b)

How far is it from e−h?

Check

Halving the step divides a method's error at a fixed time by 4.

(a)

What is the method's order?

Check

A circuit has a fast time constant of 1 µs and must be simulated for 1 s.

(a)

At least how many forward Euler steps does that take?

Check

Forward Euler steps the oscillator y¨=−ω2y with ωh = 0.1.

(a)

By what factor does the amplitude grow each step?

(b)

By what factor after 100 steps?

Check

Euler gives 0.36 with step h and 0.365 with step h/2 for the same quantity.

(a)

What does Richardson extrapolation give?

Check

One forward Euler step of size 0.1 on y˙=−y from 1.

(a)

What is its local error?

Check

To reach error 0.0001 at t=1, Euler's error is about 1h and RK4's about 0.01h4.

(a)

How many Euler steps are needed?

(b)

How many RK4 steps?

Check

RK4 is stable on y˙=−100y for ah up to about 2.785.

(a)

What is the largest stable step?

Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.

Practice

Keep practicing

15 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.