This one is by moving the big circle down the y-axis, till they touch.
I'm still not entirely sure if I can not use calculus,
having 2 shifted circles, one with a free variable,
and finding the shift so they have one point in common, and why.
Maybe I should have taken derivatives in post 7 like so:
y=b +/- sqrt(-a^2+2*a*x+r^2-x^2)
y'=(+/- a -/+ x)/sqrt(-a^2+2*a*x+r^2-x^2)
y=d +/- sqrt(-c^2+2*c*x+s^2-x^2)
y'=(+/- c -/+ x)/sqrt(-c^2+2*c*x+s^2-x^2)
(a-x)/sqrt(-a^2+2*a*x+r^2-x^2)-y=(c-x)/sqrt(-c^2+2*c*x+s^2-x^2)-y
<=>
(a-x)/sqrt(-(a-r-x)*(a+r-x))+(x-c)/sqrt(-(c-s-x)*(c+s-x))=0
a=+/- (c*r-r*x+s*x)/s
c=+/- (a*s+r*x-s*x)/r
This seems to be solved now.
Just with the derivatives (slopes) I can just use horizontal shifting,
because they do not contain values for vertical shifting.
If needed, I probably could work around or use another approach, here.
In the geometric example I could have as well moved the little circle to the right.
]]>I also move the small circle horizontally, and not perhaps along the blue line in your plot
(I missed to mention this while answering to your graph).
To imagine it, you could put the center of the small circle one square above the center of the big circle
and move the small circle horizontally (I imagine to the right) until it touches the big circle.
Known is b, c, d and the two radiuses of the circles.
Unknown is a (I probably should have omitted calling x an unknown in the threadstarter).
Edit: a must also be determined.
]]>I've realised that, although I've kept up this dialogue, I don't actually know what the question is. Help me out here:
What is given and what must be determined?
Bob
]]>Can't believe I haven't seen the Pythagoras and maybe the other one.
However, I do not see how I might utilize this here yet,
and I still do not know why you do (1) - (2) + (3).
This is an intersection approach without considering the line
and any slopes:
(x-a)²+(y-b)²=r² <=> (x-a)²+(y-b)²-r²=0
(x-c)²+(y-d)²=s² <=> (x-c)²+(y-d)²-s²=0
Intersecting the circles:
(x-a)²+(y-b)²-r²=(x-c)²+(y-d)²-s² <=> f(x)=y=(a^2-2*a*x+b^2-c^2+2*c*x-d^2-r^2+s^2)/(2*b-2*d)
Somehow there should now be this cases:
0 solutions, 1 solution, 2 solutions.
But it says, that all reals are solutions.
Any clue ?
]]>This is Pythagoras. c-a is the horizontal distance between the centres and d-b is the vertical distance.
r+s is the distance between the centres.
(4) ... If the circles touch at (x,y) and a single line joins the centres and this point, then just get two expressions for its gradient and equate them.
Bob
]]>I have labelled three of my equations (1) (2) and (3).
(1) + (2) - (3) gives
And the centre line is
As long as those are the correct equations for the circles and the centreline it shouldn't matter if the diagram is only one case out of several. The algebra will 'take care of that'.
Bob
]]>Your graph depicts the first one.
If you move the little circle along the line,
you get the other cases.
I particularly thought of the third one,
but it should not make much difference,
mathematically.
Please describe in more detail,
what you are doing after the two circle equations.
Is this the sort of thing you're after:
There are these equations:
...(1)Note x ad y are either points on one circle, or the other, or the straight line. There is one point on all three.
I haven't gone any further but it looks like all the square terms can be eliminated so that'll avoid square roots.
Bob
]]>Starting with the equation of a circle x²+y²=r² <=> y=sqrt(r²-x²).
Adding variables for shifting
(a for the x direction and b for the y direction):
(x−a)²+(y−b)²=r²
Solving it for y:
y = +/- sqrt(-a²+2*a*x+r²-x²)+b
The first derivative:
d/dx(sqrt(-a²+2*a*x+r²-x²)+b)=(a-x)/sqrt(-a²+2*a*x+r²-x²)
For the second circle: c=a2, d=b2, q=r2.
For the intersection point, this gives us the following equation system;
sqrt(-a²+2*a*x+r²-x²)+b=sqrt(-c²+2*c*x+q²-x²)+d
(a-x)/sqrt(-a²+2*a*x+r²-x²)=(c-x)/sqrt(-c²+2*c*x+q²-x²)
If we define the position of the second circle,
and their sizes, and only shift horizontally,
we still have a and x variable.
Am I on the right track,
and if so, Is there something wrong,
since we only have 2 equations here ?
Edit:
The centers of the circles and the intersection
are on the same line when the slopes match.
Maybe something could be done with that.