Title: Zero of a Nonlinear System of Algebraic Equations fx 0
1Zero of a Nonlinear System of Algebraic
Equationsf(x) 0
- Marco Lattuada
- Swiss Federal Institute of Technology - ETH
- Institut für Chemie und Bioingenieurwissenschaften
- ETH Hönggerberg/ HCI F135 Zürich (Switzerland)
- E-mail lattuada_at_chem.ethz.ch
- http//www.morbidelli-group.ethz.ch/education/inde
x
2Definition of the Problem
- Definition of the problem
- Research of the zero in a interval (in general
-8 lt x lt 8) - Research of the zero within the uncertainty
interval a,b - f(a)f(b) lt 0
- Types of algorithms available
- Bisection method
- Substitution algorithms
- Methods based on function approximation
3Example
f(x) 0
f1(x,y) 0
f2(x,y) 0
4Projection on the (x-y) Plane
f(x) 0
5Function Linearization
- First order Taylor expansion
- Matrix form
- Compact form
Newton Method
6Application to Example
- Nonlinear system
- Linearization ((x0, y0) is the starting point)
- Starting point (x0, y0) (0, 0)
7Graphical Interpretation
- Nonlinear system Linearized system
- Linearized system
- in (x0, y0) (0, 0)
8Projection on the (x-y) Plane
- Nonlinear system Linearized system
9Effect of Different Starting Points
10Gas/Liquid Adsorption Column
- Aim
- To adsorb a dilute component in the gas (G) phase
(e.g. ammonia) in the liquid (L) phase - Hypotheses
- Steady state conditions are reached
- The column can be described as a series of N
equilibrium stages (plates) - The liquid and the gas fluxes are constant along
the column
For more info on adsorption columns http//www.ch
eresources.com/packcolzz.shtml
11Gas/Liquid Adsorption Column
Lx0
Gy1
Plate 1
Lxn-1
Gyn
Plate n
Lxn
Gyn1
Plate N
Legend L liquid flow rate G gas flow rate xi
liquid conc. in i-th plate yi gas conc. in
i-th plate
LxN
GyN1
12Gas/Liquid Adsorption Column
- Mass balance on
- first n plates
Lx0
Gy1
Plate 1
Lxn-1
Gyn
Plate n
Lxn
Gyn1
Plate N
LxN
GyN1
13Examples
14Nonlinear Gas-Liquid Equilibrium
15The Nonlinear Problem
- Mass balance on n-th plate
- Equilibrium condition (nonlinear)
16Matlab fsolve Function
17Exercise
- Use the following parameters L 5, G 1, xTop
0, yBottom 0.05, N 8. - Use the following function to plot the results
plot_column (on-line) - Use a linear equilibrium y 7x (or K 7).
Solve the linear system of equation as already
done in class number 2 and plot the result. This
result will be the starting point for the
iterations with the Newton method. - Use the nonlinear equilibrium y 7x-2E4x3.
Solve the nonlinear system of equations with the
Matlab function fsolve. Plot the result. - Calculate (analytically) the Jacobian matrix for
the previous set of equations. Write a Matlab
function which receives as input the vector x of
the liquid concentrations and returns the
Jacobian matrix and the vector f(x) of the
residuals. (find online a model for this
function) - Compute 10 iterations with the Newton method.
Does the problem converge to the solution
computed at point 4?