Two Ways to Compute

Consider

\[ \sqrt{2}. \]

A symbolic answer can remain

\[ \boxed{\sqrt{2}}. \]

A numerical approximation is

\[ \boxed{1.41421356\ldots}. \]

These are not competing answers. They serve different purposes.

The symbolic form preserves exact structure. The numerical form gives an approximate magnitude that can be used directly in measurement, estimation, or computation.

\[ \boxed{ \text{symbolic computation preserves relationships;} \quad \text{numerical computation evaluates quantities} } \]

What Is Symbolic Computation?

Symbolic computation operates on mathematical expressions while preserving their algebraic structure.

Examples include:

Example

\[ (x+2)(x+3) \]

can be expanded symbolically to

\[ x^2+5x+6. \]

No numerical value for \(x\) is required.

What Is Numerical Computation?

Numerical computation evaluates quantities using numbers, usually producing exact machine-representable values or approximations.

Example

If

\[ x=4, \]

then

\[ x^2+5x+6 = 16+20+6 = \boxed{42}. \]

Numerical computation answers a different question from symbolic simplification:

What value does this expression have for these inputs?

Two Computational Paths

Symbolic and numerical computation paths An input expression branches into a symbolic path that transforms expressions exactly and a numerical path that substitutes values and evaluates approximations. Both paths can later reconnect in a hybrid workflow. Mathematical expression Symbolic path simplify • factor • solve exactly Numerical path substitute • approximate • evaluate Interpreted result
Symbolic and numerical methods transform the same mathematical problem in different ways. Many real workflows use both.

Exact and Approximate Results

Symbolic computation often preserves exact values such as

\[ \frac13, \qquad \sqrt{5}, \qquad \pi. \]

Numerical computation may represent them approximately:

\[ \frac13\approx0.333333, \] \[ \sqrt5\approx2.23607, \] \[ \pi\approx3.14159. \]

Once an exact value is replaced by a rounded approximation, some information has been discarded.

That does not make the approximation wrong. It means the result now has an error bound or precision limit.

Symbolic Simplification

Symbolic methods can reveal structure that a decimal answer may hide.

Example

\[ \frac{x^2-9}{x-3}. \]

Factor the numerator:

\[ \frac{(x-3)(x+3)}{x-3}. \]

For

\[ x\neq3, \]

this simplifies to

\[ \boxed{x+3}. \]

A purely numerical evaluation at \(x=10\) would produce \(13\), but it would not reveal the general cancellation structure.

Substitution and Evaluation

A common workflow is symbolic first, numerical second.

Suppose

\[ f(x)=x^2+2x-1. \]

For

\[ x=3.5, \]

substitute:

\[ f(3.5) = (3.5)^2+2(3.5)-1. \]

Then evaluate:

\[ 12.25+7-1 = \boxed{18.25}. \]

The symbolic formula defines the relationship; numerical substitution produces a particular output.

Solving Equations Symbolically

Some equations can be solved exactly by algebraic manipulation.

Example

\[ 3x+5=17. \]

Subtract \(5\):

\[ 3x=12. \]

Divide by \(3\):

\[ \boxed{x=4}. \]

The solution is exact.

Quadratic Example

\[ x^2-2=0. \]

Then

\[ x^2=2, \]

so

\[ \boxed{x=\pm\sqrt2}. \]

This exact symbolic form can later be approximated numerically.

Solving Equations Numerically

Some equations do not have convenient elementary closed-form solutions, or we may only need a numerical answer.

Suppose we want to solve

\[ x^3-x-1=0. \]

A numerical method can search for an approximate root.

For example:

\[ f(1)=-1, \] \[ f(2)=5. \]

Because the sign changes between \(1\) and \(2\), a root lies in that interval. A numerical root-finding method can then refine the estimate.

One approximation is

\[ \boxed{x\approx1.3247}. \]

The key difference is that the method aims for a sufficiently accurate numerical value rather than an elementary symbolic expression.

Closed Forms and Numerical Answers

A closed form is an explicit expression built from a finite combination of recognized operations and functions.

For example,

\[ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \]

is a closed-form expression for quadratic roots.

But even when a closed form exists, a practical application may still require a decimal value.

So the workflow may be:

\[ \boxed{ \text{derive exact form} \to \text{substitute values} \to \text{evaluate numerically} } \]

Hybrid Symbolic-Numerical Workflows

Many real calculations use symbolic and numerical methods together.

Example

Start with the symbolic formula for projectile height:

\[ h(t)=h_0+v_0t-\frac12gt^2. \]

Substitute measured or chosen values:

\[ h_0=2, \qquad v_0=20, \qquad g=9.8. \]

Then:

\[ h(t)=2+20t-4.9t^2. \]

A numerical tool can evaluate this function for many values of \(t\), locate approximate zeros, or build a table.

Symbolic reasoning defines the model; numerical computation explores its specific behavior.

Numerical Error and Approximation

Numerical results may contain several kinds of approximation error.

Rounding Error

Values are stored or reported with finite digits.

Truncation Error

An infinite or continuing process is stopped after finitely many steps.

Measurement Error

Input data may already be approximate.

Method Error

An approximate algorithm may differ from the exact mathematical result.

A numerical answer should therefore be interpreted with appropriate precision rather than as automatically exact.

Sensitivity and Computational Stability

Some problems are more sensitive to small changes than others.

Suppose

\[ f(x)=1000x. \]

A small input change

\[ \Delta x=0.001 \]

produces

\[ \Delta f=1. \]

In more complicated problems, small input or rounding changes can produce much larger output changes.

A computational method is stable when it does not unnecessarily amplify numerical error.

This lesson only introduces the idea. Later numerical analysis can study conditioning and stability more formally.

Calculators, Spreadsheets, and CAS Tools

Different tools support different computational styles.

Tool Typical Strength
Calculator Direct numerical evaluation
Spreadsheet Repeated numerical computation across tables
Computer algebra system (CAS) Symbolic manipulation and exact algebra
Programming language Custom numerical or symbolic algorithms

No tool removes the need to understand what is being computed.

A symbolic system can simplify the wrong expression. A numerical tool can approximate the wrong quantity. The user still owns the mathematical model.

Choosing a Method

Choose symbolic computation when you want to:

Choose numerical computation when you want to:

Use both when the problem benefits from exact reasoning first and efficient evaluation afterward.

\[ \boxed{ \text{method choice depends on the question being asked} } \]

Practical Applications

Engineering

Symbolic formulas describe systems; numerical methods evaluate designs and simulate behavior.

Science

Exact models are often combined with measured numerical data.

Finance

Symbolic formulas define growth or payment relationships while spreadsheets evaluate schedules numerically.

Computer Science

Algorithms may manipulate symbolic expressions, numerical arrays, or both.

Mathematics

Algebra, calculus, numerical analysis, optimization, and modeling all move between exact and approximate computation.

Worked Examples

Example 1: Exact before Decimal

Simplify

\[ \frac{6}{\sqrt3}. \]

Rationalize symbolically:

\[ \frac{6}{\sqrt3} \cdot \frac{\sqrt3}{\sqrt3} = \frac{6\sqrt3}{3} = 2\sqrt3. \]

Exact answer:

\[ \boxed{2\sqrt3}. \]

Numerically:

\[ 2\sqrt3\approx\boxed{3.4641}. \]

Example 2: Symbolic Factorization

\[ x^2-5x+6 = \boxed{(x-2)(x-3)}. \]

The factorization immediately reveals roots

\[ \boxed{x=2,\ 3}. \]

Example 3: Numerical Evaluation

Evaluate

\[ f(x)=x^3-2x+1 \]

at

\[ x=1.7. \] \[ f(1.7) = 1.7^3-2(1.7)+1 \] \[ = 4.913-3.4+1 = \boxed{2.513}. \]

Example 4: Approximate a Root

For

\[ f(x)=x^2-2, \]

we know symbolically that

\[ x=\sqrt2. \]

Numerically:

\[ \boxed{x\approx1.4142}. \]

Example 5: Hybrid Workflow

Given

\[ A=\pi r^2 \]

and

\[ r=2.35\text{ m}, \]

keep the symbolic form first:

\[ A=\pi(2.35)^2. \]

Then evaluate:

\[ A\approx17.349\text{ m}^2. \]

If the radius is measured, the final reported precision should reflect the input quality rather than every calculator digit.

Example 6: When Numerical Methods Are Natural

Solve approximately:

\[ \cos x=x. \]

There is no elementary algebraic rearrangement that isolates \(x\) in a simple closed form. A numerical root-finding method gives

\[ \boxed{x\approx0.7391}. \]

Common Errors

1. Converting to Decimals Too Early

Premature rounding can hide exact structure and accumulate error.

2. Treating a Numerical Approximation as Exact

\[ 1.4142 \]

is not exactly equal to

\[ \sqrt2. \]

3. Assuming Symbolic Form Is Always More Useful

An exact expression may still need numerical evaluation for a practical decision.

4. Assuming Numerical Methods Are Guessing

Well-designed numerical algorithms can have rigorous convergence and error bounds.

5. Ignoring Input Precision

Exact computation on approximate measured inputs does not create exact physical knowledge.

6. Trusting a Computer Algebra System without Checking Domain Conditions

Symbolic cancellation may require restrictions such as

\[ x\neq3. \]

7. Choosing a Method without Considering the Goal

The best method depends on whether the task asks for structure, proof, evaluation, approximation, or many repeated calculations.

Practice

Exact or Approximate?

Which is exact?

A. \(1.732\)

B. \(\sqrt3\)

Check Answer \[ \boxed{\sqrt3} \]

is exact; \(1.732\) is an approximation.

Symbolic Simplification

Simplify

\[ 3(x+2)-x. \]
Check Answer \[ 3x+6-x = \boxed{2x+6}. \]

Numerical Evaluation

Evaluate

\[ x^2+1 \]

at \(x=4\).

Check Answer \[ 4^2+1 = \boxed{17}. \]

Choose the Method

Would symbolic or numerical computation usually be more natural for finding the decimal value of \(\sqrt7\) to four decimal places?

Check Answer \[ \boxed{\text{numerical computation}} \]

because the requested result is a decimal approximation.

Hybrid Method

Why might you simplify a formula symbolically before putting values into a spreadsheet?

Check Answer

Simplification can reveal structure, reduce repeated work, expose domain restrictions, and make the numerical formula easier to verify.

The Deeper Idea

Symbolic and numerical computation are two representations of mathematical work.

\[ \boxed{ \text{symbolic} = \text{structure-first} } \] \[ \boxed{ \text{numerical} = \text{value-first} } \]

They connect to earlier Malone Math ideas:

The strongest workflow often moves back and forth:

\[ \text{derive} \to \text{simplify} \to \text{substitute} \to \text{approximate} \to \text{check}. \]

Computation is not one method. It is a family of methods chosen according to what kind of information we need from the mathematics.

Summary

Symbolic computation helps us understand and preserve mathematical structure. Numerical computation helps us evaluate and approximate. Together, they form a practical computational toolkit: exact when exactness matters, approximate when approximation is useful, and flexible enough to move between the two.

Algorithms and Computational Thinking