Decimal search

The equation f (x) = 0, where f (x) = x3-x2+x-2, has only one real root, but there is no simple analytical method of finding it. Therefore, a spreadsheet had been used to solve the equations numerically using decimal search.

The table and graph above illustrated the first approximations to the roots of the equation  x3-x2+x-2=0.

As the curve crosses the x-axis, f (x) changes sign, so provided that f (x) is a continuous function, once you have located an interval in which f(x) changes sign, you know that that interval must contain a root.

In the table, you first take increments in x of size 1 within the interval 1<x<2, working out the value of the function x5-5x+3 for each one. You do this until you find a change of sign of f(x) between the value of x = 1 and 2 , so you should know that there is a root lying in the interval 1<x<2 on the graph.

Having narrow down the interval, you can now continue 1.3<x<1.4, you could now homing in on such root using decimal search.

  • Tabulate f (x) for 1<x<2 with increments in x of 0.1, a change of sign reveals that 1.3<α<1.4.

  • Tabulate f (x) for 1.3<x<1.4 with increments in x of 0.01, a change of sign gives 1.35<α<1.36

  • Tabulate f (x) for 1.35<x<1.36 with increments in x of 0.001, a change of sign gives 1.353<α<1.354

  • Tabulate f (x) for 1.353<x<1.354 with increments in x of 0.0001, a change of sign gives 1.3532<α<1.3533

Having established that 1.3532 <α<1.3533, since f(1.3532) <0 and f(1.3533) >0, the maximum error is 1.3533 –1.3532 = 0.0001, which is more than sufficient to give the root correct to 3

Join now!

decimal places as α = 1.353

Example for problems with change of sign method

If the curve touches the x-axis without crossing it, there will be no change of sign, so change of sign methods are doomed to failure. For example,               has a repeated rational root, which can be expressed as a recurring decimal i.e      = 0.3333…… 

Sketch graph of f (x) = (3x-1)2(2x+4)  is drawn below, you would notice that there is no change of sign on the graph as well as the table. It seems that there ...

This is a preview of the whole essay