\text{Let } P_1(1+\cos t,; \sin t)\text{ be a point moving on the circle with center } (1,0)\text{ and radius } 1,]Both points start at the intersection point of the two circlesand move counterclockwise along their respective circles.Assume that their speeds satisfyLet be the time when the distance between and is maximized.At this moment, the following expression:where and are relatively prime positive integers.Find the value of .oindent
The problem asks us to find the value of where is the value of a specific expression at the time when the distance between two moving points and is maximized.
First, let's determine the positions of and . moves on a circle with center and radius 1. . , so speed .
moves on a circle with center and radius 2. . Speed . Given the ratio of speeds is , we have , which implies . Since the motion is counterclockwise, . With the starting point at , we have , so . Thus, .
Next, we find the time that maximizes the distance between and . Let be the squared distance. . Expanding this, we get: . To maximize distance, we minimize . Let . Then . We minimize for . The minimum occurs at . So at , .
Finally, we evaluate the given expression at : Expression . Using trigonometric identities, this simplifies to . In terms of , this is . Substituting , we get the value .
Thus . They are relatively prime. .
[PYTHON] import sympy from sympy import symbols, cos, sin, diff, solve, simplify, Rational
t = symbols('t')
Define positions
x1 = 1 + cos(t) y1 = sin(t) x2 = 2 * cos(2t) y2 = 2 * sin(2t)
Squared distance
dist_sq = (x1 - x2)**2 + (y1 - y2)**2 dist_sq = simplify(dist_sq) print(f"Squared distance simplified: {dist_sq}")
To maximize distance, we minimize the negative of it, or just find critical points
Let's differentiate with respect to t
deriv = diff(dist_sq, t)
We want to solve deriv = 0
The expression involves sin(t) and sin(2t) etc.
Let's substitute cos(t) = x to find the algebraic minimum
x = symbols('x')
dist_sq in terms of x
From manual derivation: 6 - 2cos(t) - 4cos(2t)
cos(2t) = 2x^2 - 1
dist_x = 6 - 2x - 4(2*x**2 - 1) print(f"Distance squared in terms of x=cos(t): {dist_x}")
Find critical points for x in [-1, 1]
deriv_x = diff(dist_x, x) crit_points = solve(deriv_x, x) print(f"Critical points for x: {crit_points}")
Check which maximizes the distance
max_dist = -1 best_x = None for cp in crit_points: val = dist_x.subs(x, cp) if val > max_dist: max_dist = val best_x = cp
Check endpoints
for ep in [-1, 1]: val = dist_x.subs(x, ep) if val > max_dist: max_dist = val best_x = ep
print(f"x that maximizes distance: {best_x}")
Calculate the target expression at best_x
Expression: sin(t)*2sin(2t) - (1+cos(t))*2cos(2t)
Simplify this expression to terms of cos(t)
expr = sin(t) * 2 * sin(2t) - (1 + cos(t)) * 2 * cos(2t) expr_simplified = simplify(expr) print(f"Target expression simplified: {expr_simplified}")
Convert to polynomial in x
expr_simplified should be -2cos(2t) - 2cos(3t)
cos(2t) = 2x^2 - 1
cos(3t) = 4x^3 - 3x
poly_x = -2*(2x**2 - 1) - 2(4x**3 - 3x) print(f"Polynomial in x: {poly_x}")
final_val = poly_x.subs(x, best_x)
print(f"Final value: {final_val}")
[/PYTHON]
[THOUGHT]
The Python code confirmed the manual derivation.
The squared distance is .
Wait, the Python output says 10 - 8*cos(t)**2 - 2*cos(t).
My manual derivation was .
This matches the Python output.
The critical point for is found by maximizing .
Derivative is .
This matches.
The target expression simplified to .
In terms of , this is .
Substituting :
Result is .
.
.
The integers are relatively prime.
Final check of the question details:
- center , radius 1. Correct.
- center , radius 2. Correct.
- Start at . Correct.
- Counterclockwise. Correct.
- Speed ratio . Correct.
- Expression: . Correct.
- relatively prime positive integers. is positive. . Correct.
The value is . . [/THOUGHT]
\boxed{141}
The value of the expression is . Thus and . The sum .
\boxed{141}