Sunday, June 12, 2016

Quadratic Equations

Quadratic Equations

An example of a Quadratic Equation:
Quadratic Equation

Name

The name Quadratic comes from "quad" meaning square, because the variable gets squared (like x2).
It is also called an "Equation of Degree 2" (because of the "2" on the x)

Standard Form

The Standard Form of a Quadratic Equation looks like this:
Quadratic Equation
  • ab and c are known values. a can't be 0.
  • "x" is the variable or unknown (we don't know it yet).
Here are some more examples:
2x2 + 5x + 3 = 0 In this one a=2b=5 and c=3
   
x2 − 3x = 0 This one is a little more tricky:
  • Where is a? Well a=1, and we don't usually write "1x2"
  • b = -3
  • And where is c? Well c=0, so is not shown.
5x − 3 = 0 Oops! This one is not a quadratic equation: it is missing x2 
(in other words a=0, which means it can't be quadratic)

Hidden Quadratic Equations!

So the "Standard Form" of a Quadratic Equation is
ax2 + bx + c = 0
But sometimes a quadratic equation doesn't look like that! For example:
In disguiseIn Standard Forma, b and c
x2 = 3x − 1Move all terms to left hand sidex2 − 3x + 1 = 0a=1, b=−3, c=1
2(w2 − 2w) = 5Expand (undo the brackets),
and move 5 to left
2w2 − 4w − 5 = 0a=2, b=−4, c=−5
z(z−1) = 3Expand, and move 3 to leftz2 − z − 3 = 0a=1, b=−1, c=−3

Quadratic Graph 

Have a Play With It

Play with the "Quadratic Equation Explorer" so you can see:
  • the graph it makes, and
  • the solutions (called "roots").

How To Solve It?

The "solutions" to the Quadratic Equation are where it is equal to zero.
There are usually 2 solutions (as shown in the graph above).
They are also called "roots", or sometimes "zeros"
There are 3 ways to find the solutions:
1. We can Factor the Quadratic (find what to multiply to make the Quadratic Equation)
2. We can Complete the Square, or
3. We can use the special Quadratic Formula:
Quadratic Formula
Just plug in the values of a, b and c, and do the calculations.
We will look at this method in more detail now.

About the Quadratic Formula

Plus/Minus

First of all what is that plus/minus thing that looks like ± ?
The ± means there are TWO answers:
Here is why we can get two answers:
 Quadratic Graph
But sometimes we don't get two real answers, and the "Discriminant" shows why ...

Discriminant

Do you see b2 − 4ac in the formula above? It is called the Discriminant, because it can "discriminate" between the possible types of answer:
  • when b2 - 4ac is positive, we get two Real solutions
  • when it is zero we get just ONE real solution (both answers are the same)
  • when it is negative we get two Complex solutions
Complex solutions? Let's talk about them after we see how to use the formula.

Using the Quadratic Formula

Just put the values of a, b and c into the Quadratic Formula, and do the calculations.

Example: Solve 5x² + 6x + 1 = 0

Coefficients are: a = 5, b = 6, c = 1
   
Quadratic Formula: x = −b ± √(b− 4ac)2a
   
Put in a, b and c: x = −6 ± √(6− 4×5×1)2×5
   
Solve: x = −6 ± √(36 − 20)10
  x = −6 ± √(16)10
  x = −6 ± 410
  x = −0.2 or −1

5x^2+6x+1
Answer: x = −0.2 or x = −1

And we see them on this graph.

Check -0.2:5×(−0.2)² + 6×(−0.2) + 1
= 5×(0.04) + 6×(−0.2) + 1
= 0.2 − 1.2 + 1
= 0
Check -1:5×(−1)² + 6×(−1) + 1
= 5×(1) + 6×(−1) + 1
= 5 − 6 + 1
= 0

Remembering The Formula

I don't know of an easy way to remember the Quadratic Formula, but a kind reader suggested singing it to "Pop Goes the Weasel":
  "x equals minus b   "All around the mulberry bush
plus or minus the square root The monkey chased the weasel
 of b-squared minus four a c  The monkey thought 'twas all in fun
 all over two a"  Pop! goes the weasel"
Try singing it a few times and it will get stuck in your head!
Or you can remember this story:
x = −b ± √(b− 4ac)2a
"A negative boy was thinking yes or no about going to a party,
at the party he talked to a square boy but not to the 4 awesome chicks.
It was all over at 2 am.
"

Complex Solutions?

When the Discriminant (the value b2 − 4ac) is negative we get Complex solutions ... what does that mean?
It means our answer will include Imaginary Numbers. Wow!

Example: Solve 5x² + 2x + 1 = 0

Coefficients are: a = 5, b = 2, c = 1
   
Note that the Discriminant is negative: b2 − 4ac = 22 − 4×5×1 = -16
   
Use the Quadratic Formula: x = −2 ± √(−16)10
   
The square root of -16 is 4i
(i is √-1, read Imaginary Numbers to find out more)
   
So: x = −2 ± 4i10
5x^2+6x+1
Answer: x = −0.2 ± 0.4i

The graph does not cross the x-axis. That is why we ended up with complex numbers.
In some ways it is easier: we don't need more calculation, just leave it as −0.2 ± 0.4i.

Summary

  • Quadratic Equation in Standard Form: ax2 + bx + c = 0
  • Quadratic Equations can be factored
  • Quadratic Formula: x = −b ± √(b− 4ac)2a
  • When the Discriminant (b2−4ac) is:
    • positive, there are 2 real solutions
    • zero, there is one real solution
    • negative, there are 2 complex solutions

Saturday, June 11, 2016

Logarithms

Introduction to Logarithms

In its simplest form, a logarithm answers the question:
How many of one number do we multiply to get another number?
Example: How many 2s do we multiply to get 8?
Answer: 2 × 2 × 2 = 8, so we needed to multiply 3 of the 2s to get 8
So the logarithm is 3

How to Write it

We write "the number of 2s we need to multiply to get 8 is 3" as:
log2(8) = 3

So these two things are the same:
logarithm concept
The number we are multiplying is called the "base", so we can say:
  • "the logarithm of 8 with base 2 is 3"
  • or "log base 2 of 8 is 3"
  • or "the base-2 log of 8 is 3"

Notice we are dealing with three numbers:

  • the base: the number we are multiplying (a "2" in the example above)
  • how many times to use it in a multiplication (3 times, which is the logarithm)
  • The number we want to get (an "8")

More Examples

Example: What is log5(625) ... ?

We are asking "how many 5s need to be multiplied together to get 625?"
5 × 5 × 5 × 5 = 625, so we need 4 of the 5s
Answer: log5(625) = 4

Example: What is log2(64) ... ?

We are asking "how many 2s need to be multiplied together to get 64?"
2 × 2 × 2 × 2 × 2 × 2 = 64, so we need 6 of the 2s
Answer: log2(64) = 6

Exponents

Exponents and Logarithms are related, let's find out how ...
2 cubed
The exponent says how many times to use the number in a multiplication.
In this example: 23 = 2 × 2 × 2 = 8
(2 is used 3 times in a multiplication to get 8)
So a logarithm answers a question like this:
Logarithm Question
In this way:
The logarithm tells us what the exponent is!
In that example the "base" is 2 and the "exponent" is 3:
logarithm concept
So the logarithm answers the question:
What exponent do we need 
(for one number to become another number)
 ?
The general case is:
Example: What is log10(100) ... ?
102 = 100
So an exponent of 2 is needed to make 10 into 100, and:
log10(100) = 2
Example: What is log3(81) ... ?
34 = 81
So an exponent of 4 is needed to make 3 into 81, and:
log3(81) = 4

Common Logarithms: Base 10

Sometimes a logarithm is written without a base, like this:
log(100)
This usually means that the base is really 10.
log
It is called a "common logarithm". Engineers love to use it.
On a calculator it is the "log" button.
It is how many times we need to use 10 in a multiplication, to get our desired number.
Example: log(1000) = log10(1000) = 3

Natural Logarithms: Base "e"

Another base that is often used is e (Euler's Number) which is about 2.71828.
ln
This is called a "natural logarithm". Mathematicians use this one a lot.
On a calculator it is the "ln" button.
It is how many times we need to use "e" in a multiplication, to get our desired number.
Example: ln(7.389) = loge(7.389) ≈ 2
Because 2.718282 ≈ 7.389

But Sometimes There Is Confusion ... !

Mathematicians use "log" (instead of "ln") to mean the natural logarithm. This can lead to confusion:
ExampleEngineer ThinksMathematician Thinks
log(50)log10(50)loge(50)confusion
ln(50)loge(50)loge(50)no confusion
log10(50)log10(50)log10(50)no confusion
So, be careful when you read "log" that you know what base they mean!

Logarithms Can Have Decimals

All of our examples have used whole number logarithms (like 2 or 3), but logarithms can have decimal values like 2.5, or 6.081, etc.
Example: what is log10(26) ... ?
log
Get your calculator, type in 26 and press log
Answer is: 1.41497...
The logarithm is saying that 101.41497... = 26
(10 with an exponent of 1.41497... equals 26)
This is what it looks like on a graph:
See how nice and smooth the line is.
Read Logarithms Can Have Decimals to find out more.

Negative Logarithms

Negative? But logarithms deal with multiplying.
What could be the opposite of multiplying? Dividing!

A negative logarithm means how many times to divide by the number.
We could have just one divide:
Example: What is log8(0.125) ... ?
Well, 1 ÷ 8 = 0.125,
So log8(0.125) = −1
Or many divides:
Example: What is log5(0.008) ... ?
1 ÷ 5 ÷ 5 ÷ 5 = 5−3,
So log5(0.008) = −3

It All Makes Sense

Multiplying and Dividing are all part of the same simple pattern.
Let us look at some Base-10 logarithms as an example:
NumberHow Many 10sBase-10 Logarithm
larger-smaller.. etc..
10001 × 10 × 10 × 10log10(1000)= 3
1001 × 10 × 10log10(100)= 2
101 × 10log10(10)= 1
11log10(1)= 0
0.11 ÷ 10log10(0.1)= −1
0.011 ÷ 10 ÷ 10log10(0.01)= −2
0.0011 ÷ 10 ÷ 10 ÷ 10log10(0.001)= −3
.. etc..
Looking at that table, see how positive, zero or negative logarithms are really part of the same (fairly simple) pattern.

The Word

"Logarithm" is a word made up by Scottish mathematician John Napier (1550-1617), from the Greek word logos meaning "proportion, ratio or word" andarithmos meaning "number", ... which together makes "ratio-number" !

Indices

Indices & the Law of Indices

Introduction

Indices are a useful way of more simply expressing large numbers. They also present us with many useful properties for manipulating them using what are called the Law of Indices.

What are Indices?

The expression 25 is defined as follows:
We call "2" the base and "5" the index.

Law of Indices

To manipulate expressions, we can consider using the Law of Indices. These laws only apply to expressions with the same base, for example, 34 and 32 can be manipulated using the Law of Indices, but we cannot use the Law of Indices to manipulate the expressions 35 and 57 as their base differs (their bases are 3 and 5, respectively).

Six rules of the Law of Indices

Rule 1: 
Any number, except 0, whose index is 0 is always equal to 1, regardless of the value of the base.
An Example:
Simplify 20:
Rule 2: 
An Example:
Simplify 2-2:
Rule 3: 
To multiply expressions with the same base, copy the base and add the indices.
An Example:
Simplify (note: 5 = 51)
Rule 4: 
To divide expressions with the same base, copy the base and subtract the indices.
An Example:
Simplify :
Rule 5: 
To raise an expression to the nth index, copy the base and multiply the indices.
An Example:
Simplify (y2)6:
Rule 6: 
An Example:
Simplify 1252/3: