Distance between Random Points on the X and Y Axes

Point A A is chosen randomly on the y y -axis between y = 0 y=0 and y = 1 , y=1, while point B B is chosen randomly on the x x -axis between x = 0 x=0 and x = 1 x=1 . Both events are independent of each other.

The expected value of the square of the distance between them can be expressed in the form p q \frac{p}{q} , where p p and q q are coprime positive integers. What is 3 p + 4 q ? 3p+4q?


The answer is 18.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Nick Turtle
Oct 27, 2017

Suppose that point A A is given by ( 0 , y ) (0,y) and point B B is given by ( x , 0 ) (x,0) , where 0 y 1 0≤y≤1 and 0 x 1 0≤x≤1 .

Now, the square of the distance between them is x 2 + y 2 x^2+y^2 .

Average all possible values of x 2 + y 2 x^2+y^2 in 0 y 1 0≤y≤1 and 0 x 1 0≤x≤1 using limits and sigma notation: lim N 1 N 2 a = 0 N b = 0 N a 2 N 2 + b 2 N 2 \displaystyle\lim_{N\to\infty}\frac{1}{N^2}\sum_{a=0}^{N}\sum_{b=0}^{N}\frac{a^2}{N^2}+\frac{b^2}{N^2} .

Rewrite using integral notation by substituting x = a N x=\frac{a}{N} , y = b N y=\frac{b}{N} , d x = d y = 1 N dx=dy=\frac{1}{N} : 0 1 0 1 ( x 2 + y 2 ) d x d y \displaystyle\int_{0}^{1}\int_{0}^{1}(x^2+y^2)\ dx\ dy

This double integral can be integrated through iterated integration: = 0 1 [ x 3 3 + x y 2 ] x = 0 x = 1 d y =\displaystyle\int_{0}^{1}[\frac{x^3}{3}+xy^2]_{x=0}^{x=1}\ dy = 0 1 ( 1 3 + y 2 ) d y =\displaystyle\int_{0}^{1}(\frac{1}{3}+y^2)\ dy = [ ( y 3 + y 3 3 ) ] y = 0 y = 1 =[(\frac{y}{3}+\frac{y^3}{3})]_{y=0}^{y=1} = 2 3 =\frac{2}{3}

Thus, the answer is 3 2 + 4 3 = 18 3\cdot2+4\cdot3=18 .

Why It would be a/N^2 instead of just a?

wing yan yau - 10 months, 3 weeks ago
Tom Engelsman
Feb 11, 2021

We are interested in computing E [ x 2 + y 2 ] E[x^2+y^2] , and since x , y x, y are independent of each other we have E [ x 2 + y 2 ] = E [ x 2 ] + E [ y 2 ] E[x^2+y^2] = E[x^2] + E[y^2] . This leads us to the following integration:

E [ x 2 + y 2 ] = E [ x 2 ] + E [ y 2 ] = 0 1 x 2 ( 1 1 0 ) d x + 0 1 y 2 ( 1 1 0 ) d y = x 3 3 0 1 + y 3 3 0 1 = 2 3 = p q E[x^2+y^2] = E[x^2] + E[y^2] = \int_{0}^{1} x^2 \cdot (\frac{1}{1-0}) dx + \int_{0}^{1} y^2 \cdot (\frac{1}{1-0}) dy = \frac{x^3}{3}|_{0}^{1} + \frac{y^3}{3}|_{0}^{1} = \frac{2}{3} = \frac{p}{q}

and 3 p + 4 q = 3 ( 2 ) + 4 ( 3 ) = 18 . 3p+4q = 3(2) + 4(3) = \boxed{18}.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...