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 , every method multiplies by a fixed factor per step, which makes its behavior easy to compute exactly.
Check
Forward Euler steps from with = 0.1.
(a)
What is 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 from 1 with = 0.1.
(a)
What factor does each step multiply by?
(b)
What is after 5 steps?
Check
The trapezoidal rule steps with = 4.
(a)
What factor does each step multiply by?
Check
One RK4 step of size 0.5 on from 1.
(a)
What does it give?
(b)
How far is it from ?
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 with = 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 and 0.365 with step for the same quantity.
(a)
What does Richardson extrapolation give?
Check
One forward Euler step of size 0.1 on from 1.
(a)
What is its local error?
Check
To reach error 0.0001 at , Euler's error is about and RK4's about .
(a)
How many Euler steps are needed?
(b)
How many RK4 steps?
Check
RK4 is stable on for up to about 2.785.
(a)
What is the largest stable step?
Check
Backward Euler steps an RC circuit with = 1 ms using = 0.5 ms.
(a)
What time constant does the simulation actually show?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
The trapezoidal rule steps a fast mode with = 20.
(a)
What is the size of its per-step factor?
(b)
How many steps until that mode's ringing falls below 1% of its start?
Check
Heun's method (RK2) steps from 1 with = 0.2.
(a)
What does one step give?
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.