[Math] Angle between medians in right triangle

geometry

In a right angled triangle,medians are drawn from the acute-angles to the opposite sides.If maximum acute angle between these medians can be expressed as $tan^{-1}(\frac{p}{q})$ where p and q are relatively prime positive integers.Find $p+q$.
Let triangle is right angled at B.Let us take B (0,0),C(a,0),A(0,c).Let AD is median from A to opposite side BC.Let CE is median from C to side AB.Coordinates of D are$(\frac{a}{2},0)$,coordinates of E are $(0,\frac{c}{2})$.Slope of AD is $\frac{-2a}{c}$.Slope of CE is $\frac{-a}{2c}.$

Angle between medians$=\frac{\frac{a}{2c}-\frac{2a}{c}}{1+\frac{a^2}{c^2}}$,I am not getting answer,beacause these variables are not cancelling out.

Can someone help me getting the answer?

Best Answer

I think the slope of $AD$ is $\frac{2c}{-a}$ and that the slope of $CE$ is $\frac{-c}{2a}$.

Then, the acute angle between the medians can be expressed as $$\arctan\frac{\frac{-c}{2a}-\frac{2c}{-a}}{1+\frac{2c}{-a}\cdot\frac{-c}{2a}}=\arctan\frac{3ac}{2a^2+2c^2}=\arctan\frac{\frac{3ac}{a^2}}{\frac{2a^2}{a^2}+\frac{2c^2}{a^2}}=\arctan\frac{3s}{2+2s^2}$$ where $\frac ca=s\gt 0$.

Here, let $f(s)=\frac{3s}{2+2s^2}$. Then, we have $$f'(s)=\frac{6(1-s)(1+s)}{(2+2s)^2}.$$ So, we have $f(s)\le f(1)=\frac 34$.

Hence, the maximum acute angle is $\arctan\frac 34$.