a) x2( x - 1 ) - x + 1
= x2( x - 1 ) - ( x - 1 )
= ( x - 1 )( x2 - 1 )
= ( x - 1 )( x - 1 )( x + 1 )
= ( x - 1 )2( x + 1 )
b) ( a + b )3 - ( a - b )3
= ( a3 + 3a2b + 3ab2 + b3 ) - ( a3 - 3a2b + 3ab2 - b3 )
= a3 + 3a2b + 3ab2 + b3 - a3 + 3a2b - 3ab2 + b3
= 6a2b + 2b3
= 2b( 3a2 + b )
c) 6x( x - 3 ) + 9 - 3x2
= 6x2 - 18x + 9 - 3x2
= 3x2 - 18x + 9
= 3( x2 - 6x + 3 )
d) x( x - y ) - 5x + 5y
= x( x - y ) - ( 5x - 5y )
= x( x - y ) - 5( x - y )
= ( x - y )( x - 5 )
e) 3( x + 4 ) - x2 - 4x
= 3( x + 4 ) - ( x2 + 4x )
= 3( x + 4 ) - x( x + 4 )
= ( x + 4 )( 3 - x )
f) x2 + 4x - y2 + 4
= ( x2 + 4x + 4 ) - y2
= ( x + 2 )2 - y2
= ( x + 2 - y )( x + 2 + y )
g) x2 + 5x
= x( x + 5 )
h) -x2 + 2x + 2y + y2
= ( y2 - x2 ) + ( 2x + 2y )
= ( y - x )( y + x ) + 2( x + y )
= ( x + y )( y - x + 2 )