IMO 2019 Solution Notes
Evan Chen 《陳誼廷》
23 July 2025
This is a compilation of solutions for the 2019 IMO. The ideas of the solution are a mix of my own work, the solutions provided by the competition organizers, and solutions found by the community. However, all the writing is maintained by me.
These notes will tend to be a bit more advanced and terse than the "official" solutions from the organizers. In particular, if a theorem or technique is not known to beginners but is still considered "standard", then I often prefer to use this theory anyways, rather than try to work around or conceal it. For example, in geometry problems I typically use directed angles without further comment, rather than awkwardly work around configuration issues. Similarly, sentences like "let (\mathbb{R}) denote the set of real numbers" are typically omitted entirely.
Corrections and comments are welcome!
Contents
0 Problems 2
1 Solutions to Day 1 3
1.1 IMO 2019/1, proposed by Liam Baker (SAF) 3
1.2 IMO 2019/2, proposed by Anton Trygub (UKR) 4
1.3 IMO 2019/3, proposed by Adrian Beker (HRV) 6
2 Solutions to Day 2 8
2.1 IMO 2019/4, proposed by Gabriel Chicas Reyes (SLV) 8
2.2 IMO 2019/5, proposed by David Altizio (USA) 9
2.3 IMO 2019/6, proposed by Anant Mudgal (IND) 11
Problems
Solve over (\mathbb{Z}) the functional equation (f(2a) + 2f(b) = f(f(a + b))) .
In triangle (A B C) point (A_{1}) lies on side (B C) and point (B_{1}) lies on side (A C) . Let (P) and (Q) be points on segments (A A_{1}) and (B B_{1}) , respectively, such that (\overline{{P Q}}\parallel \overline{{A B}}) . Point (P_{1}) is chosen on ray (P B_{1}) beyond (B_{1}) such that (\angle P P_{1}C = \angle B A C) . Point (Q_{1}) is chosen on ray (Q A_{1}) beyond (A_{1}) such that (\angle C Q_{1}Q = \angle C B A) . Prove that points (P_{1}) , (Q_{1}) , (P) , (Q) are cyclic.
A social network has 2019 users, some pairs of which are friends (friendship is symmetric). If (A) , (B) , (C) are three users such that (A B) are friends and (A C) are friends but (B C) is not, then the administrator may perform the following operation: change the friendships such that (B C) are friends, but (A B) and (A C) are no longer friends.
Initially, 1009 users have 1010 friends and 1010 users have 1009 friends. Prove that the administrator can make a sequence of operations such that all users have at most 1 friend.
- Solve over positive integers the equation
[k! = \prod_{i = 0}^{n - 1}(2^{n} - 2^{i}) = (2^{n} - 1)(2^{n} - 2)(2^{n} - 4)\dots (2^{n} - 2^{n - 1}).]
- Let (n) be a positive integer. Harry has (n) coins lined up on his desk, which can show either heads or tails. He does the following operation: if there are (k) coins which show heads and (k > 0) , then he flips the (k) th coin over; otherwise he stops the process. (For example, the process starting with (T H T) would be (T H T\rightarrow H H T\rightarrow H T T\rightarrow T T T) , which takes three steps.)
Prove the process will always terminate, and determine the average number of steps this takes over all (2^{n}) configurations.
- Let (A B C) be a triangle with incenter (I) and incircle (\omega) . Let (D) , (E) , (F) denote the tangency points of (\omega) with (\overline{{B C}}) , (\overline{{C A}}) , (\overline{{A B}}) . The line through (D) perpendicular to (\overline{{E F}}) meets (\omega) again at (R) (other than (D) ), and line (A R) meets (\omega) again at (P) (other than (R) ). Suppose the circumcircles of (\triangle P C E) and (\triangle P B F) meet again at (Q) (other than (P) ). Prove that lines (D I) and (P Q) meet on the external (\angle A) -bisector.
(\S 1) Solutions to Day 1
(\S 1.1) IMO 2019/1, proposed by Liam Baker (SAF)
Available online at https://aops.com/community/p12744859.
Problem statement
Solve over (\mathbb{Z}) the functional equation (f(2a) + 2f(b) = f(f(a + b)))
Notice that (f(x)\equiv 0) or (f(x)\equiv 2x + k) work and are clearly the only linear solutions. We now prove all solutions are linear.
Let (P(a,b)) be the assertion.
Claim — For each (x\in \mathbb{Z}) we have (f(2x) = 2f(x) - f(0))
Proof. Compare (P(0,x)) and (P(x,0))
Now, (P(a,b)) and (P(0,a + b)) give
[f(f(a + b)) = f(2a) + 2f(b) = f(0) + 2f(a + b)] [\Rightarrow [2f(a) - f(0)] + 2f(b) = f(0) + 2f(a + b)] [(f(a) - f(0)) + (f(b) - f(0)) = (f(a + b) - f(0)).]
Thus the map (x\mapsto f(x) - f(0)) is additive, therefore linear.
Remark. The same proof works on the functional equation
[f(2a) + 2f(b) = g(a + b)]
where (g) is an arbitrary function (it implies that (f) is linear).
(\S 1.2) IMO 2019/2, proposed by Anton Trygub (UKR)
Available online at https://aops.com/community/p12744870.
Problem statement
In triangle (A B C) point (A_{1}) lies on side (B C) and point (B_{1}) lies on side (A C) . Let (P) and (Q) be points on segments (A A_{1}) and (B B_{1}) , respectively, such that (\overline{{P Q}}\parallel \overline{{A B}}) . Point (P_{1}) is chosen on ray (P B_{1}) beyond (B_{1}) such that (\angle P P_{1}C = \angle B A C) . Point (Q_{1}) is chosen on ray (Q A_{1}) beyond (A_{1}) such that (\angle C Q_{1}Q = \angle C B A) . Prove that points (P_{1}) , (Q_{1}) , (P) , (Q) are cyclic.
We present two solutions.
First solution by bary (Evan Chen). Let (P B_{1}) and (Q A_{1}) meet line (A B) at (X) and (Y) . Since (\overline{{X Y}}\parallel \overline{{P Q}}) it is equivalent to show (P_{1}X Y Q_{1}) is cyclic (Reim's theorem).
Note the angle condition implies (P_{1}C X A) and (Q_{1}C Y B) are cyclic.
Letting (T = \overline{{P X}}\cap \overline{{Q Y}}) (possibly at infinity), it suffices to show that the radical axis of (\triangle C X A) and (\triangle C Y B) passes through (T) , because that would imply (P_{1}X Y Q_{1}) is cyclic (by power of a point when (T) is Euclidean, and because it is an isosceles trapezoid if (T) is at infinity).
To this end we use barycentric coordinates on (\triangle A B C) . We begin by writing
[P = (u + t:s:r),\quad Q = (t:u + s:r)]
from which it follows that (A_{1} = (0:s:r)) and (B_{1} = (t:0:r)) .
Next, compute (X = \left(\operatorname *{det}\left[\begin{array}{l}{u+t}\ {t}\end{array}\right]:\operatorname *{det}\left[\begin{array}{l}{s}\ {0}\end{array}\right]:0\right) = (u:s:0)) . Similarly, (Y = (t:u:0)) . So we have computed all points.
Claim — Line (B_{1}X) has equation (- r s\cdot x + r u\cdot y + s t\cdot z = 0) , while line (C_{1}Y) has equation (r u\cdot x - r t\cdot y + s t\cdot z = 0) .
Proof. Line (B_{1}X) is (0 = \operatorname *{det}(B_{1},X, - ) = \operatorname *{det}\left[\begin{array}{l l}{t} & {0}\ {u} & {s}\ {x} & {y}\end{array}\right]) . Line (C_{1}Y) is analogous.
Claim — The radical axis ((u + t)y - (u + s)x = 0) .
Proof. Circle ((A X C)) is given by (- a^{2}y z - b^{2}z x - c^{2}x y + (x + y + z)\cdot \frac{c^{2}\cdot u}{u + s}y = 0) . Similarly, circle ((B Y C)) has equation (- a^{2}y z - b^{2}z x - c^{2}x y + (x + y + z)\cdot \frac{c^{2}\cdot u}{u + t}x = 0) . Subtracting gives the radical axis. (\square)
Finally, to see these three lines are concurrent, we now compute
[\operatorname *{det}\left[ \begin{array}{c c c}{-r s r u s t] [r u -r t s t] [-(u + s) u + t 0} \end{array} \right] = r s t\left[\left[u(u + t) - t(u + s)\right] + \left[s(u + t) - u(u + s)\right]\right]] [= r s t\left[\left(u^{2} - s t\right) + (s t - u^{2})\right] = 0.]
This completes the proof.
(\P) Second official solution by tricky angle chasing. Let lines (A A_{1}) and (B B_{1}) meet at the circumcircle of (\triangle A B C) again at points (A_{2}) and (B_{2}) . By Reim's theorem, (P Q A_{2}B_{2}) are cyclic.
Claim — The points (P) , (Q) , (A_{2}) , (Q_{1}) are cyclic. Similarly the points (P) , (Q) , (B_{2}) , (P_{1}) are cyclic.
Proof. Note that (C A_{1}A_{2}Q_{1}) is cyclic since (\angle C Q_{1}A_{1} = \angle C Q_{1}Q = \angle C B A = \angle C A_{2}A =) (\angle C A_{2}A_{1}) . Then (\angle Q Q_{1}A_{2} = \angle A_{1}Q_{1}A_{2} = \angle A_{1}C A_{2} = \angle B C A_{2} = \angle B A A_{2} = \angle Q P A_{2}) . (\square)
This claim obviously solves the problem.
(\S 1.3) IMO 2019/3, proposed by Adrian Beker (HRV)
Available online at https://aops.com/community/p12744851.
Problem statement
A social network has 2019 users, some pairs of which are friends (friendship is symmetric). If (A) , (B) , (C) are three users such that (AB) are friends and (AC) are friends but (BC) is not, then the administrator may perform the following operation: change the friendships such that (BC) are friends, but (AB) and (AC) are no longer friends.
Initially, 1009 users have 1010 friends and 1010 users have 1009 friends. Prove that the administrator can make a sequence of operations such that all users have at most 1 friend.
We take the obvious graph formulation and call the move a toggle.
Claim — Let (G) be a connected graph. Then one can toggle (G) without disconnecting the graph, unless (G) is a clique, a cycle, or a tree.
Proof. Assume (G) is connected and not a tree, so it has a cycle. Take the smallest cycle (C) ; by hypothesis (C \neq G) .
If (C) is not a triangle (equivalently, (G) is triangle- free), then let (b \notin C) be a vertex adjacent to (C) , say at (a) . Take a vertex (c) of the cycle adjacent to (a) (hence not to (b) ). Then we can toggle (abc) .
Now assume there exists a triangle; let (K) be the maximal clique. By hypothesis, (K \neq G) . We take an edge (e = ab) dangling off the clique, with (a \in K) and (b \notin K) . Note some vertex (c) of (K) is not adjacent to (b) ; now toggle (abc) . (\square)
Back to the original problem; let (G_{\mathrm{imo}}) be the given graph. The point is that we can apply toggles (by the claim) repeatedly, without disconnecting the graph, until we get a tree. This is because
- (G_{\mathrm{imo}}) is connected, since any two vertices which are not adjacent have a common neighbor by pigeonhole ((1009 + 1009 + 2 > 2019)) .- (G_{\mathrm{imo}}) cannot become a cycle, because it initially has an odd-degree vertex, and toggles preserve parity of degree!- (G_{\mathrm{imo}}) is obviously not a clique initially (and hence not afterwards).
So, we can eventually get (G_{\mathrm{imo}}) to be a tree.
Once (G_{\mathrm{imo}}) is a tree the problem follows by repeatedly applying toggles arbitrarily until no more are possible; the graph (although now disconnected) remains acyclic (in particular having no triangles) and therefore can only terminate in the desired situation.
Remark. The above proof in fact shows the following better result:
The task is possible if and only if (G_{\mathrm{imo}}) is a connected graph which is not a clique and has any vertex of odd degree.
The "only if" follows from the observation that toggles preserve parity of degree.
Thus the given condition about the degrees of vertices being 1009 and 1010 is largely a red herring; it's a somewhat strange way of masking the correct and more natural both- sufficient- and- necessary condition.
(\S 2) Solutions to Day 2
(\S 2.1) IMO 2019/4, proposed by Gabriel Chicas Reyes (SLV)
Available online at https://aops.com/community/p12752761.
Problem statement
Solve over positive integers the equation
[k! = \prod_{i = 0}^{n - 1}(2^{n} - 2^{i}) = (2^{n} - 1)(2^{n} - 2)(2^{n} - 4)\ldots (2^{n} - 2^{n - 1}).]
The answer is ((n,k) = (1,1)) and ((n,k) = (2,3)) which work.
Let (A = \prod_{i}(2^{n} - 2^{k})) , and assume (A = k!) for some (k\geq 3) . Recall by exponent lifting that
[\nu_{3}(2^{t} - 1) = \left{ \begin{array}{ll}0 & t\mathrm{odd}\ 1 + \nu_{3}(t / 2) & t\mathrm{even}. \end{array} \right.]
Thus, we can compute
[k > \nu_{2}(k!) = \nu_{2}(A) = 1 + 2 + \cdot \cdot \cdot +(n - 1) = \frac{n(n - 1)}{2}] [\left\lfloor \frac{k}{3}\right\rfloor \leq \nu_{3}(k!) = \nu_{3}(A) = \left\lfloor \frac{n}{2}\right\rfloor +\left\lfloor \frac{n}{6}\right\rfloor +\cdot \cdot \cdot < \frac{3}{4} n.]
where the first inequality follows by Legendre's formula (\nu_{2}(k!) = k - s_{2}(k))
In this way, we get
[\frac{9}{4} n + 3 > k > \frac{n(n - 1)}{2}]
which means (n\leq 6) ; a manual check then shows the solutions we claimed earlier are the only ones.
Remark. An amusing corollary of the problem pointed out in the shortlist is that the symmetric group (S_{k}) cannot be isomorphic to the group (\mathrm{GL}{n}(\mathbb{F}{2})) unless ((n,k) = (1,1)) or ((n,k) = (2,3)) , which indeed produce isomorphisms.
(\S 2.2) IMO 2019/5, proposed by David Altizio (USA)
Available online at https://aops.com/community/p12752847.
Problem statement
Let (n) be a positive integer. Harry has (n) coins lined up on his desk, which can show either heads or tails. He does the following operation: if there are (k) coins which show heads and (k > 0) , then he flips the (k) th coin over; otherwise he stops the process. (For example, the process starting with (T H T) would be (T H T\rightarrow H H T\rightarrow H T T\rightarrow T T T) which takes three steps.)
Prove the process will always terminate, and determine the average number of steps this takes over all (2^{n}) configurations.
The answer is
[E_{n} = \frac{1}{2} (1 + \dots +n) = \frac{1}{4} n(n + 1)]
which is finite.
We'll represent the operation by a directed graph (G_{n}) on vertices ({0,1}^{n}) (each string points to its successor) with 1 corresponding to heads and 0 corresponding to tails. For (b\in {0,1}) we let (\overline{{b}} = 1 - b) , and denote binary strings as a sequence of (n) symbols.
The main claim is that (G_{n}) can be described explicitly in terms of (G_{n - 1}) :
We take two copies (X) and (Y) of (G_{n - 1}) .
In (X) , we take each string of length (n - 1) and just append a 0 to it. In symbols, we replace (s_{1}\dots s_{n - 1}\mapsto s_{1}\dots s_{n - 1}0) .
In (Y) , we toggle every bit, then reverse the order, and then append a 1 to it. In symbols, we replace (s_{1}\dots s_{n - 1}\mapsto \overline{s}{n - 1}\overline{s}{n - 2}\dots \overline{s}_{1}1) .
Finally, we add one new edge from (Y) to (X) by (11\dots 1\mapsto 11\dots 110) .
An illustration of (G_{4}) is given below.
To prove this claim, we need only show the arrows of this directed graph remain valid. The graph (X) is correct as a subgraph of (G_{n}) , since the extra 0 makes no difference. As for (Y) , note that if (s = s_{1}\dots s_{n - 1}) had (k) ones, then the modified string has ((n - 1 - k) + 1 = n - k)
ones, ergo (\overline{s}{n - 1}\ldots \overline{s}{1}1\mapsto \overline{s}{n - 1}\ldots \overline{s}{k + 1}s_{k}\overline{s}{k - 1}\ldots \overline{s}{1}1) which is what we wanted. Finally, the one edge from (Y) to (X) is obviously correct.
To finish, let (E_{n}) denote the desired expected value. Since (1\ldots 1) takes (n) steps to finish we have
[E_{n} = \frac{1}{2} [E_{n - 1} + (E_{n - 1} + n)]]
based on cases on whether the chosen string is in (X) or (Y) or not. By induction, we have (E_{n} = \frac{1}{2} (1 + \dots +n) = \frac{1}{4} n(n + 1)) , as desired.
Remark. Actually, the following is true: if the indices of the 1's are (1\leq i_{1}< \dots < i_{\ell}\leq n) then the number of operations required is
[2(i_{1} + \dots +i_{\ell}) - \ell^{2}.]
This problem also has an interpretation as a Turing machine: the head starts at a position on the tape (the binary string). If it sees a 1, it changes the cell to a 0 and moves left; if it sees a 0, it changes the cell to a 1 and moves right.
(\S 2.3) IMO 2019/6, proposed by Anant Mudgal (IND)
Available online at https://aops.com/community/p12752769.
Problem statement
Let (A B C) be a triangle with incenter (I) and incircle (\omega) . Let (D) , (E) , (F) denote the tangency points of (\omega) with (\overline{{B C}}) , (\overline{{C A}}) , (\overline{{A B}}) . The line through (D) perpendicular to (\overline{{E F}}) meets (\omega) again at (R) (other than (D) ), and line (A R) meets (\omega) again at (P) (other than (R) ). Suppose the circumcircles of (\triangle P C E) and (\triangle P B F) meet again at (Q) (other than (P) ). Prove that lines (D I) and (P Q) meet on the external (\angle A) - bisector.
We present five solutions.
(\P) First solution by complex numbers (Evan Chen, with Yang Liu). We use complex numbers with (D = x) , (E = y) , (F = z) .
Then (A = \frac{2y z}{y + z}) , (R = \frac{- y z}{x}) and so
[P = \frac{A - R}{1 - R\overline{{A}}} = \frac{\frac{2y z}{y + z} + \frac{y z}{x}}{1 + \frac{y z}{x}\cdot\frac{2}{y + z}} = \frac{y z(2x + y + z)}{2y z + x(y + z)}.]
We now compute
[O_{B} = \operatorname *{det}\left[ \begin{array}{l l l}{P P P 1] [F F F 1] [B B B 1} \end{array} \right]\div \operatorname *{det}\left[ \begin{array}{l l l}{P P 1] [F F 1] [B B 1} \end{array} \right] = \operatorname *{det}\left[ \begin{array}{l l l}{P 1 1] [z 1 1] [\frac{2x z}{x + z}\frac{4x z}{(x + z)^{2}} 1} \end{array} \right]\div \operatorname *{det}\left[ \begin{array}{l l l}{P 1 / P 1] [z 1 / z 1] [\frac{2x z}{x + z}\frac{2}{x + z} 1} \end{array} \right]] [\quad = \frac{1}{x + z}\operatorname *{det}\left[ \begin{array}{l l l}{P 0 1] [z 0 1] [2x z(x + z) - (x - z)^{2} (x + z)^{2}} \end{array} \right]\div \operatorname *{det}\left[ \begin{array}{l l l}{P 1 / P 1] [z 1 / z 1] [\frac{2x z}{x + z}\frac{2}{x + z} 1} \end{array} \right]] [\quad = \frac{(x - z)^{2}}{x + z}\cdot \frac{P - z}{(x + z)(P / z - z / P) + 2z - 2x + \frac{2x z}{P} - 2P]
[= \frac{(x - z)^{2}}{x + z}\cdot \frac{P - z}{(\frac{x}{z} - 1)P - 2(x - z) + (xz - z^{2})\frac{1}{P}}] [= \frac{x - z}{x + z}\cdot \frac{P - z}{P / z + z / P - 2} = \frac{x - z}{x + z}\cdot \frac{P - z}{\frac{(P - z)^{2}}{P z}} = \frac{x - z}{x + z}\cdot \frac{1}{\frac{1}{z} - \frac{1}{P}}] [= \frac{x - z}{x + z}\cdot \frac{y(2x + y + z)}{y(2x + y + z) - (2yz + xy + xz)} = \frac{x - z}{x + z}\cdot \frac{yz(2x + y + z)}{xy + y^{2} - yz - xz}] [= \frac{x - z}{x + z}\cdot \frac{yz(2x + y + z)}{(y - z)(x + y)}.]
Similarly
[O_{C} = \frac{x - y}{x + y}\cdot \frac{yz(2x + y + z)}{(z - y)(x + z)}.]
Therefore, subtraction gives
[O_{B} - O_{C} = \frac{yz(2x + y + z)}{(x + y)(x + z)(y - z)} [(x - z) + (x - y)] = \frac{yz(2x + y + z)(2x - y - z)}{(x + y)(x + z)(z - y)}.]
It remains to compute (T) . Since (T \in \overline{ID}) we have (t / x \in \mathbb{R}) so (\overline{t} = t / x^{2}) . Also,
[t - \frac{2yz}{y + z}\in i\mathbb{R}\Rightarrow 0 = \frac{t - \frac{2yz}{y + z} + \frac{t}{x^{2}} - \frac{2}{y + z}}{\frac{1}{y} + \frac{1}{z}}] [\qquad = \frac{1 + \frac{yz}{x^{2}}}{y + z} t - \frac{2yz}{(y + z)^{2}} - \frac{2yz}{(y + z)^{2}}] [\qquad \Rightarrow t = \frac{x^{2}}{x^{2} + yz}\cdot \frac{4yz}{y + z}]
Thus
[P - T = \frac{yz(2x + y + z)}{2yz + x(y + z)} -\frac{4x^{2}yz}{(x^{2} + yz)(y + z)}] [\qquad = yz\cdot \frac{(2x + y + z)(x^{2} + yz)(y + z) - 4x^{2}(2yz + xy + xz)}{(y + z)(x^{2} + yz)(2yz + xy + xz)}] [\qquad = -yz\cdot \frac{(2x - y - z)(x^{2}y + x^{2}z + 4xyz + y^{2}z + yz^{2})}{(y + z)(x^{2} + yz)(2yz + xy + xz)}.]
This gives (\overline{PT} \perp \overline{O_{B}O_{C}}) as needed.
(\P) Second solution by tethered moving points, with optimization (Evan Chen). Fix (\triangle DEF) and (\omega) , with (B = \overline{DD} \cap \overline{FF}) and (C = \overline{DD} \cap \overline{EE}) . We consider a variable point (M) on (\omega) and let (X) , (Y) be on (\overline{EF}) with (\overline{CY} \cap | \overline{ME}) , (\overline{BX} \cap | \overline{MF}) . We define (W = \overline{CY} \cap \overline{BX}) . Also, let line (MW) meet (\omega) again at (V) .
Claim (Angle chasing) — Pentagons (C V W X E) and (B V W Y F) are cyclic.
Proof. By (\angle E V W = \angle E V M = \angle E F M = \angle C E M = \angle E C W) and (\angle E X W = \angle E F M =) (\angle C E M = \angle E C W) . (\square)
Let (N = \overline{D M} \cap \overline{E F}) and (R') be the (D) - antipode on (\omega) .
Claim (Black magic) — The points (V) , (N) , (R') are collinear.
Proof. We use tethered moving points with (\triangle D E F) fixed.
Obviously the map (\omega \mapsto \overline{E F} \mapsto \omega) by (M \mapsto N \mapsto \overline{R'N} \cap \omega) is projective. Also, the map (\omega \mapsto \overline{E F} \mapsto \omega) by (M \mapsto X \mapsto V) is also projective (the first by projection to the line at infinity at back; the second say by inversion at (E) ).
So it suffices to check for three points. When (M = E) we get (N = E) so (\overline{R'N} \cap \omega = E) , while (W = E) and thus (V = E) . The case (M = F) is similar. Finally, if (M = R') , then (W) is the center of (\omega) and so (V = \overline{R'N} \cap \overline{E F} = D) . (\square)
We now address the original problem by specializing (M) : choose it so that (N) is the midpoint of (\overline{E F}) . Let (M' = \overline{D A} \cap (D E F)) .
Claim — After this specialization, (V = P) and (W = Q) .
Proof. Thus (\overline{R R'}) and (\overline{M M'}) are parallel to (\overline{E F}) . From ((E F; P R) = - 1 = (E F; N \infty) \frac{R'}{2}) ((E F; N V)) , we derive that (P = V) and (Q = R) , proving (i). (\square)
Finally, the concurrence requested follows by Pascal theorem on (M' M D R' P R) .
Third solution by power of a point linearity (Luke Robitaille). Let us define
[f(\bullet) = \mathrm{Pow}(\bullet ,(C P E)) - \mathrm{Pow}(\bullet ,(B P F))]
which is a linear function from the plane to (\mathbb{R}) .
Define (W = \overline{BA} \cap \overline{PE}) , (V = \overline{AC} \cap \overline{PF}) . Also, let (W_{1} = \overline{ER} \cap \overline{AB}) , (V_{1} = \overline{FR} \cap \overline{AC}) . Note that
[-1 = (PR;EF) \stackrel{E}{=} (WA;W_{1}F)]
and similarly ((VA;V_{1}E) = - 1) .
Claim — We have
[f(F) = \frac{|EF|\cdot(s - c)\sin C / 2}{\sin B / 2}] [f(E) = -\frac{|EF|\cdot(s - b)\sin B / 2}{\sin C / 2}.]
Proof. We have
[f(W) = WF^{2} - WB\cdot WF = WF\cdot BF]
where lengths are directed. Next,
[f(F) = \frac{AF\cdot f(W) + FW\cdot f(A)}{AW}] [= \frac{AF\cdot WF\cdot BF + FW\cdot (AE\cdot AC - AF\cdot AB)}{AW}] [= \frac{WF(AF\cdot BF + AF\cdot AB) + FW\cdot AE\cdot AC}{AW}] [= \frac{WF\cdot AF^{2} - WF\cdot AE\cdot AC}{AW} = \frac{WF}{AW}\cdot (AE^{2} - AE\cdot AC)] [= \frac{WF}{AW}\cdot AE\cdot CE = -\frac{W_{1}F}{AW_{1}}\cdot AE\cdot CE.]
Since (\triangle DEF) is acute, the point (R) lies inside (\triangle AEF) . Thus (W_{1}) lies inside segment (\overline{AF}) and the ratio (\frac{W_{1}F}{AW_{1}}) is positive. We now determine its value: by the ratio lemma
[\frac{|W_{1}F|}{|AW_{1}|} = \frac{|EF|\sin\angle W_{1}EF}{|AE|\sin\angle AEW_{1}}] [= \frac{|EF|\sin\angle REF}{|AE|\sin\angle AER}] [= \frac{|EF|\sin\angle RDF}{|AE|\sin\angle EDR}] [= \frac{|EF|\sin C / 2}{|AE|\sin B / 2}.]
Also, we have (AE \cdot CE < 0) since (E) lies inside (\overline{AC}) . Hence
[f(F) = -\frac{|EF|\sin C / 2}{|AE|\sin B / 2}\cdot AE\cdot CE = |EF|\cdot \frac{|CE|\sin B / 2}{\sin C / 2} = |EF|\cdot \frac{(s - c)\sin B / 2}{\sin C / 2}.]
The calculation for (f(E)) is similar, (noting the sign flips since (f) is anti- symmetric in terms of (B) and (C) ). (\square)
Let (Z \in \overline{DI}) with (\angle ZAI = 90^{\circ}) be the point requested in the problem now. Our goal is to show (f(Z) = 0) . We assume WLOG that (AB < AC) , so (\frac{ZA}{EF} > 0) . Then
[|ZA| = |AI|\cdot \tan \angle AIZ]
[= |A I|\cdot \tan \angle (\overline{{A I}},\overline{{D I}})] [= \frac{s - a}{\cos A / 2}\cdot \tan (\overline{{B C}},\overline{{E F}})] [= \frac{s - a}{\cos A / 2}\tan (B / 2 - C / 2).]
To this end we compute
[\begin{array}{r l} & {f(Z) = f(A) + [f(Z) - f(A)] = f(A) + \frac{Z A}{E F} [f(E) - f(F)]}\ & {\quad = f(A) - \frac{Z A}{E F}\left[\frac{|E F|\cdot(s - b)\sin B / 2}{\sin C / 2} +\frac{|E F|\cdot(s - c)\sin C / 2}{\sin B / 2}\right]}\ & {\quad = f(A) - |Z A|\left[\frac{(s - b)\sin B / 2}{\sin C / 2} +\frac{(s - c)\sin C / 2}{\sin B / 2}\right]}\ & {\quad = [b(s - a) - c(s - a)] - |Z A|\left[\frac{(s - b)\sin B / 2}{\sin C / 2} +\frac{(s - c)\sin C / 2}{\sin B / 2}\right]}\ & {\quad = (b - c)(s - a) - \frac{s - a}{\cos A / 2}\tan (B / 2 - C / 2)\left[\frac{(s - b)\sin B / 2}{\sin C / 2} +\frac{(s - c)\sin C / 2}{\sin B / 2}\right].} \end{array} \quad (1)]
Dividing out,
[\frac{f(Z)}{s - a} = (b - c) - \frac{1}{\cos A / 2}\tan (B / 2 - C / 2)\left[\frac{r\cos B / 2}{\sin C / 2} +\frac{r\cos C / 2}{\sin B / 2}\right]] [\qquad = (b - c) - \frac{r\tan(B / 2 - C / 2)}{\cos A / 2}\cdot \frac{\cos B / 2\sin B / 2 + \cos C / 2\sin C / 2}{\sin C / 2\sin B / 2}] [\qquad = (b - c) - \frac{r\tan(B / 2 - C / 2)}{\cos A / 2}\cdot \frac{\sin B + \sin C}{2\sin C / 2\sin B / 2}] [\qquad = (b - c) - \frac{r\tan(B / 2 - C / 2)}{\cos A / 2}\cdot \frac{\sin(B / 2 + C / 2)\cos(B / 2 - C / 2)}{\sin C / 2\sin B / 2}] [\qquad = (b - c) - r\frac{\sin(B / 2 - C / 2)}{\sin B / 2\sin C / 2}] [\qquad = (b - c) - r(\cot C / 2 - \cot B / 2) = (b - c) - ((s - c) - (s - b)) = 0.]
(\P) Fourth solution by incircle inversion (USA IMO live stream, led by Andrew Gu). Let (T) be the intersection of line (D I) and the external (\angle A) - bisector. Also, let (G) be the antipode of (D) on (\omega) .
We perform inversion around (\omega) , using (\bullet^{}) for the inverse. Then (\triangle A^{}B^{}C^{}) is the medial triangle of (\triangle D E F) , and (T^{}) is the foot from (A^{}) on to (\overline{{D I}}) . If we denote (Q^{}) as the second intersection of ((P C^{}E)) and ((P B^{}F)) , then the goal is to show that (Q^{}) lies on ((P I T^{*})) .
Claim — Points (Q^{}) , (B^{}) , (C^{*}) are collinear.
Proof. (\angle P Q^{}C^{} = \angle P E C^{} = \angle P E D = \angle P F D = \angle P F B^{} = \angle P Q^{}B^{}) .
Claim (cf Brazil 2011/5) — Points (P) , (A^{*}) , (G) are collinear.
Proof. Project harmonic quadrilateral (PERF) through (G) , noting (\overline{GR} \parallel \overline{EF}) .
Denote by (M) the center of parallelogram (DC^{}A^{}B^{}) . Note that it is the center of the circle with diameter (\overline{DA^{}}) , which passes through (P) and (T^{}) . Also, (\overline{MI} \parallel \overline{PA^{}G}) .
Claim — Points (P) , (M) , (I) , (T^{*}) are cyclic.
Proof. (\angle IT^{}P = \angle DT^{}P = \angle DA^{}P = \angle MA^{}P = \angle A^{*}PM = \angle IMP) .
Claim — Points (P) , (M) , (I) , (Q^{*}) are cyclic.
Proof. (\angle MQ^{}P = \angle C^{}Q^{}P = \angle C^{}EP = \angle DEP = \angle DGP = \angle GPI = \angle MIP) .
Fifth solution by double inversion (Brandon Wang, Luke Robitaille, Michael Ren, Evan Chen). We outline one final approach. After inverting about (\omega) as in the previous approach, we then apply another inversion around (P) . Dropping the apostrophes/stars/etc now one can check that the problem we arrive at becomes the following.
Proposition (Doubly inverted problem)
In (\triangle PEF) , the (P) - symmedian meets (\overline{EF}) and ((PEF)) at (K) , (L) . Let (D \in \overline{EF}) with (\angle DPK = 90^{\circ}) , and let (T) be the foot from (K) to (\overline{DL}) . Denote by (I) the reflection of (P) about (\overline{EF}) . Finally, let (PDNE) and (PDMF) be cyclic harmonic quadrilaterals. Then lines (EN) , (MF) , (TI) , are concurrent.
The proof proceeds in three steps. Suppose the line through (L) perpendicular to (\overline{EF}) meets (\overline{EF}) at (W) and ((PEF)) at (Z) .
Since (\angle ZEP = \angle WLP = \angle WDP) , it follows (\overline{ZE}) is tangent to ((PDNE)) . Similarly, (\overline{ZF}) is tangent to ((PDMF)) .
(\Delta WTP) is the orthic triangle of (\triangle DKL) , so (\overline{WD}) bisects (\angle PWT) and (\overline{WTI}) collinear.
(-1 = E(PN; DZ) = F(PM; DZ) = W(PI; DZ)) , so (\overline{EN}) , (\overline{FM}) , (\overline{WI}) meet on (\overline{PZ}) .






