math problem: help me figure this out. (now with paypal reward)

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: notfred
Originally posted by: Goosemaster
$5 reward?

GOTTA BE HW

Yeah, it's a howework assignment for my Computer Networking class, since that's the only class I haven't already taken the final for. Also, after being here for 5 years and making 36k posts, I have a track record of lieing about homework problems all the time.

ha! GOTCHA!


;)
 

RGUN

Golden Member
Dec 11, 2005
1,007
3
76
Originally posted by: notfred
Originally posted by: RGUN
If we set the original to point u (0,0), then point v is 'd' across in the x direction and (y-x) in the y direction. Therefore with this point of view, the coordinates are u (0,0) v (d, [y-x])

If you want to use the center of a circle as the origin than you would have to use some calculus to determine where the lines become tangant to your circle.

edit, upon further inspection the d across would actually be [d + cos(theta)*x-cos(theta)*y]

And what's theta?

Theta is the angle of the line perpenicular to the line of tangency that connects the two circles.

 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: RGUN
Originally posted by: notfred
Originally posted by: RGUN
If we set the original to point u (0,0), then point v is 'd' across in the x direction and (y-x) in the y direction. Therefore with this point of view, the coordinates are u (0,0) v (d, [y-x])

If you want to use the center of a circle as the origin than you would have to use some calculus to determine where the lines become tangant to your circle.

edit, upon further inspection the d across would actually be [d + cos(theta)*x-cos(theta)*y]

And what's theta?

Theta is the angle of the line perpenicular to the line of tangency that connects the two circles.

No ******, how do you find that? Half a solution doesn't do me a ton of good.
 

chuckywang

Lifer
Jan 12, 2004
20,133
1
0
Originally posted by: notfred
Originally posted by: RGUN
Originally posted by: notfred
Originally posted by: RGUN
If we set the original to point u (0,0), then point v is 'd' across in the x direction and (y-x) in the y direction. Therefore with this point of view, the coordinates are u (0,0) v (d, [y-x])

If you want to use the center of a circle as the origin than you would have to use some calculus to determine where the lines become tangant to your circle.

edit, upon further inspection the d across would actually be [d + cos(theta)*x-cos(theta)*y]

And what's theta?

Theta is the angle of the line perpenicular to the line of tangency that connects the two circles.

No ******, how do you find that? Half a solution doesn't do me a ton of good.

Do you want the solution, or just the answer? I have an answer in my post above. If you can verify it by plugging in some numbers, I would like to know if it is correct. If my answer turns out to be correct, I can tell you the solution as well.
 

RGUN

Golden Member
Dec 11, 2005
1,007
3
76
Originally posted by: notfred
Originally posted by: RGUN
Originally posted by: notfred
Originally posted by: RGUN
If we set the original to point u (0,0), then point v is 'd' across in the x direction and (y-x) in the y direction. Therefore with this point of view, the coordinates are u (0,0) v (d, [y-x])

If you want to use the center of a circle as the origin than you would have to use some calculus to determine where the lines become tangant to your circle.

edit, upon further inspection the d across would actually be [d + cos(theta)*x-cos(theta)*y]

And what's theta?

Theta is the angle of the line perpenicular to the line of tangency that connects the two circles.

No ******, how do you find that? Half a solution doesn't do me a ton of good.

How about instead of asking what theta is then you ask what you really wanted? ****** man do your own god damn work. I was trying to get you going in the right direction, work out your own solution.

 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: chuckywang
Originally posted by: notfred
Originally posted by: RGUN
Originally posted by: notfred
Originally posted by: RGUN
If we set the original to point u (0,0), then point v is 'd' across in the x direction and (y-x) in the y direction. Therefore with this point of view, the coordinates are u (0,0) v (d, [y-x])

If you want to use the center of a circle as the origin than you would have to use some calculus to determine where the lines become tangant to your circle.

edit, upon further inspection the d across would actually be [d + cos(theta)*x-cos(theta)*y]

And what's theta?

Theta is the angle of the line perpenicular to the line of tangency that connects the two circles.

No ******, how do you find that? Half a solution doesn't do me a ton of good.

Do you want the solution, or just the answer? I have an answer in my post above. If you can verify it by plugging in some numbers, I would like to know if it is correct. If my answer turns out to be correct, I can tell you the solution as well.

I don't actually have any example data to test this with. What I'd end up doing is plotting the results and seeing if they look right. I'm wondering how the heck I'm supposed to implement your solution in Javascript, too :)

Also, I haven't taken calculus in a long time, and I'm fairly rusty.
 

hypn0tik

Diamond Member
Jul 5, 2005
5,866
2
0
Originally posted by: notfred
Originally posted by: RGUN
Originally posted by: notfred
Originally posted by: RGUN
If we set the original to point u (0,0), then point v is 'd' across in the x direction and (y-x) in the y direction. Therefore with this point of view, the coordinates are u (0,0) v (d, [y-x])

If you want to use the center of a circle as the origin than you would have to use some calculus to determine where the lines become tangant to your circle.

edit, upon further inspection the d across would actually be [d + cos(theta)*x-cos(theta)*y]

And what's theta?

Theta is the angle of the line perpenicular to the line of tangency that connects the two circles.

No ******, how do you find that? Half a solution doesn't do me a ton of good.

Terrible attitude towards someone who was trying to help you.
 

chuckywang

Lifer
Jan 12, 2004
20,133
1
0
Originally posted by: notfred
Originally posted by: chuckywang
Originally posted by: notfred
Originally posted by: RGUN
Originally posted by: notfred
Originally posted by: RGUN
If we set the original to point u (0,0), then point v is 'd' across in the x direction and (y-x) in the y direction. Therefore with this point of view, the coordinates are u (0,0) v (d, [y-x])

If you want to use the center of a circle as the origin than you would have to use some calculus to determine where the lines become tangant to your circle.

edit, upon further inspection the d across would actually be [d + cos(theta)*x-cos(theta)*y]

And what's theta?

Theta is the angle of the line perpenicular to the line of tangency that connects the two circles.

No ******, how do you find that? Half a solution doesn't do me a ton of good.

Do you want the solution, or just the answer? I have an answer in my post above. If you can verify it by plugging in some numbers, I would like to know if it is correct. If my answer turns out to be correct, I can tell you the solution as well.

I don't actually have any example data to test this with. What I'd end up doing is plotting the results and seeing if they look right. I'm wondering how the heck I'm supposed to implement your solution in Javascript, too :)

Also, I haven't taken calculus in a long time, and I'm fairly rusty.

My solution doesn't use any calculus. Just a bit of trig. :)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: chuckywang
My solution doesn't use any calculus. Just a bit of trig. :)

Oops. I saw xt/d and it looked like "dx/dt" :eek:

I'll try your solution out.
 

QED

Diamond Member
Dec 16, 2005
3,428
3
0
Ok, took me a few minutes to figure it out, but here goes:

Let's call the point where the line y=0 and the mutually tangent line intersect "Z".
Let's call the origin of the small circle on the left "A"-- it should be (0,0).
Let's call the origin of the large circle on the right "B" -- it should be (d, 0).

Now the coordinate for Z is (-e,0) for some positive value of e.

Now the right triangle ZAU is similiar to triange ZBV. In fact, they share the same angle at Z-- let's call this angle theta.

Hence, the sine of theta is equal to x/e. It is also equal to y/(d+e).

We therefore have x/e = y/(d+e), or xd+xe=ye, or e=xd/(y-x) .

Now that we know e, we can solve for theta since we know sin of theta is equal to x/e.
Theta equals the inverse sine of x/e, or the inverse sine of x/((xd)/(y-x), or the inverse sine of (y-x)/d.

Now that we know theta, we just use simple trig to find the coordinates of U and V:

U = x * cos(theta + pi/2), x * sin(theta + pi/2)
V = d + y * cos(theta + pi/2), y * sin(theta + pi/2)

where theta is the inverse sine of (y-x)/d.

This could probably simplified even further using a few trig identities...
 

Amplifier

Banned
Dec 25, 2004
3,143
0
0
Ok, took me a few minutes to figure it out, but here goes:

Let's call the point where the line y=0 and the mutually tangent line intersect "Z".
Let's call the origin of the small circle on the left "A"-- it should be (0,0).
Let's call the origin of the large circle on the right "B" -- it should be (d, 0).

Now the coordinate for Z is (-e,0) for some positive value of e.

Now the right triangle ZAU is similiar to triange ZBV. In fact, they share the same angle at Z-- let's call this angle theta.

Hence, the sine of theta is equal to x/e. It is also equal to y/(d+e).

We therefore have x/e = y/(d+e), or xd+xe=ye, or e=xd/(y-x) .

Now that we know e, we can solve for theta since we know sin of theta is equal to x/e.
Theta equals the inverse sine of x/e, or the inverse sine of x/((xd)/(y-x), or the inverse sine of (y-x)/d.

Now that we know theta, we just use simple trig to find the coordinates of U and V:

U = x * cos(theta + pi/2), x * sin(theta + pi/2)
V = d + y * cos(theta + pi/2), y * sin(theta + pi/2)

where theta is the inverse sine of (y-x)/d.

This could probably simplified even further using a few trig identities...

Now send me my money
 

chuckywang

Lifer
Jan 12, 2004
20,133
1
0
Originally posted by: MathMan
Ok, took me a few minutes to figure it out, but here goes:

Let's call the point where the line y=0 and the mutually tangent line intersect "Z".
Let's call the origin of the small circle on the left "A"-- it should be (0,0).
Let's call the origin of the large circle on the right "B" -- it should be (d, 0).

Now the coordinate for Z is (-e,0) for some positive value of e.

Now the right triangle ZAU is similiar to triange ZBV. In fact, they share the same angle at Z-- let's call this angle theta.

Hence, the sine of theta is equal to x/e. It is also equal to y/(d+e).

We therefore have x/e = y/(d+e), or xd+xe=ye, or e=xd/(y-x) .

Now that we know e, we can solve for theta since we know sin of theta is equal to x/e.
Theta equals the inverse sine of x/e, or the inverse sine of x/((xd)/(y-x), or the inverse sine of (y-x)/d.

Now that we know theta, we just use simple trig to find the coordinates of U and V:

U = x * cos(theta + pi/2), x * sin(theta + pi/2)
V = d + y * cos(theta + pi/2), y * sin(theta + pi/2)

where theta is the inverse sine of (y-x)/d.

This could probably simplified even further using a few trig identities...

Your answer simplifies to mine.
 

QED

Diamond Member
Dec 16, 2005
3,428
3
0
Ok, it can be simplified a bit more...


sin (theta + pi/2) = cos (theta), and
cos (theta + pi/2) = sin (theta), so

U = x * sin(theta), x * cos(theta)
V = d + y * sin(theta), y * cos(theta)

But sin(theta) = (y-x)/d, and cos(theta) = sqrt(1 - (y-x)^2 / d^2)), so we have

U = x * (y-x)/d , x * sqrt(1 - (y-x)^2 / d^2))
V = d + y * (y-x)/d, y * sqrt(1 - (y-x)^2 / 2^2))

 

blahblah99

Platinum Member
Oct 10, 2000
2,689
0
0
This problem is really simple if you remove all the extra information given.

You have two similar right triangles, where the right angle is formed by the tangent line x and line uv, and similarly for line y and line uv.

Because the two triangles are similar (prove it to yourself and convince yourself that it is), I'll just talk about the smaller of the two triangles to avoid confusion.

The angle theta is the angle between the tangent line x and the perpendicular line x with respect to the x-axis. From the first diagram of the OP, theta looks to be about 20degrees.

Then sin(90 - theta)*x gives you the relative location of the y-component of U, and cos(90 - theta)*x gives you the relative location of the x-component of U.

The same concept can be applied to the larger circle because the two triangles are similar.

And theta is described as above!

Now that you have their relative location, figuring out their absolute location is simple.

Take the smaller circle to be the origin. Then u = (sin(90-theta)*x , -cos(90-theta)*x)

and v = (sin(90-theta)*y , y -cos(90-theta)*y)

Now where's my $5 dammit. I have to eat tommorow!
 

JujuFish

Lifer
Feb 3, 2005
11,444
1,054
136
A = radius x
B = radius y
D = distance d
u(x,y) = (-(AB-A^2)/D, sqrt(A^2-((AB-A^2)/D)^2))
v(x,y) = (D-(B^2-AB)/D, sqrt(A^2-(D-(B^2-AB)/D)^2))
I make no guarantees about the accuracy.
This is based on the left circle being centered at the origin.
 

QED

Diamond Member
Dec 16, 2005
3,428
3
0
Originally posted by: chuckywang
Your answer simplifies to mine.

Yep, after I did a little simplification I see they are pretty much the same. Which is good, I suppose.

In any case, notfred can at least see the logic used to derive the answer...

 

chuckywang

Lifer
Jan 12, 2004
20,133
1
0
Originally posted by: MathMan
Ok, it can be simplified a bit more...


sin (theta + pi/2) = cos (theta), and
cos (theta + pi/2) = sin (theta), so

U = x * sin(theta), x * cos(theta)
V = d + y * sin(theta), y * cos(theta)

But sin(theta) = (y-x)/d, and cos(theta) = sqrt(1 - (y-x)^2 / d^2)), so we have

U = x * (y-x)/d , x * sqrt(1 - (y-x)^2 / d^2))
V = d + y * (y-x)/d, y * sqrt(1 - (y-x)^2 / 2^2))

cos(theta + pi/2) = -sin(theta)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: jai6638
What level of math is this? If Calculus, is it basic calc or advanced calc?

It's not for a class. It's for a personal project I'm working on.
 

QED

Diamond Member
Dec 16, 2005
3,428
3
0
Originally posted by: chuckywang
Originally posted by: MathMan
Ok, it can be simplified a bit more...


sin (theta + pi/2) = cos (theta), and
cos (theta + pi/2) = sin (theta), so

U = x * sin(theta), x * cos(theta)
V = d + y * sin(theta), y * cos(theta)

But sin(theta) = (y-x)/d, and cos(theta) = sqrt(1 - (y-x)^2 / d^2)), so we have

U = x * (y-x)/d , x * sqrt(1 - (y-x)^2 / d^2))
V = d + y * (y-x)/d, y * sqrt(1 - (y-x)^2 / 2^2))

cos(theta + pi/2) = -sin(theta)


:eek: Oops.. missed the negative sign there... I should've known that since the x-coordinate of U should be negative and x * (y-x)/d is not negative.

So then

U = x * (x-y)/d, x * sqrt(1 - (y-x)^2 / d^2 ))
V = d + y * (x-y)/d, y * sqrt(1 - (y-x)^2/d^2))


 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: chuckywang
Originally posted by: MathMan
Ok, it can be simplified a bit more...


sin (theta + pi/2) = cos (theta), and
cos (theta + pi/2) = sin (theta), so

U = x * sin(theta), x * cos(theta)
V = d + y * sin(theta), y * cos(theta)

But sin(theta) = (y-x)/d, and cos(theta) = sqrt(1 - (y-x)^2 / d^2)), so we have

U = x * (y-x)/d , x * sqrt(1 - (y-x)^2 / d^2))
V = d + y * (y-x)/d, y * sqrt(1 - (y-x)^2 / 2^2))

cos(theta + pi/2) = -sin(theta)

BTW, your solution works. If you want $5, PM me a paypal address :) I'll post a link to the semi-functional script in a few :)
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: notfred
Originally posted by: chuckywang
Originally posted by: MathMan
Ok, it can be simplified a bit more...


sin (theta + pi/2) = cos (theta), and
cos (theta + pi/2) = sin (theta), so

U = x * sin(theta), x * cos(theta)
V = d + y * sin(theta), y * cos(theta)

But sin(theta) = (y-x)/d, and cos(theta) = sqrt(1 - (y-x)^2 / d^2)), so we have

U = x * (y-x)/d , x * sqrt(1 - (y-x)^2 / d^2))
V = d + y * (y-x)/d, y * sqrt(1 - (y-x)^2 / 2^2))

cos(theta + pi/2) = -sin(theta)

BTW, your solution works. If you want $5, PM me a paypal address :) I'll post a link to the semi-functional script in a few :)

I see....