'Stiff' Differential Equations

Calculus Level pending

x ˙ = [ 80.6 119.4 79.6 120.4 ] x \dot{x} = \left[\begin{matrix} -80.6&119.4\\79.6&-120.4\end{matrix} \right]x

Where

x = [ x 1 ( t ) x 2 ( t ) ] T x = \left[\begin{matrix} x_1(t)&x_2(t)\end{matrix} \right]^T x ˙ = [ d x 1 d t d x 2 d t ] T \dot{x} = \left[\begin{matrix} \frac{d x_1}{dt}&\frac{d x_2}{dt}\end{matrix} \right]^T x ( 0 ) = [ 1 2 ] T x(0) = \left[\begin{matrix} 1&2\end{matrix} \right]^T

The goal is to solve this system of equations numerically, using the Explicit Euler Integration scheme. Use a time step h = 0.01 s h = 0.01 \ s . By Applying the method, the above set of differential equations can be converted into a set of difference equations of the form:

x k + 1 = A x k x_{k+1} = A x_k

Compute the eigen values of the matrix A A . Let each of them be λ 1 \lambda_1 and λ 2 \lambda_2 .

Enter your answer as λ 1 + λ 2 \boxed{\lvert \lambda_1 \rvert+\lvert \lambda_2 \rvert} , rounded to the nearest integer.

Bonus: Plot the solutions and comment on why you get such a result, after comparing it with the closed form solution of the differential equations. Vary the value of the time step h h and report your observations with reasoning.


The answer is 2.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Hosam Hajjir
Nov 1, 2020

The Euler approximation to the differential equation x ˙ = C x \dot{x} = C x is x ( k + 1 ) x ( k ) = h C x ( k ) x(k+1) - x(k) = h C x(k) , hence x ( k + 1 ) = ( I + h C ) x ( k ) x(k+1) = (I + h C) x(k)

Thus our matrix A = I + h C A = I + h C . We are given that C = [ 80.6 119.4 79.6 120.4 ] C = \begin{bmatrix} -80.6 && 119.4 \\ 79.6 && -120.4 \end{bmatrix} , and h = 0.01 h = 0.01 . Therefore,

A = [ 1 0 0 1 ] + [ 0.806 1.194 0.796 1.204 ] = [ 0.194 1.194 0.796 0.204 ] A ={ \begin{bmatrix} 1 && 0 \\ 0 && 1 \end{bmatrix}} + {\begin{bmatrix} -0.806 && 1.194 \\ 0.796 && -1.204 \end{bmatrix} }= {\begin{bmatrix} 0.194 && 1.194 \\ 0.796 && -0.204 \end{bmatrix}}

The eigenvalues of A A are the roots of the characteristic equation λ I A = 0 | \lambda I - A | = 0 . This translates into ( λ 0.194 ) ( λ + 0.204 ) ( 1.194 ) ( 0.796 ) = 0 (\lambda - 0.194)(\lambda + 0.204) - (1.194)(0.796) = 0 . Simplifying, this becomes λ 2 + 0.01 λ 0.99 = 0 \lambda^2 + 0.01 \lambda - 0.99 = 0 . Factoring, it becomes ( λ + 1 ) ( λ 0.99 ) = 0 (\lambda + 1 )(\lambda - 0.99) = 0 , so that λ 1 = 1 \lambda_1 = -1 and λ 2 = 0.99 \lambda_2 = 0.99 , from which λ 1 + λ 2 = 1.99 2 | \lambda_1 | + | \lambda_2 | = 1.99 \approx \boxed{2} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...