Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Sunday, Apr 13 - Aug 10
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Sunday, Apr 13 - Aug 10
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Monday, Apr 7 - Jul 28
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Wednesday, Apr 16 - Jul 2
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Thursday, Apr 17 - Jul 3
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Wednesday, Apr 23 - Oct 1
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Intermediate: Grades 8-12

Intermediate Algebra
Monday, Apr 21 - Oct 13
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Wednesday, Apr 16 - Jul 2
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Friday, Apr 11 - Jun 27
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Apr 2, 2025
0 replies
Restricted primes
Lukaluce   0
6 minutes ago
Source: 2025 Macedonian Balkan Math Olympiad TST Problem 4
Let $n$ be a positive integer. Prove that for every odd prime $p$ dividing $n^2 + n + 2$, there exist integers $a, b$ such that $p = a^2 + 7b^2$.
0 replies
Lukaluce
6 minutes ago
0 replies
Parallelograms and concyclicity
Lukaluce   1
N 8 minutes ago by Li4
Source: EGMO 2025 P4
Let $ABC$ be an acute triangle with incentre $I$ and $AB \neq AC$. Let lines $BI$ and $CI$ intersect the circumcircle of $ABC$ at $P \neq B$ and $Q \neq C$, respectively. Consider points $R$ and $S$ such that $AQRB$ and $ACSP$ are parallelograms (with $AQ \parallel RB, AB \parallel QR, AC \parallel SP$, and $AP \parallel CS$). Let $T$ be the point of intersection of lines $RB$ and $SC$. Prove that points $R, S, T$, and $I$ are concyclic.
1 reply
Lukaluce
17 minutes ago
Li4
8 minutes ago
Functional equation meets inequality condition
Lukaluce   0
9 minutes ago
Source: 2025 Macedonian Balkan Math Olympiad TST Problem 3
Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ that satisfy
\[f(xf(y) + f(x)) = f(x)f(y) + 2f(x) + f(y) - 1,\]for every $x, y \in \mathbb{R}$, and $f(kx) > kf(x)$ for every $x \in \mathbb{R}$ and $k \in \mathbb{R}$, such that $k > 1$.
0 replies
Lukaluce
9 minutes ago
0 replies
Turbo's en route to visit each cell of the board
Lukaluce   1
N 12 minutes ago by BR1F1SZ
Source: EGMO 2025 P5
Let $n > 1$ be an integer. In a configuration of an $n \times n$ board, each of the $n^2$ cells contains an arrow, either pointing up, down, left, or right. Given a starting configuration, Turbo the snail starts in one of the cells of the board and travels from cell to cell. In each move, Turbo moves one square unit in the direction indicated by the arrow in her cell (possibly leaving the board). After each move, the arrows in all of the cells rotate $90^{\circ}$ counterclockwise. We call a cell good if, starting from that cell, Turbo visits each cell of the board exactly once, without leaving the board, and returns to her initial cell at the end. Determine, in terms of $n$, the maximum number of good cells over all possible starting configurations.
1 reply
+2 w
Lukaluce
16 minutes ago
BR1F1SZ
12 minutes ago
No more topics!
China 2017 TSTST1 Day 2 Geometry Problem
HuangZhen   46
N Apr 6, 2025 by ihategeo_1969
Source: China 2017 TSTST1 Day 2 Problem 5
In the non-isosceles triangle $ABC$,$D$ is the midpoint of side $BC$,$E$ is the midpoint of side $CA$,$F$ is the midpoint of side $AB$.The line(different from line $BC$) that is tangent to the inscribed circle of triangle $ABC$ and passing through point $D$ intersect line $EF$ at $X$.Define $Y,Z$ similarly.Prove that $X,Y,Z$ are collinear.
46 replies
HuangZhen
Mar 7, 2017
ihategeo_1969
Apr 6, 2025
China 2017 TSTST1 Day 2 Geometry Problem
G H J
G H BBookmark kLocked kLocked NReply
Source: China 2017 TSTST1 Day 2 Problem 5
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HuangZhen
29 posts
#1 • 9 Y
Y by baopbc, anantmudgal09, mymathboy, Mathuzb, AlexGr, Adventure10, Mango247, Rounak_iitr, Tastymooncake2
In the non-isosceles triangle $ABC$,$D$ is the midpoint of side $BC$,$E$ is the midpoint of side $CA$,$F$ is the midpoint of side $AB$.The line(different from line $BC$) that is tangent to the inscribed circle of triangle $ABC$ and passing through point $D$ intersect line $EF$ at $X$.Define $Y,Z$ similarly.Prove that $X,Y,Z$ are collinear.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
FabrizioFelen
241 posts
#2 • 7 Y
Y by baopbc, Ankoganit, yiwen, nguyendangkhoa17112003, Adventure10, Tastymooncake2, AlexCenteno2007
My #200 post :-D ....
Let $\omega$ the incircle with center $I$ and $P$, $Q$, $R$ the points of tangency of $\omega$ with $BC$, $CA$, $AB$. Let $P'=PI\cap \omega$ and $M=AP'\cap BC$ and $N=AP'\cap \omega$, since $MC=BP$(well-know) $\Longrightarrow$ $PD=DM$ and $\measuredangle PNM=90^{\circ}$ $\Longrightarrow$ $DP=DM=DN$ hence $DN$ is tangent to $\omega$. Let $S=DN\cap AC$ and define $BP=BR=2a$, $CP=CQ=2b$, $AR=AQ=2c$, $QS=x$ $\Longrightarrow$ $DP$ $=$ $DM$ $=$ $DN$ $=$ $b-a$.

$\Longrightarrow$ by Menelao's theorem in $\triangle DSC$ with line $\overline{ANM}$ we get: $$CM.DN.SA=DM.NS.AC \Longrightarrow 2a.(b-a).(2c+x)=(b-a).x.(2b+2c)$$$$\Longrightarrow 2a.(2c+x)=x.(2b+2c)  \Longrightarrow x=\tfrac{2ac}{b+c-a}$$On the other hand: $\tfrac{XE}{XF}=\tfrac{XE}{XE+MC}=\tfrac{ES}{EC}$, since $SC=2b-x=b+c-ES$ we get $ES=\tfrac{(b+c)(a+c-b)}{b+c-a}$
Hence $\tfrac{XE}{XF}=\tfrac{ES}{EC}=\tfrac{c+a-b}{c+b-a}$ similarly $\tfrac{YF}{YD}=\tfrac{a+b-c}{a+c-b}$ and $\tfrac{ZD}{ZE}=\tfrac{b+c-a}{b+a-c}$ $\Longrightarrow$ $\tfrac{XE}{XF}.\tfrac{YF}{YD}.\tfrac{ZD}{ZE}=1$ which is the converse of Menelao's theorem in $\triangle DEF$ with line $\overline{XYZ}$ $\Longrightarrow$ $X$, $Y$, $Z$ are collinear.
This post has been edited 1 time. Last edited by FabrizioFelen, Mar 7, 2017, 5:04 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
galav
566 posts
#3 • 1 Y
Y by Adventure10
Can someone post a complex solution. I think we can easily get $X$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
nikolapavlovic
1246 posts
#4 • 7 Y
Y by Complex2Liu, MathPanda1, cookie112, Elnino2k, nguyendangkhoa17112003, Adventure10, Mango247
Lemma:In triangle $ABC$ let the excircle touch $AB,AC$ in $P,Q$.Let $R,S$ be the midpoints of $AP,AQ$ and let $X=\{RS\}\cap BC$.Similarly define $Y,Z$ than X,Y,Z are collinear.
Proof:
It's immediate by Menelaus on RS as a transversal.

Let $P'$ be the touch point of $A$-excircle $P$ of the incircle and let $(PP')\cap \odot I=\{R\}$.Now as $DP$ is tangent to $\odot I$ so is $DR$ ,$P'R\perp PR$ as well as $ID\perp PR$ and so $ID||P'R$ and hence as $ID$ is the A-Nagell cevian in the medial triangle so is $AR$ in $\triangle ABC$.Let $DI\cap EF=\{V\}$, now $\angle XVD=\frac{\angle PDR}{2}=\angle PP'R=\angle VDX$ $\implies$ $\triangle VDX$ is $X$-isosceles.By previous,$X$ is on the perpendicular bisector of $DV$ and so on the radical axis of point $D$ and $D$-exicrcle.Now applying the lemma on $\triangle DEF$ we're done.$\blacksquare$
Attachments:
This post has been edited 2 times. Last edited by nikolapavlovic, Mar 7, 2017, 5:20 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
tenplusten
1000 posts
#5 • 2 Y
Y by BarishNamazov, Adventure10
Easy with Barycentre.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
nikolapavlovic
1246 posts
#6 • 15 Y
Y by wu2481632, laegolas, artsolver, Garfield, anantmudgal09, Kaladesh, Kayak, 62861, Drunken_Master, Anar24, e_plus_pi, amar_04, microsoft_office_word, Adventure10, Mango247
Should be easy to write the solution than.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Math1331Math
5317 posts
#7 • 2 Y
Y by Adventure10, Mango247
Murad.Aghazade wrote:
Easy with Barycentre.

How tangents condition makes it quite ugly :what?:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
WizardMath
2487 posts
#8 • 2 Y
Y by Adventure10, Mango247
My solution.

Let N be the intersection of the reflection of $BC$ in $I$, the incenter and the line $DX$. By the dual of desargues involution theorem, the involution mapping DN to DB and the line joining D to the incircle touch point with AB to the line joining D to the antipode of the incircle touchpt with BC in the incircle, fixes the intersection of the reflection of BC in I with AB. Now just use preservation of cross ratios and done.
This post has been edited 1 time. Last edited by WizardMath, May 23, 2017, 8:33 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
TelvCohl
2312 posts
#10 • 7 Y
Y by baopbc, rmtf1111, Ajorda, campbelltron, enhanced, Adventure10, Mango247
Let $ \triangle I_aI_bI_c $ be the intouch triangle of $ \triangle ABC $ and let $ U $ be the intersection of $ CA, $ $ DX. $ By Newton's theorem we get $ AD, $ $ BU, $ $ I_aI_b $ are concurrent, so $ (A,C;I_b,U) $ $ = $ $ (D,C;I_a,B) (\bigstar). $ Let $ T $ be the Nagel point of $ \triangle ABC $ and let $ V $ be the intersection of $ CA, $ $ DT. $ It's well-known that the reflection $ \widetilde{I_a}, $ $ \widetilde{I_b} $ of $ I_a, $ $ I_b $ in $ D, $ $ E $ lies on $ AT, $ $ BT, $ respectively, so $$ (A,C;I_b,U) \stackrel{(\bigstar)}{=} \underbrace{(D,C;I_a,B) = (D,B;\widetilde{I_a},C)}_{\text{isotomic conjugate WRT B and C}} \stackrel{T}{=} (C,A;\widetilde{I_b},V) \Longrightarrow EU = EV \ , $$hence we conclude that $ D(E,F;X,T) $ $ = $ $ -1 $ $ \Longrightarrow $ $ X $ lies on the trilinear polar of $ T $ WRT $ \triangle DEF. $
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dagezjm
88 posts
#11 • 2 Y
Y by Anar24, Adventure10
Describe the position of the tangent point in another way and use Menelaus,we can solve this problem easily.
This post has been edited 1 time. Last edited by dagezjm, Mar 8, 2017, 4:16 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1979 posts
#12 • 2 Y
Y by Adventure10, Mango247
Hidden for length
This post has been edited 1 time. Last edited by anantmudgal09, Mar 8, 2017, 4:57 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ABCDE
1963 posts
#13 • 6 Y
Y by anantmudgal09, baopbc, mymathboy, e_plus_pi, microsoft_office_word, Adventure10
Let $XYZ$ be the triangle formed by the three tangents. By Desargues' Theorem, it suffices to prove that $DX$, $EY$, and $FZ$ concur. We claim that they all pass through the Nagel point $Na$ of $ABC$.

Let $ABC$ have intouch triangle $PQR$ and incenter $I$, and let $P'Q'R'$ be the reflection of $PQR$ over $I$. Let $AP'$, $BQ'$, and $CR'$ intersect the incircle again at $U$, $V$, and $W$. It is well known that $P'U$, $Q'V$, and $R'W$ concur at $Na$ an that $DU$, $EV$, and $FW$ are tangents to the incircle. Note that the tangents to the incircle at $V$ and $W$ intersect at $X$. Let the tangents to the incircle at $Q'$ and $R'$ intersect at $X'$. Note that as $Q'V$ and $R'W$ intersect at $Na$, $Na$ lies on $XX'$. We will show that $D$ lies on $NaX'$, which will imply the desired. Note that $X'$ is the reflection of $A$ over $I$. Hence, if $G$ is the centroid of $ABC$, it is also the centroid of $NaAX'$ as $G$ divides median $NaI$ in the ratio $2:1$. Thus, the point $D$ on $AG$ with $AG:GD=2:1$ must be the midpoint of $X'Na$ and we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EulerMacaroni
851 posts
#14 • 4 Y
Y by anantmudgal09, baopbc, Anar24, Adventure10
Let $H_A$ be the orthocenter of $\triangle BIC$, and define $H_B$, $H_C$ similarly. Suppose $I$ is the incenter, $R$ is the intouch point on $\overline{BC}$, and let $S\equiv DX\cap \odot(I)$; I claim that $H_AS$ is concurrent with its cyclic variations. To prove this, since $H_AR$ and cyclic variations are obviously concurrent at $I$, we have $$1=\prod_{\text{cyc}}\frac{H_BR\cdot H_BS}{H_CR\cdot H_CS}=\prod_{\text{cyc}}\frac{H_BS}{H_CS}$$where the first equality follows from Power of a Point. Call this concurrency point $M$; notice that $X$ lies on the polars of $H_A$ and $S$ with respect to $\odot(I)$, so $H_AS$ is the polar of $X$ with respect to $\odot(I)$. Therefore, $\overline{XYZ}$ is a line segment on the polar of $M$ with respect to $\odot(I)$, and the conclusion follows.
This post has been edited 1 time. Last edited by EulerMacaroni, Mar 9, 2017, 12:58 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Complex2Liu
83 posts
#15 • 2 Y
Y by baopbc, Adventure10
Thanks for pointing out my mistake. Ignore this post.
This post has been edited 3 times. Last edited by Complex2Liu, Apr 5, 2017, 2:24 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dragonx111
280 posts
#16 • 2 Y
Y by Adventure10, Mango247
Complex2Liu wrote:
Let the incircle of $ABC$ touch $BC$ at $P,$ and $P_1,P_2$ be the reflection of $P$ with respect to $I,D$ respectively. Denote by $U$ the second intersection of $AP_2$ and $\odot(I).$

It's well-known that $A,P_1,P_2$ are collinear and $ID \parallel AP_2,$ from which we conclude that $DU$ is tangent to $\odot(I).$ Now let $V$ be the intersection of $EF$ and $AU,$ and $X^*$ be the reflection of $V$ with respect to $X.$ Notice that
\[\measuredangle XVU=\measuredangle DP_2U=\measuredangle P_2UD=\measuredangle VUX \implies XV=XU. \]Hence $XV\cdot XX^*=XU^2=XF\cdot XE,$ which amounts to $(X^*,V;F,E)\stackrel{U}{=}-1\implies UX$ is the angle bisector of $\angle FUE.$ Therefore $\tfrac{XF}{XE}=\tfrac{VF}{VE}=\tfrac{BP_2}{CP_2}.$ The statement then follows by Menelaus' theorem in $\triangle DEF$(It's well-known that three lines are concurrent at Nagel point).
[asy]
size(8cm); defaultpen(fontsize(9pt)); pathpen=black; pointpen=black;
pair A=dir(55);
pair B=dir(-140);
pair C=dir(-40);
pair D=midpoint(B--C);
pair E=midpoint(A--C);
pair F=midpoint(A--B);
pair I=incenter(A,B,C);
pair P=foot(I,B,C);
pair P2=2*D-P;
pair P1=2*I-P;
pair U=OP(incircle(A,B,C),P1--P2);
pair V=IP(E--F,P1--U);
pair X=extension(E,F,D,U);
pair X1=2*X-V;

D(A--B--C--cycle,purple+linewidth(1.1));
D(incircle(A,B,C),dotted+red);
D(A--P2,cyan);
D(D--X,dashed);
D(X1--E,red+linewidth(1.2));
D(X1--P--P1);
D(E--U--F);
D(rightanglemark(P,U,P1,2),deepgreen);

dot("$A$",A,dir(A));
dot("$B$",B,dir(B));
dot("$C$",C,dir(C));
dot("$D$",D,dir(D));
dot("$E$",E,dir(E));
dot("$F$",F,dir(F));
dot("$I$",I,dir(I));
dot("$P$",P,dir(P));
dot("$P_1$",P1,dir(120));
dot("$P_2$",P2,dir(P2));
dot("$U$",U,dir(-160));
dot("$V$",V,dir(135));
dot("$X$",X,dir(90));
dot("$X^*$",X1,dir(90));
[/asy]

Warning: $E,F$ are not on the incircle, so be aware of the fact that the property $XU^2=XE \cdot XF $ does not hold.
This post has been edited 1 time. Last edited by dragonx111, Mar 13, 2017, 10:45 AM
Z K Y
G
H
=
a