Introduction to math methods for ChE and motivation for linear algebra#

  • The purpose of this course is to learn how to formulate and solve chemical engineering problems using analytical and numerical math methods.

  • This is both a math course and an engineering course. I will teach you mathematical tools to solve real world problems.

  • The best chemical engineers are often the ones that are best at math. Math is a powerful tool and chemical engineers are jacks of many trades that requires a hefty toolbox.

  • Being good at math is not some talent that you were born with. Every one of you has the opportunity to be good at math this semester and for the rest of your life. All you need to do is practice. A lot.

  • There will be many demands on your time this semester. Lab 1, Fluids, electives, extracurriculars. We ask a lot of you because we know you can do it! Working hard in this class is an investment that will help you with the rest of your classes.

How to solve a generic engineering problem#

  1. Problem Statement

  • Design a reactor; design a vehicle for drug delivery

  1. Problem formulation

  • convert the statement into a math model if possible (i.e. ill-posed problems exist)

  1. Problem analysis

  • Identify the type of math necessary to solve the problem, and determine a reasonable approach (analytical or numerical).

  1. Problem solution

  • solve the mathematical problem (which is not the same as the engineering problem)

  1. Problem evaluation

  • Sanity check. Does the math solution make physical sense? Does it help you solve the engineering problem? If not, 1/2/3/4 may need revision.

Most of your math courses only dealt with steps 3&4. But Chemical Engineers need to be good at all of the steps. That’s why we have this class to teach you the math tools and practice all of the steps together.

Methods in this course#

This course focused on 4 main methods:

  1. Linear Algebra - e.g. solving systems of linear equations

  2. Differential Equations - govern rates of change (space or time) of physical quantitities

  3. Probability & Stats - how to interpret results of an experiment or observation

  4. Numerical methods - solving 1/2/3 when an analytical solution is not possible

You will use each of these techniques in your future classes!

  • 06-261 Fluid Mechanics: Navier-Stokes Equations (2)

  • 06-364 Reaction Engineering: e.g. designing reactors (1,2,3)

  • 06-361 Unit Operations: e.g. distillation columns (1,2)

  • 06-363 Heat and Mass Transfer: heat exchangers (1,2)

  • 06-421 Design: solving a process flowsheet (1,2,3)

ChemE Motivation for Matrix Algebra#

Consider the following flow diagram:

So, what do we have here?

  • Three components in each stream

  • Six stream of unknown composition \(x_{i=stream}^{j=component}\)

Q: What is the component of each stream?

Problem: There are 18 compositions and we know only 1: \(x_3^c=0\). Therefore, we need 17 equations to solve for 17 unknown compositions!

Approach: Mole balances! Assume steady state:

\[\begin{align*} INPUT+GENERATION=OUTPUT \end{align*}\]

Balances on A:

\[\begin{align*} Mixer && 95+x_5^A&=x_1^A\\ Reactor && x_1^A-0.3x_1^A&=x_2^A\\ Flash && x_2^A&=x_3^A+x_4^A\\ && x_3^A&=0.02x_2^A\\ Split && x_4^A &= x_5^A + x_6^A\\ && x_6^A&=0.06x_4^A \end{align*}\]

Balances on B:

\[\begin{align*} Mixer && x_5^B&=x_1^B\\ Reactor && x_1^B+0.3x_1^A&=x_2^B\\ Flash && x_2^B&=x_3^B+x_4^B\\ && x_3^B&=0.98x_2^B\\ Split && x_4^B&=x_5^B+x_6^B\\ && x_6^B&=0.06x_4^B \end{align*}\]

Balances on C:

\[\begin{align*} Mixer && 5+x_5^C&=x_1^C\\ Reactor && x_1^C&=x_2^C \text{ (inert)}\\ Flash && x_2^C&=x_4^C \text{ since }x_3^C=0\\ Split && x_4^C&=x_5^C+x_6^C\\ && x_6^C&=0.06x_4^C \end{align*}\]
  • That’s a mess! You could solve algebraically by brute force, but we can do this far more quickly and systematically with linear (matrix) algebra!

  • It’s also unclear if we have correctly found all of the necessary equations to solve this system, but we’ll be able to show this later!

  • Since all 17 equations are linear (that is, no derivatives since we’re at steady state, and only powers of 1)

  • This is quite a simple flow sheet; real chemical plants have about \(10^5-10^6\) unknowns and equations!!