We have a cube with each side equaling $1$ unit of length. We need to determine the distance from $B$ to the line $A_1C_1$
In my calculation, each side of the yellowish-shaded triangle equals $\sqrt2$. Then we just solve
$$d=\sqrt{2-\frac24}=\frac{\sqrt3}{2}$$
But the textbook says:
Why does the author uses the additional factor $BA_1$?
Sorry if the question is too simple, I've been remiss in my studies, am now trying to catch up. (0:


$2-\frac24=\frac32$, not $\frac34$. With that corrected, your answer from the pythagorean theorem is equal to the book's.
The book is using a different method, noting that the $BA_1C_1$ is equilateral, and is scaling up the known height of an equilateral triangle of side length 1.