Degree of Freedom Analysis on Reacting SystemsEdit
If we have N different molecules in a system, we can write N mass balances or N mole balances, whether a reaction occurs in the system or not. The only difference is that in a reacting system, we have one additional unknown, the molar extent of reaction, for each reaction taking place in the system. Therefore each reaction taking place in a process will add one degree of freedom to the process.
ComplicationsEdit
Unfortunately, life is not ideal, and even if we want a single reaction to occur to give us only the desired product, this is either impossible or uneconomical compared to dealing with byproducts, side reactions, equilibrium limitations, and other nonidealities.
Independent and Dependent ReactionsEdit
When you have more than one reaction in a system, you need to make sure that they are independent. The idea of independent reactions is similar to the idea of linear independence in mathematics.
Lets consider the following two general parallel competing reactions:
We can represent each of the reactions by a vector of the coefficients:
By definition a set of vectors is only linearly independent if the equation:
where K1 and K2 are constants only has one solution: .
Lets plug in our vectors:
Since all components must add up to 0, the following system follows:
Obviously, the last three equations imply that unless c = d = 0 and e2 = 0, and thus the reactions are independent.
Linearly Dependent ReactionsEdit
There is one rule to keep in mind whenever you are checking for reaction dependence or independence, which is summarized in the following box.

Therefore, if the following reaction could occur in the same system as the two above:
then it would not be possible to analyze all three reactions at once, since this reaction is the sum of the first two. Only two can legitimately be analyzed at the same time.
All degree of freedom analyses in this book assume that the reactions are independent. You should check this by inspection or, for a large number of reactions, with numerical methods.
Extent of Reaction for Multiple Independent ReactionsEdit
When you are setting up extents of reaction in a molecular species balance, you must make sure that you set up one for each reaction, and include both in your mole balance. So really, your mole balance will look like this:
for all k reactions. In such cases it is generally easier, if possible, to use an atom balance instead due to the difficulty of solving such equations.
Equilibrium ReactionsEdit
In many cases (actually, the majority of them), a given reaction will be reversible, meaning that instead of reacting to completion, it will stop at a certain point and not go any farther. How far the reaction goes is dictated by the value of the equilibrium coefficient. Recall from general chemistry that the equilibrium coefficient for the reaction is defined as follows:

Here [A] is the equilibrium concentration of A, usually expressed in molarity for an aqueous solution or partial pressure for a gas. This equation can be remembered as "products over reactants" .
Usually solids and solvents are omitted by convention, since their concentrations stay approximately constant throughout a reaction. For example, in an aqueous solution, if water reacts, it is left out of the equilibrium expression.
Often, we are interested in obtaining the extent of reaction of an equilibrium reaction when it is in equilibrium. In order to do this, first recall that:
and similar for the other species.
Liquidphase AnalysisEdit
Rewriting this in terms of molarity (moles per volume) by dividing by volume, we have:
Or, since the final state we're interested in is the equilibrium state,
Solving for the desired equilibrium concentration, we obtain the equation for equilibrium concentration of A in terms of conversion:

Similar equations can be written for B, C, and D using the definition of extent of reaction. Plugging in all the equations into the expression for K, we obtain:
At equilibrium for liquidphase reactions only 
Using this equation, knowing the value of K, the reaction stoichiometry, the initial concentrations, and the volume of the system, the equilibrium extent of reaction can be determined.
Gasphase AnalysisEdit
By convention, gasphase equilibrium constants are given in terms of partial pressures which, for ideal gasses, are related to the mole fraction by the equation:

If A, B, C, and D were all gases, then, the equilibrium constant would look like this:

In order to write the gas equilibrium constant in terms of extent of reaction, let us assume for the moment that we are dealing with ideal gases. You may recall from general chemistry that for an ideal gas, we can write the ideal gas law for each species just as validly as we can on the whole gas (for a nonideal gas, this is in general not true). Since this is true, we can say that:
Plugging this into the equation for above, we obtain:
Therefore,

Similar equations can be written for the other components. Plugging these into the equilibrium constant expression:
Gas Phase IdealGas Equilibrium Reaction at Equilibrium 
Again, if we know we are at equilibrium and we know the equilibrium coefficient (which can often be found in standard tables) we can calculate the extent of reaction.
Special Notes about Gas ReactionsEdit
You need to remember that In a constantvolume, isothermal gas reaction, the total pressure will change as the reaction goes on, unless the same number of moles are created as produced. In order to show that this is true, you only need to write the ideal gas law for the total amount of gas, and realize that the total number of moles in the system changes.
This is why we don't want to use total pressure in the above equations for K, we want to use partial pressures, which we can conveniently write in terms of extent of reaction.
Inert SpeciesEdit
Notice that all of the above equilibrium equations depend on concentration of the substance, in one form or another. Therefore, if there are species present that don't react, they may still have an effect on the equilibrium because they will decrease the concentrations of the reactants and products. Just make sure you take them into account when you're calculating the concentrations or partial pressures of each species in preparation for plugging into the equilibrium constant.
Example Reactor Solution using Extent of Reaction and the DOFEdit
Consider the reaction of Phosphene with oxygen:
Suppose a 100kg mixture of 50% and 50% by mass enters a reactor in a single stream, and the single exit stream contains 25% by mass. Assume that all the reduction in oxygen occurs due to the reaction. How many degrees of freedom does this problem have? If possible, determine mass composition of all the products.
It always helps to draw a flowchart:
There are four independent unknowns: the total mass (mole) flowrate out of the reactor, the concentrations of two of the exiting species (once they are known, the forth can be calculated), and the extent of reaction.
Additionally, we can write four independent equations, one on each reacting substance. Hence, there are 0 DOF and this problem can be solved.
Let's illustrate how to do it for this relatively simple system, which illustrates some very important things to keep in mind.
First, recall that total mass is conserved even in a reacting system. Therefore, we can write that:
Now, since component masses aren't conserved, we need to convert as much as we can into moles so we can apply the extent of reaction.
Let's use the mole balance on oxygen to find the extent of reaction, since we know how much enters and how much leaves. Recall that:
where a is the stoichiometric coefficient for A. Plugging in known values, including a = 8 (from the reaction written above), we have:
Solving gives:

Now let's apply the mole balances to the other species to find how much of them is present:
 (note it's + instead of  because it's being generated rather than consumed by the reaction)
Finally, the last step we need to do is find the mass of all of these, and divide by the total mass to obtain the mass percents. As a sanity check, all of these plus 25 kg of oxygen should yield 100 kg total.
 Mass out = 1080 moles * 0.034 kg\mole = 36.72 kg
 Mass out = 97.66 moles * .284 kg\mole = 27.74 kg
 Mass out = 586 moles * 0.018 kg\mole = 10.55 kg
Sanity check: 36,72 + 27.74 + 10.55 + 25 (oxygen) = 100 kg (total), so we're still sane.
Hence, we get:

Example Reactor with EquilibriumEdit
Suppose that you are working in an organic chemistry lab in which 10 kg of compound A is added to 100 kg of a 16% aqueous solution of B (which has a density of 57 lb/ft^3) The following reaction occurs:
A has a molar mass of 25 g/mol and B has a molar mass of 47 g/mol. If the equilibrium constant for this reaction is 187 at 298K, how much of compound C could you obtain from this reaction? Assume that all products and reactants are soluble in water at the design conditions. Adding 10 kg of A to the solution causes the volume to increase by 5 L. Assume that the volume does not change over the course of the reaction.
Solution: First, draw a flowchart of what we're given.
Since all of the species are dissolved in water, we should write the equilibrium constant in terms of molarity:
We use initial molarities of A and B, while we are given mass percents, so we need to convert.
Let's first find the number of moles of A and B we have initially:
Now, the volume contributed by the 100kg of 16% B solution is:
Since adding the A contributes 5L to the volume, the volume after the two are mixed is .
By definition then, the molarities of A and B before the reaction occurs are:
In addition, there is no C or D in the solution initially:
According to the stoichiometry of the reaction, . Therefore we now have enough information to solve for the conversion. Plugging all the known values into the equilibrium equation for liquids, the following equation is obtained:
This equation can be solved using Goalseek or one of the numerical methods in appendix 1 to give:

Since we seek the amount of compound C that is produced, we have:
 Since , this yields
