Using differentials to estimate the maximum possible error in computed product

Click For Summary

Homework Help Overview

The problem involves estimating the maximum possible error in the product of four positive numbers, each less than 40, after they have been rounded to the first decimal place. The context is centered around the application of differentials to assess the impact of rounding on the computed product.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • Participants discuss the use of the differential formula to estimate error and question the validity of the upper bound provided by the differential. There is an exploration of how rounding affects the product and whether the differential can reliably estimate maximum error.

Discussion Status

Some participants have offered insights into the nature of the differential as an upper bound rather than an exact maximum error. There is ongoing exploration of the reliability of differentials in practical applications versus theoretical contexts.

Contextual Notes

Participants note that the exact error could vary and may not always align with the differential estimate, highlighting the complexity of rounding effects on the product.

navalava
Messages
9
Reaction score
0

Homework Statement


Four positive numbers, each less than 40, are rounded to the first decimal place and then multiplied together. Use differentials to estimate the maximum possible error in the computed product that might result from the rounding.


Homework Equations


dz=(dz/dx)dx+(dz/dy)dy


The Attempt at a Solution




I know that the solution to this problem is 4(40)^3(0.05)=12800 and I know how to apply the formula for differential to get that answer.
But I'm having trouble understanding WHY this answer is correct. I tried out this question using numbers closest to 40 that I could get when rounded to the first decimal place.
I used 39.85 for the four numbers. When rounded off, this gives us 39.9.
So I computed the error that would result like so: (39.9)^4 - (39.85)^4= 12680.37959
However, the correct answer is supposed to be 12800. I chose the closest possible numbers to 40 that I could, and I used the maximum possible error from rounding to the first decimal place (0.05). I would really appreciate it if someone could help me figure out what I'm doing wrong. Thanks!
 
Physics news on Phys.org
navalava said:

Homework Statement


Four positive numbers, each less than 40, are rounded to the first decimal place and then multiplied together. Use differentials to estimate the maximum possible error in the computed product that might result from the rounding.


Homework Equations


dz=(dz/dx)dx+(dz/dy)dy


The Attempt at a Solution




I know that the solution to this problem is 4(40)^3(0.05)=12800 and I know how to apply the formula for differential to get that answer.
But I'm having trouble understanding WHY this answer is correct. I tried out this question using numbers closest to 40 that I could get when rounded to the first decimal place.
I used 39.85 for the four numbers. When rounded off, this gives us 39.9.
So I computed the error that would result like so: (39.9)^4 - (39.85)^4= 12680.37959
However, the correct answer is supposed to be 12800. I chose the closest possible numbers to 40 that I could, and I used the maximum possible error from rounding to the first decimal place (0.05). I would really appreciate it if someone could help me figure out what I'm doing wrong. Thanks!

Your relevant equation is pretty relevant.

If P = xyzw

you can approximate \Delta P by the total differential of P, dP.
 
Actually, there is nothing necessarily wrong, since the answer given is just an upper-bound , and not necessarily the absolute maximum error. And, as mark44 suggested, "you're not playing with a full differential" when you write dz=(dz/dx)dx+(dz/dy)dy.
 
Last edited:
Ohh okay, that would make sense if the differential gives only the upper bound and not the absolute maximum error. But in that case is the differential considered reliable to give the actual maximum error? I'm pretty sure that they are used in practical applications as well, not just theoretical, in which case a rough estimate may not be accurate enough.
 
navalava said:
Ohh okay, that would make sense if the differential gives only the upper bound and not the absolute maximum error. But in that case is the differential considered reliable to give the actual maximum error? I'm pretty sure that they are used in practical applications as well, not just theoretical, in which case a rough estimate may not be accurate enough.
I'm not sure I understand your question, but I'll answer what I think you're asking as well as I can.

Let P = x*y*z*w, be the product of the four numbers, with 0 < x, y, z, w < 40.

Let Pest = xr * yr * zr *wr, be the product of the four numbers rounded to the nearest tenth.

The exact value of the error is P - Pest = \Delta P, and this error could be positive or negative, or even zero if rounding each of the four numbers results in no change to any of them.

It's very seldom that we're interested in the exact error, in part because we usually can't calculate it exactly, but a good estimate (not a rough estimate) usually suffices. If we can calculate a good estimate for |P - Pest|, then we have upper and lower bounds for the error.

|P - Pest| = |\Delta P| \approx |dP| = |Pxdx + Pydy + Pzdz + Pwdw|
\leq P_x|\Delta x| + P_y|\Delta y| + P_z|\Delta z| + P_w|\Delta w|

If \Delta x and the other errors are small in comparison to the partial derivatives (all of which are positive, since we're dealing with positive numbers), the error in our calculation will also be small.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
10
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
9K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
6
Views
11K
  • · Replies 2 ·
Replies
2
Views
4K