C3 Coursework - different methods of solving equations.

Authors Avatar

C3 Coursework – Numerical Solutions

Decimal Search

There a numerous ways to solve a problem and in finding the unknown. Some methods give you the exact and precise answer but usually are harder and more complex. The Decimal search method enables you to get a very close approximate to the real solution but more easily.

The way this method works is by looking between two numerical values (for example 1 and 2) and then

As a demonstration in applying this method, I will be attempting to solve this equation using the Decimal Search method and going through the method step by step:

Below is what this function looks when plotted on a graph:

We know that the solution for F(x) = 0 is the point on the X axis where the sign changes from a positive to a negative.

So if we zoom in a little bit further, from this graph we can tell where the solution lies, somewhere between 0 and 10

Now that we know the solution is roughly between these two values, I will use excel to solve the problem with firstly taking increments in x, the size of 1. So when I substitute the incremented values of x between -10 and 0 into the equation, I get the following results:

You can tell that the sign changed between -3 and -4. So I set these as my initial values. The fact that the solution lies between -3 and -4 can also be seen in the graph:

So next, I check with increments of 0.1 in x. I again substitute the values in to the equation and tabulate the results and look for where the sign change occurs. I repeat this until I get down to increments the size of 0.00001

From the last table, you can see

that the solution lies between

-3.52719 and -3.52720

From the graph, you can see that the solution lies slightly to towards to the -3.52720 side.

The answer is between -3.52720 and -3.52719, which can be re-written as 3.527195 ± 0.00005

Failure of the Decimal Search Method

This method does not always work. In the case of F(x) = (x-4)4 you cannot use this, method to find the roots at this does not cross the X axis. It merely touches it. So because this method relies on the line of the graph crossing the X +axis and the value changing signs, it is impossible to solve this with this method. This can be seen more clearly on a graph:

Another failure of the method is when the graph doesn’t even touch the X-axis at all. So this means that there will be no sign changes resulting in the failure of the graph

Re-arrangement method

Any f(x) function can be rearranged in the form of x = g(x) in multiple ways and any one of those can be used as a basis for iteration for   .This can be used to find a root of the f(x).

Join now!

As an example I have used to demonstrate it is the f(x) = x5 + 6x2 - x + 4

Below is how the graph looks like :

When I re arrange the equation in the form of x= g(x), it turns out to be this:

When I plot this against the y = x graph, this is what the graph looks like:        

This is the visual representation to what happens as x= G(x) gets closer and closer towards the root (staircase).

...

This is a preview of the whole essay

Here's what a teacher thought of this essay

An excellent piece of work with no errors giving clear explanations of the use of decimal search, iterations and Newton-Raphson numerical methods to solve equations. 5 stars