For NEW x₀=(1,1)ᵀ, which modal description is correct?
c₀=(0,1)ᵀ; only the −2 mode
c₀=(1,2)ᵀ; both modes
c₀=(1,1)ᵀ; both modes
✓
Correct A. Use the inverse basis.
Solution 1 / 5
1 · Invert the coordinate map
x₀: new initial state (1,1)ᵀ · V,Λ: eigenvector matrix and matching eigenvalues · c₀,c(t): initial and evolving modal coordinates
Because x=Vc, solve for c using the inverse, not the transpose. $$V=\begin{bmatrix}1&1\\0&1\end{bmatrix},\quad V^{-1}=\begin{bmatrix}1&-1\\0&1\end{bmatrix}.$$
Solution 2 / 5
2 · Transform the new start
x₀: new initial state (1,1)ᵀ · V,Λ: eigenvector matrix and matching eigenvalues · c₀,c(t): initial and evolving modal coordinates
Multiply each row of the inverse by the initial column. $$c_0=V^{-1}\begin{bmatrix}1\\1\end{bmatrix}=\begin{bmatrix}1-1\\1\end{bmatrix}=\begin{bmatrix}0\\1\end{bmatrix}.$$
Solution 3 / 5
3 · Evolve the active mode
x₀: new initial state (1,1)ᵀ · V,Λ: eigenvector matrix and matching eigenvalues · c₀,c(t): initial and evolving modal coordinates
The coefficient of the −1 mode is zero; only the −2 mode remains. $$c(t)=\begin{bmatrix}0e^{-t}\\1e^{-2t}\end{bmatrix}=\begin{bmatrix}0\\e^{-2t}\end{bmatrix}.$$
Solution 4 / 5
4 · Return to state coordinates
x₀: new initial state (1,1)ᵀ · V,Λ: eigenvector matrix and matching eigenvalues · c₀,c(t): initial and evolving modal coordinates
Both state components are equal even though only one modal coordinate is active. $$x(t)=Vc(t)=\begin{bmatrix}e^{-2t}\\e^{-2t}\end{bmatrix},\qquad x(0)=\begin{bmatrix}1\\1\end{bmatrix}.$$
Solution 5 / 5
Answer · A
x₀: new initial state (1,1)ᵀ · V,Λ: eigenvector matrix and matching eigenvalues · c₀,c(t): initial and evolving modal coordinates
A recognizes the second eigenvector.
B uses the transpose instead of the inverse of a nonorthogonal basis.
C copies state coordinates without changing basis.
A: given constant state matrix · x(t),x₀: candidate trajectory and required initial state · t: continuous time
Use the product rule for the first component. $$\frac{d}{dt}(te^{-t})=e^{-t}-te^{-t}=(1-t)e^{-t},\quad\frac{d}{dt}e^{-t}=-e^{-t}.$$
Solution 2 / 5
2 · Compute the model rate
A: given constant state matrix · x(t),x₀: candidate trajectory and required initial state · t: continuous time
Multiply A by the candidate and compare component by component. $$Ax=\begin{bmatrix}-1&1\\0&-1\end{bmatrix}\begin{bmatrix}te^{-t}\\e^{-t}\end{bmatrix}=\begin{bmatrix}(1-t)e^{-t}\\-e^{-t}\end{bmatrix}=\dot x.$$
Solution 3 / 5
3 · Check the start
A: given constant state matrix · x(t),x₀: candidate trajectory and required initial state · t: continuous time
The candidate satisfies the initial value as well as the differential equation. $$x(0)=\begin{bmatrix}0e^0\\e^0\end{bmatrix}=\begin{bmatrix}0\\1\end{bmatrix}=x_0.$$
Solution 4 / 5
4 · Interpret the solution
A: given constant state matrix · x(t),x₀: candidate trajectory and required initial state · t: continuous time · v: eigenvector · I: identity matrix
Here λ=−1 is repeated. Its eigenvectors have only one independent direction. $$(A+I)v=0\ \Rightarrow\ v_2=0\ \Rightarrow\ v=c(1,0)^T,\quad c\ne0.$$
The exponential eventually dominates t. The matrix exponential gives the solution even without an eigenbasis. $$\lim_{t\to\infty}te^{-t}=0,\qquad x(t)=e^{At}x_0.$$
Solution 5 / 5
Answer · C
A: given constant state matrix · x(t),x₀: candidate trajectory and required initial state · t: continuous time
A confuses an incomplete eigenbasis with absence of a solution.
x₁(t),x₂(t): first and second coordinates; subscripts here label coordinates · A: given matrix coupling coordinate 2 into coordinate 1 · s: integration variable
Matrix multiplication gives one constant coordinate and one driven coordinate. $$\dot x=Ax\quad\Longrightarrow\quad\dot x_1=x_2,\quad\dot x_2=0.$$
Solution 2 / 5
2 · Solve the second coordinate
x₁(t),x₂(t): first and second coordinates; subscripts here label coordinates · A: given matrix coupling coordinate 2 into coordinate 1 · s: integration variable
Zero derivative means constant; its initial value is one. $$x_2(t)=x_2(0)+\int_0^t0\,ds=1.$$
Solution 3 / 5
3 · Integrate the first coordinate
x₁(t),x₂(t): first and second coordinates; subscripts here label coordinates · A: given matrix coupling coordinate 2 into coordinate 1 · s: integration variable
The first coordinate starts at zero and has constant derivative one. $$x_1(t)=x_1(0)+\int_0^t1\,ds=0+t=t.$$
Solution 4 / 5
4 · Classify the result
x₁(t),x₂(t): first and second coordinates; subscripts here label coordinates · A: given matrix coupling coordinate 2 into coordinate 1 · s: integration variable
The state grows linearly, despite both eigenvalues being zero. $$x(t)=(t,1)^T,\qquad\|x(t)\|_2=\sqrt{t^2+1}\to\infty.$$
Solution 5 / 5
Answer · B
x₁(t),x₂(t): first and second coordinates; subscripts here label coordinates · A: given matrix coupling coordinate 2 into coordinate 1 · s: integration variable
A ignores coupling between coordinates.
B integrates the constant second coordinate into linear growth.
For Euler, which interval gives decay from EVERY start?
0<h≤1/4
0<h<1/4
0<h<1
✓
Correct B. Both strict bounds must hold.
Solution 1 / 5
1 · Require both modes to decay
λ₁,λ₂: modal rates −2 and −8 · h: shared positive step size · aᵢ: Euler multiplier 1+hλᵢ for mode i
An arbitrary initial state can contain either mode, so both multiplier magnitudes must be below one. $$|1+h\lambda_i|<1\quad\Longleftrightarrow\quad-1<1+h\lambda_i<1.$$
Solution 2 / 5
2 · Bound the slow mode
λ₁,λ₂: modal rates −2 and −8 · h: shared positive step size · aᵢ: Euler multiplier 1+hλᵢ for mode i
Subtract one, divide by −2, and reverse both inequalities. $$-1<1-2h<1\ \Longrightarrow\ -2<-2h<0\ \Longrightarrow\ 0<h<1.$$
Solution 3 / 5
3 · Bound the fast mode
λ₁,λ₂: modal rates −2 and −8 · h: shared positive step size · aᵢ: Euler multiplier 1+hλᵢ for mode i
The same calculation with −8 gives the more restrictive bound. $$-1<1-8h<1\ \Longrightarrow\ -2<-8h<0\ \Longrightarrow\ 0<h<\tfrac14.$$
Solution 4 / 5
4 · Intersect and check the endpoint
λ₁,λ₂: modal rates −2 and −8 · h: shared positive step size · aᵢ: Euler multiplier 1+hλᵢ for mode i
The endpoint is excluded: its fast mode alternates with unchanged magnitude. $$(0,1)\cap(0,\tfrac14)=(0,\tfrac14),\qquad h=\tfrac14\Rightarrow a_2=-1.$$
Solution 5 / 5
Answer · B
λ₁,λ₂: modal rates −2 and −8 · h: shared positive step size · aᵢ: Euler multiplier 1+hλᵢ for mode i
A includes a multiplier minus one, so decay fails.
B intersects both strict modal bounds.
C ignores the restrictive fast mode.
Stability of a linear system — [4] FNC §11.3 · Course example
How many Euler substeps match ONE RK4 step in model calls?
Four, each h/4, over the same interval
One, with step h
Four, each h, over the same interval
✓
Correct A. Match cost AND interval.
Solution 1 / 4
1 · Match the call budget
h: physical interval of one RK4 step; h=0.1 · nE,hE: Euler substep count and substep size · model call: one evaluation of f(x)=−2x · x4,E: state after four Euler substeps
Classical RK4 needs four model calls per step; Euler needs one. $$n_E\times1=4\quad\Longrightarrow\quad n_E=4.$$
Solution 2 / 4
2 · Match the physical interval
h: physical interval of one RK4 step; h=0.1 · nE,hE: Euler substep count and substep size · model call: one evaluation of f(x)=−2x · x4,E: state after four Euler substeps
The four Euler substeps must add up to the same total time h. $$4h_E=h\quad\Longrightarrow\quad h_E=h/4=0.025.$$
Solution 3 / 4
3 · Verify the resulting Euler run
h: physical interval of one RK4 step; h=0.1 · nE,hE: Euler substep count and substep size · model call: one evaluation of f(x)=−2x · x4,E: state after four Euler substeps
For this scalar model, each substep multiplies the state by 0.95. $$x_{4,E}=(1-2h_E)^4x_0=(1-0.05)^4(1)=0.95^4=0.81450625.$$
Solution 4 / 4
Answer · A
h: physical interval of one RK4 step; h=0.1 · nE,hE: Euler substep count and substep size · model call: one evaluation of f(x)=−2x · x4,E: state after four Euler substeps
A matches both cost and interval.
B matches the interval but uses only one call.
C matches cost but advances four times as far.
Function evaluations; order of accuracy — [4] FNC §6.4
Which state and field give a first-order ODE for this model?
x=q; f=−sin q
x=(q,v)ᵀ; f=(v,−sin q)ᵀ
x=(q,v)ᵀ; f=(−sin q,v)ᵀ
✓
Correct B. Keep state/rate order.
Solution 1 / 4
1 · Introduce velocity
q,v: angle and angular velocity · x: complete column state · f(x): state derivative for normalized undamped dynamics
A second-order equation needs both position and velocity to determine the future. $$v=\dot q,\qquad\ddot q=-\sin q\quad\Longrightarrow\quad\dot v=-\sin q.$$
Solution 2 / 4
2 · Stack the state and its rates
q,v: angle and angular velocity · x: complete column state · f(x): state derivative for normalized undamped dynamics
Use the same coordinate order in x and f. $$\begin{gathered}x=\begin{bmatrix}q\\v\end{bmatrix},\\\dot x=f(x)=\begin{bmatrix}\dot q\\\dot v\end{bmatrix}=\begin{bmatrix}v\\-\sin q\end{bmatrix}.\end{gathered}$$
Solution 3 / 4
3 · Apply the given initial state
q,v: angle and angular velocity · x: complete column state · f(x): state derivative for normalized undamped dynamics
The pendulum starts at angle one with zero angular velocity. $$x_0=(1,0)^T,\qquad f(x_0)=(0,-\sin1)^T\approx(0,-0.84147098)^T.$$
Solution 4 / 4
Answer · B
q,v: angle and angular velocity · x: complete column state · f(x): state derivative for normalized undamped dynamics
A omits velocity and mistakes acceleration for angle rate.
B carries both state coordinates and returns their rates in order.
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
The initial angle rate is zero, but the acceleration is nonzero. $$k_1=f(x_0)=(0,-\sin1)^T.$$
Solution 2 / 12
2 · Form the trial state
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
The half-step changes velocity even though the trial angle remains one. $$x_{\rm mid}=x_0+\tfrac h2k_1=(1,-0.05\sin1)^T\approx(1,-0.04207355)^T.$$
Solution 3 / 12
3 · Evaluate the trial rate
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
The trial velocity becomes the nonzero first component of the new rate. $$k_2=f(x_{\rm mid})=(-0.05\sin1,-\sin1)^T.$$
Solution 4 / 12
4 · Compute the next state with midpoint
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
Start from x₀ and advance one full step using k₂. $$x_1=x_0+0.1k_2=(1-0.005\sin1,-0.1\sin1)^T\approx(0.99579265,-0.08414710)^T.$$
Solution 5 / 12
5 · Compare with Euler
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
Euler uses the zero initial velocity for the angle update; midpoint uses the nonzero trial velocity. $$q_{1,E}=1+0.1(0)=1,\qquad q_{1,\rm mid}=1-0.005\sin1<1.$$
Solution 6 / 12
6 · RK4 first two stages
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
For RK4, define a new set of stage rates k₁,…,k₄. Each z is an internal trial state. $$k_1\approx(0,-0.8414709848)^T,\quad z_2=x_0+0.05k_1\approx(1,-0.04207354924)^T.$$
Solution 7 / 12
7 · RK4 second and third rates
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
Evaluate the same field at each trial state. $$k_2=f(z_2)\approx(-0.04207354924,-0.8414709848)^T.\quad z_3=x_0+0.05k_2\approx(0.9978963225,-0.04207354924)^T.$$
Solution 8 / 12
8 · RK4 final trial
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
Use the third rate to build the full-step trial. $$k_3=f(z_3)\approx(-0.04207354924,-0.8403325019)^T,\quad z_4=x_0+0.1k_3\approx(0.9957926451,-0.08403325019)^T.$$
Solution 9 / 12
9 · RK4 final rate
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
The fourth rate is evaluated at the full-step trial, not the accepted state. $$k_4=f(z_4)\approx(-0.08403325019,-0.8391903002)^T.$$
Solution 10 / 12
10 · Weight the four rates
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
The two midpoint rates each receive weight two. $$k_1+2k_2+2k_3+k_4\approx(-0.2523274472,-5.044268259)^T.$$
Solution 11 / 12
11 · Accept the RK4 state
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
Scale the weighted rate sum by h/6, then add it to the original state. $$x_{1,\mathrm{RK4}}=x_0+\frac{0.1}{6}(k_1+2k_2+2k_3+k_4)\approx(0.9957945425,-0.08407113764)^T.$$
Solution 12 / 12
Answer · A
q,v: angle and angular velocity · x₀,h: initial state (1,0)ᵀ and full step 0.1 · kᵢ: model rate at stage i · xmid,zᵢ: midpoint and RK4 trial states
A uses acceleration to form a trial velocity and hence a nonzero angle rate.
B mistakes an internal trial for an extra time interval.
C changes the data; all methods share the same start.
T: common final time, 10 · h,N: step size and integer step count · E,ΔE: energy and its change · kᵢ: RK4 stage rates; x=(q,v)ᵀ
For constant steps, final time is step count times step size. $$T=Nh\quad\Longrightarrow\quad N=T/h.$$
Solution 2 / 8
2 · Halve the step
T: common final time, 10 · h,N: step size and integer step count · E,ΔE: energy and its change · kᵢ: RK4 stage rates; x=(q,v)ᵀ
Keeping T fixed forces the new step count to double. $$h_{\rm new}=h/2,\qquad N_{\rm new}=\frac{T}{h/2}=2\frac Th=2N.$$
Solution 3 / 8
3 · Check with numbers
T: common final time, 10 · h,N: step size and integer step count · E,ΔE: energy and its change · kᵢ: RK4 stage rates; x=(q,v)ᵀ
All three runs end at the same physical time. $$\begin{array}{c|ccc}h&0.2&0.1&0.05\\N=10/h&50&100&200\end{array}$$
Solution 4 / 8
4 · Separate the comparison from its diagnostic
T: common final time, 10 · h,N: step size and integer step count · E,ΔE: energy and its change · kᵢ: RK4 stage rates; x=(q,v)ᵀ
Compute energy error at the prescribed endpoint; stopping at equal energy would compare different times. $$\Delta E_N=E(x_N)-E(x_0),\qquad t_N=T.$$
Solution 5 / 8
5 · Reproduce the Euler column
T: common final time, 10 · h,N: step size and integer step count · E,ΔE: energy and its change · kᵢ: RK4 stage rates; x=(q,v)ᵀ
Start at x₀=(1,0)ᵀ. For k=0,…,N−1, use both components from the old state. $$q_{k+1}=q_k+hv_k,\qquad v_{k+1}=v_k-h\sin q_k.$$
Solution 6 / 8
6 · Reproduce the RK4 column
T: common final time, 10 · h,N: step size and integer step count · E,ΔE: energy and its change · kᵢ: RK4 stage rates; x=(q,v)ᵀ
At every step, evaluate f(q,v)=(v,−sin q)ᵀ at the four stage states. $$k_1=f(x_k),\quad k_2=f(x_k+hk_1/2),\quad k_3=f(x_k+hk_2/2),\quad k_4=f(x_k+hk_3).$$
Solution 7 / 8
7 · Finish each run and evaluate the diagnostic
T: common final time, 10 · h,N: step size and integer step count · E,ΔE: energy and its change · kᵢ: RK4 stage rates; x=(q,v)ᵀ
Repeat the update N=T/h times. The table reports this numerical iteration, not a closed-form trajectory. $$x_{k+1}=x_k+\frac h6(k_1+2k_2+2k_3+k_4),\quad\Delta E_N=\frac{v_N^2}{2}+1-\cos q_N-(1-\cos1).$$
Solution 8 / 8
Answer · C
T: common final time, 10 · h,N: step size and integer step count · E,ΔE: energy and its change · kᵢ: RK4 stage rates; x=(q,v)ᵀ
A halves the endpoint time.
B replaces the prescribed time with a diagnostic-dependent endpoint.
What does equal energy of two pendulum states establish?
Their angles and velocities are equal.
They can still be different states.
Both numerical trajectories are exact.
✓
Correct B. Energy cannot fix phase.
Solution 1 / 5
1 · Choose different states
q,v: angle and angular velocity · E: energy v²/2+1−cos q · xa,xb: two test states · xₖ,x(tₖ): numerical and exact states at time tₖ
Use opposite angles and zero velocities. $$x_a=(1,0)^T,\qquad x_b=(-1,0)^T,\qquad x_a\ne x_b.$$
Solution 2 / 5
2 · Evaluate both energies
q,v: angle and angular velocity · E: energy v²/2+1−cos q · xa,xb: two test states · xₖ,x(tₖ): numerical and exact states at time tₖ
Cosine is even, so opposite angles give identical potential energy. $$E(x_a)=1-\cos1,\qquad E(x_b)=1-\cos(-1)=1-\cos1.$$
Solution 3 / 5
3 · Test the claimed implication
q,v: angle and angular velocity · E: energy v²/2+1−cos q · xa,xb: two test states · xₖ,x(tₖ): numerical and exact states at time tₖ
One counterexample disproves the claim that equal energy forces equal states. $$E(x_a)=E(x_b)\quad\text{but}\quad\|x_a-x_b\|_2=\|(2,0)^T\|_2=2.$$
Solution 4 / 5
4 · State what the check can establish
q,v: angle and angular velocity · E: energy v²/2+1−cos q · xa,xb: two test states · xₖ,x(tₖ): numerical and exact states at time tₖ
Energy is one useful diagnostic. State accuracy also needs comparison at common physical times. $$E(x_k)\approx E(x_0)\ \not\Rightarrow\ x_k\approx x(t_k).$$
Solution 5 / 5
Answer · B
q,v: angle and angular velocity · E: energy v²/2+1−cos q · xa,xb: two test states · xₖ,x(tₖ): numerical and exact states at time tₖ
A treats one scalar as a complete state.
B allows opposite angles with zero velocity.
C mistakes one invariant check for proof of accuracy.
For this pendulum simulation, which workflow distinguishes errors?
Use q alone; shrink h until the curve looks smooth.
Use f as the next state; inspect only energy.
Use (q,v), integrate rates, compare states and energy.
✓
Correct C. Check state AND invariant.
Solution 1 / 5
1 · Choose a complete state
x=(q,v)ᵀ: complete pendulum state · f,h: model rate and numerical step size · E: energy used alongside state comparisons · k,tₖ: step index and time tₖ=kh
Angle alone omits velocity; the same angle can lead to different future motion. $$x=(q,v)^T,\qquad f(x)=(v,-\sin q)^T.$$
Solution 2 / 5
2 · Integrate the rate
x=(q,v)ᵀ: complete pendulum state · f,h: model rate and numerical step size · E: energy used alongside state comparisons · k,tₖ: step index and time tₖ=kh
For example, Euler integrates the current rate over one step: multiply the rate by h, then add it to the old state. $$x_{k+1}=x_k+hf(x_k,t_k).$$
Solution 3 / 5
3 · Compare states at common times
x=(q,v)ᵀ: complete pendulum state · f,h: model rate and numerical step size · E: energy used alongside state comparisons · k,tₖ: step index and time tₖ=kh
Reduce the step and compare against an exact solution or a suitably refined calculation. A smooth curve alone is not an accuracy test. $$t_k=kh=2k(h/2).$$
Solution 4 / 5
4 · Use a complementary invariant check
x=(q,v)ᵀ: complete pendulum state · f,h: model rate and numerical step size · E: energy used alongside state comparisons · k,tₖ: step index and time tₖ=kh
For this undamped, unforced model, exact energy stays constant. Also inspect the full state: equal energy need not imply equal state. $$E(q,v)=v^2/2+1-\cos q,\qquad\Delta E_k=E(x_k)-E(x_0).$$
Solution 5 / 5
Answer · C
x=(q,v)ᵀ: complete pendulum state · f,h: model rate and numerical step size · E: energy used alongside state comparisons · k,tₖ: step index and time tₖ=kh
A omits velocity, which a smaller step cannot repair.
B confuses rates with states and energy with full accuracy.
C separates representation, update and complementary diagnostics.