Let us write 1+x2 as s to shorten the steps.
Define t=s+x=1+x2+x.
Notice the important identity
(s+x)(s−x)=(1+x2)−x2=1⟹s−x=t1.
With this, the integrand simplifies:
(1+x2−x)9(1+x2+x)10=(t1)9t10=t10t9=t19.
Differentiate the substitution to get dx in terms of dt :
dxdt=sx+1=sx+s=st⟹dx=tsdt.
Replace s by an expression involving only t.
From t=s+x and t1=s−x, add the two equations:
t+t1=2s⟹s=2t+1/t.
Hence
dx=tsdt=t2t+1/tdt=2t2t2+1dt.
Put everything in the integral:
I=∫t19dx=∫t19(2t2t2+1)dt=21∫(t19⋅t2t2+1)dt=21∫(t19+t17)dt.
Integrate term by term:
I=21(20t20+18t18)+C=40t20+36t18+C.
Factor out t18 :
I=t18(40t2+361)+C=360t18(9t2+10)+C.
Now convert the bracket 9t2+10 to the required form t(ns−x).
Using s=2t+1/t and x=2t−1/t, compute
t(19s−x)=t[19(2t+1/t)−(2t−1/t)]=t(218t+20/t)=9t2+10.
Therefore
I=360t18t(19s−x)+C=360t19(191+x2−x)+C.
The result is now in the demanded form
m1((1+x2+x)n(n1+x2−x))+C.
By comparison, m=360 and n=19. Hence
m+n=360+19=379.
Answer: 379