Phân tích đa thức \(P\left( x \right) = \left( {x + 1} \right)\left( {2x - 1} \right) + \left( {x + 1} \right)x\) thành nhân tử.