How to Solve Word Problems Programmatically

Chapter

1

---

 

 

Chapter 1.  Meaning

 

 

 

 

1.1

Math as a Language

1.2

Math to English Translations

1.3

Rule Statements

1.4

Criteria Statements

1.5

Word Problems

1.6

Mathematical Models

1.7

English to Math Translations

1.8

The Components of Meaning

1.9

Scaled Dimensions

1.10

Meaning Expressions

1.11

Meaning Abbreviations

1.12

Meaning Table

1.13

Meaning In Things

1.14

Meaning in Word Problems

1.15

Activities and Explorations

 

 

1.1

Math as a Language

 

Each discipline has its own set of vocabulary words; for example, the medical discipline uses thousands of words just to describe an arm.

 

When studying a language you learn new words that identify and relate objects; such words form the foundation of that language.  Vocabulary words arise not only from different national, cultural, and ethnic backgrounds but from the different disciplines of knowledge such as medicine, business, construction, engineering, and biology, to name a few.

 

We can view mathematics as a language with its own set of vocabulary words and grammar rules that measure and relate things in the world around us.  A baby learns to speak a language naturally by experiencing the language in action.  This book uses a similar strategy by immersing you in the applications of mathematics using a systematic approach to solving problems that involve measurable quantities.  You will gain mathematical knowledge by naming, observing, and finding relationships between things and their properties (or dimensions).  Math enables us to record measurements, define abstract relationships and calculate results. 

 

When learning a new language, you often find yourself in a cyclic learning process where you continually encounter new words (or symbols), some of which you cannot completely comprehend, until you have learned other words, ideas, and concepts.   As your vocabulary grows, the ideas discussed earlier finally start to make sense.   For example, when learning a computer programming language, one seldom understands all the words and concepts the first time through a book.  You many need to cycle back several times before understanding all the vocabulary words.  This also applies to mathematics. 

 

As you begin to learn how to solve word problems programmatically, you may feel like trying to learn how to swim after falling into the middle of a lake.  Don't just turn purple with panic; start paddling vigorously through vocabulary at websites such as http://www.purplemath.com/modules/index.htm and the other exploration paths listed at the end of this chapter.  Remember, you gain vocabulary words through exposure.

 

 

1.2

Math to English Translations

 

 

Translate of each of these mathematical expressions or statements into English.

 

In this book we will use the notations:

 

* for multiplication

/   for division

^ for exponentiation (x2=x^2)

sqrt( )  for square root

 

Mathematics has its own grammar that can impact the way we read a mathematical statement.  The first example above can easily be mistakenly read 4+3 equals 7 times 2 equals 14.   But this translation does not follow the grammatical rules involving a hierarchy of operations (which we will discuss later).  These rules cause the multiplication operation to occur before the addition operation resulting in the translation 3*2 equals 6 plus 4 equals 10.

 

Furthermore, there exists different ways of expressing mathematical statements in printed form.  For example, the second and third examples above express the same mathematical statement.  The third example uses explicit symbols to represent each operation and function.  This approach is commonly used in computer applications.  Try rewriting the last expression using such explicit notation.

 

Mathematical words often have specific mathematical meanings that reflect their English counterparts.  As a joke, we can even go as far to think of negative, irrational, and complex numbers as numbers that have distinctive personality traits.  But on the more serious side, notice in the next few paragraphs how the English and mathematical interpretations of the highlighted words interrelate. 

 

 

1.3

Rule Statements

 

 

A city has people in it.

Denver has people in it.

 

a*(b+c) = a*b + a*c

3(5+2) = 3*5 + 3*2

Substitute "Denver into "a city".

 

Substitute a=3, b=5, and c=2 into the

Distributive Rule of Algebra.

 

How does a noun like “city” relate to a proper noun like “Denver”?   Denver represents a specific value of the noun “city”.  When we make a statement like “A city has people in it,” we have created a general rule that remains true for the set containing all cities.  The city can vary; we can consider Denver, Los Angeles, Dallas, Paris, etc.  In particular, we can substitute the city “Denver” into the sentence and obtain the statement: “Denver has people in it.”  Notice how this statement remains true for every city name that we substitute. 

 

Similarly, in mathematics, variables correspond to nouns and numbers correspond to proper nouns.  We substitute numbers into variables to verify the statement.  If a statement holds true for a set of numbers then we say that the statement is a rule over that set of numbers.

 

 

1.4

Criteria Statements

 

 

The capital of the United States of America is a city.

The capital of the United States of America is Washington, D.C.

 

2 * x + 4 = 10

2 * 3 + 4 = 10

Solve for a city that satisfies the criteria statement.

 

 

 

Solve for a value of the variable x that satisfies the criteria statement.

 

A second use of variables expresses criteria (as opposed to rules).   Consider the sentence,  “The capital of the United States of America is a city.”  We interpret this not as a general statement but rather as specific criteria for a particular solution to satisfy.  On substituting “San Diego” into this sentance we get a false statement.  Whereas, the solution “Washington, D.C.” makes the statement true.  Similarly, when we create mathematical expressions from the words of a word problem, we formulate criteria that the solutions must satisfy.   In general, we use rule statements to manipulate criteria statements when solving for solutions of a word problem.

 

 

1.5

Word Problems

 

 

If you have $12.00 to spend on milk, how many cartons can you purchase at a price of $2.00 per carton.

A typical math word problem.

 

A word problem contains words that describe a system of things and their dimensions.  The relationships between the things and their dimensions determine certain quantities from the values of other quantities.  We encounter word problems practically every day of our lives and have learned by repetition to follow certain calculation patterns to find answers.  For example, if you had $12.00 to spend on milk, how would you determine the number of cartons purchased at a price of $2.00?   You have learned a calculation pattern of dividing the amount (12) by the price (2) to get 6.  But, why?  What is the meaning behind that pattern?

 

 

 

1.6

Mathematical Models

 

 

p * a = c

 

Price * Amount = Cost

A mathematical model

 

In general, a mathematical model for a word problem contains math criteria statements that represent the way numbers and variables relate to each other for a given system of things.  It allows us to calculate solutions to questions about the system.  For the previous word problem, we traditionally use the mathematical model "p*a=c" to relate the quantities in a system of items for sale where the quantity “c” represents cost, “p” represents price (of each item), and “a” represents the amount purchased.

 

2 * a = 12

A specific state of the system

 

When we assign specific numbers to selected variables in a model, it often determines the value of other variables as well.  These numbers correspond to a particular purchase.  The next purchase could have different numbers but those new numbers would also need to satisfy the criteria statement.  We identify a specific state of the system (or model) by assigning numbers to the variables.  In this example, a state of the general price model is determined by letting p=2 and c=12.  From these values we can solve for "a" and get a = 6. 

 

 

1.7

English to Math Translations

 

 

"twice as many cats as dogs"

C = cats

D = dogs

Translate this English phrase into a mathematical model using D and C.

 

When building mathematical models we need to be careful when translating English statements into math statements.  Many people translate this phrase incorrectly.  If you answered “2*C=D”; then, like many other thrashing swimmers, you fell into one of the common traps when assigning meaning to quantities.  

 

2 * C = D

Try D = 3, then C = 6  and 2*6=3 ?

Whoops!

 

If we have 3 dogs, then we should have twice as many cats: 6 cats.  On substituting these numbers into the expression  “2*C=D” we get 12 = 3.  What went wrong?  In essence, people interpret the C as a "unit" of the number 2 rather than a quantity.  The systematic concepts and methods introduced in this book overcome this dilemma and will give you the tools to more effectively translate English into math. 

 

How would this new programmatic method help?  In this translation the number 2 has the (abbreviated) meaning "cats/dog" (read "cats per dog").  So (as we will discuss in the next chapter) we multiply numbers with their meanings  "(2 cats/dog) * (D dogs) to cancel the dog unit result in an expression "2*D cats" that has the same unit as "C cats".  Hence  "2 * D cats = C cats".

 

1.8

The Components of Meaning

 

 

Statement

True or False?

3 = 1

 

3 feet = 1 yard

 

3 feet length = 1 yard width

 

3 feet length of board = 1 yard length of fence

 

3 feet length of board = 1 yard length of board

 

 

Which of the above statements ring true.  Does 3=1?   This is not a trick question.  NO is the answer.  Do units (feet and yard) make the second statement "3 feet = 1 yard true?  At first, you may say YES; but by doing so you assumed that we are measuring the same dimension.  The third statement involves two different dimensions (length and width), so "3 ft length" and  "1 yd of width" do not measure the same dimension.    And even the same dimension may not be sufficiently clear, like "length" in the fourth statement, it also needs to be associated with the same thingin order to be exactly "equal". 

 

This book introduces a programmatic way of solving word problems using meaning.  In general, the book introduces you to a new kind of mathematics, which we call Unified Math.  Unified Math algebraically unifies quantities with their meaning.  To this end, we now define the three components of meaning:  unit, dimension, and thing.  As you will see, we need all three of these components to clearly define the mathematical models associated with word problems.

 

 

1.9

Scaled Dimensions

 

 

 

[unit~Dimension(Thing)]

 

[u~D(T)]

 

General notations of a scaled dimensions

 

In order to assign meaning to quantities, we combine all three components of meaning (unit, dimension, and thing) into a scaled dimensionusing the general notation: [unit~Dimension(Thing)].

 

By doing this, we give quantities carefully defined meanings which helps us to solve word problems systematically.

 

The last line provides and example of how we formally interpret the meaning of the English statement "8 balls". 

3 [feet~Length(Board)]

x [hour~Time(Trip)]

100 [pounds~Weight(Table)]

72 [°F~Temperature(Oil)]

18.95 [dollar~Value(Shoe)]

8 [instance~Occurrence(Ball)]

Examples of scaled dimensions attached to numeric quantities

 

Unified Math introduces a new unit called "instance" and a dimension called "occurrence" to handle the "counting" of things.  Since "balls" actually is a "thing", we use "instance" as the formal unit.  Informally, we often use "ball" as if it were a unit; but from now on, recognize that the actual unit is "instance" and that the use of the word "ball" represents an abbreviation of "[instance~Occurrence(Ball)]:.   As you will see, this allows us to resolve the dilemma of "adding apples and oranges" when one of the rules in Unified Math requires that the units must be the same.

 

 

1.10

Unified Quantities

 

 

70 [mi~Length(Trip)] / [hrs~Time(Trip)]

2.50 [dol~Value(Milk)] / [gal~Volume(Milk)]

7.25 [dol~Value(Box)] / [instance~Occurrence(Box)]

50 [lb~Force(Air)] / [in2~Area(Surface)]

32 [mi~Length(Trip)] / [gal~Volume(Fuel)]

Examples of Unified Quantities

 

In addition to a single scaled dimension to provide meaning for quantities, we also use multiplications and divisions of scaled dimensions to create meaning expressions.   We call the combination of a quantity and its meaning expression a unified quantity.   Each entry above gives an example of a unified quantity attached to a numeric quantity.  In general, a quantity can be a number, a variable, or a mathematical expression of numbers and variables, and we can assign meaning expressions to such quantity expressions.

 

 π * r2 [ft~Area(Circle)]

(a+b+c)/3  [dol~TotalValue(Car)] / [instance~Occurrence(Car)]

2 * x - 8 [mi~Length(Trip)] / [gal~Volume(Fuel)]

 

 

1.11

Meaning Abbreviations

 

 

3 [ft~Length(Board)]

3 [ft~Length]

3 ft

70 [mi~Length(Trip)] / [hr~Time(Trip)]

70 mi/hr

20 [instances~Occurrence(Employee)]

20 [ins~Occ(Employee)]

20 employees

Examples of meaning abbreviations

 

When solving word problems, we often use abbreviations.  But the three components of meaning should always be clear from the context without any chance of confusion.  The most common abbreviations of meaning consist of just the unit or just the thing.

 

 

1.12

Meaning Table

 

 

Qty

Value

Meaning

Relationship

q1

 

 

 

q2

 

 

 

q3

 

 

 

q4

 

 

 

q5

 

 

 

 

 

 

 

We will use this meaning table to document our thought processes when formulating and solving mathematical models for quantitative problems.   This systematic approach enables us to solve word problems effectively.  It encourages us to define system quantities carefully before constructing their relationships, and to construct relationships before solving equations.

 

A word problem may ask for one or more quantities.  The meaning table calculates values for all the related quantities considered when finding the requested quantities. 

 

In general, the meaning table provides a way of documenting many of the measurements and relationships in a system of things.  It provides a systematic interface between raw data and models built upon on that data.  It opens up the opportunity to create a paradigm shift in the way we teach science.  It can allow us to document many quantities associated with a given system of things and emphasize all known relationships without excluding those that may not fit the current theories.  Theories often only provide "current" interpretations of "subsets" of the available data and relationships.

 

Take for instance a current popular theory of the universe, the "big bang" theory.  Most science textbooks discuss this theory leaving out data that suggests a relationship between increased distance and increased acceleration.   But this relationship goes against our expectation of objects on the outside of an "explosion" to slow down not accelerate.  History has proven that great discoveries have often occurred when people (like Galileo, Newton, Einstein, etc.) have pondered all quantities and quantity relationships especially those that did the not fit the current "beliefs" (or models) built on partial data.

 

 

1.13

Meaning In Things

 

 

Qty

Values

Meaning

Relationships

q1

14

[inches~Diameter(Sphere)]

 

q2

20

[instances~Occurrence(Hexagon)]

 

q3

1

[inch~Length(Hexagon side)]

 

q4

10

[lb/in2~Pressure(Surface inside sphere)]

 

q5

40

[lb~Force(Side of sphere)]

 

 

 

 

 

What object does these unified quantities refer to?  Notice the use of abstract mathematical vocabulary, even when describing things associated with the object.  All of these things make up a quantitative system that describes the object.  This is an example of how to play the game "A World With Only Math".   Indeed, math helps us to describe more precisely the world around us.  Here is another example of how increased math vocabulary helps you to give more informative clues. 

 

Qty

Value

Meaning

Relationship

q1

4

[instances~Occurrence(Non-planar equal-length vertical parallel cylinders)]

 

q2

2

[ft~Length(Cylinder)]

 

q3

2

[ft~Length(Square side of thin solid rectangle perpendicular to the cylinders connected at the corners)]

 

q4

200

[lb/ft2~Pressure(Top surface of solid rectangle)]

 

q5

2

[instances~Occurrence(Equal length upright parallel cylinders attached to adjacent corners and extending upward on the opposite side of the other cylinders)]

 

 

 

 

 

 

1.14

Meaning in Word Problems

 

 

A car travels 50 miles per hour.  How long does it take to go 150 miles?

Word problem involving a rate

 

Qty

Value

Meaning

Relationship

q1

 x

[hr~Time(Car)] 

 

q2

 50

[miles~Distance(Car)] / [hr~Time(Car)] 

 

q3

 150

[miles~Distance(Car)] 

 

 

Word problems provide information about quantities.  In general, we first identify the quantities that we seek and then find related quantities.  The above word problem asks for the time it will take for a car to travel a certain distance, so the first entry in the meaning table contains a variable "x" with a meaning that describes the desired quantity.  We then list the rest of the quantities in the order in which they appear in the problem.  Go ahead and identify the quantities and a meaning in each of the following word problems and then compare your results with the suggestions that follow.  Remember that your meaning expressions may use different words or different abbreviations; that is all right, just remain consistent.

 

If Jane had $50.00 to spend on apples, how much can she purchase at a price of $ 0.25 per pound?

Word problem involving a price

 

Qty

Value

Meaning

Relationship

q1

 x

[lb~Volume(Apples) 

 

q2

 50

[$~Cost(Apples)] 

 

q3

 .25

[$~Cost(Apples)]/[lb~Volume(Apples) 

 

 

You could also have abbreviated as follows since each unit explicitly determines the dimension and there exists only one thing in this problem.

 

Qty

Value

Meaning

Relationship

q1

 x

lb 

 

q2

 50

$ 

 

q3

 .25

$/lb 

 

 

 

The odometer of a new automobile functions improperly and registers only 3/4 miles for each mile driven.  If the odometer increases 200 miles, how many miles has the automobile actually been driven?

Word problem involving a fraction

 

This problem contains quantities whose meaning we cannot determine with units only.  We need to distinguish between the miles associated with the odometer and the miles actually driven.

 

Qty

Value

Meaning

Relationship

q1

 x

[miles~Actual(Car)] 

 

q2

3/4

[miles~Odometer(Car)]/[miles~Actual(Car)] 

 

q3

 200

[miles~Odometer(Car)] 

 

 

 

Only 40 percent of the employees attended the seminar.  If 300 employees attended, how many employees work for the company?

Word problem involving a percent

 

Qty

Value

Meaning

Relationship

q1

 x

[instances~Occ(Employees)] 

 

q2

40/100

[instances~Occ(Attendees)]/ [instances~Occ(Employees)] 

 

q3

 300

[instances~Occ(Attendees)] 

 

 

 

 

1.15

Activities and Explorations

 

 

 Activities:

 

Play “A World Without Math” game

Describe an object without using any math concepts and have your team members attempt to sketch it.  (Examples: airplane, round table, CD player, kite, etc.) 

 

Play “A World With Only Math” game

Describe an object using only abstract unified quantities and have your team members attempt to sketch it.  (Examples: soccer ball, bicycle, building, chair, etc.) 

 

 

Explorations:

 

Practical Algebra Lessons (Purplemath)

http://www.purplemath.com/modules/index.htm

 

Math Encyclopedia

http://www.wikipedia.org/wiki/Mathematics

 

Math Subway Review

http://cne.gmu.edu/modules/dau/math/dau1_frm.html

 

Why is math boring?

http://mathforum.org/library/drmath/view/52355.html

 

Other Questions and Answers About Math

http://mathforum.org/library/drmath/drmath.middle.html

 

 

Exercises:

 

Do Related Problems In Your Textbook

 

Using Meaning Table

Use a Meaning Table to list quantities and their meaning expressions for word problems in the Word Problem Proportional Exercises (Set 1).

 

 

 

Home  |  Top

 

Copyright © 2004  Dr. Ranel E. Erickson