g(x)=x^3-3x-2
Tu cherches (a,b,c)€R^3 tel que g(x)=( x+1)(ax^²+bx+c)
Donc tu cherches le triplet a,b,c tel que g(x) = ax^3 + bx² + cx + ax² + bx + c soit g(x) = ax^3+ (b+a)x² + (c+b)x + c
Tu procèdes donc par identification en disant que pour tout x de R, tu obtiens :
a=1
b+a=0
c+b=-3
c=-2