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!

Equation of line bisecting two others

  1. Jul 21, 2011 #1
    Hi everyone, this will probably be very easy for someone but I'm really struggling to get this to work. I have experimental data whose baseline and peak midpoints I have fitted tangents to, and I have found the points where they intersect. I now want to find the red line which bisects these two tangents, but whatever I do the plot comes out at completely the wrong angle. I have included an example, with my beautiful handwritten workings (lol).

    graphjpg.jpg

    If anyone can help, I'd really appreaciate it, my MSc will be all the better for it :D

    Cheers
     
  2. jcsd
  3. Jul 21, 2011 #2
    Well. Let's say your first line has slope m1, and your second m2 (both positive in the example graph). A line with slope m1 is slanted at angle arctan(m1) to the horizontal. You, however, want to think of this first line as heading down and left, so you should add pi radians or 180 degrees to it. Your two lines, then, are at angles

    [tex]
    \begin{eqnarray*}
    \theta_1 & = & \arctan{(m_1)}+180 \\
    \theta_2 & = & \arctan{(m_2)}
    \end{eqnarray*}
    [/tex]

    The line you wants heads at an angle halfway inbetween

    [tex]
    \theta_b = \frac{\theta_1+\theta_2}{2}
    [/tex]

    and its slope is [itex]m_b=\tan(\theta_b)[/itex], which will be negative. Find a line with that slope that goes through the intersection point.
     
  4. Jul 21, 2011 #3
    Thanks ever so much for that, I've been staring at the thing for literally hours trying to figure out what was wrong with my equation - always good to get a fresh brain on the problem!

    One thing I cant figure out, will this formula still apply if the baseline is at a negative slope?
     
  5. Jul 21, 2011 #4
    As long as your arctan function returns a negative angle for a negative argument (and I've never met one that doesn't), it should work. I guess you could in theory run into a problem in which the bisecting line is vertical and has infinite slope. That would take very bad luck.

    Another possibility, which I just advised someone else to try, would to be use the two-argument form of the arc tangent function, [itex]\theta_1=\arctan(-1,-m_1)[/itex]. Then you don't have to add 180.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Equation of line bisecting two others
  1. Equation of a Line (Replies: 3)

  2. Mid-line of two slopes (Replies: 6)

Loading...