My textbook presents the following diagram:
It then claims that, according to the diagram, $|B + C| \cos(\theta_3) = |B|\cos(\theta_1) + |C|\cos(\theta_2)$.
I initially thought that this might be an application of the pythagorean theorem, and it might very well be, but, if so, then it's use of the angles $\theta_1$ and $\theta_2$, in relation to the angle $\theta_3$, is something that I don't understand. On the other hand, given the way the triangle is segmented, it might (also) be some application of similar triangles, but, again, I'm unsure of this.
I would greatly appreciate it if people would please take the time to explain this.

Note that, in the diagram, $B+C$ does not represent the length of a line segment.
In the diagram, $B+C$ represents a vector whose length is $|B+C|$. (Similarly, $A,B,C$ are vectors.)
Also, note that $\theta_1$ is an angle between the vector $A$ and the vector $B$, and that $\theta_2$ is an angle between the vector $A$ and the vecor $C$, and that $\theta_3$ is an angle between $A$ and the vector $B+C$.
Using the definition of cosine, we get $$\cos(\theta_3)=\frac{|B|\cos(\theta_1)+|C|\cos(\theta_2)}{|B+C|}$$ from which $$|B+C|\cos(\theta_3)=|B|\cos(\theta_1)+|C|\cos(\theta_2)$$ follows.