Algebra/Solving equations

From testwiki
Jump to navigation Jump to search

Quadratic equations

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 x2 in them.

All quadratic equations can be arranged in the form ax2+bx+c=0 (a0), and a,b,c are all constants. Now let's look at some examples:

Examples: Rearrange the following equations in the form ax2+bx+c=0:

(1)x(x3)=35x;(2)2x+1=(x2+2)3

Solution for (1):

x23x=35xx2+2x3=0
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):

2x+1=x23+23x23+2x+123=0x232x1+23=0
Note that in the last step, both sides are multiplied by -1, to make the term x23 positive, so that the solving of the equation would be easier.

Factorization

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

x2+2x3=0

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

(x+something)(x+something)=0

Look at the number term c. In this example, it is -3. Now, think what two numbers 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.

(x+3)(x1)=0

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

(x+3)(x1)=0x2+3x1x3=0x2+2x3=0

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 (x+3)(x1) must equal to zero as well. And that means that either (x+3) or (x1) 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:

x2+2x3=0x+3=0orx1=0x=3orx=1

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:

2x2=9x2x29x=0x(2x9)=0x=0orx=92

Completing the square

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 (x+a)2=b. Now here is an example:

x2+8x+9=0x2+8x=9x2+8x+42=429(x+4)2=7x+4=7orx+4=7x=4+7orx=47x=1.35orx=6.65

In general, we get

x2+kx+(k2)2=(x+k2)2

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 numbers|complex]]. If you have not yet learned about [[../Complex numbers|complex numbers]], it is possible to simply state that the equation "has no real roots".

Quadratic Formula

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 and is very quick to work out on a calculator.

To derive a general solution to the formula ax2+bx+c=0 we proceed as follows:

ax2+bx+c=0

Isolate all x terms on one side of the equation:

ax2+bx=cx2+bax=ca

Complete the square:

x2+bax+(b2a)2=ca+(b2a)2

Simplify:

(x+b2a)2=ca+(b2a)2
x+b2a=±b24a2+ca
x+b2a=±b24a2+4ac4a2
x=b2a±b24ac4a2
x=b2a±b24ac2a
x=b±b24ac2a

which is the desired form of the quadratic formula.

Hence, given that a quadratic is in the form ax2+bx+c=0, the two roots are:

x=b±b24ac2a

The quantity b24ac 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

If the quadratic equation ax2+bx+c=0 (a0) has two real roots x1 and x2, then

{x1+x2=bax1x2=ca

This is because x1=b+b24ac2a and x2=bb24ac2a. 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 4x213x+10=0 is 2, find the other root without solving the equation.

Solution:

x1x2=cax12=104x1=54

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

  1. the equation has two positive roots if Δ0, ca>0, and ba<0;
  2. the equation has two negative roots if Δ0, ca>0, and ba>0;
  3. the equation has two roots with different signs if  ca<0

(Δ represents the discriminant of the equation.)

Another problem involving Weda's Theorem:

Example: For the equation 2x2+ax+1=0, given that the sum of squares of roots is 714, find the value of a.

Solution:

(x1+x2)22x1x2=x12+x22(a2)2212=714a24=814a2=33a=±33

Solving simultaneous linear and nonlinear equations

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:

{2x2+y25xy=8------ (1)yx=2------ (2)

Solution:

Rearrange (2):y=x+2------ (3)Substitute(3) into (1):2x2+(x+2)25x(x+2)=82x2+x2+4x+45x210x8=0x2+3x+2=0(x+2)(x+1)=0x=2or1Substitute x=-2 back into (3):y=2+2=0Substitute x=-1 back into (3):y=1+2=1

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



Previous: Systems of simultaneous equations
Next: Solving linear inequalities

[[Category:Algebra|Template:FULLCHAPTERNAME]]