Coordinate bug

Algebra Level 3

A bug of negligible size starts at the origin of the coordinate plane. First, it moves 1 unit right to ( 1 , 0 ) (1,0) . Then it makes a 9 0 90^\circ turn counterclockwise and travels 1 2 \frac{1}{2} a unit to ( 1 , 1 2 ) (1,\frac{1}{2}) . If it continues in this fashion endlessly, each time making a 9 0 90^\circ turn counterclockwise and traveling half as far as in the previous move, to which of the following points will it come closest?

( 2 3 , 2 3 ) \left(\frac{2}{3}, \frac{2}{3}\right) ( 2 3 , 1 3 ) \left(\frac{2}{3}, \frac{1}{3}\right) ( 4 3 , 4 5 ) \left(\frac{4}{3}, \frac{4}{5}\right) ( 4 5 , 2 5 ) \left(\frac{4}{5}, \frac{2}{5}\right)

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.

4 solutions

Nishant Ranjan
Dec 11, 2019

A good way to think of this problem is to find the x x and y y co-ordinates separately.

Look at the diagram,

Along the x x axis:

If we take a move rightward as positive and the move leftward as negative , then the bug takes the following moves:

1 , 1 4 , 1 16 , 1 64 . . . 1, \frac{-1}{4}, \frac{1}{16}, \frac{-1}{64} ... \infty

Notice that it forms an infinite geometric series with common ratio(r) = 1 4 \frac{-1}{4}

Where the bug lands can be thought of as the sum of this infinite geometric series:

S u m = a 1 r Sum = \frac{a}{1-r}

S u m = 1 1 1 4 = 4 5 \Rightarrow Sum = \frac{1}{1-\frac{-1}{4}} = \boxed{\frac{4}{5}}

This gives us the x x coordinate.

Along the y y axis:

If we take a move upward as positive and the move downward as negative , then the bug takes the following moves:

1 2 , 1 8 , 1 32 , 1 128 . . . \frac{1}{2}, \frac{-1}{8}, \frac{1}{32}, \frac{-1}{128} ... \infty

Notice again that it forms an infinite geometric series with common ratio(r) = 1 4 \frac{-1}{4}

Again, where the bug lands can be thought of as the sum of this infinite geometric series:

S u m = a 1 r Sum = \frac{a}{1-r}

S u m = 1 2 1 1 4 = 2 5 \Rightarrow Sum = \frac{\frac{1}{2}}{1-\frac{-1}{4}} = \boxed{\frac{2}{5}}

This gives us the y y coordinate.

So, the point where it approaches is ( 4 5 , 2 5 ) \boxed{(\frac{4}{5}, \frac{2}{5})}

Separating x and y is great. It can be extended to a 3D bug in xyz. Complex numbers won't work here!

Max Patrick - 1 year, 6 months ago
Chris Lewis
Dec 11, 2019

Say the bug lives in the complex plane, and its path is z 0 , z 1 , z 2 , z_0,z_1,z_2,\ldots . We have z 0 = 0 z_0=0 and z n + 1 = z n + 1 2 n e i n π 2 z_{n+1}=z_n+\frac{1}{2^n} e^{in\frac{\pi}{2}}

which looks ghastly, but encodes both the bug's turning (in the e i n π 2 e^{i n \frac{\pi}{2}} term) and the path shortening (in the 1 2 n \frac{1}{2^n} term). This means we can find the bug's ultimate destination - z z_{\infty} - by summing a geometric series: z = n = 0 1 2 n e i n π 2 = 1 1 1 2 e i π 2 = 4 5 + 2 5 i \begin{aligned} z_{\infty}&=\sum_{n=0}^{\infty} \frac{1}{2^n} e^{in\frac{\pi}{2}}\\ &= \frac{1}{1-\frac{1}{2} e^{i\frac{\pi}{2}}}\\ &=\frac{4}{5}+\frac{2}{5} i \end{aligned}

I am in grade 9 and have not started complex numbers yet. But I am happy to see this problem being solved with complex numbers.

Nishant Ranjan - 1 year, 6 months ago

Maybe it's a complex bug.

Nishant Ranjan - 1 year, 5 months ago
Chew-Seong Cheong
Dec 11, 2019

Convert the x y xy -plane into the complex plane of z z , where the real part ( z ) = x \Re(z) = x and imaginary part ( z ) = y \Im(z) = y . Let the first move be u 0 = 1 u_0 = 1 , the second move be u 1 = i 2 u_1 = \frac i2 , third move be u 2 = 1 4 u_2 = - \frac 14 and so on. Then the final position of the bug after n n th move is given by z n = u 0 + u 1 + u 2 + + u n 1 z_n = u_0+u_1+u_2 + \cdots + u_{n-1} . We note that a turning of 9 0 90^\circ anticlockwise in a complex plane is equivalent to multiplied by i i , the imaginary unit . Then we have:

z n = k = 0 n 1 u k = k = 0 n 1 ( i 2 ) k lim n z n = k = 0 ( i 2 ) k = 1 1 i 2 = 2 2 i = 2 ( 2 + i ) 5 = 4 5 + 2 5 i \begin{aligned} z_n & = \sum_{k=0}^{n-1} u_k = \sum_{k=0}^{n-1} \left(\frac i2 \right)^k \\ \implies \lim_{n \to \infty} z_n & = \sum_{k=0}^\infty \left(\frac i2 \right)^k = \frac 1{1-\frac i2} = \frac 2{2-i} = \frac {2(2+i)}5 = \frac 45 + \frac 25i \end{aligned}

Therefore, the final coordinate of the bug is ( 4 5 , 2 5 ) \boxed{\left(\frac 45, \frac 25\right)} .

Jesse Nieminen
Dec 22, 2019

Since there are already multiple solution utilizing complex numbers, I'll give a solution using linear algebra.

Let's denote the first move by the vector b = [ 1 0 ] . \mathbf{b} = \begin{bmatrix} 1 \\ 0\\ \end{bmatrix}.

Now counterclockwise rotation of 90 90 degrees corresponds to multiplying by the matrix M = [ 0 1 1 0 ] , \mathbf{M} = \begin{bmatrix} 0 & -1\\ 1 & 0 \\ \end{bmatrix},

and halving the length corresponds to multiplying by the matrix

N = [ 1 2 0 0 1 2 ] . \mathbf{N} = \begin{bmatrix} \frac12 & 0\\ 0 & \frac12 \\ \end{bmatrix}.

Let's denote their product by N M = A = [ 0 1 2 1 2 0 ] . \mathbf{NM} = \mathbf{A} = \begin{bmatrix} 0 & -\frac12\\ \frac12 & 0\\ \end{bmatrix}.

Now we can get the next vector to add by multiplying the previously added vector by matrix A \mathbf{A} .

Continuing this indefinitely we see that the sum x = k = 0 A k b \mathbf{x} = \sum\limits_{k=0}^{\infty} \mathbf{A}^k \mathbf{b} gives the limit point if it converges.

Since the eigenvalues of the matrix A \mathbf{A} , which are ± i 2 \pm \dfrac i2 , have absolute values less than 1 1 , the geometric series k = 0 A k \sum\limits_{k=0}^{\infty} \mathbf{A}^k converges towards ( I A ) 1 \left(\mathbf{I} - \mathbf{A}\right)^{-1} and thus

x = ( I A ) 1 b = ( [ 1 0 0 1 ] [ 0 1 2 1 2 0 ] ) 1 [ 1 0 ] = [ 1 1 2 1 2 1 ] 1 [ 1 0 ] = [ 4 5 2 5 2 5 4 5 ] [ 1 0 ] = [ 4 5 2 5 ] . \mathbf{x} = \left(\mathbf{I} - \mathbf{A}\right)^{-1} \mathbf{b} = \left( \begin{bmatrix} 1 & 0\\ 0 & 1 \\ \end{bmatrix} - \begin{bmatrix} 0 & -\frac12\\ \frac12 & 0\\ \end{bmatrix} \right)^{-1} \begin{bmatrix} 1 \\ 0\\ \end{bmatrix} = \begin{bmatrix} 1 & \frac12\\ -\frac12 & 1 \\ \end{bmatrix}^{-1} \begin{bmatrix} 1 \\ 0\\ \end{bmatrix} = \begin{bmatrix} \frac45 & -\frac25\\[6pt] \frac25 & \frac45 \\ \end{bmatrix} \begin{bmatrix} 1 \\ 0\\ \end{bmatrix} = \begin{bmatrix} \frac45 \\[6pt] \frac25 \\ \end{bmatrix}.

Thus the limit point is ( 4 5 , 2 5 ) \boxed{\left(\dfrac45, \dfrac25\right)} .

Why are you guys using so strange methods to solve this?? Maybe that's not really strange but for me it's like Greek and Latin.

Nishant Ranjan - 1 year, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...