1) \(\left(x+1\right)^3-\left(x-4\right)\left(x+4\right)-x^3\)
\(=\left(x^3+3x^2+3x+1\right)-\left(x^2-16\right)-x^3\)
\(=x^3+3x^2+3x+1-x^2+16-x^3\)
\(=2x^2+3x+17\)
2) \(\left(x+2\right)^3-x\left(x+3\right)\left(x-3\right)-12x^2-8\)
\(=\left(x^3+6x^2+12x+8\right)-x\left(x^2-9\right)-12x^2-8\)
\(=x^3+6x^2+12x+8-x^3+9x-12x^2-8\)
\(=-6x^2+21x\)
`@` `\text {Ans}`
`\downarrow`
`1.`
\((x + 1) ^ 3 - (x - 4)(x + 4) - x ^ 3\)
`= x^3 + 3x^2 + 3x + 1 - [ x(x+4) - 4(x+4)] - x^3`
`= x^3 + 3x^2 + 3x + 1 - (x^2 + 4x - 4x - 16) - x^3`
`= x^3 + 3x^2 + 3x + 1 - (x^2 - 16) - x^3`
`= x^3 + 3x^2 + 3x + 1 - x^2 + 16 - x^3`
`= (x^3 - x^3) + (3x^2 - x^2) + 3x + (1+16)`
`= 2x^2 + 3x + 17`
`2.`
\((x + 2) ^ 3 - x(x + 3)(x - 3) - 12x ^ 2 - 8\)
`= x^3 + 6x^2 + 12x + 8 - [ (x^2 + 3x)(x-3)] - 12x^2 - 8`
`= x^3 + 6x^2 + 12x + 8 - (x^3 - 9x) - 12x^2 - 8`
`= x^3 + 6x^2 + 12x +8 - x^3 + 9x - 12x^2 - 8`
`= (x^3 - x^3) + (6x^2 - 12x^2) + (12x + 9x) + (8-8)`
`= -6x^2 + 21x `