3 Relative error and percentage relative error

Two other measures of error can be obtained from a knowledge of the expression for the absolute error. As mentioned earlier, the relative error in f is δ f f and the percentage relative error is δ f f × 100 % . Suppose that f ( x , y ) = x 2 + y 2 + x y then

δ f f x δ x + f y δ y = ( 2 x + y ) δ x + ( 2 y + x ) δ y

The relative error is

δ f f 1 f f x δ x + 1 f f y δ y = ( 2 x + y ) x 2 + y 2 + x y δ x + ( 2 y + x ) x 2 + y 2 + x y δ y

The actual value of the relative error can be obtained if the actual errors of the independent variables are known and the values of x and y at the point of interest. In the special case where the function is a combination of powers of the input variables then there is a short cut to finding the relative error in the value of the function. For example, if f ( x , y , u ) = x 2 y 4 u 3 then

f x = 2 x y 4 u 3 , f y = 4 x 2 y 3 u 3 , f u = 3 x 2 y 4 u 4

Hence

δ f 2 x y 4 u 3 δ x + 4 x 2 y 3 u 3 δ y 3 x 2 y 4 u 4 δ u

Finally,

δ f f 2 x y 4 u 3 × u 3 x 2 y 4 δ x + 4 x 2 y 3 u 3 × u 3 x 2 y 4 δ y 3 x 2 y 4 u 4 × u 3 x 2 y 4 δ u

Cancelling down the fractions,

δ f f 2 δ x x + 4 δ y y 3 δ u u ( 1 )

so that

rel. error in f 2 × (rel. error in x )+ 4 × (rel. error in y )- 3 × (rel. error in u ).

Note that if we write

f ( x , y , u ) = x 2 y 4 u 3

we see that the coefficients of the relative errors on the right-hand side of ( 1 ) are the powers of the appropriate variable.

To find the percentage relative error we simply multiply the relative error by 100 .

Task!

If f = x 3 y u 2 and x , y , u are subject to percentage relative errors of 1 % , 1 % and 2 % respectively find the approximate percentage relative error in f .

First find f x , f y and f u :

f x = 3 x 2 y u 2 , f y = x 3 u 2 , f u = 2 x 3 y u 3 .

Now write down an expression for δ f

δ f 3 x 2 y u 2 δ x + x 3 u 2 δ y 2 x 3 y u 3 δ u

Hence write down an expression for the percentage relative error in f :

δ f f × 100 3 x 2 y u 2 × u 2 x 3 y δ x × 100 + x 3 u 2 × u 2 x 3 y δ y × 100 2 x 3 y u 3 × u 2 x 3 y δ u × 100

Finally, calculate the value of the percentage relative error:

δ f f × 100 3 δ x x × 100 + δ y y × 100 2 δ u u × 100 = 3 ( 1 ) 1 2 ( 2 ) = 2 %

Note that f = x 3 y u 2 .