Testwiki:Reference desk/Archives/Mathematics/2016 September 2

From testwiki
Jump to navigation Jump to search

Template:Error:not substituted

{| width = "100%"

|- ! colspan="3" align="center" | Mathematics desk |- ! width="20%" align="left" | < September 1 ! width="25%" align="center"|<< Aug | September | Oct >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


September 2

an oblique kind of distance formula

Given the angle between two lines, and the signed distance of a point (in the same plane) from each of those lines, what is the point's distance² from their intersection? I've derived this (with difficulty) twice and mislaid my answer; I think it's

u2+v2uvcosα

but have failed to confirm it, and can't recall how I derived it ... Maybe you know a straightforward derivation? —Tamfang (talk) 09:12, 2 September 2016 (UTC)

It's easy to see this formula is incorrect, it should reduce to u2+v2 for α=π/2, infinity for α=0,uv and indeterminate for α=0,u=v.
Wlog assume that the intersection is at the origin and that the first line is horizontal. The normalized equation for the second line is xsinα+ycosα=0. Then letting the point be at (x0,y0), we have y0=u and x0sinα+y0cosα=v, giving x0=ucosαvsinα so x02+y02=u2+v22uvcosαsin2α. -- Meni Rosenfeld (talk) 10:34, 2 September 2016 (UTC)
I agree it's easy to see that I had it wrong; now that I'm awake I hoped to get here in time to remove it ;) Template:Resolved Thanks! —Tamfang (talk) 17:03, 2 September 2016 (UTC)