2.5 Linear Equations


2.5 Linear Equations

One of the most characteristic features of algebra is equations.An equation is a statement of equality with at least one unknown variable. Consider the following equation:

  • x + 5 = 10

Here it is stated that x+5is equal to 10; in other words, x + 5 and 10 are the same. The variable x is unknown, but we know that x is a number that when added to 5 will equal 10. Common knowledge can already tell us what this number is, but equations are rarely so simple. The aim is to rewrite the equation so that x is the only value on the left side of the equal sign, and the right side will contain an expression equal to x. In short, we want to solve the equation by finding the value of the variable x. In this case we know x = 5 because 5 + 5 = 10.

2.5.1 Rearranging Equations

The aim of an equation is to solve the unknown variable. Simple deduction has so far led to the answer in the simple case of x + 5 = 10, but there needs to be a more systematic method for solving more complicated examples. In the case of x + 5 = 10, we know that x = 5. The reason we know this is because 10 5 gives us a number that when added to 5 will equal 10. Therefore:

  • x + 5 = 10

  • x = 10 5

  • x = 5

Our answer can be tested by substituting 5 for x, as follows:

  • 5 + 5 = 10 (correct)

Another example:

  • 2x = 10

(x is some number that when multiplied by 2 will equal 10. We also know that 10/2 gives a quotient that when multiplied by 2 will equal 10.) So:

  • x = 10 / 2

  • x = 5

Again, this can be tested by substituting x:

  • 5 × 2 = 10 (correct)

2.5.2 Balancing Equations

In each of the equations presented in the previous section it can be seen that to determine the value for x, every number except x was moved to the right side of the equal sign, each of the numbers' signs was changed, and finally, x was isolated on the left side and both sides were still equal. This is the process all linear equations follow. Consider the following equation:

  • 2x + 2 = 10

The first term has two factors: 2 and x. The second term is 2. When these terms are added together their sum is equal to 10. So, x multiplied by 2 and then added to 2 is equal to 10. In order to solve this equation, x should be isolated on the left side. To do this, the following steps are performed:

  1. The term 2 shall be the first to be moved to the right side. To do this, the equation needs to be balanced. 2 should be subtracted from the left side, giving us 0. Whatever we do to the left, we must do to the right. So 2 must also be subtracted from 10. The equation now looks like this:

    • 2x = 10 2

    • 2x = 8

  2. Next, to isolate x, the factor 2 needs to be moved to the right side. To eliminate it from the left, we must divide 2x by 2, which leaves x on its own. We must perform the same operation to the other side, and so 8 must be divided by 2. The equation has now been solved and looks as follows:

    • x = 8 / 2

    • x = 4

    This can be tested by substituting x:

    • (4 × 2) + 2 = 10

    • 8 + 2 = 10 (correct)

2.5.3 Balancing Methods

To summarize the methods for solving equations as demonstrated in the previous section, it can be stated that:

  • A number that is subtracted from one side must be subtracted from the other, and the equation will still be equal.

    • x + 3 = 10

    • x = 10 3 (subtract 3 from both sides)

  • A number added to one side must be added to the other, and the equation will still be equal.

    • x 3 = 10

    • x = 10 + 3 (add 3 to both sides)

  • A number divided on one side must be divided on the other, and the equation will still be equal.

    • 2x = 10

    • x = 10 / 2 (divide by 2 on both sides)

  • A number multiplied on one side must be multiplied on the other, and the equation will still be equal.

    • x / 2 = 16

    • x = 16 × 2 (multiply by 2 on both sides)

2.5.4 Simplification

Often it is helpful to simplify or reduce equations before solving them. Some guidelines follow.

  • Unknown variables on both sides

    If an unknown variable appears on both sides of an equation, it is important to remember that it can be treated the same as any other term. That is to say, it can be subtracted, added, multiplied, or divided on both sides. Consider the following equation:

    • 2x + 5 = x + 10

    • x + 5 = 10 (subtract x from both sides)

    • x = 10 5

    • x = 5

  • Equal terms with inverse signs on one side

    If two terms with the same absolute value but different signs are found on the same side, they may be cancelled; that is, removed from the equation. This is because their sum will be 0.

    • 5 + 2x 5 = 10

    • 2x = 10 (5 and 5 can be cancelled)

  • Equal terms on each side of the equation can be cancelled

    Following from the previous rule, two equal terms on opposite sides of the equation can be cancelled. This is based on the idea that, were one transferred to the other side, the sign would be the inverse and so the two terms would add up to 0.

    • 5 + 2x = 5 + 10

    • 2x = 10 (5 and 5 can be cancelled)

  • Multiplying with parentheses

    In accordance with distributive multiplication, which was explained earlier, parenthetical expressions can be multiplied by their factors as follows:

    • 2(x + 5) = 30

    • 2x + 10 = 30 (expand)




Introduction to Game Programming with C++
Introduction to Game Programming with C++ (Wordware Game Developers Library)
ISBN: 1598220322
EAN: 2147483647
Year: 2007
Pages: 225
Authors: Alan Thorn

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net