Average distance between point in a disc and line segment












6














What is the average distance between a (randomly chosen) point in a disc of radius r and a line segment of length $a < 2r$ whose midpoint is at the center of the disc? ["Distance" here being the shortest distance to any point on the line segment.]










share|cite|improve this question




















  • 1




    Your attempts so far?
    – Connor Harris
    Dec 12 '18 at 18:15
















6














What is the average distance between a (randomly chosen) point in a disc of radius r and a line segment of length $a < 2r$ whose midpoint is at the center of the disc? ["Distance" here being the shortest distance to any point on the line segment.]










share|cite|improve this question




















  • 1




    Your attempts so far?
    – Connor Harris
    Dec 12 '18 at 18:15














6












6








6


3





What is the average distance between a (randomly chosen) point in a disc of radius r and a line segment of length $a < 2r$ whose midpoint is at the center of the disc? ["Distance" here being the shortest distance to any point on the line segment.]










share|cite|improve this question















What is the average distance between a (randomly chosen) point in a disc of radius r and a line segment of length $a < 2r$ whose midpoint is at the center of the disc? ["Distance" here being the shortest distance to any point on the line segment.]







geometry






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 12 '18 at 15:26









Key Flex

7,74541232




7,74541232










asked Dec 12 '18 at 15:24









Michael Mc GettrickMichael Mc Gettrick

664




664








  • 1




    Your attempts so far?
    – Connor Harris
    Dec 12 '18 at 18:15














  • 1




    Your attempts so far?
    – Connor Harris
    Dec 12 '18 at 18:15








1




1




Your attempts so far?
– Connor Harris
Dec 12 '18 at 18:15




Your attempts so far?
– Connor Harris
Dec 12 '18 at 18:15










1 Answer
1






active

oldest

votes


















0















We devote our calculations to only the first quadrant because all the other quadrants are symmetrical in terms of calculations.




Dividing the quadrant into three regions, we will use the concept of expectation value of a variable denoted as follows $$lt xgt = frac{int xP(x)dx}{int P(x)dx}$$
where $P(x)$ is the number of times a particular value $x$ of the quantity we seek occurs. (which we will contemplate as area of infinitesimal strips)
enter image description here



For region $mathbf I$:



The distances of all the points on a vertical line are the same ($x$).
So the $N^r$ contributed to the final formula of expected value or $N^r_{mathbf I}$ is calculated as $$int_0^{sqrt{R^2-frac{a^2}{4}}}xfrac a2dx=frac a4Biggl(R^2-frac{a^2}{4}Biggr)$$
where $frac a2dx$ is the area of the strip on which all the points are at a distance $x$ from the line of length $alt 2R$.
And obviously the denominator contributed $$D^r_{mathbf I} = area(rectangle OABC) =int_0^{sqrt{R^2-frac{a^2}{4}}}frac a2dx=frac a2sqrt{R^2-frac{a^2}{4}}$$
For region $mathbf {II}$:



$$N^r_{mathbf {II}}=int_{sqrt{R^2-frac{a^2}{4}}}^R xsqrt{R^2-x^2}dx$$
Subtituting $t=x^2$ and $dt=2xdx$, it becomes at last
$$-frac13biggl[(R^2-x^2)^{frac32}biggr]_{sqrt{R^2-frac{a^2}{4}}}^R=frac{a^3}{24}$$



where $sqrt{R^2-x^2}$ is the height of each strip.



And $D^r_{mathbf {II}}$ = area of half the segment $mathbf {II}$ $$= int_{sqrt{R^2-frac{a^2}{4}}}^R sqrt{R^2-x^2}dx$$
which can also simply be calculated by $frac12R^2(angle BOD)^c - area (triangle OBC)$
$$=frac12R^2sin^{-1}(frac a{2R})-frac a4sqrt{R^2-frac{a^2}{4}}$$.



For region $mathbf {III}$: ($mathbf {My attempt}$)




Since the equal distances between line and collection of random points are radial in sense, we now switch to polar coordinates.




Also you'd reconcile that there is some relation between $theta$ and the radial distance $r$ from point $A$ i.e. $max(r)$ depends on what $theta$ line you are seeing.
So, applying $mathit {Law of cosines}$ in $triangle OAE$:
$$cos(frac{pi}2+theta)=frac{r^2+frac{a^2}4-R^2}{ra}$$
or
$$sin(theta)=frac{R^2-big(r^2+frac{a^2}4big)}{ra}$$
or
$$r=frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2$$
which is strictly decreasing in $big[0,frac{pi}2big)$.



Now, there are two integral sums that can lead us to $D^r_{mathbf {III}}$:
$$D^r_{mathbf {III}}=int_0^{R-frac a2}int_0^{frac{pi}2}rd{theta}dr+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}int_0^{sin^{-1}biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}biggr)}rd{theta}dr=frac{pi}4big(R-frac a2big)^2+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}r {sin^{-1}Biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}Biggr)}dr$$
or
$$D^r_{mathbf {III}}=int_0^{frac{pi}2}int_{R-frac a2}^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta+int_0^{frac{pi}2}int_0^{R-frac a2}rdrd{theta}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta$$
(I prefer latter to check if we are on the right track and we are! That's what I checked through above)



which can also simply be calculated by the area of half the segment $mathbf {III}$
$$=frac12R^2(angle BOA)^c - area (triangle OBA)=frac12R^2cos^{-1}Bigl(frac a{2R}Bigr)-frac a4biggl(sqrt{R^2-frac{a^2}4}biggr)$$
$$sum_{i=1,2,3} D^r_{mathbf {i}}= area(quadrant)=frac{pi}4R^2$$
since $sin^{-1}x+cos^{-1}x=frac{pi}2$



Since the distance between points at radial distance of $r$ from point $A$ is the same, thus multiplying $r$ in the integrand would mean $distancetimes (number of points having such distance)$ thing:
$$N^r_{mathbf {III}}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}r.rdrdtheta=frac1{24}int_0^{frac{pi}2}Big({sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}Big)^3drdtheta$$




Average distance(as defined) of a random point from the given line is $$frac{underset{i=1,2,3}{sum} N^r_{mathbf {i}}}{frac{pi}4R^2}$$







share|cite|improve this answer























    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3036812%2faverage-distance-between-point-in-a-disc-and-line-segment%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0















    We devote our calculations to only the first quadrant because all the other quadrants are symmetrical in terms of calculations.




    Dividing the quadrant into three regions, we will use the concept of expectation value of a variable denoted as follows $$lt xgt = frac{int xP(x)dx}{int P(x)dx}$$
    where $P(x)$ is the number of times a particular value $x$ of the quantity we seek occurs. (which we will contemplate as area of infinitesimal strips)
    enter image description here



    For region $mathbf I$:



    The distances of all the points on a vertical line are the same ($x$).
    So the $N^r$ contributed to the final formula of expected value or $N^r_{mathbf I}$ is calculated as $$int_0^{sqrt{R^2-frac{a^2}{4}}}xfrac a2dx=frac a4Biggl(R^2-frac{a^2}{4}Biggr)$$
    where $frac a2dx$ is the area of the strip on which all the points are at a distance $x$ from the line of length $alt 2R$.
    And obviously the denominator contributed $$D^r_{mathbf I} = area(rectangle OABC) =int_0^{sqrt{R^2-frac{a^2}{4}}}frac a2dx=frac a2sqrt{R^2-frac{a^2}{4}}$$
    For region $mathbf {II}$:



    $$N^r_{mathbf {II}}=int_{sqrt{R^2-frac{a^2}{4}}}^R xsqrt{R^2-x^2}dx$$
    Subtituting $t=x^2$ and $dt=2xdx$, it becomes at last
    $$-frac13biggl[(R^2-x^2)^{frac32}biggr]_{sqrt{R^2-frac{a^2}{4}}}^R=frac{a^3}{24}$$



    where $sqrt{R^2-x^2}$ is the height of each strip.



    And $D^r_{mathbf {II}}$ = area of half the segment $mathbf {II}$ $$= int_{sqrt{R^2-frac{a^2}{4}}}^R sqrt{R^2-x^2}dx$$
    which can also simply be calculated by $frac12R^2(angle BOD)^c - area (triangle OBC)$
    $$=frac12R^2sin^{-1}(frac a{2R})-frac a4sqrt{R^2-frac{a^2}{4}}$$.



    For region $mathbf {III}$: ($mathbf {My attempt}$)




    Since the equal distances between line and collection of random points are radial in sense, we now switch to polar coordinates.




    Also you'd reconcile that there is some relation between $theta$ and the radial distance $r$ from point $A$ i.e. $max(r)$ depends on what $theta$ line you are seeing.
    So, applying $mathit {Law of cosines}$ in $triangle OAE$:
    $$cos(frac{pi}2+theta)=frac{r^2+frac{a^2}4-R^2}{ra}$$
    or
    $$sin(theta)=frac{R^2-big(r^2+frac{a^2}4big)}{ra}$$
    or
    $$r=frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2$$
    which is strictly decreasing in $big[0,frac{pi}2big)$.



    Now, there are two integral sums that can lead us to $D^r_{mathbf {III}}$:
    $$D^r_{mathbf {III}}=int_0^{R-frac a2}int_0^{frac{pi}2}rd{theta}dr+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}int_0^{sin^{-1}biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}biggr)}rd{theta}dr=frac{pi}4big(R-frac a2big)^2+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}r {sin^{-1}Biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}Biggr)}dr$$
    or
    $$D^r_{mathbf {III}}=int_0^{frac{pi}2}int_{R-frac a2}^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta+int_0^{frac{pi}2}int_0^{R-frac a2}rdrd{theta}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta$$
    (I prefer latter to check if we are on the right track and we are! That's what I checked through above)



    which can also simply be calculated by the area of half the segment $mathbf {III}$
    $$=frac12R^2(angle BOA)^c - area (triangle OBA)=frac12R^2cos^{-1}Bigl(frac a{2R}Bigr)-frac a4biggl(sqrt{R^2-frac{a^2}4}biggr)$$
    $$sum_{i=1,2,3} D^r_{mathbf {i}}= area(quadrant)=frac{pi}4R^2$$
    since $sin^{-1}x+cos^{-1}x=frac{pi}2$



    Since the distance between points at radial distance of $r$ from point $A$ is the same, thus multiplying $r$ in the integrand would mean $distancetimes (number of points having such distance)$ thing:
    $$N^r_{mathbf {III}}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}r.rdrdtheta=frac1{24}int_0^{frac{pi}2}Big({sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}Big)^3drdtheta$$




    Average distance(as defined) of a random point from the given line is $$frac{underset{i=1,2,3}{sum} N^r_{mathbf {i}}}{frac{pi}4R^2}$$







    share|cite|improve this answer




























      0















      We devote our calculations to only the first quadrant because all the other quadrants are symmetrical in terms of calculations.




      Dividing the quadrant into three regions, we will use the concept of expectation value of a variable denoted as follows $$lt xgt = frac{int xP(x)dx}{int P(x)dx}$$
      where $P(x)$ is the number of times a particular value $x$ of the quantity we seek occurs. (which we will contemplate as area of infinitesimal strips)
      enter image description here



      For region $mathbf I$:



      The distances of all the points on a vertical line are the same ($x$).
      So the $N^r$ contributed to the final formula of expected value or $N^r_{mathbf I}$ is calculated as $$int_0^{sqrt{R^2-frac{a^2}{4}}}xfrac a2dx=frac a4Biggl(R^2-frac{a^2}{4}Biggr)$$
      where $frac a2dx$ is the area of the strip on which all the points are at a distance $x$ from the line of length $alt 2R$.
      And obviously the denominator contributed $$D^r_{mathbf I} = area(rectangle OABC) =int_0^{sqrt{R^2-frac{a^2}{4}}}frac a2dx=frac a2sqrt{R^2-frac{a^2}{4}}$$
      For region $mathbf {II}$:



      $$N^r_{mathbf {II}}=int_{sqrt{R^2-frac{a^2}{4}}}^R xsqrt{R^2-x^2}dx$$
      Subtituting $t=x^2$ and $dt=2xdx$, it becomes at last
      $$-frac13biggl[(R^2-x^2)^{frac32}biggr]_{sqrt{R^2-frac{a^2}{4}}}^R=frac{a^3}{24}$$



      where $sqrt{R^2-x^2}$ is the height of each strip.



      And $D^r_{mathbf {II}}$ = area of half the segment $mathbf {II}$ $$= int_{sqrt{R^2-frac{a^2}{4}}}^R sqrt{R^2-x^2}dx$$
      which can also simply be calculated by $frac12R^2(angle BOD)^c - area (triangle OBC)$
      $$=frac12R^2sin^{-1}(frac a{2R})-frac a4sqrt{R^2-frac{a^2}{4}}$$.



      For region $mathbf {III}$: ($mathbf {My attempt}$)




      Since the equal distances between line and collection of random points are radial in sense, we now switch to polar coordinates.




      Also you'd reconcile that there is some relation between $theta$ and the radial distance $r$ from point $A$ i.e. $max(r)$ depends on what $theta$ line you are seeing.
      So, applying $mathit {Law of cosines}$ in $triangle OAE$:
      $$cos(frac{pi}2+theta)=frac{r^2+frac{a^2}4-R^2}{ra}$$
      or
      $$sin(theta)=frac{R^2-big(r^2+frac{a^2}4big)}{ra}$$
      or
      $$r=frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2$$
      which is strictly decreasing in $big[0,frac{pi}2big)$.



      Now, there are two integral sums that can lead us to $D^r_{mathbf {III}}$:
      $$D^r_{mathbf {III}}=int_0^{R-frac a2}int_0^{frac{pi}2}rd{theta}dr+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}int_0^{sin^{-1}biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}biggr)}rd{theta}dr=frac{pi}4big(R-frac a2big)^2+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}r {sin^{-1}Biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}Biggr)}dr$$
      or
      $$D^r_{mathbf {III}}=int_0^{frac{pi}2}int_{R-frac a2}^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta+int_0^{frac{pi}2}int_0^{R-frac a2}rdrd{theta}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta$$
      (I prefer latter to check if we are on the right track and we are! That's what I checked through above)



      which can also simply be calculated by the area of half the segment $mathbf {III}$
      $$=frac12R^2(angle BOA)^c - area (triangle OBA)=frac12R^2cos^{-1}Bigl(frac a{2R}Bigr)-frac a4biggl(sqrt{R^2-frac{a^2}4}biggr)$$
      $$sum_{i=1,2,3} D^r_{mathbf {i}}= area(quadrant)=frac{pi}4R^2$$
      since $sin^{-1}x+cos^{-1}x=frac{pi}2$



      Since the distance between points at radial distance of $r$ from point $A$ is the same, thus multiplying $r$ in the integrand would mean $distancetimes (number of points having such distance)$ thing:
      $$N^r_{mathbf {III}}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}r.rdrdtheta=frac1{24}int_0^{frac{pi}2}Big({sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}Big)^3drdtheta$$




      Average distance(as defined) of a random point from the given line is $$frac{underset{i=1,2,3}{sum} N^r_{mathbf {i}}}{frac{pi}4R^2}$$







      share|cite|improve this answer


























        0












        0








        0







        We devote our calculations to only the first quadrant because all the other quadrants are symmetrical in terms of calculations.




        Dividing the quadrant into three regions, we will use the concept of expectation value of a variable denoted as follows $$lt xgt = frac{int xP(x)dx}{int P(x)dx}$$
        where $P(x)$ is the number of times a particular value $x$ of the quantity we seek occurs. (which we will contemplate as area of infinitesimal strips)
        enter image description here



        For region $mathbf I$:



        The distances of all the points on a vertical line are the same ($x$).
        So the $N^r$ contributed to the final formula of expected value or $N^r_{mathbf I}$ is calculated as $$int_0^{sqrt{R^2-frac{a^2}{4}}}xfrac a2dx=frac a4Biggl(R^2-frac{a^2}{4}Biggr)$$
        where $frac a2dx$ is the area of the strip on which all the points are at a distance $x$ from the line of length $alt 2R$.
        And obviously the denominator contributed $$D^r_{mathbf I} = area(rectangle OABC) =int_0^{sqrt{R^2-frac{a^2}{4}}}frac a2dx=frac a2sqrt{R^2-frac{a^2}{4}}$$
        For region $mathbf {II}$:



        $$N^r_{mathbf {II}}=int_{sqrt{R^2-frac{a^2}{4}}}^R xsqrt{R^2-x^2}dx$$
        Subtituting $t=x^2$ and $dt=2xdx$, it becomes at last
        $$-frac13biggl[(R^2-x^2)^{frac32}biggr]_{sqrt{R^2-frac{a^2}{4}}}^R=frac{a^3}{24}$$



        where $sqrt{R^2-x^2}$ is the height of each strip.



        And $D^r_{mathbf {II}}$ = area of half the segment $mathbf {II}$ $$= int_{sqrt{R^2-frac{a^2}{4}}}^R sqrt{R^2-x^2}dx$$
        which can also simply be calculated by $frac12R^2(angle BOD)^c - area (triangle OBC)$
        $$=frac12R^2sin^{-1}(frac a{2R})-frac a4sqrt{R^2-frac{a^2}{4}}$$.



        For region $mathbf {III}$: ($mathbf {My attempt}$)




        Since the equal distances between line and collection of random points are radial in sense, we now switch to polar coordinates.




        Also you'd reconcile that there is some relation between $theta$ and the radial distance $r$ from point $A$ i.e. $max(r)$ depends on what $theta$ line you are seeing.
        So, applying $mathit {Law of cosines}$ in $triangle OAE$:
        $$cos(frac{pi}2+theta)=frac{r^2+frac{a^2}4-R^2}{ra}$$
        or
        $$sin(theta)=frac{R^2-big(r^2+frac{a^2}4big)}{ra}$$
        or
        $$r=frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2$$
        which is strictly decreasing in $big[0,frac{pi}2big)$.



        Now, there are two integral sums that can lead us to $D^r_{mathbf {III}}$:
        $$D^r_{mathbf {III}}=int_0^{R-frac a2}int_0^{frac{pi}2}rd{theta}dr+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}int_0^{sin^{-1}biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}biggr)}rd{theta}dr=frac{pi}4big(R-frac a2big)^2+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}r {sin^{-1}Biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}Biggr)}dr$$
        or
        $$D^r_{mathbf {III}}=int_0^{frac{pi}2}int_{R-frac a2}^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta+int_0^{frac{pi}2}int_0^{R-frac a2}rdrd{theta}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta$$
        (I prefer latter to check if we are on the right track and we are! That's what I checked through above)



        which can also simply be calculated by the area of half the segment $mathbf {III}$
        $$=frac12R^2(angle BOA)^c - area (triangle OBA)=frac12R^2cos^{-1}Bigl(frac a{2R}Bigr)-frac a4biggl(sqrt{R^2-frac{a^2}4}biggr)$$
        $$sum_{i=1,2,3} D^r_{mathbf {i}}= area(quadrant)=frac{pi}4R^2$$
        since $sin^{-1}x+cos^{-1}x=frac{pi}2$



        Since the distance between points at radial distance of $r$ from point $A$ is the same, thus multiplying $r$ in the integrand would mean $distancetimes (number of points having such distance)$ thing:
        $$N^r_{mathbf {III}}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}r.rdrdtheta=frac1{24}int_0^{frac{pi}2}Big({sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}Big)^3drdtheta$$




        Average distance(as defined) of a random point from the given line is $$frac{underset{i=1,2,3}{sum} N^r_{mathbf {i}}}{frac{pi}4R^2}$$







        share|cite|improve this answer















        We devote our calculations to only the first quadrant because all the other quadrants are symmetrical in terms of calculations.




        Dividing the quadrant into three regions, we will use the concept of expectation value of a variable denoted as follows $$lt xgt = frac{int xP(x)dx}{int P(x)dx}$$
        where $P(x)$ is the number of times a particular value $x$ of the quantity we seek occurs. (which we will contemplate as area of infinitesimal strips)
        enter image description here



        For region $mathbf I$:



        The distances of all the points on a vertical line are the same ($x$).
        So the $N^r$ contributed to the final formula of expected value or $N^r_{mathbf I}$ is calculated as $$int_0^{sqrt{R^2-frac{a^2}{4}}}xfrac a2dx=frac a4Biggl(R^2-frac{a^2}{4}Biggr)$$
        where $frac a2dx$ is the area of the strip on which all the points are at a distance $x$ from the line of length $alt 2R$.
        And obviously the denominator contributed $$D^r_{mathbf I} = area(rectangle OABC) =int_0^{sqrt{R^2-frac{a^2}{4}}}frac a2dx=frac a2sqrt{R^2-frac{a^2}{4}}$$
        For region $mathbf {II}$:



        $$N^r_{mathbf {II}}=int_{sqrt{R^2-frac{a^2}{4}}}^R xsqrt{R^2-x^2}dx$$
        Subtituting $t=x^2$ and $dt=2xdx$, it becomes at last
        $$-frac13biggl[(R^2-x^2)^{frac32}biggr]_{sqrt{R^2-frac{a^2}{4}}}^R=frac{a^3}{24}$$



        where $sqrt{R^2-x^2}$ is the height of each strip.



        And $D^r_{mathbf {II}}$ = area of half the segment $mathbf {II}$ $$= int_{sqrt{R^2-frac{a^2}{4}}}^R sqrt{R^2-x^2}dx$$
        which can also simply be calculated by $frac12R^2(angle BOD)^c - area (triangle OBC)$
        $$=frac12R^2sin^{-1}(frac a{2R})-frac a4sqrt{R^2-frac{a^2}{4}}$$.



        For region $mathbf {III}$: ($mathbf {My attempt}$)




        Since the equal distances between line and collection of random points are radial in sense, we now switch to polar coordinates.




        Also you'd reconcile that there is some relation between $theta$ and the radial distance $r$ from point $A$ i.e. $max(r)$ depends on what $theta$ line you are seeing.
        So, applying $mathit {Law of cosines}$ in $triangle OAE$:
        $$cos(frac{pi}2+theta)=frac{r^2+frac{a^2}4-R^2}{ra}$$
        or
        $$sin(theta)=frac{R^2-big(r^2+frac{a^2}4big)}{ra}$$
        or
        $$r=frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2$$
        which is strictly decreasing in $big[0,frac{pi}2big)$.



        Now, there are two integral sums that can lead us to $D^r_{mathbf {III}}$:
        $$D^r_{mathbf {III}}=int_0^{R-frac a2}int_0^{frac{pi}2}rd{theta}dr+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}int_0^{sin^{-1}biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}biggr)}rd{theta}dr=frac{pi}4big(R-frac a2big)^2+int_{R-frac a2}^{sqrt{R^2-frac{a^2}4}}r {sin^{-1}Biggl(frac{R^2-big(r^2+frac{a^2}4big)}{ra}Biggr)}dr$$
        or
        $$D^r_{mathbf {III}}=int_0^{frac{pi}2}int_{R-frac a2}^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta+int_0^{frac{pi}2}int_0^{R-frac a2}rdrd{theta}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}rdrdtheta$$
        (I prefer latter to check if we are on the right track and we are! That's what I checked through above)



        which can also simply be calculated by the area of half the segment $mathbf {III}$
        $$=frac12R^2(angle BOA)^c - area (triangle OBA)=frac12R^2cos^{-1}Bigl(frac a{2R}Bigr)-frac a4biggl(sqrt{R^2-frac{a^2}4}biggr)$$
        $$sum_{i=1,2,3} D^r_{mathbf {i}}= area(quadrant)=frac{pi}4R^2$$
        since $sin^{-1}x+cos^{-1}x=frac{pi}2$



        Since the distance between points at radial distance of $r$ from point $A$ is the same, thus multiplying $r$ in the integrand would mean $distancetimes (number of points having such distance)$ thing:
        $$N^r_{mathbf {III}}=int_0^{frac{pi}2}int_0^{frac{sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}2}r.rdrdtheta=frac1{24}int_0^{frac{pi}2}Big({sqrt{4R^2-a^2cos^2{theta}}-asin{theta}}Big)^3drdtheta$$




        Average distance(as defined) of a random point from the given line is $$frac{underset{i=1,2,3}{sum} N^r_{mathbf {i}}}{frac{pi}4R^2}$$








        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Dec 18 '18 at 20:07

























        answered Dec 13 '18 at 14:15









        Sameer BahetiSameer Baheti

        5568




        5568






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3036812%2faverage-distance-between-point-in-a-disc-and-line-segment%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Bressuire

            Cabo Verde

            Gyllenstierna