Algebra

Contents

Basic Rules for Inequalities

(in the example: TeX Formula: a>b>0, TeX Formula: c>d>0)

You need to flip signs when both side are multiplied by a negative number:

TeX Formula: -a<-b, TeX Formula: -c<-d

You need to flip signs when 1 is divided by both side: TeX Formula: \frac{1}{a}<\frac{1}{b}, TeX Formula: \frac{1}{c}<\frac{1}{d}

You can only add or multiply them when their signs are in the same direction:

  • TeX Formula: a+c>b+d
  • TeX Formula: ac>bd

You can only apply substractions and divisions when their signs are in the opposite directions:

  • TeX Formula: a>b, TeX Formula: d<c
  • TeX Formula: a-d>b-c
  • TeX Formula: \frac{a}{d}>\frac{b}{c}
    • You can't say TeX Formula: \frac{a}{c}>\frac{b}{c}. It is WRONG.

Deal with negative numbers:

TeX Formula: -a<-b<0, TeX Formula: -c<-d<0

Then

  • TeX Formula: -a-c<-b-d<0
  • TeX Formula: -a-(-d)<-b-(-c)

However the sign needs to be flipped one more time if you are doing multiplication or division (because you are multiplying/dividing a negative number):

  • TeX Formula: (-a)*(-c)>(-b)*(-d)
  • TeX Formula: \frac{-a}{-d}>\frac{-b}{-c}

For example:

If TeX Formula: x<-4, TeX Formula: y<-2, we know that TeX Formula: xy>8, but we don't know how TeX Formula: \frac{x}{y} compare to TeX Formula: \frac{-4}{-2}=2 since you can only do division when their signs are in different directions.

If TeX Formula: x>-4 and TeX Formula: y<-2 then TeX Formula: \frac{x}{y}<2 but we don't know how xy is compared to 8 since we can only do multiplication when their signs are the same direction.

It is easier to do the derivation, though, if you first change them to postive. For example:

  • If TeX Formula: x<-4, TeX Formula: y<-2, then TeX Formula: -x>4, TeX Formula: -y>2, TeX Formula: xy>8
  • If TeX Formula: x<-4, TeX Formula: y<2, then TeX Formula: -x>4, TeX Formula: y<2, TeX Formula: -\frac{x}{y}>2, TeX Formula: \frac{x}{y}<-2

Cancelling out "Common Terms"

You need to be very careful when you do algebra derivations. One of the common mistakes is to divide both side by "a common term". Remember you can only do this safely if the "common term" is a constant. However you CAN't do it if it contains a variable.

Example:

TeX Formula: x(x-2)=x

You can't cancel out the TeX Formula: x on both side and say TeX Formula: x=3 is the solution. You must move the TeX Formula: x from the right side to the left.

TeX Formula: x(x-2)-x=0

TeX Formula: x(x-2-1)=0

The solutions are: TeX Formula: x=0 and TeX Formula: x=3.

The reason why you can't divided both sides by TeX Formula: x is that when TeX Formula: x is zero, you can't divide anything by zero.

Equally important if not more, is that you CAN'T multiply or divide a "common term" that includes a variable from both side of an inequality. Not only it could be zero, but it could also be negative in which case you would need to flip the sign.

Example:

TeX Formula: x^2>x

You CAN'T divided both sides by TeX Formula: x and say TeX Formula: x>1. What you have to do is to move the right side to the left:

TeX Formula: x^2-x>0

TeX Formula: x(x-1)>0

Solution would be either both TeX Formula: x and TeX Formula: x-1 are greater than zero, or both TeX Formula: x and TeX Formula: x-1 are smaller than zero. So your solution is: TeX Formula: x>1 or TeX Formula: x<0.

Example:

TeX Formula: x>\frac{1}{x}

Again you CAN'T multiply both sides by TeX Formula: x because you don't know if TeX Formula: x is positive or negative. What you have to do is to move the right side to the left:

TeX Formula: x-\frac{1}{x}>0

TeX Formula: \frac{x^2-1}{x}>0

  • If TeX Formula: x>0, then TeX Formula: x^2-1>0 \right x>1
  • If TeX Formula: x<0, then TeX Formula: x^2-1<0 \right x>-1

Therefore, your solution is TeX Formula: x>1 or TeX Formula: 0>x>-1.

You could also break the original question to two branches from the beginning:

TeX Formula: x>\frac{1}{x}

  • If TeX Formula: x>0, then TeX Formula: x^2>1 \right x>1
  • If TeX Formula: x<0. then TeX Formula: x^2<1 \right x>-1

Therefore, your solution is TeX Formula: x>1 or TeX Formula: 0>x>-1.

Absolute values

The absolute value of a number is its numeric value no matter what the sign is. The absolute value is sometimes referred to as "magnitude". The expression TeX Formula: |x| reads "the absolute value of TeX Formula: x."

Equations

Here is an example of an absolute value equation.

TeX Formula: | x + 2 | = 4

To solve this equation, we will need to open up the absolute value signs and solve two equations:

TeX Formula: x + 2 = 4 and TeX Formula: x + 2 = -4; we will have two roots: 2 and -6.

Inequalities

The way to solve this kind of questions is to break the equation (inequality) into two parts, one is when the value is non negative, the other is when the value is negative.

For example:

TeX Formula: |x-4| < 9

You break it into two parts:

  • If TeX Formula: x-4 \ge 0, then TeX Formula: x-4 < 9, solve for both you get TeX Formula: x \ge 4, TeX Formula: x < 13. So your solution is TeX Formula: 4 \le x < 13
  • If TeX Formula: x-4 < 0, then TeX Formula: -(x-4) < 9, i.e. TeX Formula: x-4 > -9. Solving for both, you get TeX Formula: x < 4, TeX Formula: x > -5. So your solution for this part is TeX Formula: -5 < x < 4.

Combining the two solutions, you get TeX Formula: -5 < x < 13 as your final solution.

Another example:

TeX Formula: |x+4| > 4

  • If TeX Formula: x+4 \ge 0, then TeX Formula: x+4 > 4. Solving for both, you get TeX Formula: x \ge -4, TeX Formula: x > 0. So the solution is TeX Formula: x>0.
  • If TeX Formula: x+4 < 0, then TeX Formula: -(x+4) > 4, i.e. TeX Formula: x+4 < -4. Solving for both, you get TeX Formula: x < -4, TeX Formula: x < -8. So, your solution is TeX Formula: x < -8.

The final solution is TeX Formula: x > 0 or TeX Formula: x < -8.

One more example:

TeX Formula: |y| > |y+1|

  • if TeX Formula: y \ge 0, TeX Formula: y+1 \ge 0 \right y > y+1, no solution
  • if TeX Formula: y < 0, TeX Formula: y+1 < 0 \right -y > -(y+1), solution is TeX Formula: y < -1
  • if TeX Formula: y \ge 0, TeX Formula: y+1 < 0 \right y > -(y+1), no solution
  • if TeX Formula: y < 0, TeX Formula: y+1 \ge 0 \right -y > y+1, solution is TeX Formula: -1 \le y < -\frac{1}{2}.

So your final solution is TeX Formula: y < -\frac{1}{2}

You could also solve this question by going the square root:

TeX Formula: y^2 > (y+1)^2

TeX Formula: y^2 > y^2+2y+1

TeX Formula: 2y+1 < 0

TeX Formula: y < -\frac{1}{2}

  • If TeX Formula: d is POSITIVE and TeX Formula: |x| < d, then TeX Formula: -d < x < d
  • If TeX Formula: d is NEGATIVE and TeX Formula: |x| < d, then there is no solution
  • If TeX Formula: d is POSITIVE and TeX Formula: |x| > d, then TeX Formula: x < -d OR TeX Formula: x > d
  • If TeX Formula: d is NEGATIVE and TeX Formula: |x| > d, then TeX Formula: x is all real numbers

The same strategy can apply to square inequalities. For example:

TeX Formula: (x+4)^2 > 4

You could solve it this way:

TeX Formula: x^2+8x+12 > 0

TeX Formula: (x+2)(x+6) > 0

TeX Formula: x > -2 or TeX Formula: x < -6

Or you can solve it this way:

  • If TeX Formula: x+4 \ge 0, then TeX Formula: x+4 > 2. Solving for them you get TeX Formula: x > -2
  • If TeX Formula: x+4 < 0, then TeX Formula: x+4 < -2. Solving for them you get TeX Formula: x < -6.

Short multiplication

Squares

  • TeX Formula: (a\pm b)^2=a^2\pm 2ab+b^2
  • TeX Formula: (a+b)(a-b)=a^2-b^2
  • TeX Formula: (a+b-c)^2=a^2+b^2+c^2+2ab-2ac-2bc

Cubes

  • TeX Formula: (a\pm b)^3=a^3\pm 3a^2 b+3ab^2\pm b^3
  • TeX Formula: (a\pm b)(a^2\mp ab+b^2) = a^3\pm b^3

Other

TeX Formula: a^4-b^4=(a-b)(a+b)(a^2+b^2)

Exercises

In order to practice you can try to prove the following statements:

  1. If TeX Formula: a>x , TeX Formula: b>y , TeX Formula: c>z then TeX Formula: a+b+c>x+y+z and TeX Formula: abc>xyz.
  2. TeX Formula: (n!)^2 > n^n when TeX Formula: n \gt 2
  3. TeX Formula: \frac{a}{b}+\frac{b}{c}+\frac{c}{d}+\frac{d}{a} > 4
  4. TeX Formula: a^2*b +b^2*c + c^2*a \ge 3abc
  5. For any positive integer TeX Formula: n, TeX Formula: 2 \le (1 + \frac{1}{n})^n \le 3
  6. If TeX Formula: a,TeX Formula: b,TeX Formula: c are positive and not equal then
    1. TeX Formula: (a+b+c)(ab+bc+ca) > 9abc
    2. TeX Formula: (b+c)(c+a)(a+b) > 8abc
  7. If TeX Formula: x > y, then TeX Formula: x - y divides TeX Formula: x^n - y^n.
    1. TeX Formula: a^n - b^n is divisible by TeX Formula: a + b if TeX Formula: n is even.
    2. TeX Formula: a^n + b^n is divisible by TeX Formula: a+b if TeX Formula: n is odd, and not divisible by TeX Formula: a+b if TeX Formula: n is even.
    3. TeX Formula: a^n-b^n is divisible by TeX Formula: a-b whether TeX Formula: n is odd or even.
personaltools