Consider the unique prime factorisations of the numbers b_1 , b_2, which exist by the fundamental theorem of arithmetic (e.g. Theorem 1.10 of [Apostol]). Let { \rm PF } (b) be the set of prime factors of an integer b, and for a prime p in this set, let m_p ( b ) be the largest power of p which divides b.
\begin{aligned}\displaystyle
&& b_1 = \prod_{ p \in { \rm PF } ( b_1 ) } p^{ m_p ( b_1) } \cr
&& b_2 = \prod_{ p \in { \rm PF } ( b_2 ) } p^{ m_p ( b_2 ) }
\end{aligned}
Let us also denote { \rm PF } ( b_1 , b_2 ) \equiv { \rm PF } ( b_1 ) \cup { \rm PF } ( b_2 ). The relations between the LCM and the maxima of the exponents in the prime decomposition and between the GCD and the minima of the exponents in the prime decomposition are well known.
\begin{aligned}\displaystyle
&& G ( b_1 , b_2 ) = \prod_{ p \in { \rm PF } ( b_1 , b_2 ) } p^{ \min ( m_p ( b_1 ) , m_p ( b_2 ) ) } \cr
&& L ( b_1 , b_2 ) = \prod_{ p \in { \rm PF } ( b_1 , b_2 ) }
p^{ \max ( m_p ( b_1 ) , m_p ( b_2 ) ) }
\end{aligned}
Now use
\begin{aligned}\displaystyle
&& \max ( a , b ) = a ~ {\cal I} ( a \ge b ) + b ~ {\cal I} ( a < b ) \cr
&& \min ( a , b ) = b ~ {\cal I} ( a \ge b ) + a ~ {\cal I} ( a < b )
\end{aligned}
where the indicator function {\cal I} ( x ) is defined by:
\begin{aligned}\displaystyle
&& {\cal I} ( x ) = 1 \hbox { if $x$ holds }\cr
&& {\cal I} ( x ) = 0 \hbox { otherwise }
\end{aligned}
It follows that
\begin{aligned}\displaystyle
\max ( a , b ) + \min ( a , b ) &= a ( {\cal I} ( a < b ) + {\cal I} ( a \ge b ) )
+ b ( {\cal I} ( a < b ) + {\cal I} ( a \ge b ) ) \cr
& = & a +b
\end{aligned}
Applying this result to the prime decompositions
\begin{aligned}\displaystyle
G ( b_1 ) L ( b_2 ) && = \prod_{ p \in { \rm PF } ( b_1 , b_2 ) } p^{ \min ( m_p ( b_1 ) , m_p (b_2) )
+ \max ( m_p ( b_1 ) , m_p ( b_2 ) ) } \cr
&& = \prod_{ p \in { \rm PF } ( b_1 , b_2 ) }
p^{ m_p ( b_1 ) + m_p ( b_2 ) } = b_1 b_2
\end{aligned}
Relation between LCM and GCD for a triple of numbers
\begin{aligned}\displaystyle
L ( b_1 , b_2 , b_3 ) = {b_1 b_2 b_3 G ( b_1 , b_2 , b_3 ) \over G ( b_1 , b_2 ) G ( b_1 , b_3 ) G ( b_2 , b_3 )}
\end{aligned}
We again use the prime decompositions to write
\begin{aligned}\displaystyle
L ( b_1, b_2 , b_3 ) && = \prod_{ p \in { \rm PF } ( b_1 , b_2 , b_3 ) }
p^{ \max ( m_p ( b_1 ) , m_p ( b_2 ) , m_p ( b_3 ) ) } \cr
G ( b_1 , b_2 , b_3 ) && = \prod_{ p \in { \rm PF } ( b_1 , b_2 , b_3 ) }
p^{ \min ( m_p ( b_1 ) , m_p ( b_2 ) , m_p ( b_3 ) ) }
\end{aligned}
The maximum and minimum of a triple of numbers is known to be related by
\begin{aligned}\displaystyle
\max ( m_1 , m_2 , m_3 ) &= m_1 + m_2 + m_3 - \min ( m_1 , m_2 ) - \min ( m_1 , m_3 )\\&&\qquad\qquad - \min ( m_2 , m_3 ) + \min ( m_1 , m_2 , m_3 ) \cr
&&
\end{aligned}
An easy proof is to consider the sets
\begin{aligned}\displaystyle
&& S_1 = \{ 1, 2, \cdots , m_1 \} \cr
&& S_2 = \{ 1, 2, , \cdots , m_2 \} \cr
&& S_3 = \{ 1, 2, \cdots , m_3 \}
\end{aligned}
Observe that
\begin{aligned}\displaystyle
\max ( m_1 , m_2 , m_3 ) = | S_1 \cup S_2 \cup S_3 |
\end{aligned}
where the RHS is the cardinality of the union of the three sets, and
\begin{aligned}\displaystyle
&& \min ( m_1 ,m_2 ) = | S_1 \cap S_2 | \cr
&& \min ( m_1 , m_2 , m_3 ) = | S_1 \cap S_2 \cap S_3 |
\end{aligned}
We then use the inclusion-exclusion principle for sets which states that
\begin{aligned}\displaystyle
&& | S_1 \cup S_2 \cup S_3 | = |S_1| + |S_2| + | S_3| - | S_1 \cap S_2 | - |S_1 \cap S_3 | - | S_2 \cap S_3 | + |S_1 \cap S_2 \cap S_3 | \cr
&&
\end{aligned}
For the statement of the inclusion-exclusion principle and its proof using indicator functions see [WikiInEx][Rota].
.2cm
General formula relating LCM and GCD for multiple positive integers
\begin{aligned}\displaystyle
L ( b_1 , \cdots , b_n ) = ( b_1 \cdots b_n) \prod_{ k=2}^n ( {\cal G}_k ( b_1 , \cdots , b_n ) )^{ (-1)^{ k+1} }
\end{aligned}
where
\begin{aligned}\displaystyle
{\cal G}_k ( b_1 , \cdots , b_n )
= \prod_{ i_1 < i_2 < \cdots < i_k \in \{ 1, \cdots , n \} } ( G ( b_{ i_1}, b_{ i_2} , \cdots , b_{ i_k } ) )
\end{aligned}
In other words, {\cal G}_k is the product over k-element subsets, of the GCD for the subset.