Applications of Matlab in Science and Engineering Tadeusz Michalowski PDF Download
Applications of Matlab in Science and Engineering Tadeusz Michalowski PDF Download
https://ebookbell.com/product/applications-of-matlab-in-science-
and-engineering-tadeusz-michalowski-2403210
https://ebookbell.com/product/nonlinear-optimization-in-electrical-
engineering-with-applications-in-matlab-mohamed-bakr-4419370
https://ebookbell.com/product/processing-of-hyperspectral-medical-
images-applications-in-dermatology-using-matlab-1st-edition-robert-
koprowski-5737244
https://ebookbell.com/product/application-of-numerical-methods-in-
engineering-problems-using-matlab-m-s-h-alfurjan-m-rabani-bidgoli-
reza-kolahchi-a-farrokhian-m-r-bayati-49116406
https://ebookbell.com/product/dynamics-of-structures-with-matlab-
applications-ashok-k-jain-10881364
Handbook Of Food Process Modeling And Statistical Quality Control With
Extensive Matlab Applications 2nd Ed Mustafa Ozilgen
https://ebookbell.com/product/handbook-of-food-process-modeling-and-
statistical-quality-control-with-extensive-matlab-applications-2nd-ed-
mustafa-ozilgen-4182256
https://ebookbell.com/product/fundamentals-of-image-audio-and-video-
processing-using-matlab-with-applications-to-pattern-recognition-
ranjan-parekh-23432828
https://ebookbell.com/product/practical-design-and-application-of-
model-predictive-control-mpc-for-matlabr-and-simulinkr-users-nassim-
khaled-bibin-pattel-48984036
https://ebookbell.com/product/structural-dynamics-of-earthquake-
engineering-theory-and-application-using-mathematica-and-matlab-1st-
edition-s-rajasekaran-2485412
https://ebookbell.com/product/structural-dynamics-of-earthquake-
engineering-theory-and-application-using-mathematica-and-matlab-
sekaran-rajasekaran-4344498
APPLICATIONS OF
MATLAB IN SCIENCE
AND ENGINEERING
Edited by Tadeusz Michałowski
Applications of MATLAB in Science and Engineering
Edited by Tadeusz Michałowski
Published by InTech
Janeza Trdine 9, 51000 Rijeka, Croatia
Statements and opinions expressed in the chapters are these of the individual contributors
and not necessarily those of the editors or publisher. No responsibility is accepted
for the accuracy of information contained in the published articles. The publisher
assumes no responsibility for any damage or injury to persons or property arising out
of the use of any materials, instructions, methods or ideas contained in the book.
Preface IX
Chapter 21 Classifiers of
Digital Modulation Based on the
Algorithm of Fast Walsh-Hadamard
Transform and Karhunen-Loeve Transform 433
Richterova Marie and Mazalek Antonin
Due to the large number of models and/or toolboxes, there is still some work or
coordination to be done to ensure compatibility between the available tools. Inputs
and outputs of different models are to-date defined by each modeler, a connection
between models from two different toolboxes can thus take some time. This should be
normalized in the future in order to allow a fast integration of new models from other
toolboxes. The widespread use of these tools, is reflected by ever-increasing number of
books based on the MathWorks Inc. products, with theory, real-world examples, and
exercises.
X Preface
This book presents a review of some activities in modeling and simulation processes.
MATLAB programs are also related to biological sciences. Chapter 2 presents the
Odefy toolbox and indicates how to use it for modeling and analyzing molecular
biological systems. The concepts of steady states, update policies, state spaces, phase
planes and systems parameters are also explained. Applicability of Odefy toolbox for
studies on real biological systems involved with stem cell differentiation, immune
system response and embryonal tissue formation is also indicated.
Much of the data obtained in molecular biology is of quantitative nature. Such data are
obtained with use of 2D microarrays, e.g., DNA or protein microarrays, containing 104
- 105 spots arranged in the matrix form (arrayed) on a chip, where e.g., many parallel
genetic tests are accomplished (note that all variables in MATLAB are arrays). For
effective handling of the large datasets, different bioinformatic techniques based on
matrix algebra are applied to extract the information needed with the use of MATLAB.
A review of such techniques in provided in Chapter 3.
Some operations known from statistical data analysis are also realizable with use of
MATLAB, namely: cluster analysis (modulation recognition of digital signals, Chapter
21) and pattern recognition (digital image watermarking, Chapter 22).
The last two chapters discuss the registration of radioactive iodine along the
gastrointestinal tract (Chapter 23), and acid-base neutralization in continuously stirred
tank reactor (Chapter 24).
Tadeusz Michałowski
Cracow University of Technology, Cracow
Poland
1
1. Introduction
The Generalized Approach To Electrolytic Systems (GATES) (Michałowski, 2001, 2010)
provides the possibility of thermodynamic description of equilibrium and metastable, redox
and non-redox, mono-, two- and three-phase systems, with the possibility of all
attainable/pre-selected physicochemical knowledge to be involved, with none simplifying
assumptions done for calculation purposes, where different types of reactions occur in batch
or dynamic systems, of any degree of complexity. The Generalized Electron Balance (GEB)
concept, devised and formulated by Michałowski (1992), and obligatory for description of
redox systems, is fully compatible with charge and concentration balances, and relations for
the corresponding equilibrium constants. Up to 1992, the generalized electron balance (GEB)
concept was the lacking segment needed to formulate the compatible set of algebraic
balances referred to redox systems. The GEB is also applicable for the systems where radical
species are formed. Shortly after GEB formulation, the GATES involving redox systems of
any degree of complexity, was elaborated.
In this chapter, some examples of complex redox systems, where all types of elementary
chemical reactions proceed simultaneously and/or sequentially, are presented. In all
instances, one can follow measurable quantities (potential E, pH) in dynamic and static
processes and gain the information about details not measurable in real experiments; it
particularly refers to dynamic speciation. In the calculations made according to iterative
computer programs, e.g., MATLAB, all physicochemical knowledge can be involved and
different “variations on the subject” are also possible; it particularly refers to metastable and
non-equilibrium systems. The Generalized Equivalent Mass (GEM) concept, also devised
(1979) by Michałowski (Michałowski et al., 2010), has been suggested, with none relevance
to a chemical reaction notation. Within GATES, the chemical reaction notation is only the
basis to formulate the expression for the related equilibrium constant.
2. GEB
In order to formulate GEB for a particular redox system, two equivalent approaches were
suggested by Michałowski. The first approach (Michałowski, 1994; Michałowski and Lesiak,
2 Applications of MATLAB in Science and Engineering
inaccessible, i.e. the activation barriers for some reaction paths are not crossed, and the
resulting reactions cannot proceed, under defined conditions. It particularly refers to
aqueous electrolytic systems, where less soluble gaseous species, such as H2 or O2, can
virtually be formed, provided that this process is not hampered by obstacles of different
nature. However, formation of the presupposed gas bubbles in the related solution, needs
a relatively great expenditure of volumetric work, ΔL p dV , made against the
surrounding solution, by gas molecules forming the bubble. The ΔL value can be
recalculated on an overvoltage ΔU = ΔL/q, where q is the charge consumed/released in
the (virtual) reduction/oxidation process. Owing to the fact that the particular bubble
assumes a macroscopic dimension, ΔL and then ΔU values are high. Particularly,
ΔU referred to the (presupposed) formation of O2, cannot be covered by the oxidation
potential of MnO4-1 in aqueous medium and the (virtual) reaction 4MnO4-1 + 4H+1 =
4MnO2 + 3O2 + 2H2O does not occur, even at elevated temperatures. Another kind of
obstacles resulted from formation of a hydroxide/oxide layer on surface of a metal
(e.g., Mg, Al) introduced into pure water; these layers protect further dissolution of the
metal and formation of H2.
One can distinguish static (batch) and dynamic electrolytic systems, resolvable within
GATES. The dynamic process, most commonly applied in laboratory practice, is the
titration, where titrant (T) is added into titrand (D), and the D+T system is thus formed. In
D+T systems considered in chemical analysis, different (acid–base, redox, complexation
or/and precipitation, extended on two- and three-phase (liquid-liquid extraction systems)
types of reactions may occur simultaneously and/or sequentially and, moreover, a
particular type of a reaction, e.g., complexation, can be exemplified by different
representatives, e.g., different ligands.
Modelling the electrolytic systems consists of several interacting steps, indicated in Fig. 2.
The collected preliminary data are of qualitative and quantitative nature. The qualitative
aspect refers to specification of particular components (species), whereas quantitative aspect
relates to equilibrium constants, involving particular species of the system. Later on, only
the steps involved with calculations, data handling and knowledge gaining will be
discussed.
4. Rules of conservation
In chemical systems, one can refer to different rules of conservation, due to elements,
protons, electrons and external charges of species – particularly the species entering the
electrolytic systems, where none nuclear transformations of elements occur. Some rules of
conservation are interrelated, and this fact is referred to systems of any degree of
complexity. This way, the problem of interdependency of the balances arises. Starting from
the rules of conservation viewpoint, it is assumed, that any electrolytic system, composed of
condensed (liquid, liquid+solid, liquid1+liquid2, or liquid1+liquid2+solid) phases
(Michałowski and Lesiak, 1994a) is separated from its surroundings by diathermal walls,
that enable any process in the closed system to proceed under isothermal conditions. In such
systems, the mass transport can occur only between the phases consisting such a system. In
thermodynamic considerations of dynamic electrolytic systems it is also assumed that all the
processes occur in quasistatic manner.
4 Applications of MATLAB in Science and Engineering
5. Formulation of GEB
5.1 Batch redox systems
5.1.1 Fenton reagent
The Fenton reagent is usually obtained by mixing FeSO4 and H2O2 solutions. In order to
describe this redox system quantitatively, let us consider the monophase system (solution)
of volume V0 [L], composed of N01 molecules of FeSO4·7H2O, N02 molecules of H2O2 and
N0W molecules of H2O introduced with H2O2 solution (e.g., perhydrol), and NW molecules of
H2O as the solvent. The solution: H2O (N1), H+1 (N2, n2), OH-1 (N3, n3), OH (N4, n4), H2O2 (N5,
n5), HO2-1 (N6, n6), HO2 (N7, n7), O2-1 (N8, n8), O2 (N9, n9), Fe+2 (N10, n10), FeOH+1 (N11, n11),
FeSO4 (N12, n12), Fe+3 (N13, n13), FeOH+2 (N14, n14), Fe(OH)2+1 (N15, n15), Fe2(OH)2+4 (N16, n16),
FeSO4+1 (N17, n17), Fe(SO4)2-1 (N18, n18), HSO4-1 (N19, n19), SO4-2 (N20, n20), where Ni is the
number of entities Xi with mean number ni of hydrating water particles attached to it, ni ≥ 0.
Balances for H and O are as follows:
2·N1+N2·(1+2n2)+N3·(1+2n3)+N4·(1+2n4)+N5·(2+2n5)+N6·(1+2n6)+
N7·(1+2n7)+N8·2n8+N9·2n9+N10·2n10+N11·(1+2n11)+N12·2n12+ (1)
N13·2n13+N14·(1+2n14)+N15·(2+2n15)+N16·(2+2n16)+N17·2n17+N18·2n18+
N19·(1+2n19)+N20·2n20=14·N01+2·N02+2·N0W+2·NW
Application of GATES and MATLAB for Resolution of
Equilibrium, Metastable and Non-Equilibrium Electrolytic Systems 5
N1+N2·n2+N3·(1+n3)+N4·(1+n4)+N5·(2+n5)+N6(2+n6)+N7(2+n7)+
N8·(2+n8)+N9·(2+n9)+N10·n10+N11(1+n11)+N12·(4+n12)+N13·n13+
(2)
N14·(1+n14)+N15·(2+n15)+N16·(2+n16)+N17·(4+n17)+N18·(8+n18)+
N19(4+n19)+N20·(4+n20)=11·N01+2·N02+N0W+NW
From (1) and (2) we have
-N2+N3+N4+2N5+3N6+3N7+4N8+4N9+ N11+8N12+N14+
(3)
2N15+2N16+8N17+16N18+7N19+8N20=8N01+2N02
Adding the sides of (3) and:
+N2–N3–N6–N8+2N10+N11+3N13+2N14+N15+4N16+N17–N18–N19–2N20=0
6N01=6N12+6N17+12N18+6N19+6N20
after cancellation of similar terms, one obtains the relation
N4+2N5+2N6+3N7+3N8+4N9+2N10+2N11+2N12+
(4)
3N13+3N14+3N15+6N16+3N17+3N18=2N01+2N02
Dividing the sides of (6) by NA·V0, we get the simple form of GEB related to this system
[OH]+2·([H2O2]+[HO2-1])+3·([HO2]+[O2-1])+4·[O2]+
2·([Fe+2]+[FeOH+1]+[FeSO4])+3·([Fe+3]+[FeOH+2]+[Fe(OH)2+1]+ (5)
2·[Fe2(OH)2+4]+[FeSO4+1]+[Fe(SO4)2-1])=2·C01+2·C02
where [Xi] = Ni/( NA·V0), C0j = N0j/( NA·V0). Hydrating water particles at the corresponding
species Xi are omitted in (5), for simplicity of notation. Eq. (5) involves only the elements
participating redox equilibria; the electrons of sulfur in sulfate species do not participate the
redox equilibria. Note that the radical species (OH, HO2) are involved in (5), and O2 is the
biradical.
For redox systems, the balance obtained according to the second approach can be
transformed into the form ascribed to the first approach. However, in the second approach
we are not forced to define/calculate oxidation degrees of elements; it is a very
advantageous occurrence, of capital importance for the systems with complex organic
compounds, their ions and/or radicals.
where ZX is the atomic number for the element X; the set of indices (p,q,r,z) covered by the
sum in (6) is different from: (2,1,0,0) for H2O, (1,0,0,1) for H+1, and (1,1,0,–1) for OH–1. It is
assumed that HPOQXR·nH2O does not react (as oxidizing or reducing agent) with water, i.e.
products of water oxidation or reduction are not formed. For example, after introducing Br2
(X = Br; P=Q=n=0, R=2; ZX = ZBr = 35) into water, the following bromine species are formed
6 Applications of MATLAB in Science and Engineering
as hydrates in the disproportionation process: HBrO3 (p=r=1, q=3, z=0), BrO3-1 (p=0, r=1,
q=3, z=–1), HBrO (p=q=r=1, z=0), BrO-1 (p=0, q=r=1, z=–1), Br2 (p=q=z=0, r=2), Br3-1 (p=q=0,
r=3, z=–1), Br-1 (p=q=0, r=1, z= –1). Applying Eq. 6, we get (Michałowski, 1994)
(ZBr–5)([HBrO3]+[BrO3-1])+(ZBr–1)([HBrO]+[BrO-1])+2ZBr[Br2]+
(7)
(3ZBr+1)[Br3-1]+(ZBr+1)[Br-1]=2ZBr·C
where C [mol/L] is the total concentration of Br2. In (7), hydrating water particles are
omitted, for simplicity.
For comparative purposes, one can refer to (a) Br2 (C) + KBr (C1); (b) NaBrO (C2); (c) KBrO3
(C3) + KBr (C1) solutions. In all instances, the left side of (7) is identical, whereas the right side
is as follows: 2ZBrC + (ZBr+1)C1 for (a); (ZBr-1)C2 for (b); (ZBr-5)C3 + (ZBr+1)C1 for the case (c).
5.2.1 FeSO4+H2SO4+KMnO4
This system be referred to titration of V0 mL D, composed of FeSO4 (C0) + H2SO4 (C1), with V
mL of C mol/L KMnO4 as T. The electron balance (GEB) has the form (Z1 = 25 for Mn, Z2 = 26
for Fe):
(Z1+1)[I–1]+(3Z1+1)[I3–]+2Z1([I2]+[I2])+(Z1–1)([HIO]+[IO–1])+(Z1–5)([HIO3]+[IO3–1])+
(Z1–7)([H5IO6]+[H4IO6–1]+[H3IO6–2])+(Z2–2)([Hg+2]+[HgOH+1]+[Hg(OH)2])+
(Z2–2+Z1+1)[HgI+1]+(Z2–2+2(Z1+1))[HgI2]+(Z2–2+3(Z1+1))[HgI3–1]+
(Z2–2+4(Z1+1))[HgI4–2]+2(Z2–1)([Hg2+2]+[Hg2OH+1])+Z3([C6H8O6]+[C6H7O6–1]+
[C6H6O6–2])+(Z3–2)[C6H6O6]+(Z4+1)[Cl–1]+2Z4[Cl2]+(Z4–1)([HClO]+[ClO–1])+
(Z4–3)([HClO2]+[ClO2–1])+(Z4–4)[ClO2]+(Z4–5)[ClO3–1]+(Z4–7)[ClO4–1]+ (9)
(Z1+Z4)[ICl]+(Z1+2(Z4+1))[ICl2–1]+(2Z1+Z4+1)[I2Cl–1]+(Z2–2+Z4+1)[HgCl+1]+
(Z2–2+2(Z4+1))[HgCl2]+(Z2–2+3(Z4+1))[HgCl3–1]+(Z2–2+4(Z4+1))[HgCl4–2]+
(Z5–4){[H2SeO3]+[HSeO3–1]+[SeO3–2])+(Z5–6)([HSeO4–1]+[SeO4–2])–
((Z1–5)C0V0+(Z2–2+2(Z4+1))CHgV0+Z3CV+(Z4+1)CaV0+(Z5–4)CSeV0)/(V0+V)=0
Application of GATES and MATLAB for Resolution of
Equilibrium, Metastable and Non-Equilibrium Electrolytic Systems 7
where Z1, Z2, Z4, Z5 are atomic numbers for I, Hg, Cl and Se, respectively; Z3 is the number
ascribed to ascorbic acid. The following terms were introduced in there:
= 1, valid under assumption that solid iodine (I2) is present in the system considered;
= 0, for a system not saturated against solid iodine (I2 refers to soluble form of iodine);
= 1 refers to the case, where Se(VI) species were involved; at = 0, the Se(VI) species
are omitted;
= 1 refers to the case, where Hg(I) species were involved; at = 0, the Hg(I) species are
omitted.
[H+1]–[OH-1]–[BrO3-1]–[BrO-1]–[Br3-1]–[Br-1]=0 (10)
7. Equilibrium constants
Different species in the system are interrelated in expressions for the corresponding
equilibrium constants, e.g., ionic product of water, dissociation constants (for acidic species),
stability constants of complexes, solubility products, standard potentials (E0i) for redox
reactions, partition constants in liquid-liquid extraction systems. Except E0i, all equilibrium
constants are formulated immediately on the basis of mass action law.
The redox systems are completed by relations for standard potentials (E0i), formulated on
the basis of the Nernst equation for potential E, referred to i-th redox reaction notation,
written in the form ... zi e 1 ... , where zi > 0 is the number of electrons (e-1) participating
this reaction. First, the equilibrium constant (Kei) for the redox reaction is formulated on the
basis of mass action law and then the relations:
are applied, where S = RT/F·ln10, and T , R, F are as ones in the Nernst equation. Both types
of constraints, i.e. balances and the expressions for equilibrium constants, are of algebraic
8 Applications of MATLAB in Science and Engineering
nature. It enables to consider the relations as common algebraic equations, nonlinear in their
nature.
In order to avoid inconsistency between the equilibrium constants values found in
literature, the set of independent equilibrium constants is required. One should also be
noted that some species are presented differently, see e.g., pairs: AlO2-1 and Al(OH)4-1;
H2BO3-1 and B(OH)4-1; IO4-1 and H4IO6-1, differing in the number of water molecules
involved. The species compared here should be perceived as identical ones and then cannot
enter the related balances, side by side, as independent species.
The balances and complete set of interrelations resulting from expressions for independent
equilibrium constants are the basis for calculations made according to an iterative computer
program, e.g., MATLAB. The results thus obtained can be presented graphically, at any pre-
assumed system of coordinates, in 2D or 3D space.
The procedure involved with the terms β and γ expresses the principle of “variation on the
subject” applied to the system in question. The system considered in 5.2.2 is described with
use of the set of 36 independent equilibrium constants in the basic version, i.e. at β=γ=0.
More equilibrium data are involved, if some “variations on the subject” be done, i.e. when
some reaction paths are liberated. In the “variations” of this kind, further physicochemical
data are applied (see section 11.2).
8. Calculation procedure
The balances, related to a dynamic system and realised according to titrimetric mode, can be
written as a set of algebraic equations
Fk (x(V))=0 (13)
where x(V) = [x1(V), ... , xn(V)]T is the vector of basic (independent, fundamental) variables
xi = xi(V) (scalars) related to a particular V–value, i.e. volume of titrant added. The number
(n) of variables is equal to the number of the balances. At defined V–value, only one vector,
x = x(V), exists that turns the set of algebraic expressions Fk(x(V)) to zero, i.e. Fk(x(V)) = 0
(k=1,...,n) and zeroes the sum of squares
n
SS(V)= (Fk (x(V)))2 =0 (14)
k=1
for any V–value. If xs(V) is the vector referred to starting (s) values for basic variables related
to a particular V–value, then one can expect that xs(V) ≠ x(V) and
n
SS(V)= (Fk (x s (V)))2 >0 (15)
k=1
The searching of x(V) vector values related to different V, where Fk(x(V)) = 0 (k=1,...,n), is
made according to iterative computer programs, e.g., MATLAB. The searching procedure
satisfies the requirements put on optimal x(V) values, provided that SS value (Eq. 15) is
lower than a pre–assumed, sufficiently low positive –value, >0, e.g., = 10–14. i.e.
n
SS(V)= (Fk (x(V)))2 <δ
k=1
Application of GATES and MATLAB for Resolution of
Equilibrium, Metastable and Non-Equilibrium Electrolytic Systems 9
However, the iterative computer programs are (generally) designed for the curve–fitting
procedures where the degree of fitting a curve to experimental points is finite. In this case,
the criterion of optimisation is based on differences SS(V,N+1) – SS(V,N) between two
successive (Nth and N+1th) approximations of SS(V)–value, i.e.
at a sufficiently low –value. However, one should take into account that the inequality
(16) can be fulfilled at local minimum different from the global minimum. It can happen if
the starting values xs(V) are too distant from the true value x(V) where the equality
(14) is fulfilled. In this case, one should try (repeat) the calculations for new xs(V) values
guessed.
The choice of –value depends on the scale of analytical concentrations considered. To
‘equalise’ the requirements put on particular balances, it is advised to apply ‘normalised’
balances, obtained by dividing the related balance by total (analytical) concentration
involved in this balance.
In all simulated titrations considered below, the following regularities are complied:
1. The independent variables xi = xi(V) are introduced as the (negative) powers of 10 (as
the base number);
For any [X] > 0 one can write [X] 10log[X] = 10–pX, where pX = – log[X]. One should be noted
that [X] > 0 for any real pX value, pX . It particularly refers to protons (X = H+) and
electrons (Eq. 12). Such choice of the basic variables improves the course of iteration
procedure.
2. The changes in the system are made according to titrimetric mode, with volume V taken
as the steering variable.
3. It is advisable to refer the fundamental variables to the species whose concentrations
predominate at the start for calculations.
The minimizing procedure starts at the V–value, V = Vs, that appears to be ‘comfortable’
from the user’s viewpoint, where the starting xs(V) values are guessed. Then the
optimisation is realised, with negative step put on the V–variable, up to V = V(begin) close
to zero value. The possible changes in the phase composition during the iteration procedure
should also be taken into account. It particularly refers to formation/disappearance of a
solid phase(s) or a change in equilibrium solid phase; the latter problem is raised in section
12. For this purpose, the expressions identical with the forms of the corresponding solubility
products should be ‘peered’ during the simulated procedure. In the system considered in
section 5.2.2, the solid iodine, I2, is formed within defined V-range.
The results thus obtained enable to calculate all variables of interest. It refers both to
fundamental variables such as E, pH and concentrations, and other concentrations of interest.
For example, the Br2 + H2O (batch) system is described by three balances: (7), (10), (11).
In this case, one can choose three fundamental variables: pH, E and pBr, involved with
concentrations and referred to negative powers of the base 10: [H+1] = 10-pH, [e-1] = 10-E/S
(Eq. 12), [Br-1] = 10-pBr. Three independent variables involved in three balances give here a
unique solution for (x1, x2, x3) = (pH, E, pBr), at a pre-assumed C value (Eq. 11). On this basis,
one can calculate concentrations of all other species, e.g.:
[BrO3-1]=106A(E–1.45)+6pH–pBr;[Br2]=102A(E–1.087)–2pBr (17)
where the fundamental variables are involved; A = 1/S (Eq. 12).
10 Applications of MATLAB in Science and Engineering
CV
Φ= (18)
C 0 V0
where C0 is the concentration [mol/L] of analyte A in D of initial volume V0, V is the volume
[mL] of T added up to a given point of titration, C [mol/L] – concentration of a reagent B
(towards A) in T; e.g., for the D+T system presented in section 5.2.2 we have: A = IO3-1, B =
C6H8O6. The course of the plots E = E(V) and/or pH = pH(V) (or, alternately, pH = pH(Φ)
and/or E = E(Φ)) is the basis to indicate the equivalence point(s) according to GEM
(Michałowski et al., 2010), with none relevance to the chemical reaction notation.
The plots pH = pH(V) and/or E = E(V) can also be obtained experimentally, in
potentiometric (pH or E) titrations. Comparing the experimental plots with the related
curves obtained in simulated titrations, (a) one can check the validity of physicochemical
data applied in calculations, and (b) to do some “variations on the subject” involved with
reaction pathways and/or incomplete/doubtful physicochemical data.
3Br2+6OH-1=BrO3-1+5Br-1+3H2O (19)
exceeds the effectiveness of reaction
by about 104. Note that the stoichiometries of both reactions are the same, 3 : 6 = 1 : 2.
Concentration of Br-1 ions, formed mainly in reaction (19), exceeds [BrO3-1] by 5, at higher
pH values.
Fig. 3. The curves involved with C mol/L Br2 solutions in pure water, plotted at the
coordinates indicated [4].
12 Applications of MATLAB in Science and Engineering
Fig. 4. Concentrations of (indicated) bromine species at different –logC values for C mol/L Br2.
Fig. 5. Theoretical titration curves for: (A) E = E(V) and (B) pH = pH(V), at V0 = 100 mL of
C0 = 0.01 mol/L (a) Br2, (b) HBrO titrated with V mL of C = 0.1 mol/L NaOH.
Fig. 6. Speciation of bromine species during titration of V0 = 100 mL of C0 = 0.01 mol/L (A)
Br2, (B) HBrO titrated with V mL of C = 0.1 mol/L NaOH.
Application of GATES and MATLAB for Resolution of
Equilibrium, Metastable and Non-Equilibrium Electrolytic Systems 13
A B
Fig. 8. Theoretical (A) pH vs. V, (B) E vs. V relationships for titration of V0 = 100 mL of KIO3
(0.05 mol/L) + KI (CI mol/L) + H2SO4 (0.01 mol/L) as D with Na2S2O3 (0.1 mol/L) as T,
plotted at CI = 0.1 mol/L (curve a) and CI = 0 (curve b).
Fig. 9A indicates the effect resulting from complexation of Fe+3 and Fe+2 by SO4-2 ions; the
course of titration curve a differs significantly from the curve b, where complexes FeSO4,
FeSO4+1 , Fe(SO4)2-1 and MnSO4 were omitted in the related balances. The pH change in this
system (Fig. 9B) results mainly from consumption of protons in reaction MnO4-1 + 8H+1 +
5e-1 = Mn+2 + 4H2O. Namely, MnO4-1 acts also in acid-base reaction, in multiplied extent
when compared with a strong base action, like “octopus” (Michałowski, et al., 2005). Greater
pH changes in this system are protected by presence of great excess of H2SO4 that acts as
buffering agent and acts against formation of solid MnO2 in reaction MnO4-1 + 4H+1 + 3e-1 =
MnO2 + 2H2O. The species Xi are indicated at the corresponding dynamic speciation curves
plotted in Figures 9C,D.
A
B
Fig. 9. The plots of (A) E = E(), (B) pH = pH() and log[Xi] vs. relationships for
different (C) Mn and (D) Fe species Xi, related to simulated titration presented in
section 9.2.4. (Michałowski and Lesiak, 1994b; Michałowski, 2001, 2010)
D containing KIO3 (C0 = 0.01mol/L) + HCl (Ca = 0.02 mol/L) + H2SeO3 (CSe = 0.02 mol/L) +
HgCl2 (CHg mol/L) with V mL of C mol/L ascorbic acid (C6H8O6) as T, considered e.g., in
(Michałowski and Lesiak, 1994b; Michałowski, 2001, 2010). From Fig. 10A,B we see that the
presence of HgCl2 in D transforms the curve a into curve b.
Moreover, Fig. 10b provides (rarely met) example, where pH of the D+T system passes
through maximum; such a case was stated first time in (Michałowski and Lesiak, 1994b).
The extreme pH values of the curves a and b in Fig. 10B correspond to the points of maximal
drop on the curves a and b in Fig.10A. The non-monotonic shapes of pH vs. Φ relationships
were also stated e.g., for D+T systems with VSO4 in acidic (H2SO4) media titrated with
KMnO4 or K2Cr2O7 (Michałowski and Lesiak, 1994b), KI titrated with chlorine water
(Michalowski, et al., 1996).
Fig. 10. The plots of: (A) E = E(Φ) and (B) pH = pH(Φ) relationships for D+T system specified
in section 9.2.5, referred to absence (curve a) and presence (CHg = 0.07 mol/L, curve b) of
HgCl2 in D.
Fig. 11. The plots of speciation curves for different iodine species at C0 = 0.01, Ca = 0.02, CSe =
0.02, and CHg = 0 (in Fig. A) or CHg = 0.07 (in Fig. B); I2(s) and I2 – solid and soluble iodine
species.
16 Applications of MATLAB in Science and Engineering
The speciation curves for iodine species in this system are presented in Fig. 11A,B. Among
others, on this basis one can state that the growth in pH on the curve a in Fig. 11B within
Φ <0, 2.5> can be explained by the set of reactions:
2IO3-1+5C6H8O6+2H+1=I2+5C6H6O6+6H2O
2IO3-1+5C6H8O6+2H+1=I2+5C6H6O6+6H2O
2IO3-1+5C6H8O6+2H+1+I-1=I3-1+5C6H6O6+6H2O
where protons are consumed. This inference results from the fact that within this Φ-interval
a growth in concentration of I2, I2 i I3-1, and decrease in concentration of IO3-1 occur; in this
respect, the main components are considered.
2Cu+2+4I-1=2CuI+I2;2Cu+2+4I-1=2CuI+I2;2Cu+2+5I-1=2CuI+I3-1
At a due excess of KI, I2 is not formed. The mixture (D) thus obtained is titrated with sodium
thiosulphate solution as T:
I2+2S2O3-2=2I-1+S4O6-2;I3-1+2S2O3-2=3I-1+S4O6-2
Let us assume that V0 = 100 ml of the solution containing CuSO4 (C0 = 0.01 mol/L), H2SO4
(Ca = 0.1 mol/L), NH3 (CN = 0.25 mol/L) and CH3COOH (CAc = 0.75 mol/L), be treated
with V1 = 5.8 mL of CI = 2.0 mol/L KI and then titrated with V ml of C = 0.1 mol/L
Na2S2O3.
On the first stage (Fig.12), we apply the following balances, Fi = Fi(x(V)) = 0 (co – current
concentration of CuI):
F1=co+[Cu+1]+[CuNH3+1]+[Cu(NH3)2+1]+[CuI2–1]+[Cu+2]+[CuOH+1]+[Cu(OH)2]+
[Cu(OH)3–1]+[Cu(OH)4–2]+[CuSO4]+[CuIO3+1]+[CuNH3+2]+[Cu(NH3)2+2]+ (21)
[Cu(NH3)3+2]+[Cu(NH3)4+2]+[CuCH3COO+1]+[Cu(CH3COO)2]–C0V0/(V0+V)=0
F2=co+[I–1]+2([I2]+[I2])+3[I3–1]+[HIO]+[IO–1]+[HIO3]+[IO3–1]+
(22)
[H5IO6]+[H4IO6–1]+[H3IO6–2]+2[CuI2–1]+[CuIO3+1]–CIV/(V0+V)=0
F3=[HSO4–1]+[SO4–2]+[CuSO4]–(C0+Ca)V0/(V0+V)=0 (23)
F4=[NH4+1]+[NH3]+[CuNH3+1]+2[Cu(NH3)2+1]+[CuNH3+2]+2[Cu(NH3)2+2]+ (24)
3[Cu(NH3)3+2]+4[Cu(NH3)4+2]–CNV0/(V0+V)=0
Application of GATES and MATLAB for Resolution of
Equilibrium, Metastable and Non-Equilibrium Electrolytic Systems 17
F5=[CH3COOH]+[CH3COO–1]+[CuCH3COO+1]+
2[Cu(CH3COO)2]–CAcV0/(V0+V)=0 (25)
F6=[H+1]–[OH–1]+[Cu+1]–[CuI2–1]+2[Cu+2]+[CuOH+1]–[Cu(OH)3–1]–
2[Cu(OH)4–2]+[CuIO3+1]–[I–1]–[I3–1]–[IO–1]–[IO3–1]–[H4IO6–1]–2[H3IO6–2]–[HSO4–1]–
(26)
2[SO4–2]+[CuNH3+1]+[Cu(NH3)2+1]+2[CuNH3+2]+2[Cu(NH3)2+2]+2[Cu(NH3)3+2]+
2[Cu(NH3)4+2]+[CuCH3COO+1]+CIV/(V0+V)–[CH3COO–1]+[NH4+1]=0
F7=(Z1–1+Z2+1)co+(Z1–1)([Cu+1]+[CuNH3+1]+[Cu(NH3)2+1])+
(Z1–1+2(Z2+1))[CuI2–1]+(Z1–2)([Cu+2]+[CuOH+1]+[Cu(OH)2]+[Cu(OH)3–1]+
[Cu(OH)4–2]+[CuSO4]+[CuNH3+2]+[Cu(NH3)2+2]+[Cu(NH3)3+2]+
(27)
[Cu(NH3)4+2]+[CuCH3COO+1]+[Cu(CH3COO)2])+(Z1–2+Z2–5)[CuIO3+1](Z2+1)[I–1]+
(3Z2+1)[I3–1]+2Z2([I2]+[I2])+(Z2–1)([HIO]+[IO–1])+(Z2–5)([HIO3]+[IO3–1])+
(Z2–7)([H5IO6]+[H4IO6–1]+[H3IO6–2])–((Z1–2)C0V0+(Z2+1)CIV)/(V0+V)=0
where Z1 = 29 for Cu, Z2 = 53 for I. At high excess of I–1, solid I2 is not formed, = 0 in (22)
and (27).
Concentrations of different species in (22) – (27) are involved in the relations (A = 1/S, Eq. (12)):
[NH4+1] = 109.35[H+1][NH3],
[CH3COOH] = 104.65[H+1][CH3COO–1],
[CuOH+1] = 107[Cu+2][OH–1],
[Cu(OH)2] = 1013.68[Cu+2][OH–1]2,
[Cu(OH)3–1] = 1017[Cu+2][OH–1]3,
[Cu(OH)4–2] = 1018.5[Cu+2][OH–1]4,
[CuSO4] = 102.36[Cu+2][SO4–2],
[CuIO3+1] = 100.82[Cu+2][IO3–1],
[CuI2–1] = 108.85[Cu+1][I–1]2,
[CuNH3+2] = 103.39[Cu+2][NH3],
[Cu(NH3)2+2] = 107.33[Cu+2][NH3]2,
[Cu(NH3)3+2] = 1010.06[Cu+2][NH3]3,
[Cu(NH3)4+2] = 1012.03[Cu+2][NH3]4,
[CuNH3+1] = 105.93[Cu+1][NH3], (28)
[Cu(NH3)2+1] = 1010.86[Cu+1][NH3]2,
[CuCH3COO+1] = 102.24[Cu+2][CH3COO–1],
[Cu(CH3COO)2] = 103.3[Cu+2][CH3COO–1]2,
[I2] = [I–1]2102A(E–0.62),
[I3–1] = [I–1]3102A(E–0.545),
[IO–1] = [I–1] 102A(E–0.49)+2pH–28,
[IO3–1] = [I–1]106A(E–1.08)+6pH,
[HIO] = 1010.6[H+1][IO–1],
[HIO3] = 100.79[H+1][IO3–1],
[H5IO6] = [I–1]108A(E–1.26)+7pH,
[H4IO6–1] = 10pH–3.3[H5IO6],
[H3IO6–2] = [I–1]108A(E–0.37)+9pH–126,
[Cu+2] = [Cu+1]10A(E–0.153)
18 Applications of MATLAB in Science and Engineering
A B
Fig. 12. The (A) E vs. V and (B) pH vs. V relationships during addition of 2.0 mol/L KI into
CuSO4 + NH3 + HAc system, plotted at pKso = 11.96.
F1=co+[Cu+1]+[CuNH3+1]+[Cu(NH3)2+1]+[CuI2–1]+[Cu+2]+[CuOH+1]+
[Cu(OH)2]+[Cu(OH)3–1]+[Cu(OH)4–2]+[CuSO4]+[CuIO3+1]+[CuNH3+2]+ (30)
[Cu(NH3)2+2]+[Cu(NH3)3+2]+[Cu(NH3)4+2]+[CuCH3COO+1]+[Cu(CH3COO)2]+
[CuS2O3–1]+[Cu(S2O3)2–3]+[Cu(S2O3)3–5]–C0V0/(V0’+V)=0
F2=co+[I–1]+2([I2]+[I2])+3[I3–1]+[HIO]+[IO–1]+
[HIO3]+[IO3–1]+[H5IO6]+[H4IO6–1]+[H3IO6–2]+ (31)
2[CuI2–1]+ [CuIO3+1]–CIV1/(V0’+V)=0
F3=[HSO4–1]+[SO4–2]+[CuSO4]–(C0+Ca)V0/(V0’+V)=0 (32)
F4=[NH4+1]+[NH3]+[CuNH3+1]+2[Cu(NH3)2+1]+
[CuNH3+2]+2[Cu(NH3)2+2]+3[Cu(NH3)3+2]+ (33)
4[Cu(NH3)4+2]–CNV0/(V0’+V)=0
F5=[CH3COOH]+[CH3COO–1]+[CuCH3COO+1]+2[Cu(CH3COO)2]–CAcV0/(V0’+V)=0 (34)
F6=[H2S2O3]+[HS2O3–1]+[S2O3–2]+2[S4O6–2]+[CuS2O3–1]+
(35)
2[Cu(S2O3)2–3]+3[Cu(S2O3)3–5]–CV/(V0’+V)=0
F7=[H+1]–[OH–1]+[Cu+1]–[CuI2–1]+2[Cu+2]+[CuOH+1]–[Cu(OH)3–1]–
2[Cu(OH)4–2]+[CuIO3+1]–[I–1]–[I3–1]–[IO–1]–[IO3–1]–[H4IO6–1]–2[H3IO6–2]–
[HSO4–1]–2[SO4–2]+[CuNH3+1]+[Cu(NH3)2+1]+2[CuNH3+2]+2[Cu(NH3)2+2]+ (36)
2[Cu(NH3)3+2]+ 2[Cu(NH3)4+2]+[CuCH3COO+1]+CIV1/(V0’+V)–
[CH3COO–1]+[NH4+1]+2CV/(V0’+V)–[HS2O3–1]–2[S2O3–2]–
2[S4O6–2]–[CuS2O3–1]–3[Cu(S2O3)2–3]–5[Cu(S2O3)3–5]=0
Application of GATES and MATLAB for Resolution of
Equilibrium, Metastable and Non-Equilibrium Electrolytic Systems 19
F8=(Z1–1+Z2+1)co+(Z1–1)([CuNH3+1]+[Cu(NH3)2+1])+(Z1–1+2(Z2+1))[CuI2–1]+
(Z1–2)([Cu+2]+[CuOH+1]+[Cu(OH)2]+[Cu(OH)3–1]+[Cu(OH)4–2]
+[CuSO4]+[CuNH3+2]+[Cu(NH3)2+2]+[Cu(NH3)3+2]+[Cu(NH3)4+2]+
[CuCH3COO+1]+[Cu(CH3COO)2])+(Z1–2+Z2–5)[CuIO3+1]+(Z2+1)[I–1]+
(3Z2+1)[I3–1]+2Z2([I2]+[I2])+(Z2–1)([HIO]+[IO–1])+(Z2–5)([HIO3]+[IO3–1])+ (37)
(Z2–7)([H5IO6]+[H4IO6–1]+[H3IO6–2])+2(Z3–2)([H2S2O3]+[HS2O3–1]+
[S2O3–2])+4(Z3–2.5)[S4O6–2]+(Z1–1+2(Z3–2))[CuS2O3–1]+
(Z1–1+4(Z3–2))[Cu(S2O3)2–3]+(Z1–1+6(Z3–2))[Cu(S2O3)3–5]–
((Z1–2)C0V0+(Z2+1)CIV1+2(Z3–2)CV/(V0’+V)=0
where Z3 = 16 for S. The additional relationships are as follows:
[H2S2O3]=102.32[H+1]2[S2O3–2],
[HS2O3–1]=101.72[H+1][S2O3–2],
[CuS2O3–1]=1010.3[Cu+1][S2O3–2],
(38)
[Cu(S2O3)2–3]=1012.2[Cu+1][S2O3–2]2,
[Cu(S2O3)3–5]=1013.8[Cu+1][S2O3–2]3,
[S4O6–2]=[S2O3–2]2102A(E–0.09)
To perform the calculation, one should choose first the set of independent (fundamental)
variables. On the first stage, one can choose the variables: x = x(V) = (x1,...,x7), where
xi = xi(V), involved in the relations:
Fig. 13. The (A) E vs. Φ relationships plotted in close vicinity of Φ = 1 at pKso for CuI equal
(a) 11.96, (b) 12.6 and (b); (B) pH vs. Φ relationship plotted at pKso = 11.96.
20 Applications of MATLAB in Science and Engineering
indicates also a small difference between the plots of the related titration curves, calculated
for two pKso values: 11.96 and 12.6, found in literature. The speciation curves for some
species on the stage of titration with Na2S2O3 solution, are evidenced in Fig.14. One should
be noticed that sulphate and thiosulfate species do not enter the same (elemental) balance,
see Eqs. (32) and (35); the thiosulfate species are not oxidised by sulphate, i.e. the
synproportionation reaction does not occur.
Fig. 14. The speciation curves plotted for titration of CuSO4 + NH3 + HAc + KI with Na2S2O3;
pKso = 11.96 for CuI; HAc = CH3COOH.
experimentally. Namely, the curve in Fig. 15A is similar to the curve a in Fig. 10A, and the
curve in Fig. 15B is similar to the curve b in Fig. 10A.
One can also notice some differences, however. First, the experimental data (potential E
values, (1)) obtained in the system with calomel reference electrode were erroneously
recalculated (2) when referred to normal hydrogen electrode (NHE scale) (Erdey, et al.,
1951/2); simply, the potential of the calomel electrode was subtracted from (not added to)
the experimental E-values. These errors were corrected in (Erdey and Svehla, 1973). The
theoretical curves in Fig. 10A fall abruptly in the immediate vicinity of V = 0. Namely,
E = 1.152 V at V = 0 for the curves a and b; at V = 0.01 mL, E equals 1.072 V for A and
1.068 V for B (in NHE scale). In this context one should be noted that the second
experimental points in Figs. 15A,B, far distant from V = 0, are connected by a rounded line.
One can also explain diffused indications in E values, registered in the middle part of the
titration curve in Fig. 15A. After comparison with the speciation curves plotted in Figs.
11A,B, one can judge that these fluctuations can be accounted for kinetics of the solid iodine
(I2(s)) precipitation/dissolution phenomena.
Fig. 15. The experimental titration curves copied from (Erdey, et al., 1951/2).
Fig. 16. The E vs. Φ relationships plotted under assumption that (i) = = 0 – curve 125 ;
(ii) = 1, = 0 – curve 124; (iii) = 0, = 1 – curve 135; (iv) = = 1 – curve 134; C0 = 0.01,
Ca = 0.02, CSe = 0.02, CHg = 0.07, C = 0.1 [mol/L].
Fig. 17. The pH vs. Φ relationships plotted for the system in section 5.2.2 under assumption
that (i) = = 0 – curve 134 ; (ii) = 1, = 0 – curve 135; (iii) = 0, = 1 – curve 234;
(iv) = = 1 – curve 235; C0 = 0.01, Ca = 0.02, CSe = 0.02, CHg = 0.07, C = 0.1 [mol/L].
Application of GATES and MATLAB for Resolution of
Equilibrium, Metastable and Non-Equilibrium Electrolytic Systems 23
Fig. 18. (A) Fragments of hypothetical titration curves plotted for different pairs of stability
constants (K1, K2) of the sulphate complexes Mn(SO4)i+3–2i: 1 – (104, 107), 2 – (103, 106),
3 – (102.5, 105), 4 – (102, 104), 5 – (104, 0), 6 – (103, 0), 7 – (102, 0), 8 – (0, 0) and (B) the titration
curve obtained experimentally; FeSO4 (C0 = 0.01 mol/L) + H2SO4 (Ca = 0.1 mol/L) as D titrated
with C = 0.02 mol/L KMnO4 as T (Michałowski and Lesiak, 1994b; Michałowski, 2010).
F1=[pr1]+3[pr2]+[pr3]+[pr4]+[Mg+2]+[MgOH+1]+[MgH2PO4+1]+
[MgHPO4]+[MgPO4–1]+[MgNH3+2]+[Mg(NH3)2+2]+ (40)
[Mg(NH3)3+2]+[MgHCO3+1]+[MgCO3]–C0=0
F2=[pr1]+[NH4+1]+[NH3]+[MgNH3+2]+2[Mg(NH3)2+2]+3[Mg(NH3)3+2]–C0=0 (41)
F3=[pr1]+2[pr2]+[pr3]+[H3PO4]+[H2PO4–1]+[HPO4-2]+[PO4- (42)
3]+[MgH PO +1]+[MgHPO ]+[MgPO –1]–C =0
2 4 4 4 0
F4=[H+1]–[OH–1]++[NH4+1]+2[Mg+2]+[MgOH+1]–[HCO3–1]–2[CO3-2]+
[MgH2PO4+1]–[MgPO4–1]+[MgHCO3+1]+2[MgNH3+2]+ (43)
2[Mg(NH3)2+2]+2[Mg(NH3)3+2]–[H2PO4–1]–2[HPO4-2]–3[PO4–3]=0
F5=[H2CO3]+[HCO3–1]+[CO3-2]+[MgHCO3+1]+[MgCO3]–CCO2=0 (44)
where (in Eq. 43)
= Cb – Ca (45)
On defined stage of pr1 dissolution, concentrations of some (or all) solid phases assumed
zero value. To check it, the qi values:
q1=[Mg+2][NH4+1][PO4-3]/Kso1; q2=[Mg+2]3[PO4-3]2/Kso2;
q3=[Mg+2][HPO4-2]/Kso3; (46)
q4=[Mg ][OH–1]2/Kso4; q5=[Mg+2][CO3-2]/Kso5
+2
for different potentially precipitable species pri (i=1,...,5) were ‘peered’ in computer program
applied for this purpose.
Concentration of MgCO3, i.e. [pr5], has not been included in the concentration balances (40)
and (44) specified above. Simply, from the preliminary calculations it was stated that, at any
case considered below, pr5 does not exist as the equilibrium solid phase.
At the start for calculations, the fundamental variables were chosen, namely:
x1=pMg=–log[Mg+2], x2=pNH3=–log[NH3],
x3=pHPO4=–log[HPO4-2], (47)
x4=pH, x5=pHCO3=–log[HCO3–1]
At CCO2 = 0 (pCCO2 = ), Eq. (44) does not enter in the set of balances and four fundamental
variables, x = (x1,…,x4), are applied
x1=pMg=–log[Mg+2],x2=pNH3=–log[NH3],x3=pHPO4=–log[HPO4-2],x4=pH (48)
and the sum of squares
Generally, the calculation procedure and graphical presentation was similar to one
described in the paper (Michałowski and Pietrzyk, 2006). It concerns particular species and
values for the solubility or dissolution (s, mol/L) of pr1, expressed by the formula
s=[Mg+2]+[MgOH+1]+[MgH2PO4+1]+[MgHPO4]+[MgPO4–1]+
(50)
[MgNH3+2]+[Mg(NH3)2+2]+[Mg(NH3)3+2]
at CCO2 = 0, or
In further parts of this chapter, two values: Cb = 0 and Cb = 10–2 [mol/L] for KOH
concentration will be considered. The calculations will be done for different concentrations
of CO2, expressed by pCCO2 values, equal 2, 3, 4, 5 and .
The results obtained provide the following conclusions.
At pC0 = 3, pCCO2 = 4 and pCb = , the solubility product Kso2 for pr2 is attained at ppr1 =
3.141 (Fig. 19a), and then pr2 is precipitated
(d) (e)
Fig. 21. The pH vs. ppr1 relationships plotted at different sets of (pC0, pCCO2, pCb) values: (a)
(3, 4, ); (b) (3, , ); (c) (2, 4, ); (d) (2, 4, 2); (e) (2, 2, ).
28 Applications of MATLAB in Science and Engineering
At pC0 = 2, pCCO2 = 2 and pCb = , after the solubility product for pr3 attained (line ab at
ppr1 = 2.376), pr3 is the equilibrium solid phase up to ppr1 = 2.393 (line cd), where the
solubility product for pr2 is attained, see Fig.19f. For ppr1 < 2.393, 2.506 >, two
equilibrium solid phases (pr2 and pr3) exist in the system. Then, at ppr1 = 2.506, pr3 is
totally depleted (Fig.20e,2f), and then pr1 is totally transformed into pr2. On particular
steps, the following, predominating reactions occur:
12.3 Composition of the solid phase when equimolar quantities of reagents are mixed
In this section, the solid products obtained after mixing equimolar solutions of MgCl2 and
NH4H2PO4 are considered at CCO2 = 0, i.e. in absence of CO2. The concentrations are then
equal C mol/L for magnesium, nitrogen and phosphorus (CMg = CN = CP = C). It will be
stated below that the solid phase composition is also affected by the C value.
(pH 13) were related to the systems with the equilibrium solid phase(s) involved. To omit
the concentration of the points referred to different -values, only a part of them were
plotted in the related figures (Fig. 25ab,c). Except for the data specified in Fig. 25c, where pr1
exists as the sole solid phase within pH ca 7 – 9, irrespectively on the C-value assumed on
the ordinate. In other instances, pr1 is accompanied by pr2.
can be considered. Thus, s+2 balances and their time derivatives, written in general forms
(Michałowski et al., 1996):
ij [X j
zj
]i 0 (60)
j
z
d[ X j j ]
ij dt
0 (61)
j
(i = 1,…,s+2) are valid. Eqs. (60) and (61) form a set of 2(s+2) linearly independent equations
(60), completed by linearly independent relations between concentrations of some species.
All primary, intermediate and final products originated from organic substance (e.g.,
malonic acid) should be involved in (60) and (61), also as complexes with other ions. A due
set of parameters, of both thermodynamic (e.g., standard potentials, stability constants of
complexes, dissociation constants) and kinetic (rate constants) nature, are involved in there.
In closed systems, with diathermal walls securing isothermal course of reactions, equations
(60) and (61) are considered as (independent on time) constraints put on concentrations and
rated of reactions in the system.
The time-derivatives in Eq. (61) can be expressed as follows
z
d[ X j j ]
k ju f u ( x) k jv f v ( x) (62)
dt u v
where kjw – rate constants, w = u, v, kjw ≥ 0, fu(x), fv(x) – functions involving rationally
selected concentrations [Xl]. Some species entering the balances (60), e.g., [Na+1] introduced
by sodium bromate in BZ system, do not participate the oscillation reactions and their
concentrations remain unchanged, e.g., d[Na+1]/dt = 0.
The set of independent variables should be then formulated. For example, bromine species
can be expressed by relations similar to (16), obtained on the basis of mass action law, and
formulae (12). The choice of independent variables is conditioned by appropriate measuring
devices applied; e.g., [Br-1] is measured with ion-selective bromine electrode, potential E –
with platinum indicator electrode, pH – with glass electrode – all inserted with a reference
electrode, in perfectly mixed cell (reactor).
Concentrations of some components cannot be directly measured with a specific, indicator
electrode. In such instances, other analytical techniques must be put in work; e.g., Ce(IV)
species absorb light and this property can be exploited for analytical purposes. Absorbance
A, measured at wavelength λ, can be expressed by equation
A j [X j j ]
z
(63)
j
involving the species in defined λ-range; ωj = ωj(λ) are the coefficients defined as products of
molar absorptivities, εj = εj(λ), and the path length (l) of light in cuvette, ωj = εj·l. It enables
any system of this kind to be resolved.
The measuring cell applied for determination of kinetic parameters should provide the
possibility of simultaneous measurements of different parameters in situ, at different
32 Applications of MATLAB in Science and Engineering
moments of time t. The parameters considered can be found in iterative manner, through
fitting the above equations to experimental data registered at different t values. Resolution
of the equations and discrimination of the model may provide the temporal relationships, yj
= yj(t), namely: [Xj] = fj(t), E = E(t), pH = pH(t), A = A(t). The relationships can be presented
graphically, in 2D and 3D space.
The rudimentary formulation of balances (60) and (61) requires, among others, a deep
knowledge of intermediate species formed during gradual oxidation of the organic
substance (considered as the paliwo of this reaction). The experience is also needed to
distinguish between the processes proceeding instantly (where equilibrium constants are
only involved) and ones of kinetic nature, where rate constants are also applied.
Some limitations are caused by nature of the species formed; e.g., a limited solubility of CO2
in BZ or O2 in BL has to be taken into account (Gyorgyi et al., 1992).
14. Conclusions
The computer simulation realized within GATES with use of iterative computer programs,
e.g., MATLAB, provides quite a new quality in knowledge gaining. It enables to follow the
details of the process, registered with use of measurable quantities, such as pH and/or
potential E. When referred to redox systems, it enables to gain incomparably better
knowledge (Michałowski, 2010) than one offered hitherto by the well-known Pourbaix
diagrams. GATES enables to avoid the necessity of quantitative inferences based on
fragile/rachitic chemical reaction notation, involving only some of the species existing in the
system. From the GATES viewpoint, the ‘stoichiometry’ can be perceived only as a
mnemonic term. In calculations, the metastable state is realised by omission of potential
products in the related balances, whereas ‘opening’ a reaction pathway in metastable state is
based on insertion of possible (from equilibrium viewpoint) products in the related
balances. One can also test the interference effects, of different kind.
Concentrations of the species in redox systems cover frequently much wider range of values
than in non-redox systems. For example, the concentrations of oxidized forms of chloride in
the system 9.2.5 are negligibly small in comparison with [Cl-1]; concentration of Cl2 (the
oxidized chlorine species of the highest concentration) is smaller than 10-14 mol/L. The
concentrations of heptavalent iodine specie are lower than 10-20 mol/L in this system
(Michałowski and Lesiak, 1994b). However, this information is not attainable a priori, i.e.
before starting for calculations. Consideration of the generalized model before prior
knowledge on the relative contents of different species, is the great advantage of GATES.
The course of the plots referred to different species enables to distinguish between the main
and accompanying reactions, see e.g., Figs. 6 and 7.
Some details inherent in two-phase systems cannot be tracked experimentally, with use of
physicochemical or analytical instrumentation known hitherto. For example, any electrode
introduced into two-phase system is the extraneous body acts as a centre of crystallisation in
two-phase systems and disturbs e.g., nucleation processes occurred in such systems.
Moreover, the indications of a measuring system lag behind the processes that, additionally,
are based on the assumption that the process occurs uniformly within the whole system
tested. The mixing device applied for this purpose is another kind of extraneous body,
affecting similarly as the electrodes. Then the simulation of the dynamic processes according
to GATES with use of the iterative computer program, e.g., MATLAB, involving all
attainable (and pre-selected) physicochemical knowledge appears then to be the one and
Application of GATES and MATLAB for Resolution of
Equilibrium, Metastable and Non-Equilibrium Electrolytic Systems 33
only way to track them efficiently. It refers both to batch and dynamic systems, whose
speciation can be followed this way.
Application of the simulating procedure (optimization a priori) enabled to apply some
essential modifications and significant improvements of in the models applied for
physicochemical and analytical needs Michałowski et al., 2008; Michałowski et al., 2011;
Ponikvar et al., 2008).
According to author’s experience, the main difficulties in the right description of redox
systems arise on the line of junction between thermodynamics and kinetics; this line is not
precisely defined in many metastable systems. One should notice that involving some
species or a group of species in the balances is tantamount with ‘overthrowing’ the potential
barrier for a reaction that is effective from thermodynamic viewpoint, but does not proceed
with respect to the kinetics involved. All the inferences are based on firm, mathematical
(algebraic) foundations, not on an extremely ‘fragile’ chemical notation principle that is only
a faint imitation of a true, algebraic notation. The approach proposed allows to understand
far better all physicochemical phenomena occurring in the system in question and improve
some methods of analysis. All the facts testify very well about the potency of simulated
calculations made, according to GATES, on the basis of all attainable physicochemical
knowledge. Testing the complex redox and non–redox systems with use of iterative
computer programs deserves wider popularisation among physico-chemists and chemists–
analysts.
The generalised approach to electrolytic systems (GATES), with the generalized electron
balance (GEB) concept included, is the most general theory related to thermodynamic
description of equilibrium and metastable electrolytic systems, of any degree of complexity.
Within GATES, all attainable/preselected physicochemical knowledge can be involved.
GATES is related to non-redox and redox (batch and dynamic) systems. The GEB, results
from elemental balances for H and O. Within GATES, stoichiometry is the derivative
concept only.
All electrolytic systems can be reconstructed on the basis of three fundamental laws
obligatory in GATES: (1) law of charge conservation, (2) conservation of elements, (3) law of
mass action. Other laws known in chemistry originate from these laws. Summarizing, the
GATES can be perceived as the introductory step for theory of everything (TOE) in
chemistry of electrolytic systems.
15. References
Erdey, L., Bodor, E., Buzas,H., (1951/52), Fresenius' Zeitschrift für Analytische Chemie, 134 22-,
ISSN: 0016-1152.
Erdey, L., Svehla, G., Ascorbinometric Titrations, Akadémiai Kiadó, Budapest 1973.
Györgyi, L., Field, R.J. (1992), A three-variable model of deterministic chaos in the Belousov–
Zhabotinsky reaction, Nature Vol. 355, (27 February), pp. 808-810; ISSN : 0028-0836
Gyorgyi, L., Field, R.J., Noszticzius, Z., McCormic, W.D., Swinney, H.L., (1992),
Confirmation of high flow; rate chaos in the Belousov- Zhabotinsky reaction,
Journal of Physical Chemistry, Vol. 96, Issue 3, pp. 1228-1233; ISSN 0022-3654.
Michałowski, T., (1994), Calculation of pH and potential E for bromine aqueous solution,
Journal of Chemical Education, Vol. 71, Issue 7, pp. 560-562, ISSN: 0021-9584
Michałowski, T., Lesiak, A., (1994a). Acid-base titration curves In disproportionating redox
systems, Journal of Chemical Education, Vol. 71, Issue 8, pp. 632-636, ISSN: 0021-9584.
34 Applications of MATLAB in Science and Engineering
Michałowski, T., Lesiak, A., (1994b). Formulation of generalized equations for redox
titration curves, Chemia Analityczna (Warsaw), Vol. 39, pp. 623-637, ISSN: 0009-2223.
Michalowski, T, Wajda, N., Janecki, D.,(1996), An unified quantitative approach to
electrolytic systems, Chemia Analityczna (Warsaw), Vol. 41, Issue 4, pp. 667-685,
ISSN: 0009-2223.
Michałowski, T. (2001), Calculations in Analytical Chemistry with Elements of Computer
Programming (in Polish), ISBN: 83-7242-173-0, Cracow University of Technology,
Cracow, Poland; ISBN: 83-7242-173-0.
Michalowski, T., Rymanowski, M., Pietrzyk, A., (2005), Nontypical Brønsted Acids and
Bases, Journal of Chemical Education, Vol. 82, Issue 3, pp. 470-472, ISSN: 0021-9584.
Michałowski, T.., Pietrzyk, A., (2006), A thermodynamic study of struvite+water system,
Talanta, 68 (2006) 594-601; ISSN 0039-9140.
Michałowski, T., Kupiec, K., Rymanowski, M. (2008), Numerical analysis of the Gran
methods, Analytica Chimica Acta, Vol. 606, Issue 2, (January 14), pp. 172-183. ISSN:
0003-2670.
Michałowski,T., Borzęcka, M., Toporek, M., Wybraniec, S., Maciukiewicz, P., Pietrzyk, A.,
(2009) Quasistatic Processes in Non-Equilibrium Two-Phase Systems with Ternary
Salts: II. Dolomite + Aqueous Media, Chem. Anal. (Warsaw) 54, 1203-1217
Michałowski, T. (2010). The Generalized Approach to Electrolytic Systems. I.
Physicochemical and Analytical Implications, Critical Reviews in Analytical
Chemistry, Vol. 40, Issue 1, (January, 2010) pp. 2-16, ISSN: 1040-8347
Michałowski, T., Pietrzyk A., Ponikvar-Svet, M., Rymanowski M. (2010), The Generalized
Approach to Electrolytic Systems: II. The Generalized Equivalent Mass (GEM)
Concept, Critical Reviews in Analytical Chemistry, Vol. 40, Issue 1 (January, 2010), pp.
17–29, ISSN: 1040-8347.
Michałowski, T., Pilarski, B., Ponikvar-Svet, M., Asuero, A.G., Kukwa, A., Młodzianowski,
J., (2011), New methods applicable for calibration of indicator electrodes, Talanta,
Vol. 83, Issue 5, pp. 1530-1537; ISSN 0039-9140.
Ponikvar, M., Michałowski, T., Kupiec, K., Wybraniec, S., Rymanowski, M. (2008),
Experimental verification of the modified Gran methods applicable to redox
systems, Analytica Chimica Acta, Vol. 628, Issue 2 (3 November), pp. 181-189 ISSN:
0003-2670.
0
2
Germany
1. Introduction
Vital functions of living organisms, such as immune responses or the metabolism, are
controlled by complex regulatory networks. These networks comprise, amongst others,
regulatory genes called transcription factors and cascades of information-processing proteins
such as enzymes. The ultimate goal of the increasingly popular systems biology approach is to
set-up extensive computer models that closely reflect the real-life behavior of these biological
networks (Kitano, 2002; Werner, 2007). With a reasonable in silico implementation at hand,
novel predictions, e.g. about the effect of gene mutations, can be generated by the computer.
The two basic modes of regulation we concentrate on here, are inhibition and activation
between two factors. Figure 1A visualizes the relation between the concentrations of
e.g. two transcription factors, which are linked by an activation (left-hand figure) or inhibition
(right-hand figure). Figure 1B shows a network of interacting activations and inhibitions as it
might be found in living cells. While a single regulatory interaction can easily be understood,
the complex wiring of several interactions, even for a medium-scale model as depicted here,
renders the manual investigation of the system’s dynamics unfeasible. For further information
on the concepts of regulation, we refer biologically interested readers to Alon (2006).
Classical computational modeling approaches attempt to describe biochemical reaction
networks as systems of ordinary differential equations (ODEs) (Klipp et al., 2005; Tyson
et al., 2002). This requires detailed knowledge about the molecular mechanisms in order
to implement precise kinetic rate laws for each biochemical reaction. However, for many
biological systems, and especially gene-regulatory networks, only qualitative information
about interactions, like “A inhibits B“, is available. A well-established workaround for
this lack of information is the application of discrete modeling approaches. In Boolean
methodology we abstract from actual molecule quantities and assign each player in the system
the state on or off (e.g. active or inactive). Despite their simplicity, Boolean models have been
shown to provide valuable information about the general dynamics and capabilities of the
underlying system (Albert & Othmer, 2003; Fauré et al., 2006; Samaga et al., 2009).
To bridge the gap between discrete and fully quantitative models, we developed Odefy,
a MATLAB- and Octave-compatible toolbox for the automated transformation of Boolean
36
2 Applications of MATLAB in Science and Engineering
Lithography
Fig. 1. A Two basic modes of regulation, e.g. between two genes and their proteins. If the
regulatory factor (red) constitutes an activatory influence towards another factor (blue), it
will increase the activity of the blue factor, whereby the magnitude of this activation is
dependent on the expression of the red factor itself. Inhibition acts analogously, but the
expression of both factors is anti-correlated. B Regulatory interactions are part of complex
gene-regulatory networks which can be analyzed only by means of computational tools.
models into systems of ODEs (Krumsiek et al., 2010; Wittmann et al., 2009a). Odefy
implements a canonical way of transforming Boolean into continuous models, where the
use of multivariate polynomial interpolation allows transformation of logic operations into a
system of ODEs. Furthermore, we optionally apply sigmoidal Hill functions to get reasonable
approximations of real gene regulation dynamics. The Odefy software provides convenient
access to different model sources, the conversion process itself and various analysis and
export methods. After generating the ODEs, the user can easily adjust model parameters and
perform time-course simulations using Odefy’s graphical user interface. The ODE systems
can be exported to MATLAB script files for further usage in MATLAB programs, to ODE script
files for the R computing platform, to the SBML format, or to the well-established MATLAB
Systems Biology Toolbox (Schmidt & Jirstrand, 2006). Due to the nice mathematical properties
of the produced ODEs and the integration with state-of-the-art modeling tools, a variety of
analysis methods can be immediately applied to the models generated by Odefy, including
bifurcation analysis, parameter estimation, parameter sensitivity analysis, and the like.
This chapter is organized as follows. First, we will review the theoretical background of the
Odefy method by introducing Boolean models, the interpolation process and Hill functions
as a generalization of Michaelis-Menten kinetics. Next, the general structure of the Odefy
toolbox as well as details about model representation and input formats are discussed. In
the major part of this chapter, we will guide the reader through four sample applications of
our toolbox, which include both regular Boolean modeling as well as Odefy-converted ODE
models, see Table 1 for a detailed overview. The Odefy toolbox can be freely downloaded
from http://hmgu.de/cmb/odefy. All codes and additional files used in the examples
throughout this chapter are located at http://hmgu.de/cmb/odefymaterials.
2. Mathematical backgrounds
In the following, we provide a brief introduction to Boolean models in general, and the
automatic conversion of Boolean models into continuous systems of ordinary differential
equations. For more detailed information on these topics, we refer the reader to the papers
Krumsiek et al. (2010); Thomas (1991); Wittmann et al. (2009a).
From Discrete
Tutorial Usingto
theContinuous Gene Regulation Models – A Tutorial Using the Odefy Toolbox 373
From Discrete to Continuous Gene Regulation
Models – A Odefy Toolbox
qualitative quantitative
knowledge data
refinement of model
experimental design
explanation of data,
representation
mathematical
Boolean continuous
model model
transformation
more convenient and intuitive way of representing Boolean update functions is the usage
of symbolic equations with logical operators. For example,
represents a regulatory interaction where A will be ’on’ in the next time step if and only if at
least one of the activators B and C is present and the inhibitor D is absent. For simplicity, we
leave out time dependencies in the Boolean equations:
A = (B ∨ C) ∧ ¬D
Some exemplary evaluations for this equation: (i) if B=1,C=0,D=0 then A will be 1; (ii)
likewise, if B=0,C=1,D=0 then A=1; (iii) if D=1, then A=0 regardless of the values of B and
C.
When computing the follow-up state for the next time point t + 1 from the current time point
t, two principal updating schemes can be employed (cf. Fauré et al. (2006)). When following
a synchronous updating policy, the states of all factors are updated at the same time. On the
other hand, when performing asynchronous updating, the value of only one factor is changed
during each time step. For the latter case, an update order for the players in the system is
required. In Odefy, one can either provide a predefined update order (e.g. B, A, D, C) that will
be followed, or one can let the toolbox randomly select a player at each new time step.
1
ẋi = Bi xi1 , xi2 , . . . , xiNi − xi .
τi
The right-hand side of this equation consists of two parts, an activation function Bi describing
the production of species xi and a first-order decay term. An additional parameter τi is
introduced to the system, which can be understood as the life-time of species xi . Bi can be
considered a continuous homologue of the Boolean update function. The key point is how it
can be obtained from Bi in a computationally efficient manner. We present here three concrete
approaches of extending a Boolean function to the continuous interval [0,1]. The basis of all
three transformation methods are the so-called BooleCubes:
" #
1 1 1 N
I
B ( x1 , x2 , . . . , x N ) := ∑ ∑ ··· ∑ B( x1 , x2 , . . . , x N ) · ∏ ( xi xi + (1 − xi ) (1 − xi ))
x1 =0 x2 =0 x N =0 i =1
which we obtain by multilinear interpolation of the Boolean function B, cf. Figure 3A.
I
The functions B are affine multilinear. Many molecular interactions, however, are known
to show a switch-like behavior, which can be modeled using sigmoidal Hill functions
f ( x ) = x n / ( x n + kn ), see Figure 3B. Hill functions are a generalization of the well-known
Other documents randomly have
different content
their approving of an armed hypocrisy,” was not more applicable to
the rulers of Barbary than to the people of England. “Puffed up with
their successes, they forgot their obedience, and these saints denied
the king the fifth part of their spoils.... By which it appeared that
they took up arms, not out of love for their country and zeal for their
religion, but out of desire of rule.” There is, indeed, nothing in these
utterances which need have prevented the writer from consistently
promoting the Revolution of 1688; yet his principles seem to have
carried him far in the opposite direction; and it is interesting to
remember that the assertor in Convocation of the doctrine of
indefeasible hereditary right was the father of the author of the
Whig Examiner and the Freeholder. However decidedly Joseph may
have dissented from his father’s political creed, we know that he
entertained admiration and respect for his memory, and that death
alone prevented him from completing the monument afterwards
erected in Lancelot’s honour in Lichfield Cathedral.
Of Addison’s mother nothing of importance is recorded. His second
brother, Gulston, became Governor of Fort St. George, in the East
Indies; and the third, Lancelot, followed in Joseph’s footsteps so far
as to obtain a Fellowship at Magdalen College, Oxford. His sisters,
Jane and Anna, died young; but Dorothy was twice married, and
Swift records in her honour that she was “a kind of wit, and very like
her brother.” We may readily believe that a writer so lively as
Lancelot would have had clever children, but Steele was perhaps
carried away by the zeal of friendship or the love of epigram when
he said, in his dedication to the Drummer: “Mr. Dean Addison left
behind him four children, each of whom, for excellent talents and
singular perfections, was as much above the ordinary world as their
brother Joseph was above them.” But that Steele had a sincere
admiration for the whole family is sufficiently shown by his using
them as an example in one of his early Tatlers:
“I remember among all my acquaintance but one man
whom I have thought to live with his children with
equanimity and a good grace. He had three sons and one
daughter, whom he bred with all the care imaginable in a
liberal and ingenuous way. I have often heard him say he
had the weakness to love one much better than the other,
but that he took as much pains to correct that as any
other criminal passion that could arise in his mind. His
method was to make it the only pretension in his children
to his favour to be kind to each other, and he would tell
them that he who was the best brother he would reckon
the best son. This turned their thoughts into an emulation
for the superiority in kind and tender affection towards
each other. The boys behaved themselves very early with
a manly friendship; and their sister, instead of the gross
familiarities and impertinent freedoms in behaviour usual
in other houses, was always treated by them with as
much complaisance as any other young lady of their
acquaintance. It was an unspeakable pleasure to visit or
sit at a meal in that family. I have often seen the old
man’s heart flow at his eyes with joy upon occasions
which would appear indifferent to such as were strangers
to the turn of his mind; but a very slight accident, wherein
he saw his children’s good-will to one another, created in
him the god-like pleasure of loving them because they
loved each other. This great command of himself in hiding
his first impulse to partiality at last improved to a steady
justice towards them, and that which at first was but an
expedient to correct his weakness was afterwards the
measure of his virtue.”[5]
This, no doubt, is the set description of a moralist, and to an age in
which the liberty of manners has grown into something like license it
may savour of formalism and priggishness; but when we remember
that the writer was one of the most warm-hearted of men, and that
the subject of his panegyric was himself, full of vivacity and impulse,
it must be admitted that the picture which it gives us of the Addison
family in the rectory of Milston is a particularly amiable one.
Though the eighteenth century had little of that feeling for natural
beauty which distinguishes our own, a man of Addison’s imagination
could hardly fail to be impressed by the character of the scenery in
which his childhood was passed. No one who has travelled on a
summer’s day across Salisbury plain, with its vast canopy of sky and
its open tracts of undulating downland, relieved by no shadows
except such as are thrown by the passing cloud, the grazing sheep,
and the great circle of Stonehenge, will forget the delightful sense of
refreshment and repose produced by the descent into the valley of
the Avon. The sounds of human life rising from the villages after the
long solitude of the plain, the shade of the deep woods, the coolness
of the river, like all streams rising in the chalk, clear and peaceful,
are equally delicious to the sense and the imagination. It was,
doubtless, the recollection of these scenes that inspired Addison in
his paraphrase of the twenty-third Psalm:
“The Lord my pasture shall prepare,
And feed me with a shepherd’s care.
· · · · · ·
When in the sultry glebe I faint,
Or on the thirsty mountain pant,
To fertile vales and dewy meads
My weary wandering steps he leads,
Where peaceful rivers, soft and slow,
Amid the verdant landscape flow.”
At Amesbury he was first sent to school, his master being one Nash;
and here, too, he probably met with the first recorded adventure of
his life. It is said that having committed some fault, and being fearful
of the consequences, he ran away from school, and, taking up his
abode in a hollow tree, maintained himself as he could till he was
discovered and brought back to his parents. He was removed from
Amesbury to Salisbury, and thence to the Grammar School at
Lichfield, where he is said to have been the leader in a “barring out.”
From Lichfield he passed to the Charter House, then under the
charge of Dr. Ellis, a man of taste and scholarship. The Charter
House at that period was, after Westminster, the best-known school
in England, and here was laid the foundation of that sound classical
taste which perfected the style of the essays in the Spectator.
Macaulay labours with much force and ingenuity to prove that
Addison’s classical acquirements were only superficial, and, in his
usual epigrammatic manner, hazards the opinion that “his knowledge
of Greek, though doubtless such as was, in his time, thought
respectable at Oxford, was evidently less than that which many lads
now carry away every year from Eton and Rugby.” That Addison was
not a scholar of the class of Bentley or Porson may be readily
admitted. But many scattered allusions in his works prove that his
acquaintance with the Greek poets of every period, if cursory, was
wide and intelligent: he was sufficiently master of the language
thoroughly to understand the spirit of what he read; he undertook
while at Oxford a translation of Herodotus, and one of the papers in
the Spectator is a direct imitation of a jeu d’esprit of Lucian’s. The
Eton or Rugby boy who, in these days, with a normal appetite for
cricket and football, acquired an equal knowledge of Greek
literature, would certainly be somewhat of a prodigy.
No doubt, however, Addison’s knowledge of the Latin poets was, as
Macaulay infers, far more extensive and profound. It would have
been strange had it been otherwise. The influence of the classical
side of the Italian Renaissance was now at its height, and wherever
those ideas became paramount Latin composition was held in at
least as much esteem as poetry in the vernacular. Especially was this
the case in England, where certain affinities of character and
temperament made it easy for writers to adopt Roman habits of
thought. Latin verse composition soon took firm root in the public
schools and universities, so that clever boys of the period were
tolerably familiar with most of the minor Roman poets. Pope, in the
Fourth Book of the Dunciad, vehemently attacked the tradition as
confining the mind to the study of words rather than of things; but
he had himself had no experience of a public school, and only those
who fail to appreciate the influence of Latin verse composition on
the style of our own greatest orators, and of poets like Milton and
Gray, will be inclined to undervalue it as an instrument of social and
literary training.
Proficiency in this art may at least be said to have laid the
foundation of Addison’s fortunes. Leaving the Charter House in 1687,
at the early age of fifteen, he was entered at Queen’s College,
Oxford, and remained a member of that society for two years, when
a copy of his Latin verses fell into the hands of Dr. Lancaster, then
Fellow and afterwards Provost of the College. Struck with their
excellence, Lancaster used his influence to obtain for him a
demyship at Magdalen. The subject of this fortunate set of verses
was “Inauguratio Regis Gulielmi,” from which fact we may
reasonably infer that even in his boyhood his mind had acquired a
Whig bias. Whatever inclination he may have had in this direction
would have been confirmed by the associations of his new college.
The fluctuations of opinion in Magdalen had been frequent and
extraordinary. Towards the close of Elizabeth’s reign it was notorious
for its Calvinism, but under the Chancellorship of Laud it appears to
have adopted, with equal ardour, the cause of Arminianism, for it
was among the colleges that offered the stoutest opposition to the
Puritan visitors in 1647-48. The despotic tendencies of James II.,
however, again cooled its loyalty, and its spirited resistance to the
king’s order for the election of a Roman Catholic President had given
a mortal blow to the Stuart dynasty. Hough was now President, but
in consequence of the dispute with the king there had been no
election of demies in 1688, so that twice the usual number was
chosen in the following year, and the occasion was distinguished by
the name of the “golden election.” From Magdalen Addison
proceeded to his master’s degree in 1693; the College elected him
probationary Fellow in 1697, and actual Fellow the year after. He
retained his Fellowship till 1711.
Of his tastes, habits, and friendships at Oxford there are few
records. Among his acquaintance were Boulter, afterwards
Archbishop of Dublin—whose memory is unenviably perpetuated, in
company with Ambrose Phillips, in Pope’s Epistle to Arbuthnot,
“Does not one table Bavius still admit,
Still to one Bishop Phillips seem a wit?”—
and possibly the famous Sacheverell.[6] He is said to have shown in
the society of Magdalen some of the shyness that afterwards
distinguished him; he kept late hours, and read chiefly after dinner.
The walk under the well-known elms by the Cherwell is still
connected with his name. Though he probably acted as tutor in the
college, the greater part of his quiet life at the University was
doubtless occupied in study. A proof of his early maturity is seen in
the fact that, in his nineteenth year, a young man of birth and
fortune, Mr. Rushout, who was being educated at Magdalen, was
placed under his charge.
His reputation as a scholar and a man of taste soon extended itself
to the world of letters in London. In 1693, being then in his twenty-
second year, he wrote his Account of the Greatest English Poets; and
about the same time he addressed a short copy of verses to Dryden,
complimenting him on the enduring vigour of his poetical faculty, as
shown in his translations of Virgil and other Latin poets, some of
which had recently appeared in Tonson’s Miscellany. The old poet
appears to have been highly gratified, and to have welcomed the
advances thus made to him, for he returned Addison’s compliment
by bestowing high and not unmerited praise on the translation of the
Fourth Book of the Georgics, which the latter soon after undertook,
and by printing, as a preface to his own translation, a discourse
written by Addison on the Georgics, as well as arguments to most of
the books of the Æneid.
Through Dryden, no doubt, he became acquainted with Jacob
Tonson. The father of English publishing had for some time been a
well-known figure in the literary world. He had purchased the
copyright of Paradise Lost; he had associated himself with Dryden in
publishing before the Revolution two volumes of Miscellanies;
encouraged by the success which these obtained, he put the poet, in
1693, on some translations of Juvenal and Persius, and two new
volumes of Miscellanies; while in 1697 he urged him to undertake a
translation of the whole of the works of Virgil. Observing how
strongly the public taste set towards the great classical writers, he
was anxious to employ men of ability in the work of turning them
into English; and it appears from existing correspondence that he
engaged Addison, while the latter was at Oxford, to superintend a
translation of Herodotus. He also suggested a translation of Ovid.
Addison undertook to procure coadjutors for the work of translating
the Greek historian. He himself actually translated the books called
Polymnia and Urania, but for some unexplained reason the work was
never published. For Ovid he seems, on the whole, to have had less
inclination. At Tonson’s instance he translated the Second Book of
the Metamorphoses, which was first printed in the volume of
Miscellanies that appeared in 1697; but he wrote to the publisher
that “Ovid had so many silly stories with his good ones that he was
more tedious to translate than a better poet would be.” His study of
Ovid, however, was of the greatest use in developing his critical
faculty; the excesses and want of judgment in that poet forced him
to reflect, and his observations on the style of his author anticipate
his excellent remarks on the difference between True and False Wit
in the sixty-second number of the Spectator.
Whoever, indeed, compares these notes with the Essay on the
Georgics, and with the opinions expressed in the Account of the
English Poets, will be convinced that the foundations of his critical
method were laid at this period (1697). In the Essay on the Georgics
he seems to be timid in the presence of Virgil’s superiority; his
Account of the English Poets, besides being impregnated with the
principles of taste prevalent after the Restoration, shows deficient
powers of perception and appreciation. The name of Shakespeare is
not mentioned in it, Dryden and Congreve alone being selected to
represent the drama. Chaucer is described as “a merry bard,” whose
humour has become obsolete through time and change; while the
rich pictorial fancy of the Faery Queen is thus described:
“Old Spenser next, warmed with poetic rage,
In ancient tales amused a barbarous age—
An age that yet uncultivate and rude,
Where’er the poet’s fancy led pursued,
Through pathless fields and unfrequented floods,
To dens of dragons and enchanted woods.
But now the mystic tale, that pleased of yore,
Can charm an understanding age no more;
The long-spun allegories fulsome grow,
While the dull moral lies too plain below.”
According to Pope—always a suspicious witness where Addison is
concerned—he had not read Spenser when he wrote this criticism on
him.[7]
Milton, as a legitimate successor of the classics, is of course
appreciated, but not at all after the elaborate fashion of the
Spectator; to Dryden, the most distinguished poet of the day,
deserved compliments are paid, but their value is lessened by the
exaggerated opinion which the writer entertains of Cowley, who is
described as a “mighty genius,” and is praised for the inexhaustible
riches of his imagination. Throughout the poem, in fact, we observe
a remarkable confusion of various veins of thought; an unjust
depreciation of the Gothic grandeur of the older English poets; a just
admiration for the Greek and Roman authors; a sense of the
necessity of good sense and regularity in writings composed for an
“understanding age;” and at the same time a lingering taste for the
forced invention and far-fetched conceits that mark the decay of the
spirit of mediæval chivalry.
With the judgments expressed in this performance it is instructive to
compare such criticisms on Shakespeare as we find in No. 42 of the
Spectator, the papers on “Chevy Chase” (73, 74), and particularly
the following passage:
“As true wit consists in the resemblance of ideas, and false
wit in the resemblance of words, according to the
foregoing instances, there is another kind of wit which
consists partly in the resemblance of ideas and partly in
the resemblance of words, which, for distinction’s sake, I
shall call mixed wit. This kind of wit is that which abounds
in Cowley more than in any author that ever wrote. Mr.
Waller has likewise a great deal of it. Mr. Dryden is very
sparing in it. Milton has a genius much above it. Spenser
is in the same class with Milton. The Italians even in their
epic poetry are full of it. Monsieur Boileau, who formed
himself upon the ancient poets, has everywhere rejected it
with scorn. If we look after mixed wit among the Greeks,
we shall find it nowhere but in the epigrammatists. There
are, indeed, some strokes of it in the little poem ascribed
to Musæus, which by that, as well as many other marks,
betrays itself to be a modern composition. If we look into
the Latin writers we find none of this mixed wit in Virgil,
Lucretius, or Catullus; very little in Horace, but a great
deal of it in Ovid, and scarce anything else in Martial.”
The stepping-stone from the immaturity of the early criticisms in the
Account of the Greatest English Poets to the finished ease of the
Spectator is to be found in the notes to the translation of Ovid.[8]
The time came when he was obliged to form a decision affecting the
entire course of his life. Tonson, who had a wide acquaintance, no
doubt introduced him to Congreve and the leading men of letters in
London, and through them he was presented to Somers and
Montague. Those ministers perhaps persuaded him, as a point of
etiquette, to write, in 1695, his Address to King William, a poem
composed in a vein of orthodox hyperbole, all of which must have
been completely thrown away on that most unpoetical of monarchs.
Yet in spite of those seductions Addison lingered at Oxford. To retain
his Fellowship it was necessary for him to take orders. Had he done
so, there can be no doubt that his literary skill and his value as a
political partizan would have opened for him a road to the highest
preferment. At that time the clergy were far from thinking it
unbecoming to their cloth to fight in the political arena or to take
part in journalism. Swift would have been advanced to a bishopric,
as a reward for his political services, if it had not been for the
prejudice entertained towards him by Queen Anne; Boulter, rector of
St. Saviour’s, Southwark, having made himself conspicuous by
editing a paper called the Freethinker, was raised to the Primacy of
Ireland; Hoadley, the notorious Bishop of Bangor, edited the London
Journal; the honours that were awarded to two men of such second-
rate intellectual capacity would hardly have been denied to Addison.
He was inclined in this direction by the example and advice of his
father, who was now Dean of Lichfield, and who was urgent on his
son to rid himself of the pecuniary embarrassments in which he was
involved by embracing the Church as a profession. A few years
before he had himself seemed to look upon the Church as his future
sphere. In his Account of the Greatest English Poets he says:
“I leave the arts of poetry and verse
To them that practise them with more success.
Of greater truths I’ll now propose to tell,
And so at once, dear friend and muse, farewell.”
Had he followed up his intention we might have known the name of
Addison as that of an artful controversialist, and perhaps as a
famous writer of sermons; but we should, in all probability, have
never heard of the Spectator.
Fortunately for English letters, other influences prevailed to give a
different direction to his fortunes. It is true that Tickell, Addison’s
earliest biographer, states that his determination not to take orders
was the result of his own habitual self-distrust, and of a fear of the
responsibilities which the clerical office would involve. But Steele,
who was better acquainted with his friend’s private history, on
reading Tickell’s Memoir, addressed a letter to Congreve on the
subject, in which he says:
“These, you know very well, were not the reasons which
made Mr. Addison turn his thoughts to the civil world; and,
as you were the instrument of his becoming acquainted
with Lord Halifax, I doubt not but you remember the
warm instances that noble lord made to the head of the
College not to insist upon Mr. Addison’s going into orders.
His arguments were founded upon the general pravity and
corruption of men of business, who wanted liberal
education. And I remember, as if I had read the letter
yesterday, that my lord ended with a compliment that,
however he might be represented as a friend to the
Church, he never would do it any other injury than
keeping Mr. Addison out of it.”
No doubt the real motive of the interest in Addison shown by Lord
Halifax, at that time known as Charles Montague, was an anxiety
which he shared with all the leading statesmen of the period, and of
which more will be said presently, to secure for his party the services
of the ablest writers. Finding his protégé as yet hardly qualified to
transact affairs of State, he joined with Lord Somers, who had also
fixed his eyes on Addison, in soliciting for him from the Crown, in
1699, a pension of £300 a year, which might enable him to
supplement his literary accomplishments with the practical
experience of travel. Addison naturally embraced the offer. He looked
forward to studying the political institutions of foreign countries, to
seeing the spots of which he had read in his favourite classical
authors, and to meeting the most famous men of letters on the
Continent.
It is characteristic both of his own tastes and of his age that he
seems to have thought his best passport to intellectual society
abroad would be his Latin poems. His verses on the Peace of
Ryswick, written in 1697 and dedicated to Montague, had already
procured him great reputation, and had been praised by Edmund
Smith—a high authority—as “the best Latin poem since the Æneid.”
This gave him the opportunity of collecting his various compositions
of the same kind, and in 1699 he published from the Sheldonian
Press a second volume of the Musæ Anglicanæ—the first having
appeared in 1691—containing poems by various Oxford scholars.
Among the contributors were Hannes, one of the many scholarly
physicians of the period; J. Philips, the author of the Splendid
Shilling; and Alsop, a prominent antagonist of Bentley, whose
Horatian humour is celebrated by Pope in the Dunciad.[9]
But the most interesting of the names in the volume is that of the
once celebrated Edmond, commonly called “Rag,” Smith, author of
the Ode on the Death of Dr. Pocock, who seems to have been
among Addison’s intimate acquaintance, and deserves to be
recollected in connection with him on account of a certain similarity
in their genius and the extraordinary difference in their fortunes.
“Rag” was a man of fine accomplishments and graceful humour, but,
like other scholars of the same class, indolent and licentious. In spite
of great indulgence extended to him by the authorities of Christ
Church, he was expelled from the University in consequence of his
irregularities. His friends stood by him, and, through the interest of
Addison, a proposal was made to him to undertake a history of the
Revolution, which, however, from political scruples he felt himself
obliged to decline. Like Addison, he wrote a tragedy modelled on
classical lines; but, as it had no political significance, it only pleased
the critics, without, like “Cato,” interesting the public. Like Addison,
too, he had an opportunity of profiting by the patronage of Halifax,
but laziness or whim prevented him from keeping an appointment
which the latter had made with him, and caused him to miss a place
worth £300 a year. Addison, by his own exertions, rose to posts of
honour and profit, and towards the close of his life became
Secretary of State. Smith envied his advancement, and, ignoring the
fact that his own failure was entirely due to himself, murmured at
fortune for leaving him in poverty. Yet he estimated his wants at
£600 a year, and died of indulgence when he can scarcely have been
more than forty years of age.
Addison’s compositions in the Musæ Anglicanæ are eight in number.
All of them are distinguished by the ease and flow of the
versification, but they are generally wanting in originality. The best
of them is the Pygmæo-Gerano-Machia, which is also interesting as
showing traces of that rich vein of humour which Addison worked
out in the Tatler and Spectator. The mock-heroic style in prose and
verse was sedulously cultivated in England throughout the
eighteenth century. Swift, Pope, Arbuthnot, and Fielding, developed
it in various forms; but Addison’s Latin poem is perhaps the first
composition in which the fine fancy and invention afterwards shown
in the Rape of the Lock and Gulliver’s Travels conspicuously
displayed itself.
A literary success of this kind at that epoch gave a writer a wider
reputation than he could gain by compositions in his own language.
Armed, therefore, with copies of the Musæ Anglicanæ for
presentation to scholars, and with Halifax’s recommendatory letters
to men of political distinction, Addison started for the Continent.
CHAPTER III.
ebookbell.com