Rational functions Proper fractions, partial fractions and the integrals they become.
This page integrates rational functions, which are ratios of polynomials. If
the fraction is improper, divide first; the polynomial part integrates
immediately and the proper remainder decomposes uniquely into partial
fractions. Linear factors lead to logarithms and negative powers, while
non-repeated irreducible quadratics lead to logarithms and inverse tangents.
Repeated quadratics may also need a reduction step or a trigonometric
substitution.
Other integrands belong elsewhere: trigonometric powers in trigonometric
integrals , quadratic
surds in trigonometric and hyperbolic
substitutions ,
and other algebraic surds in rationalising
substitutions .
[ DEFINITION ] A function f f f is a rational function if it is of the form
f ( x ) = P ( x ) Q ( x ) f(x)=\frac{P(x)}{Q(x)} f ( x ) = Q ( x ) P ( x ) , where P P P and Q Q Q are polynomials and Q Q Q is not the
zero polynomial. Its real domain excludes the zeros of Q Q Q .
[RIGHT CLICK] [ASK AI]
[ DEFINITION ] A rational function f f f is proper if deg P < deg Q \deg P<\deg Q deg P < deg Q . If f f f is not proper, long division writes it as a polynomial plus a proper rational function,
P ( x ) Q ( x ) = p ( x ) + R ( x ) Q ( x ) , \frac{P(x)}{Q(x)}=p(x)+\frac{R(x)}{Q(x)}, Q ( x ) P ( x ) = p ( x ) + Q ( x ) R ( x ) , with R ( x ) Q ( x ) \frac{R(x)}{Q(x)} Q ( x ) R ( x ) proper.
The polynomial p p p integrates termwise. Only the proper remainder needs a further decomposition.
[RIGHT CLICK] [ASK AI]
[ EXAMPLE ]
2 x + 1 3 x 2 − 4 \frac{2x+1}{3x^2-4} 3 x 2 − 4 2 x + 1 is rational and proper: deg ( 2 x + 1 ) = 1 < 2 = deg ( 3 x 2 − 4 ) \deg(2x+1)=1<2=\deg(3x^2-4) deg ( 2 x + 1 ) = 1 < 2 = deg ( 3 x 2 − 4 ) .
cos x x 2 + 1 \frac{\cos x}{x^2+1} x 2 + 1 c o s x is not rational: cos x \cos x cos x is not a polynomial.
x 2 x − 1 \frac{x^2}{x-1} x − 1 x 2 is rational and improper: deg ( x 2 ) = 2 > 1 = deg ( x − 1 ) \deg(x^2)=2>1=\deg(x-1) deg ( x 2 ) = 2 > 1 = deg ( x − 1 ) .
x x 2 + 3 \frac{\sqrt{x}}{x^2+3} x 2 + 3 x is not rational: x \sqrt{x} x is not a polynomial.
[RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Write each rational function as a polynomial plus a proper rational function.
For 4 x − 5 2 x + 3 \frac{4x-5}{2x+3} 2 x + 3 4 x − 5 , the leading-term ratio is 2 2 2 and 2 ( 2 x + 3 ) = 4 x + 6 2(2x+3)=4x+6 2 ( 2 x + 3 ) = 4 x + 6 , so
( 4 x − 5 ) − ( 4 x + 6 ) = − 11. (4x-5)-(4x+6)=-11. ( 4 x − 5 ) − ( 4 x + 6 ) = − 11. Hence
4 x − 5 2 x + 3 = 2 − 11 2 x + 3 . \frac{4x-5}{2x+3}=2-\frac{11}{2x+3}. 2 x + 3 4 x − 5 = 2 − 2 x + 3 11 . For x 3 − x + 1 x 2 + 3 x − 1 \frac{x^3-x+1}{x^2+3x-1} x 2 + 3 x − 1 x 3 − x + 1 , divide. The first quotient term is x x x and
x ( x 2 + 3 x − 1 ) = x 3 + 3 x 2 − x , x(x^2+3x-1)=x^3+3x^2-x, x ( x 2 + 3 x − 1 ) = x 3 + 3 x 2 − x , so
( x 3 − x + 1 ) − ( x 3 + 3 x 2 − x ) = − 3 x 2 + 1. (x^3-x+1)-(x^3+3x^2-x)=-3x^2+1. ( x 3 − x + 1 ) − ( x 3 + 3 x 2 − x ) = − 3 x 2 + 1. The next quotient term is − 3 -3 − 3 and
− 3 ( x 2 + 3 x − 1 ) = − 3 x 2 − 9 x + 3 , -3(x^2+3x-1)=-3x^2-9x+3, − 3 ( x 2 + 3 x − 1 ) = − 3 x 2 − 9 x + 3 , so
( − 3 x 2 + 1 ) − ( − 3 x 2 − 9 x + 3 ) = 9 x − 2. (-3x^2+1)-(-3x^2-9x+3)=9x-2. ( − 3 x 2 + 1 ) − ( − 3 x 2 − 9 x + 3 ) = 9 x − 2. Hence
x 3 − x + 1 x 2 + 3 x − 1 = x − 3 + 9 x − 2 x 2 + 3 x − 1 . \frac{x^3-x+1}{x^2+3x-1}=x-3+\frac{9x-2}{x^2+3x-1}. x 2 + 3 x − 1 x 3 − x + 1 = x − 3 + x 2 + 3 x − 1 9 x − 2 . [RIGHT CLICK] [ASK AI]
Once the remainder is proper, cancel any common factors and factor its denominator over R \mathbb{R} R . Cancellation simplifies the formula only on the original domain: any zero of the original denominator remains an excluded point when choosing an integration interval. A separate partial-fraction term is needed for every power of every factor; omitting a power can make the coefficient equations impossible to solve.
[ THEOREM ] For a fixed denominator after cancellation and factorisation, every proper rational function f f f has a unique partial-fraction expansion with terms of the form
A ( x − a ) k , B x + C ( x 2 + b x + c ) k , \frac{A}{(x-a)^k},\qquad \frac{Bx+C}{(x^2+bx+c)^k}, ( x − a ) k A , ( x 2 + b x + c ) k B x + C , where the quadratic x 2 + b x + c x^2+bx+c x 2 + b x + c is irreducible over the real numbers (i.e. b 2 − 4 c < 0 b^2-4c<0 b 2 − 4 c < 0 ).
The integers k k k run up to the multiplicity of each factor. Uniqueness means the linear equations for the undetermined coefficients have exactly one solution.
The real irreducible quadratics arise by pairing a non-real complex root with
its conjugate, as in real linear and quadratic
factorisation .
[RIGHT CLICK] [ASK AI]
For q ( x ) = a x 2 + b x + c q(x)=ax^2+bx+c q ( x ) = a x 2 + b x + c , the quantity Δ = b 2 − 4 a c \Delta=b^2-4ac Δ = b 2 − 4 a c is its discriminant .
If Δ < 0 \Delta<0 Δ < 0 , the quadratic has no real roots and is irreducible over
R \mathbb R R ; this is the quadratic case in the partial-fraction forms above.
[ METHOD ] Given a proper rational function, each irreducible factor of the denominator contributes terms as follows.
Linear factor a x + b ax+b a x + b : A a x + b \frac{A}{ax+b} a x + b A .
Repeated linear factor ( a x + b ) k (ax+b)^k ( a x + b ) k : A 1 a x + b + A 2 ( a x + b ) 2 + ⋯ + A k ( a x + b ) k \frac{A_1}{ax+b}+\frac{A_2}{(ax+b)^2}+\cdots+\frac{A_k}{(ax+b)^k} a x + b A 1 + ( a x + b ) 2 A 2 + ⋯ + ( a x + b ) k A k .
Irreducible quadratic factor a x 2 + b x + c ax^2+bx+c a x 2 + b x + c with a ≠ 0 a\ne0 a = 0 : A x + B a x 2 + b x + c \frac{Ax+B}{ax^2+bx+c} a x 2 + b x + c A x + B .
Repeated irreducible quadratic factor ( a x 2 + b x + c ) k (ax^2+bx+c)^k ( a x 2 + b x + c ) k : A 1 x + B 1 a x 2 + b x + c + A 2 x + B 2 ( a x 2 + b x + c ) 2 + ⋯ + A k x + B k ( a x 2 + b x + c ) k \frac{A_1x+B_1}{ax^2+bx+c}+\frac{A_2x+B_2}{(ax^2+bx+c)^2}+\cdots+\frac{A_kx+B_k}{(ax^2+bx+c)^k} a x 2 + b x + c A 1 x + B 1 + ( a x 2 + b x + c ) 2 A 2 x + B 2 + ⋯ + ( a x 2 + b x + c ) k A k x + B k .
Here each factor has a general leading coefficient a a a , whereas the decomposition theorem used the monic quadratic x 2 + b x + c x^2+bx+c x 2 + b x + c , irreducible when b 2 − 4 c < 0 b^2-4c<0 b 2 − 4 c < 0 .
[RIGHT CLICK] [ASK AI]
[ METHOD ] To integrate a rational function on an interval containing no zero of its
denominator:
If the function is improper, use polynomial division to write it as a polynomial plus a proper rational function and integrate the polynomial.
Decompose the proper part into partial fractions.
Integrate each linear-factor term using u = a x + b u=ax+b u = a x + b : its first power gives A a ln ∣ a x + b ∣ \frac{A}{a}\ln|ax+b| a A ln ∣ a x + b ∣ , while a power k > 1 k>1 k > 1 gives A ( a x + b ) 1 − k a ( 1 − k ) \frac{A(ax+b)^{1-k}}{a(1-k)} a ( 1 − k ) A ( a x + b ) 1 − k .
For q ( x ) = a x 2 + b x + c q(x)=ax^2+bx+c q ( x ) = a x 2 + b x + c and a term
∫ B x + C q ( x ) k d x \int\frac{Bx+C}{q(x)^k}\,dx ∫ q ( x ) k B x + C d x , split the numerator into a multiple of
q ′ ( x ) = 2 a x + b q'(x)=2ax+b q ′ ( x ) = 2 a x + b and a constant remainder:
B x + C q ( x ) k = B 2 a q ′ ( x ) q ( x ) k + D q ( x ) k , D = C − B b 2 a . \frac{Bx+C}{q(x)^k}
=\frac{B}{2a}\frac{q'(x)}{q(x)^k}+\frac{D}{q(x)^k},
\qquad D=C-\frac{Bb}{2a}. q ( x ) k B x + C = 2 a B q ( x ) k q ′ ( x ) + q ( x ) k D , D = C − 2 a B b . Then integrate the derivative term directly and complete the square in the
constant remainder.
The derivative term is immediate:
∫ g ′ ( x ) g ( x ) d x = ln ∣ g ( x ) ∣ + K , \int\frac{g'(x)}{g(x)}\, dx=\ln|g(x)|+K, ∫ g ( x ) g ′ ( x ) d x = ln ∣ g ( x ) ∣ + K , and, for k > 1 k>1 k > 1 ,
∫ g ′ ( x ) g ( x ) k d x = g ( x ) 1 − k 1 − k + K . \int\frac{g'(x)}{g(x)^k}\,dx
=\frac{g(x)^{1-k}}{1-k}+K. ∫ g ( x ) k g ′ ( x ) d x = 1 − k g ( x ) 1 − k + K . For the constant term, complete the square. When k = 1 k=1 k = 1 , this produces the
standard inverse-tangent integral
∫ 1 h 2 + x 2 d x = 1 h tan − 1 ( x h ) + K , h > 0. \int\frac{1}{h^2+x^2}\, dx=\frac{1}{h}\tan^{-1}\left(\frac{x}{h}\right)+K,
\qquad h>0. ∫ h 2 + x 2 1 d x = h 1 tan − 1 ( h x ) + K , h > 0. For k > 1 k>1 k > 1 , reduce the remaining power or use a trigonometric substitution, as
in the repeated-quadratic example below.
[RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Find ∫ 2 x 2 + 2 x − 6 ( x − 1 ) ( x + 1 ) ( x − 2 ) d x \int\frac{2x^2+2x-6}{(x-1)(x+1)(x-2)}\, dx ∫ ( x − 1 ) ( x + 1 ) ( x − 2 ) 2 x 2 + 2 x − 6 d x .
The denominator is a product of distinct linear factors, so
2 x 2 + 2 x − 6 ( x − 1 ) ( x + 1 ) ( x − 2 ) = A x − 1 + B x + 1 + C x − 2 . \frac{2x^2+2x-6}{(x-1)(x+1)(x-2)}=\frac{A}{x-1}+\frac{B}{x+1}+\frac{C}{x-2}. ( x − 1 ) ( x + 1 ) ( x − 2 ) 2 x 2 + 2 x − 6 = x − 1 A + x + 1 B + x − 2 C . Call this identity ( ∗ ) (*) ( ∗ ) . Heaviside's cover-up method finds A A A , B B B and C C C . Multiplying ( ∗ ) (*) ( ∗ ) by x − 1 x-1 x − 1 yields
2 x 2 + 2 x − 6 ( x + 1 ) ( x − 2 ) = A + B ( x − 1 ) x + 1 + C ( x − 1 ) x − 2 . \frac{2x^2+2x-6}{(x+1)(x-2)}=A+\frac{B(x-1)}{x+1}+\frac{C(x-1)}{x-2}. ( x + 1 ) ( x − 2 ) 2 x 2 + 2 x − 6 = A + x + 1 B ( x − 1 ) + x − 2 C ( x − 1 ) . Identity ( ∗ ) (*) ( ∗ ) holds for x ≠ 1 , − 1 , 2 x\neq 1,-1,2 x = 1 , − 1 , 2 , but after multiplying through by x − 1 x-1 x − 1 both sides are defined at x = 1 x=1 x = 1 , so setting x = 1 x=1 x = 1 is legitimate:
2 ( 1 ) 2 + 2 ( 1 ) − 6 ( 1 + 1 ) ( 1 − 2 ) = − 2 2 ⋅ ( − 1 ) = 1 , \frac{2(1)^2+2(1)-6}{(1+1)(1-2)}=\frac{-2}{2\cdot(-1)}=1, ( 1 + 1 ) ( 1 − 2 ) 2 ( 1 ) 2 + 2 ( 1 ) − 6 = 2 ⋅ ( − 1 ) − 2 = 1 , hence A = 1 A=1 A = 1 .
Similarly, multiplying ( ∗ ) (*) ( ∗ ) by x + 1 x+1 x + 1 and setting x = − 1 x=-1 x = − 1 gives
B = 2 x 2 + 2 x − 6 ( x − 1 ) ( x − 2 ) ∣ x = − 1 = − 1 , B=\left.\frac{2x^2+2x-6}{(x-1)(x-2)}\right|_{x=-1}=-1, B = ( x − 1 ) ( x − 2 ) 2 x 2 + 2 x − 6 x = − 1 = − 1 , and doing the same with x − 2 x-2 x − 2 and x = 2 x=2 x = 2 gives
C = 2 x 2 + 2 x − 6 ( x − 1 ) ( x + 1 ) ∣ x = 2 = 2. C=\left.\frac{2x^2+2x-6}{(x-1)(x+1)}\right|_{x=2}=2. C = ( x − 1 ) ( x + 1 ) 2 x 2 + 2 x − 6 x = 2 = 2. Hence
∫ 2 x 2 + 2 x − 6 ( x − 1 ) ( x + 1 ) ( x − 2 ) d x = ∫ d x x − 1 − ∫ d x x + 1 + ∫ 2 x − 2 d x \int\frac{2x^2+2x-6}{(x-1)(x+1)(x-2)}\, dx=\int\frac{dx}{x-1}-\int\frac{dx}{x+1}+\int\frac{2}{x-2}\, dx ∫ ( x − 1 ) ( x + 1 ) ( x − 2 ) 2 x 2 + 2 x − 6 d x = ∫ x − 1 d x − ∫ x + 1 d x + ∫ x − 2 2 d x = ln ∣ x − 1 ∣ − ln ∣ x + 1 ∣ + 2 ln ∣ x − 2 ∣ + C . =\ln|x-1|-\ln|x+1|+2\ln|x-2|+C. = ln ∣ x − 1∣ − ln ∣ x + 1∣ + 2 ln ∣ x − 2∣ + C . [RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Find I = ∫ 8 x + 9 ( x − 2 ) ( x + 3 ) 2 d x I=\int\frac{8x+9}{(x-2)(x+3)^2}\, dx I = ∫ ( x − 2 ) ( x + 3 ) 2 8 x + 9 d x .
The factor x + 3 x+3 x + 3 is repeated, so
8 x + 9 ( x − 2 ) ( x + 3 ) 2 = A x − 2 + B x + 3 + C ( x + 3 ) 2 \frac{8x+9}{(x-2)(x+3)^2}=\frac{A}{x-2}+\frac{B}{x+3}+\frac{C}{(x+3)^2} ( x − 2 ) ( x + 3 ) 2 8 x + 9 = x − 2 A + x + 3 B + ( x + 3 ) 2 C (or, equivalently, A x − 2 + B x + C ( x + 3 ) 2 \frac{A}{x-2}+\frac{Bx+C}{(x+3)^2} x − 2 A + ( x + 3 ) 2 B x + C ). With the three-term form, the cover-up method from the distinct linear factors example gives A A A by multiplying by x − 2 x-2 x − 2 and setting x = 2 x=2 x = 2 :
A = 8 x + 9 ( x + 3 ) 2 ∣ x = 2 = 16 + 9 25 = 1. A=\left.\frac{8x+9}{(x+3)^2}\right|_{x=2}=\frac{16+9}{25}=1. A = ( x + 3 ) 2 8 x + 9 x = 2 = 25 16 + 9 = 1. Multiplying by ( x + 3 ) 2 (x+3)^2 ( x + 3 ) 2 and setting x = − 3 x=-3 x = − 3 gives
C = 8 x + 9 x − 2 ∣ x = − 3 = − 24 + 9 − 5 = 3. C=\left.\frac{8x+9}{x-2}\right|_{x=-3}=\frac{-24+9}{-5}=3. C = x − 2 8 x + 9 x = − 3 = − 5 − 24 + 9 = 3. Cover-up does not give B B B : multiplying by x + 3 x+3 x + 3 leaves a term C x + 3 \frac{C}{x+3} x + 3 C , so x = − 3 x=-3 x = − 3 cannot be substituted. Instead, insert the known A A A and C C C ,
8 x + 9 ( x − 2 ) ( x + 3 ) 2 = 1 x − 2 + B x + 3 + 3 ( x + 3 ) 2 \frac{8x+9}{(x-2)(x+3)^2}=\frac{1}{x-2}+\frac{B}{x+3}+\frac{3}{(x+3)^2} ( x − 2 ) ( x + 3 ) 2 8 x + 9 = x − 2 1 + x + 3 B + ( x + 3 ) 2 3 and set x = 0 x=0 x = 0 :
9 − 18 = − 1 2 + B 3 + 1 3 ⟹ B = − 1. \frac{9}{-18}=-\frac{1}{2}+\frac{B}{3}+\frac{1}{3}\implies B=-1. − 18 9 = − 2 1 + 3 B + 3 1 ⟹ B = − 1. Hence
I = ∫ d x x − 2 − ∫ d x x + 3 + ∫ 3 ( x + 3 ) 2 d x = ln ∣ x − 2 ∣ − ln ∣ x + 3 ∣ − 3 x + 3 + C . I=\int\frac{dx}{x-2}-\int\frac{dx}{x+3}+\int\frac{3}{(x+3)^2}\, dx=\ln|x-2|-\ln|x+3|-\frac{3}{x+3}+C. I = ∫ x − 2 d x − ∫ x + 3 d x + ∫ ( x + 3 ) 2 3 d x = ln ∣ x − 2∣ − ln ∣ x + 3∣ − x + 3 3 + C . This formula is valid on any interval that contains neither pole, x = 2 x=2 x = 2 nor
x = − 3 x=-3 x = − 3 ; the constant need not be the same on different such intervals.
[RIGHT CLICK] [ASK AI]
For an irreducible quadratic denominator, rewrite the numerator around the derivative of the quadratic. This splits off a logarithm and the constant remainder becomes an inverse tangent after completing the square.
[ EXAMPLE ] Find I = ∫ 2 x + 1 x 2 + 4 x + 5 d x I=\int\frac{2x+1}{x^2+4x+5}\, dx I = ∫ x 2 + 4 x + 5 2 x + 1 d x .
The quadratic x 2 + 4 x + 5 x^2+4x+5 x 2 + 4 x + 5 is irreducible (4 2 − 4 ⋅ 5 = − 4 < 0 4^2-4\cdot5=-4<0 4 2 − 4 ⋅ 5 = − 4 < 0 ), so write the numerator in terms of the derivative 2 x + 4 2x+4 2 x + 4 of the denominator:
2 x + 1 = ( 2 x + 4 ) − 3. 2x+1=(2x+4)-3. 2 x + 1 = ( 2 x + 4 ) − 3. Thus
I = ∫ 2 x + 4 x 2 + 4 x + 5 d x − ∫ 3 x 2 + 4 x + 5 d x . I=\int\frac{2x+4}{x^2+4x+5}\, dx-\int\frac{3}{x^2+4x+5}\, dx. I = ∫ x 2 + 4 x + 5 2 x + 4 d x − ∫ x 2 + 4 x + 5 3 d x . The first integrand is g ′ / g g'/g g ′ / g . Completing the square in the second, x 2 + 4 x + 5 = ( x + 2 ) 2 + 1 x^2+4x+5=(x+2)^2+1 x 2 + 4 x + 5 = ( x + 2 ) 2 + 1 , gives
I = ln ∣ x 2 + 4 x + 5 ∣ − ∫ 3 ( x + 2 ) 2 + 1 d x = ln ∣ x 2 + 4 x + 5 ∣ − 3 tan − 1 ( x + 2 ) + C . I=\ln|x^2+4x+5|-\int\frac{3}{(x+2)^2+1}\, dx=\ln|x^2+4x+5|-3\tan^{-1}(x+2)+C. I = ln ∣ x 2 + 4 x + 5∣ − ∫ ( x + 2 ) 2 + 1 3 d x = ln ∣ x 2 + 4 x + 5∣ − 3 tan − 1 ( x + 2 ) + C . [RIGHT CLICK] [ASK AI]
[ EXAMPLE ] Find I = ∫ 2 x 2 − x ( x 2 + 1 ) 2 d x I=\int\frac{2x^2-x}{(x^2+1)^2}\, dx I = ∫ ( x 2 + 1 ) 2 2 x 2 − x d x .
Decompose as
2 x 2 − x ( x 2 + 1 ) 2 = A x + B x 2 + 1 + C x + D ( x 2 + 1 ) 2 . \frac{2x^2-x}{(x^2+1)^2}=\frac{Ax+B}{x^2+1}+\frac{Cx+D}{(x^2+1)^2}. ( x 2 + 1 ) 2 2 x 2 − x = x 2 + 1 A x + B + ( x 2 + 1 ) 2 C x + D . Multiplying by ( x 2 + 1 ) 2 (x^2+1)^2 ( x 2 + 1 ) 2 ,
2 x 2 − x = ( A x + B ) ( x 2 + 1 ) + C x + D = A x 3 + B x 2 + ( A + C ) x + ( B + D ) . 2x^2-x=(Ax+B)(x^2+1)+Cx+D=Ax^3+Bx^2+(A+C)x+(B+D). 2 x 2 − x = ( A x + B ) ( x 2 + 1 ) + C x + D = A x 3 + B x 2 + ( A + C ) x + ( B + D ) . Comparing coefficients, A = 0 A=0 A = 0 , B = 2 B=2 B = 2 , A + C = − 1 A+C=-1 A + C = − 1 so C = − 1 C=-1 C = − 1 and B + D = 0 B+D=0 B + D = 0 so D = − 2 D=-2 D = − 2 . Hence
I = ∫ 2 x 2 + 1 d x − ∫ x + 2 ( x 2 + 1 ) 2 d x = 2 tan − 1 ( x ) − 1 2 ∫ 2 x ( x 2 + 1 ) 2 d x − 2 ∫ 1 ( x 2 + 1 ) 2 d x . I=\int\frac{2}{x^2+1}\, dx-\int\frac{x+2}{(x^2+1)^2}\, dx=2\tan^{-1}(x)-\frac{1}{2}\int\frac{2x}{(x^2+1)^2}\, dx-2\int\frac{1}{(x^2+1)^2}\, dx. I = ∫ x 2 + 1 2 d x − ∫ ( x 2 + 1 ) 2 x + 2 d x = 2 tan − 1 ( x ) − 2 1 ∫ ( x 2 + 1 ) 2 2 x d x − 2 ∫ ( x 2 + 1 ) 2 1 d x . The middle integral is ∫ g ′ / g 2 \int g'/g^2 ∫ g ′ / g 2 with g ( x ) = x 2 + 1 g(x)=x^2+1 g ( x ) = x 2 + 1 , so
I = 2 tan − 1 ( x ) + 1 2 ( x 2 + 1 ) − 1 − 2 ∫ 1 ( x 2 + 1 ) 2 d x . I=2\tan^{-1}(x)+\frac{1}{2}(x^2+1)^{-1}-2\int\frac{1}{(x^2+1)^2}\, dx. I = 2 tan − 1 ( x ) + 2 1 ( x 2 + 1 ) − 1 − 2 ∫ ( x 2 + 1 ) 2 1 d x . For the remaining integral, let x = tan θ x=\tan\theta x = tan θ , so d x = sec 2 θ d θ dx=\sec^2\theta\, d\theta d x = sec 2 θ d θ (the x = a tan θ x=a\tan\theta x = a tan θ row of the trigonometric and hyperbolic substitutions , with a = 1 a=1 a = 1 ). Then tan 2 θ + 1 = sec 2 θ \tan^2\theta+1=\sec^2\theta tan 2 θ + 1 = sec 2 θ and
∫ 1 ( x 2 + 1 ) 2 d x = ∫ sec 2 θ ( sec 2 θ ) 2 d θ = ∫ cos 2 θ d θ . \int\frac{1}{(x^2+1)^2}\, dx=\int\frac{\sec^2\theta}{(\sec^2\theta)^2}\, d\theta=\int\cos^2\theta\, d\theta. ∫ ( x 2 + 1 ) 2 1 d x = ∫ ( sec 2 θ ) 2 sec 2 θ d θ = ∫ cos 2 θ d θ . Using cos 2 θ = 1 + cos 2 θ 2 \cos^2\theta=\frac{1+\cos 2\theta}{2} cos 2 θ = 2 1 + c o s 2 θ , as in trigonometric integrals ,
∫ cos 2 θ d θ = θ 2 + sin ( 2 θ ) 4 + C = 1 2 tan − 1 ( x ) + 1 4 sin ( 2 tan − 1 ( x ) ) + C . \int\cos^2\theta\, d\theta=\frac{\theta}{2}+\frac{\sin(2\theta)}{4}+C=\frac{1}{2}\tan^{-1}(x)+\frac{1}{4}\sin(2\tan^{-1}(x))+C. ∫ cos 2 θ d θ = 2 θ + 4 sin ( 2 θ ) + C = 2 1 tan − 1 ( x ) + 4 1 sin ( 2 tan − 1 ( x )) + C . Altogether,
I = tan − 1 ( x ) + 1 2 ( x 2 + 1 ) − 1 − 1 2 sin ( 2 tan − 1 ( x ) ) + C . I=\tan^{-1}(x)+\frac{1}{2}(x^2+1)^{-1}-\frac{1}{2}\sin(2\tan^{-1}(x))+C. I = tan − 1 ( x ) + 2 1 ( x 2 + 1 ) − 1 − 2 1 sin ( 2 tan − 1 ( x )) + C . To rewrite the sine, let α = tan − 1 ( x ) \alpha=\tan^{-1}(x) α = tan − 1 ( x ) , so tan α = x \tan\alpha=x tan α = x and cos α > 0 \cos\alpha>0 cos α > 0 . From 1 + tan 2 α = sec 2 α 1+\tan^2\alpha=\sec^2\alpha 1 + tan 2 α = sec 2 α and the sign of cos α \cos\alpha cos α ,
sin α = x x 2 + 1 , cos α = 1 x 2 + 1 . \sin\alpha=\frac{x}{\sqrt{x^2+1}},\qquad \cos\alpha=\frac{1}{\sqrt{x^2+1}}. sin α = x 2 + 1 x , cos α = x 2 + 1 1 . The double-angle formula sin ( 2 α ) = 2 sin α cos α \sin(2\alpha)=2\sin\alpha\cos\alpha sin ( 2 α ) = 2 sin α cos α then gives
sin ( 2 tan − 1 ( x ) ) = 2 ( x x 2 + 1 ) ( 1 x 2 + 1 ) = 2 x x 2 + 1 . \sin(2\tan^{-1}(x))=2\left(\frac{x}{\sqrt{x^2+1}}\right)\left(\frac{1}{\sqrt{x^2+1}}\right)=\frac{2x}{x^2+1}. sin ( 2 tan − 1 ( x )) = 2 ( x 2 + 1 x ) ( x 2 + 1 1 ) = x 2 + 1 2 x . Thus
I = tan − 1 ( x ) + 1 − 2 x 2 ( x 2 + 1 ) + C . I=\tan^{-1}(x)+\frac{1-2x}{2(x^2+1)}+C. I = tan − 1 ( x ) + 2 ( x 2 + 1 ) 1 − 2 x + C . [RIGHT CLICK] [ASK AI] Rational functions Leads to Rationalising substitutions and 1 more.