Professional Documents
Culture Documents
(a) Set 1
d2 y/dt2 + 4dy/dt + 3y = 0; y(0) = 1; dy/dt = 0 at t = 0
(b) Set 2
d3 y/dt3 + 6d2 y/dt2 + 11dy/dt + 6y = 0
y(0) = 1; dy/dt = d2 y/dt2 = 0 at t = 0;
(c) Set 3
dy/dt + 3y + z = 0; y(0) = 1
d2 z/dt2 + 3dz/dt + 2z = 0
z(0) = 1; dz/dt = 0
Based on the eigenvalues of A, find conditions on the choice of integration interval
if it is desired to use (i) Crank-Nicholson method (trapezoidal rule) (ii) explicit
Euler .
∂C/∂t = ∂ 2 C/∂z 2
(a) Use the finite difference technique on the dimensionless diffusion equation obtain
a set of ODE-IVPs assuming N internal grid points. Particularly for the case
N = 2, Based on the eigenvalues of A, find conditions on the choice of integration
interval if it is desired to use (i) implicit euler and (ii) explicit Euler method.
(b) Repeat the above exercise using orthogonal collocation to discretize in space with
two internal collocation points.
1
(c) Based on the eigenvalues of A, find conditions on the choice of integration interval
if it is desired to use (i) Crank-Nicholson method (trapezoidal rule) (ii) Runge
Kutta 2’nd order method.
(b) Using Taylor series approximation, linearize the resulting equation in the neigh-
borhood of x = [ 0 0 ]T and obtain the perturbation ODE-IVP of the form
d(δx)/dt = Aδx
∙ ¸
∂F
A =
∂x (0,0)
where δx(t) = x(t)−x.
(c) Based on the decomposition of A = ΨΛΨ−1 using eigen values and eigen vectors
of matrix A, find true solution to the linearized ODE-IVP in the following form
£ ¤
δx(t)= Ψ exp(Λt)Ψ−1 δx(0)
(d) Based on the eigenvalues of A, find conditions on the choice of integration interval
if it is desired to use (i) Crank-Nicholson method (trapezoidal rule) (ii) Runge
Kutta 2’nd order method.
4. The steady state behavior of an isothermal tubular reactor with axial mixing, in which
a first order irreversible reaction is carried out, is represented by following ODE-BVP
d2 C dC
− − 6C = 0
dz 2 dz
dC dC
At z = 0 : = C(0) − 1 ; At z = 1 : =0
dz dz
Represent the above second order equation in the standard form dx/dz = Ax by
appropriately defining a state vector x. Compute exp(Az) =Ψ exp(Λz)Ψ−1 using eigen
values and eigen vectors of matrix A.Find the missing initial condition at z = 0 such
that the analytical solution
x(z) = exp(Az)x(0)
satisfies the boundary condition at z = 1.
2
5. It is desired to solve the following scalar ODE-IVP
dx
= f (x, t) ; x(tn ) = x(n) (1)
dt
using Milne’s multi-step algorithm. The Milne’s implicit formulae for solving ODE-
IVPs are obtained by imposing following additional constraints
α0 = α2 = α3 = ... = αp = 0 and α1 6= 0
along with the exactness constraints and selecting p = m − 2. Find the coefficients of
the 3’rd order Milne’s implicit algorithm (i.e. m = 3, p = 1) and state the final form
of the integration algorithm.
Note: The exactness constraints are given as follows
p
X
αi = 1 ; (j = 0)
i=0
p p
X X
j
(−i) αi + j (−i)j−1 β i = 1 ; (j = 1, 2, ......., m)
i=0 i=−1
6. It is desired to derive 3’rd order Gear’s implicit integration formula of the form
7. Consider the ODE-IVP given by equation (1). We know value x(n) at t = tn and we
wish to integrate the equation to obtain x(n + 1) at t = tn+1 = tn + h using orthogonal
collocation method with two internal collocation points lying between [tn , tn+1 ]. (Here,
h represents fixed integration step size).
3
(b) For the choice of internal collocation points at τ = 0.2 and τ = 0.8, write down
the appropriate algebraic equations to be solved in terms of unknowns x(0.2),
x(0.8) and x(1) by setting residuals to zero at internal collocation points and at
τ = 1.
(c) Arrange the resulting set of equation in the following form
Ax = F(x)
h iT
where x = x(0.2) x(0.8) x(1) and how the resulting set of nonlinear equa-
tions can be solved by Gauss-Seidel type successive substitution scheme.
⎡ ⎤ ⎡ ⎤
−7 8.2 −2.2 1 24 −37.2 25.2 −12
⎢ −2.7 1.7 1.7 −0.7 ⎥ ⎢ 16.4 −24 12 −4.4 ⎥
⎢ ⎥ ⎢ ⎥
S=⎢ ⎥ ; T =⎢ ⎥
⎣ 0.7 −1.7 −1.7 2.7 ⎦ ⎣ −4.4 12 −24 16.4 ⎦
−1 2.2 −8.2 7 −12 25.2 −37.2 24
8. It is desired to apply the method of finite difference to solve the following PDE
∂C ∂2C
= 2
∂t ∂t
4
(a) Suppose that it is desired to solve the resulting linear algebraic equations analyt-
ically as x(t) = [Ψ exp(Λt)Ψ−1 ] x(0) where A = ΨΛΨ−1 . Show that vector
h iT
v(k) = sin(kπ∆z) sin(2kπ∆z) ..... sin(nkπ∆z)
(a) Set 1:
x21 + x22 − 4 = 0
x21 − x22 − 1.5 = 0
h iT
x(0) = 1 1
5
(b) Set 2 (Banana Function):
10(−x21 + x2 ) = 0
x1 − 1 = 0
h iT
x(0) = −1 1
(c) Set 3:
(d) Set 4:
sin(x) + y 2 + ln(z) = 7
3x + 2y − z 3 = −1
x+y+z = 5
h iT
x(0) = 0 2 2
Perform 3 iterations using (a) successive substitution with the following transformation
x = x + F(x) = G(x) (b) Newton’s method (c) Newton’s method with Broyden’s
update. Compare progress of x(k) towards the true solution in each case.