# Algebra/Solving equations

## Contents

## Quadratic equations[edit]

Up to now you have only dealt with equations and expressions involving just x; in this section we'll move onto solving things which have in them.

All quadratic equations can be arranged in the form
, and *a*,*b*,*c* are all constants. Now let's look at some examples:

**Examples:** Rearrange the following equations in the form :

**Solution for** (1)**:**

- Note that in the first step you distributed the x on the left side of the equation. The second step was obtained by adding a 5x to both sides of the equation and subsequently subtracting a 3 from both sides of the equation.

**Solution for** (2)**:**

- Note that in the last step, both sides are multiplied by -1, to make the term positive, so that the solving of the equation would be easier.

#### Factorization[edit]

Factorization is the most common way to solve quadratic equations. Let us consider again the first example above: We have already simplified the equation into

Now, we want to factorize the equation - that is to say, get it into a form such as:

Look at the number term c. In this example, it is -3. Now, if we are lucky, the numbers "something" and "something else" will turn out to be nice whole numbers, so let's think of two numbers that will multiply together to give -3. Either 3 and -1, or -3 and 1. But we also need to get the x term correct (here, b=2). In fact, we need our two factors of c to add together to make b. And (3)+(-1)=2. So, we have found our 'somethings': they are 3 and -1. Let's fill them in.

Just to check, we can multiply out the brackets to check we have what we started with:

Now, we know that in an equation the left side is always equal to the right side. And in this case the right side of the equation is 0, so from that we can conclude the term must equal to zero as well. And that means that either or must equal zero. (Not convinced? Remember (x+3) and (x-1) are just numbers. Can you find two non-zero numbers which multiply to make zero?)

Let's write that algebraically:

Thus, there are two different solutions to the same equation! This is the case for all quadratic equations. We say that this quadratic equation has *two distinct and real roots*.

With practice, you will often be able to write down the equation in factorised form almost immediately. Here is another example, in this case the x easily factorises out:

#### Completing the square[edit]

Sometimes the roots (solutions) of a quadratic equation cannot be easily obtained by factorisation. In such cases, we have to solve the equation by completing the square, or using the quadratic formula (see below).

In order to complete the square, we need to rewrite the given equation in the form . Now here is an example:

In general, we get

Note that when we reach the stage of taking the square root of both sides of the equation, we might have a negative left-hand side. In this case, the roots will be complex. If you have not yet learned about complex numbers, it is possible to simply state that the equation "has no real roots".

#### Quadratic Formula[edit]

The quadratic formula is a special generalization of completing the square that allows the two roots of a quadratic equation to be obtained by simple substitution. It can be used to solve any quadratic equation and is very quick to work out on a calculator.

Complete the square:

Simplify:

Which equals 4y to the 19th power.

which is the desired form of the quadratic formula.

Hence, given that a quadratic is in the form , the two roots are:

The quantity in the equation, known as the **discriminant**, is an indication of the solubility and nature of the roots:

- discriminant is positive—soluble over
**R**, real roots - discriminant is zero—soluble over
**R**, real repeated (single) roots - discriminant is negative—insoluble over
**R**(yet soluble over**C**), no real roots

### Weda's Theorem[edit]

If the quadratic equation has two real roots and , then

This is because and . By simply adding or multiplying the two roots we will get the above two equations. This is called Weda's Theorem**.**

Using Weda's Theorem we can find the second root of a given quadratic equation without solving the equation.

**Example:** Given that one of the real roots of the equation is 2, find the other root without solving the equation.

**Solution:**

We can also determine the signs of two roots by applying the following rules:

- the equation has two positive roots if ;
- the equation has two negative roots if ;
- the equation has two roots with different signs if

( represents the discriminant of the equation.)

Another problem involving Weda's Theorem:

**Example:** For the equation , given that the sum of squares of roots is , find the value of .

**Solution:**

Pythagorean Theorem ____________________

a^+b^=c^

## Solving simultaneous linear and nonlinear equations[edit]

In previous chapters you have already learned how to solve simultaneous linear equations. Now we will learn how to solve a system of simultaneous linear and non-linear equations with two unknowns. It is usually done by **substitution method**.

**Example:** Solve the following simultaneous equations:

**Solution:**

∴ x=-1 and y=1, or x=-2 and y=0.