Calculating error of a multi-varialbe function

  • Thread starter Thread starter hkBattousai
  • Start date Start date
  • Tags Tags
    Error Function
Click For Summary
To calculate the error of a multi-variable function y = f(x1, x2, ..., xn), the error in y can be expressed as E(f) = ∂f/∂x1 * e1 + ∂f/∂x2 * e2 + ... + ∂f/∂xn * en, where ei represents the error in each variable. The discussion highlights specific examples, such as for power (p = v * i) and resistance (R = v / i), demonstrating how to derive their respective error formulas. It emphasizes that when measurements are added, their errors add directly, while for multiplication, relative errors combine. This approach provides a practical method for estimating errors in multi-variable functions. Understanding these relationships is crucial for accurate error analysis in various applications.
hkBattousai
Messages
64
Reaction score
0
I have a function defined as:

y = f(x1, x2, x3,... , xn)

xi has an error of ei, where 1 <= i <= n.

How can I calculate the error of y in terms of e1,...,en?
 
Mathematics news on Phys.org
It depends explicitly on the functional form of f as well as any dependencies among the Xi.
 
mathman said:
It depends explicitly on the functional form of f as well as any dependencies among the Xi.

So what is this dependancy, is there a general formula?

For instance, how do you calculate,
p = v . i (errors: ep, ev and ei)
R = v / i (errors: eR, ev and ei)
errors of "p" and "R"?
 
If the errors in x1, x2, ..., xn are e1, e2, ..., en, respectively, then the error in f(x1, x2, ..., xn) is E(f)= \frac{\partial f}{\partial x_1}e_1+ \frac{\partial f}{\partial x_2}e_2+ \cdot\cdot\cdot\frac{\partial f}{\partial x_n}e_n, approximately. (Approximately because we are using the derivative rather than the actual difference- but that will give a good upper bound on the possible error.)

In particular, if O(x,y)= x+ y then e_o= 1(e_x)+ 1(e_y)= e_x+ e_y, if P(v, i)= vi, then e_p= i e_v+ v e_i and if P(v, i)= v/i= vi-1, then e_R= i^{-1} e_v- vi^{-2}e_i

Notice that
\frac{e_P}{P}= \frac{i}{vi}e_v+ \frac{v}{vi} e_i= \frac{e_v}{v}+ \frac{e_i}{i}
and
\frac{e_R}{R}= \frac{e_v}{v}- \frac{e_i}{i}

illustrating an old mechanics "rule of thumb": if measurements are added, their errors add and if errors are multiplied, their relative errors add.
 
Last edited by a moderator:
Those are some great formulas, thank you very much.
 
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K