1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Having trouble with error propagation

  1. Jun 27, 2011 #1
    I'm measuring the error of a measurement of the magnetic field in r and theta. I'd like to find the error in the x and y directions.
    Let the value of the magnetic field in x be X
    Let the value of the magnetic field in y be Y
    Let the value of the magnetic field in theta be D
    Let the value of the magnetic field in r be R

    cos(D) = X / R
    sin(D) = Y / R

    R ^ 2 = X ^ 2 + Y ^ 2

    Thus,

    X2 = R2 * cos2(D)
    Y2 = R2 * sin2(D)

    X = R * cos(D)
    Y = R * sin(D)

    I use the following equations for error propagation:

    Ex2 = [itex]\frac{dX}{dr}[/itex]2Er2 + [itex]\frac{dX}{dtheta}[/itex]2ED2

    Ey2 = [itex]\frac{dY}{dr}[/itex]2Er2 + [itex]\frac{dY}{dtheta}[/itex]2ED2

    [itex]\frac{dX}{dr}[/itex] = cos(D)
    [itex]\frac{dX}{dtheta}[/itex] = - R sin (D)
    [itex]\frac{dY}{dr}[/itex] = sin(D)
    [itex]\frac{dY}{dtheta}[/itex] = R cos (D)
    thus,
    Ex2 = cos2(D)*Er2 + R2sin2*ED2 (1)

    Ey2 = sin2(D)*Er2 + R2cos2*ED2 (2)


    Which is fine and dandy and matches my physical expectation.

    The problem I'm having is if I do this in reverse I get a contradictory result.

    Suppose I know Ex and Ey and need Er and ED.

    Er2 = [itex]\frac{dR}{dx}[/itex]2Ex2 + [itex]\frac{dR}{dy}[/itex]2Ey2

    and

    ED2 = [itex]\frac{dD}{dx}[/itex]2Ex2 + [itex]\frac{dD}{dy}[/itex]2ED2


    [itex]\frac{dR}{dx}[/itex] = X / R
    [itex]\frac{dR}{dy}[/itex] = Y / R

    [itex]\frac{dD}{dx}[/itex] = [itex]\frac{-y}{R2}[/itex]
    [itex]\frac{dD}{dy}[/itex] = [itex]\frac{x}{R2}[/itex]

    giving:

    ER2 = (X/R)2 * Ex2 + (Y/R)2* Ey2 (3)

    ED[/SUB2 = (Y/R2)2 Ex2 + (X/R2) * Ey2 (4)

    Then solve these equations for Ey and Ex I find that the Ex and Ey in these equations end up disagreeing with the ones in the previous set.

    For EX
    Multiply equation (3) through by R2
    In equation (3) subtract the Ex term from both sides.
    Multiply equation (3) by (R/Y)2
    Substitute the resulting expression of Ey into equation (4)

    Then solving for Ex2 yielding:

    Ex2 = [itex]\frac{R2sin2(D)*ED2 - cos2(D) * Er2}{sin2(D) - cos2(D)}[/itex]

    Which is off from equation (1) for the addition of two negative signs. (one in the numerator and one in the denominator, I don't believe it to be equal to equation 1 but perhaps I am wrong somehow. Additionally this equation allows for negative values of Ex2! I'm not sure where I went wrong. Is there some reason I can't do what I've done?
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: Having trouble with error propagation
  1. Error propagation (Replies: 1)

  2. Error Propagation (Replies: 3)

Loading...