The angle bisector of the acute angle formed at the origin by the graphs of the lines $y = x$ and $y=3x$ has equation $y=kx.$ What is $k?$
$\textbf{(A)} \ \frac{1+\sqrt{5}}{2} \qquad \textbf{(B)} \ \frac{1+\sqrt{7}}{2} \qquad \textbf{(C)} \ \frac{2+\sqrt{3}}{2} \qquad \textbf{(D)} \ 2\qquad \textbf{(E)} \ \frac{2+\sqrt{5}}{2}$
This solution refers to the Diagram section.
Let $O=(0,0), A=(3,3), B=(1,3),$ and $C=\left(\frac3k,3\right).$ As shown below, note that $\overline{OA}, \overline{OB},$ and $\overline{OC}$ are on the lines $y=x, y=3x,$ and $y=kx,$ respectively. By the Distance Formula, we have $OA=3\sqrt2, OB=\sqrt{10}, AC=3-\frac3k,$ and $BC=\frac3k-1.$

By the Angle Bisector Theorem, we get $\frac{OA}{OB}=\frac{AC}{BC},$ or 
\begin{align*} \frac{3\sqrt2}{\sqrt{10}}&=\frac{3-\frac3k}{\frac3k-1} \\ \frac{3\sqrt2}{\sqrt{10}}&=\frac{3k-3}{3-k} \\ \frac{\sqrt2}{\sqrt{10}}&=\frac{k-1}{3-k} \\ \frac15&=\frac{(k-1)^2}{(3-k)^2} \\ 5(k-1)^2&=(3-k)^2 \\ 4k^2-4k-4&=0 \\ k^2-k-1&=0 \\ k&=\frac{1\pm\sqrt5}{2}. \end{align*}
Since $k>0,$ the answer is $k=\boxed{\textbf{(A)} \ \frac{1+\sqrt{5}}{2}}.$
Remark
The value of $k$ is known as the Golden Ratio: $\phi=\frac{1+\sqrt{5}}{2}\approx 1.61803398875.$
~MRENTHUSIASM