a)
\(\eqalign{
& {{3{x^2} - 12x + 12} \over {{x^4} - 8x}} = {{3\left( {{x^2} - 4x + 4} \right)} \over {x\left( {{x^3} - 8} \right)}} \cr
& = {{3\left( {{x^2} - 2.x.2 + {2^2}} \right)} \over {x\left( {{x^3} - {2^3}} \right)}} \cr
& = {{3{{\left( {x - 2} \right)}^2}} \over {x\left( {x - 2} \right)\left( {{x^2} + 2x + 4} \right)}} \cr
& = {{3\left( {x - 2} \right)} \over {x\left( {{x^2} + 2x + 4} \right)}} \cr} \)
b)
\(\eqalign{
& {{7{x^2} + 14x + 7} \over {3{x^2} + 3x}} = {{7\left( {{x^2} + 2x + 1} \right)} \over {3x\left( {x + 1} \right)}} \cr
& = {{7{{\left( {x + 1} \right)}^2}} \over {3x\left( {x + 1} \right)}} = {{7\left( {x + 1} \right)} \over {3x}} \cr} \)