• Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19

MEI numerical Methods

Extracts from this document...


Numerical methods coursework


Consider the problem x + ktanx = 1, the value of x lies between 0 and π/2 for different values of K, it is measured in radians. Normally a solution of a mathematical problem of this nature requires the root of an equation. If we attempt to find the root algebraically, we begin by rearranging the equation to give 0, hence the equation is x + ktanx – 1 = 0. Now lets assume the value of K is 1, we are left with x + tanx – 1 = 0. The only information we are provided is that the value of x is between 0 and π/2. Since x appears twice in the equation, the problem cannot be solved algebraically. In the sense that there are equations which cannot be integrated and require numerical methods to approximate the answer, eg the midpoint rule. In the same way there are equations which cannot be solved algebraically and require numerical methods to approximate the root.

To solve this solution I shall attempt to use numerical methods. I will be using the method of bisection, fixed point iteration, secant method and false position method. All these methods require the use of an excel spreadsheet since all methods require iterations which will get closer and closer to the real answer (converge). This is why the Newton raphson method isn’t being used as it requires differentiation which can be hard to use on computers. The other methods can be converted into formulas and inputted into excel which can easily perform multiple iterations, simply by dragging down the cells.


Method of bisection:

An approximation of the root can be obtained by this method; in order to use the method of bisection the first thing which must be done is to find an interval estimate of the root.

...read more.


Formulas used:


Fixed point iteration:

To use fixed point iteration we need to rearrange the equation so that it equals x. There are two possible rearranged forms are:

  • X= 1 – ktanx
  • X= arctan(1-x)/k

Fixed point iteration uses recurrence relation so by finding the answer of one iteration we produce X(1), we then use X(1) as x in the formula to produce X(2), this is how we get closer to the root by using this method.

For example the first iteration for x = 1 – ktanx assuming that k = 1 is:

X = 1 – tan(π/4)

The value of tan(π/4) = 1

1-1 = 0, hence the value of the first iteration is 0, for the second iteration we would do:

X = 1 – tan(0)

The value of tan(0) = 0

1-0 = 1 hence the value of the second iteration is 1 and we would carry on. This task can be tedious to carry on doing it again and again especially for different values of K and if it has a lot of iterations, hence we use a spreadsheet.

Formulas used for spreadsheet:


Secant method:

The secant method requires two approximations of the root in order to work. Fortunately we’ve been provided with two roots, 0 and π/2. We can now call x(0) as π/2 and x(1) as 0, we can then substitute these values into the following equation.


Formula used for spreadsheet:


False position method:

Similar to the secant method, the false position method also requires two

approximations of the root. I will use one root a as 0 and the other root b as π/4. Bearing this in mind we can substitute the values into the formula:


The formula is the same as the secant method however remember the false position method roots approximation must support the sign change argument.

Formula used for spreadsheet:


Proof of root:


...read more.



0.4797310065 < x < 0.4797310075, to test the bounds are correct we can do the f of both of these values and it would have to support the sign change argument, as proved above.

This means the root is 0.479731007 ± 0.0000000005. We can however lower the boundaries and thereby create a better approximation of the root. In order to lower the boundaries we merely continue reducing/increasing them until we hit the boundary of sign changes.

f(0.4797310073) = 0.0000000000444833

f(0.4797310072= -0.0000000002


The root to the equation is, 0.4797310065 < x < 0.4797310075 hence 0.479731007 to 9 D.P.


This is my approximation of the root compared to the actual root, bear in mind this is zoomed in by a lot. However how valid is this approximation of the root?

If we look back we found out there were problems with the formulas themselves however that was merely for the purpose of finding the best method, this cannot be used as a limitation because it doesn’t apply to this equation.  

However earlier I did mention that excel is accurate to 15 D.P, my answer is only valid to 9 D.P, this is definitely a limitation, if I had more time I would change my figures and calculate it to 15 D.P.

Another way to test its validity we merely insert it back into the original equation,

 x + tanx – 1 =0. Notice the =0 part, if this approximation is valid then by using our approximation (x) in this equation we should end up with an answer close to 0. The result of the equation is -6.37 x 10^-10. Notice the degree of the polynomial is a high minus number meaning this number is tiny and extremely close to 0. This means my approximation of the root is valid. In order to improve on this approximation we could find the root to more D.P as explained earlier.

...read more.

This student written piece of work is one of many that can be found in our AS and A Level Core & Pure Mathematics section.

Found what you're looking for?

  • Start learning 29% faster today
  • 150,000+ documents available
  • Just £6.99 a month

Not the one? Search for your essay title...
  • Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

See related essaysSee related essays

Related AS and A Level Core & Pure Mathematics essays

  1. Marked by a teacher

    The Gradient Function

    5 star(s)

    - x (x+h) - x 2(x�+ 2hx + h�) - 2x� + 3(x5 + 5x4h + 10x�h� + 10x�h� + 5xh4 +h5) - 3x5 h h = 2x� + 4hx + 2h� - 2x� + 3x^5 + 15x4(h) + 30x�h� + 30x�h� + 15xh4 +h5 - 3x5 h h = (4x + 2h)

  2. Solving Equations. Three numerical methods are discussed in this investigation. There are advantages and ...

    by formula, we can then carry on with the general formula, the sequence will converge and untilit converges to the target root we find. Example 1 This method can also calculate with the help of Microsoft excel, formulas are set up as following: n xn f(xn)

  1. Numerical solution of equations, Interval bisection---change of sign methods, Fixed point iteration ---the Newton-Raphson ...

    B. Here the b) equation is chosen to solve the equation. Graph 3.2 From the Graph 3.2, y = x and intersect at the 3 roots which are around 3.5, 0.5 and -4. Graph 3.3 x=(x�+8)/13 N x 1 -2 2 0 3 0.61538462 4 0.63331116 5 0.63492387 6 0.63507352 7 0.63508745 8 0.63508874

  2. I am going to solve equations by using three different numerical methods in this ...

    1.5 -0.0533 0.1432 1.375 0.15823125 1.25 1.375 -0.0533 0.15823125 1.3125 0.088110156 1.25 1.3125 -0.0533 0.088110156 1.28125 0.027231738 1.25 1.28125 -0.0533 0.027231738 1.265625 -0.010463025 1.265625 1.28125 -0.010463025 0.027231738 1.273438 0.009012828 1.265625 1.273438 -0.010463025 0.009012828 1.269531 -0.000566192 1.269531 1.273438 -0.000566192 0.009012828 1.271484 0.004262821 1.269531 1.271484 -0.000566192 0.004262821 1.270508 0.001858218 1.269531 1.270508 -0.000566192

  1. Best shape for gutter and further alegbra - using Excel to solve some mathematical ...

    31 3.33333 3.33333 14.42935 The formulae to calculate the area of this cross section are given in Appendix 1. Triangular cross section(V shape) - Area = x () x () sin? A =w2 sin? By varying ? by 1�, where 0� is at the point of the two sides touching each other to make a straight line.

  2. OCR MEI C3 Coursework - Numerical Methods

    Graphical illustration The following is a graphical illustration of the process for finding this root with x1=1: Finding the remaining root The other root can be found using x1=-2. xn f(xn) f'(xn) x1 -2 -2.12500 30.27344 x2 -1.92981 -0.87732 10.43071 x3 -1.84570 -0.29110 4.65311 x4 -1.78314 -0.05792 2.98408 x5 -1.76373

  1. Numerical integration can be described as set of algorithms for calculating the numerical value ...

    Algebraically this can be donated as [f(?) + f(?+h)](h/2). The length of the next trapezium in figure 1.1 is [f(2) + f(3)](h/2); similarly in algebraic terms [f(?+h) + f(?????h?]??h???? As a result the total area in figure 1.1 can be given as follows: [f(?) + f(?+h)](h/2) + [f(?+h) + f(?????h?]?h??????[f(?+2h) + f(?????h?]?h??? + [f(?+3h) + f(?????h?]?h?????? [f(??????[f(??h)

  2. Fractals. In order to create a fractal, you will need to be acquainted ...

    Our production rules are (A ? B?A?B), (B ? A+B+A). The arrows specify that the variable is to be substituted with these set of rules. These production rules are followed over and over again until the specified amount of iterations.

  • Over 160,000 pieces
    of student written work
  • Annotated by
    experienced teachers
  • Ideas and feedback to
    improve your own work