Peter R. answered 09/19/22
Experienced Instructor in Prealgebra, Algebra I and II, SAT/ACT Math.
This looks one of the steps you do when factoring by grouping. You just have to factor out the common term of (x+1) to get the answer that you showed.