# 9 All About the Math

# Introduction

“It is all about the math!” a senior engineer once annunciated to his subordinates. Indeed, it is often said by many that mathematics is the language of the engineer. However, while not all types of engineering problem-solving require mathematics, the rigor that mathematics brings to engineering analyses usually sheds much light on the eventual solution to any given situation. Geometry, algebra, trigonometry, and calculus all give engineers the essential mathematical tools that can be used to solve problems. Differential equations, for example, also arise in engineering problem-solving. To this end, all engineers must become well-versed in solving various types of differential equations.

In engineering, quantities with both magnitude and direction are often needed, examples being forces, velocities, and accelerations, their manipulations often involving scalar and vector products. Vector quantities are most conveniently expressed using vector notation, a shorthand version of the corresponding scalar equations. For example, the equations of statics and motion of a fluid are often written as vector equations. Therefore, engineers must become comfortable using vector quantities, including shorthand versions of other vector operators such as the gradient operator, the Laplace operator, and the substantial derivative.

Objectives of this Lesson

- Comfortably use the concept of vectors.
- Understand the meaning of the primary vector operators such as scalar product, cross-product, gradient, divergence, and curl.
- Know how to interpret line integrals, surface integrals, and volume integrals.
- Appreciate the meaning of the substantial derivative and the Laplace operator, which frequently occur in engineering theory.
- Know a little about ordinary differential equations and how to solve them.

# Position Vectors

The location of an arbitrary point in space, say , can be defined by specifying the values of three coordinates, i.e., in terms of in a standard Cartesian coordinate system. As shown in the figure below, the point can be located by the position vector where

(1)

In general, if is a given vector in a Cartesian coordinate system and , and are the components of in the and directions, then

(2)

as shown in the figure below.

Remember that vectors are added component by component, nose to tail. If is directed from point to point and a second vector is defined as

(3)

that points from to , then the resultant vector that points from to is

(4)

Alternative coordinate systems may be used to describe any given problem, e.g., in a cylindrical or spherical coordinate system instead of a Cartesian coordinate system. Usually, the decision on a suitable coordinate system is a matter of convenience or whether or not the mathematics can be appropriately simplified in an alternative coordinate system. For example, in introductory engineering problems, Cartesian coordinate systems are used primarily, but sometimes polar coordinates will be used when convenient.

# Scalar and Vector Fields

A scalar quantity given as a function of coordinate space (and perhaps also time ) is called a scalar field. For example, fluid properties such as pressure , density , and temperature are all scalar quantities, i.e.,

(5)

Similarly, a vector quantity given as a function of coordinate space and time is called a vector field. e.g., velocity is a vector quantity. A velocity can be written in terms of its scalar components, i.e.,

(6)

where the components are

(7)

More often than not the velocity vector is written as

(8)

where , and are the components in the , and direction, respectively.

Similar expressions can be written for cylindrical and spherical coordinates. In many theoretical aerodynamic and other engineering problems, various scalar and vector fields will be unknowns that are to be obtained in a solution with prescribed initial and other boundary conditions.

# Scalar Products

Let the vectors and be given by

(9)

Then the scalar (dot) product is given by

(10)

Notice that the “centered dot” is used to represent the scalar product operator.

As shown in the figure below, physically the scalar product is the projection of one vector onto another, i.e., the component of one vector in the direction of the other. For example, the scalar projection (or scalar component) of a vector in the direction of a vector is given by

(11)

where is the angle between the vectors and .

# Vector Products

The vector product (cross product) is given by

(12)

where the vector product or “cross product” is denoted by the operator.

Expanding this operation out in terms of the third-order determinant gives

(13)

Given two vectors and then physically the cross product a vector that is perpendicular to both and and so is perpendicular to the plane containing them, as shown in the figure below. Like the dot or scalar product, the concept of a cross product has many uses and applications in engineering.

Similar expressions for and can be written in cylindrical and spherical coordinate systems.

Example #1 – Basic Vector Operations

Given two vectors and , then evaluate:

# Line Integrals

Consider a vector field . Also, consider a curve in space connecting two points and , as shown in the figure below. Let be an elemental length of the curve.

The line integral along the curve from to is

(14)

which is simply a statement that the integral is the sum of the components of the vector field along the direction of the curve to. ,

If the curve is closed, i.e., points and are coincident, then the line integral is

(15)

where the counterclockwise direction is considered positive according to the convention used in the field of mathematics, as shown in the figure below.

Consider a surface bounded by curve . Let be an elemental area of the surface and let be a unit normal vector, i.e., one that is perpendicular to the surface. Let be a scalar field in this space and a vector field. A surface integral over the surface can be defined as

(16)

where is called the vector elemental area or the *unit normal vector area*. If the surface is closed, then the integral is written as

(17)

# Volume Integrals

Consider a volume in space, as shown in the figure below, which contains a small elemental volume

Let be a scalar field in this space. The volume integral over the volume of the quantity is written as

(18)

The above result is a scalar. If is a vector field in space, then the volume integral is written as

(19)

and the result in this latter case will be a vector.

# Integral Relations

There are also some important relations between line, surface, and volume integrals that come up from time to time. Consider an area bounded by a closed curve . Let be a vector field. The line integral of over is related to the surface integral of over by using Stokes’ Theorem, i.e.,

(20)

Again, consider the volume enclosed by the closed surface . Then, the surface and volume integrals of the vector field are related through the divergence theorem (or Green’s Theorem) using

(21)

Finally, if represents a scalar field, then the gradient theorem states that

(22)

# Gradient of a Scalar Field

If , then the gradient (or grad ) is given by

(23)

where the operator (which is called nabla or del) is defined as

(24)

Physically, is the normal to the surface defined by = constant, as illustrated in the figure below.

Related to the gradient is the concept of a directional derivative. Consider some scalar quantity that is defined at some point over a surface. Choose some arbitrary direction away from the point and let be a unit vector in that direction. The rate of change of per unit length in the direction is

(25)

The term is called the *directional derivative*. Therefore, it can be appreciated that the rate of change of in any arbitrary direction is simply the component of in that particular direction.

Example # 2 – Calculate the Gradient of a Scalar Field

In the solution to a specific engineering problem, the solution to the scalar field is given by . Find an expression for .

Recall that the gradient of a scalar field is given by

where the operator is defined as

In this case

and after partial differentiation then

which is a vector.

# Divergence of a Vector Field

Consider a vector field , then

(26)

which is a scalar quantity.

In aerodynamics and fluid dynamics, the divergence can be interpreted as a flux density or the amount of flux entering or leaving a point in space. In fact, the term mass fluxes is often used, which are terms like , , etc. Divergence can be thought of as the rate of flux expansion (positive divergence) or flux contraction (negative divergence). By convention, the flux is defined as positive when it leaves a closed surface. So, the divergence is just the net flux per unit volume or flux density of the contents of a given region of space.

# Curl of a Vector Field

Again, consider the vector field defined by

(27)

Then the curl of is defined as

(28)

and expanding this determinant gives

(29)

A physical interpretation of the curl is that it represents the angular velocity of the rotation or “spin” of the contents of a given region of space. In aerodynamics, the curl of a velocity field is called *vorticity*, which is a physical concept that can help interpret the behavior of a flow. If the vorticity is zero, then the flow is said to be *irrotational*, and if the vorticity is non-zero then the flow is *rotational*.

Example #3 – Calculate the Curl of a Vector Field

The curl of a vector requires the evaluation of a determinant, i.e.,

and evaluating this determinant gives

After differentiation then

or

# Laplace Operator

The Laplace operator appears in several of the equations of aerodynamics and is a second-order differential operator that is defined as the divergence (i.e., ) of the gradient (i.e., ). The Laplace operator can be applied to both a scalar field and to a vector field.

In the case of a scalar field, say , the Laplace operator would be written in Cartesian coordinates as

(30)

Of course, the Laplace operator appears in the familiar Laplace equation, i.e.,

(31)

In aerodynamics, the Laplace equation is, in fact, the governing equation for an incompressible, irrotational flow. To this end, the linearity of the Laplace equation is useful in that if and are both flow solutions to the Laplace equation then is also a solution, i.e., the idea that incompressible, irrotational flows can be combined using linear superposition.

The Laplace operator can also be applied to a vector field, i.e., . In this case then

(32)

where

(33)

# Substantial Derivative Operator

The substantial derivative operator in Cartesian coordinates is written as

(34)

Recall that vector gradient operator is defined as

(35)

Hence, if the vector is then the substantial derivative can be written as

(36)

The substantial derivative can be applied to any flow field variable, scalar or vector. For example, if is the component of the velocity field then can be written as

(37)

The term is called the *local derivative*, which can be interpreted physically as the time rate of change of a given quantity at a fixed point. The term is called the c*onvective derivative*, which physically can be interpreted as the time rate of change from the movement of the given quantity from one point to another where its properties are spatially different. It will be apparent that terms like have units of time.

Notice that for a vector then is

(38)

# Ordinary Differential Equations (ODEs)

An ordinary differential equation (ODE) is an equation that involves ordinary derivatives of a function. A common problem in engineering is to solve an ODE, i.e., to determine what function (or functions) will satisfy a given differential equation or a set of such equations. For example, given the ODE

(39)

then what will be the function ?

The antiderivative of is , so

(40)

where is some (unknown) constant. Therefore, solving an ODE is more complicated than just anti-differentiation because the value of the constant must also be determined. To this end, additional information is required such as an initial condition or a boundary condition. Commonly, the value of will be known at some specific value of , e.g., . In this case, it will be apparent that

(41)

for all values of .

Consider another example, which is to solve the ODE

(42)

to determine the function .

One common approach for solving and ODE is to use separation of variables, a method frequently encountered in practice. In this case, separation of variables gives

(43)

Integrating both sides gives

(44)

If this ODE has an initial condition, say , then must satisfy

(45)

so the constant of integration must be

(46)

Therefore, the particular solution to this ODE is

(47)

# Working with Numbers

In engineering problems, information is often presented as numbers that must be manipulated to find a final answer. Much engineering work is done with numbers, and it is often said that anything else can only be an opinion, i.e., the truth can only be expressed in numbers or data. In this process, questions may be raised about whether it is necessary to round the numbers to a certain number of decimal places and/or significant digits. Common sense rules generally prevail, but some guidelines should be followed.

## Rounding Decimals

Sometimes a number needs to be rounded to a certain number of decimal places or even a whole number. To this end, some numbers must be removed from the decimals at the end of the number. The method is to look at the value of the following number after the one to stop at, then apply the rules for rounding:

- Round up if the first digit to be discarded is greater than 5. e.g., 3.14159 is 3.1416 to 4 decimal places.
- Round down if the first digit to be discarded is below 5. e.g., 3.141592 is 3.14159 to 5 decimal places.
- If the first discarded digit is 5, then round up if a non-zero digit follows it, but round down if followed by a zero, e.g., 3.14159 is 3.142 to 3 decimal places.

In multi-step calculations, rounding up or down of numbers is generally permitted only at the end of the calculation; the appropriate number of decimal places (or otherwise the accepted accuracy of the known quantities) must be carried forth and then finally round off the number(s), as needed. However, rounding off intermediate numbers may be avoided altogether in many cases. Instead, the known numbers with an acceptable level of accuracy to a certain number of decimal places are used. However, using numbers to 8 decimal places is usually unnecessary.

So, remember that rounding off numbers is needed, which is often the case, then this is done (usually) only at the end of the calculation. To this end, common-sense rules with rounding numbers generally prevail. Rounding 9.81 to 9.8 may be acceptable (1 decimal place or two significant digits) but rounding to 10.0 is unacceptable. Rounding 0.002378 to 0.00238 may be acceptable but rounding to 0.02 is generally unacceptable. Rounding 3.14156 to 3.142 may be acceptable but rounding to 3.0 is unacceptable.

## Significant Digits

Significant digits are the total number of digits used to express a measured or calculated quantity. Like decimal places, how “precise” a number is, is measured using significant digits. The value with the least significant digits sets the standard for the degree of precision.

Generally, a goal is to carry through numerical calculations containing values that have (more or less) the same number of significant digits to arrive at an answer with the needed (or maximum possible) accuracy. There are also some simple rules for significant digits:

- All non-zero digits in a number are always considered to be significant.
- Any zeros appearing in a number between two non-zero digits are considered significant.
- A final zero or trailing zeros in the decimal portion are considered significant.

Example # 4 – Practice the Use of Significant Digits

- How many significant digits are in 14.638?
- How many significant digits are in 0.002378?
- How many significant digits are in 273.70?

Answer = 5; 2. Answer = 4; 3. Answer = 5

## Manipulating Numbers

There are a few basic rules that should be followed when manipulating numbers:

- Addition and subtraction. Generally, the answer should have the same number of decimal places as the term with the fewest decimal places, e.g., 4.123 + 2.56 = 6.68.
- Multiplication and division. Generally, the answer should have the same number of significant digits as the term with the fewest number of significant digits, e.g., 4.121 x 6.62 = 27.3.
- Integers are always treated as if they have an infinite number of significant digits, e.g., 5 is considered for operations as 5.000…

Example #5 – Practical Case in the Use of Significant Digits

A ruler can be read easily to about 0.1 of a millimeter, so if the disk’s diameter was reported as 50.1 mm, that would be a reasonable measurement. However, if the diameter is reported as 50.13 mm, then this value implies that you can read the ruler to 0.01 mm, which is perhaps more unlikely. Therefore, the area is = 1971.3568, but if this area value is reported, it implies that the diameter was known to 8 significant figures. So, the area using the ruler must only be reported as 1971 mm. On the other hand, if the diameter could be measured to 2 decimal places, its area could be reported as 1971.4 mm.

Finally, common-sense rules should also be applied when working with numbers in engineering calculations. For example, it would be inappropriate to round up “g” (acceleration under gravity) from 9.81 m/s to 10.0 when simultaneously using the value of to 4 decimal places in the same calculation. Sometimes, when doing homework, it is necessary to put down the calculator and pencil, apply common sense, and say: “Based on what I just did, does this numerical answer seem right?” Ultimately, getting the “right” numerical answers in problem-solving means understanding the basic concepts of significant digits and rounding and learning how to spot likely numerical errors.

# Summary & Closure

The ability of engineers to bring to bear the necessary mathematical concepts is an essential aspect of problem-solving. Geometry, algebra, trigonometry, calculus, and differential equations all give engineers the essential mathematical tools to help engineers solve complex problems, quantify the processes and make informed decisions. For example, many engineering problems involve vector quantities (e.g., forces, velocities, accelerations, etc.) which may require various vector operations such as scalar and vector products, line and surface integrals, volume integrals, and gradients. In addition, calculus brings other mathematical tools to the table that are often needed for engineering problem-solving. For example, besides pure mathematics, engineers nearly always need numerical results, which must be evaluated accurately and consistently, and a consistent number of significant digits or decimal places based on the available data.

5-Question Self-Assessment Quickquiz

Further Thought and/or Discussion

- Explain the fundamentals of a scalar quantity. Make a list of some familiar scalar quantities used in engineering.
- Explain the fundamentals of a vector quantity. Make a list of some examples of vector quantities used in engineering.
- Explain the physical meaning of the curl of a vector field. Is the curl of a uniform flow positive, negative, or zero?
- What happens if we do not use the simple rules of significant digits in basic arithmetic calculations?
- What happens when we also prematurely round up or down and do not carry forward the needed number of significant digits in complex arithmetic calculations?

Other Useful Online Resources

There is more to explore with these mathematical concepts:

- This video goes more in depth on vector fields, divergence, and curl.
- If you want to learn more about the Laplace equation, this website has a lot of information on that and other mathematical operations.
- Here some more short video lessons of differentiation and partial differentiation from Dr. Leishman’s “Math & Physics Hints and Tips” series: