The canonical hyperbola is $$ \frac{x^2}{a^2}-\frac{y^2}{b^2}=1$$
I have already derive the equation for the distance from any point $(x_0,y_0)$ in hyperbola to the asymptote $ y=\frac{b}{a}x$ as $$ d =\frac{|bx_0-ay_0|}{c}$$ where $a^2+b^2=c^2$ and $x_0 \geq a$.
I know that the maximum distance is when $x_0=a$ but I don't know how to proof it. Can you help me? Thanks.

WLOG $a=c\cos u,b=c\sin u$
and any point $P$ on the hyperbola can be $(a\sec v, b\tan v)=(c\cos u\sec v,c\sin u\tan v)$
So, the distance of $P$ from $bx-ay=0$ will be $$\dfrac{|b(c\cos u\sec v)-a(c\sin u\tan v)|}{\sqrt{a^2+b^2}}$$
$$=\dfrac{|c\sin u|(c\cos u\sec v)-|c\cos u|(c\sin u\tan v)}{|c|}$$
$$=|c\sin u\cos u(\sec v-\tan v)|$$
$$=\dfrac{|c\sin2u\tan\left(\dfrac v2-\dfrac\pi4\right)|}2$$
which will be maximum
if $c\sin2u\ne0$ and
if $\tan\left(\dfrac v2-\dfrac\pi4\right)\to\infty$
which occurs if $\dfrac v2-\dfrac\pi4\to\pm\dfrac\pi2$