Integration Grandmaster - P14

Calculus Level 4

Let

A = a b 1 ( x a ) 4 + ( x b ) 4 d x A = \int_{a}^{b} \dfrac{1}{(x-a)^4 + (x-b)^4} dx

Submit 10000 A \lfloor 10000A \rfloor for a = 1 a=1 and b = 2 b=2 .


The answer is 37922.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Mark Hennings
Dec 14, 2020

The substitution x = a cos 2 θ + b sin 2 θ x = a\cos^2\theta + b\sin^2\theta gives us A ( a , b ) = 1 ( b a ) 3 0 1 2 π sin 2 θ sin 8 θ + cos 8 θ d θ = 16 ( b a ) 3 0 1 2 π sin 2 θ d θ ( cos 2 θ 1 ) 4 + ( cos 2 θ + 1 ) 4 = 8 ( b a ) 3 0 1 2 π sin 2 θ d θ cos 4 2 θ + 6 cos 2 2 θ + 1 = 4 ( b a ) 3 1 1 d u u 4 + 6 u 2 + 1 = 1 2 ( b a ) 3 1 1 ( 1 u 2 + 3 8 1 u 2 + 3 + 8 ) d u = 1 2 ( b a ) 3 1 1 ( 1 u 2 + ( 2 1 ) 2 1 u 2 + ( 2 + 1 ) 2 ) d u = 1 2 ( b a ) 3 [ 1 2 1 tan 1 ( u 2 1 ) 1 2 + 1 tan 1 ( u 2 + 1 ) ] 1 1 = 2 ( b a ) 3 [ ( 2 + 1 ) tan 1 ( 2 + 1 ) ( 2 1 ) tan 1 ( 2 1 ) ] = 2 ( b a ) 3 [ 3 8 π ( 2 + 1 ) 1 8 π ( 2 1 ) ] = π ( 2 + 1 ) 2 ( b a ) 3 \begin{aligned} A(a,b) & = \; \frac{1}{(b-a)^3}\int_0^{\frac12\pi}\frac{\sin2\theta}{\sin^8\theta + \cos^8\theta}\,d\theta \; = \; \frac{16}{(b-a)^3}\int_0^{\frac12\pi} \frac{\sin2\theta\,d\theta}{(\cos2\theta - 1)^4 + (\cos2\theta+1)^4} \\ & = \; \frac{8}{(b-a)^3} \int_0^{\frac12\pi} \frac{\sin2\theta\,d\theta}{\cos^42\theta + 6\cos^22\theta + 1} \; =\; \frac{4}{(b-a)^3}\int_{-1}^1 \frac{du}{u^4 + 6u^2 + 1} \\ & = \; \frac{1}{\sqrt{2}(b-a)^3}\int_{-1}^1 \left(\frac{1}{u^2 + 3 - \sqrt{8}} - \frac{1}{u^2 + 3 + \sqrt{8}}\right)\,du \;= \; \frac{1}{\sqrt{2}(b-a)^3}\int_{-1}^1 \left(\frac{1}{u^2 + (\sqrt{2}-1)^2} - \frac{1}{u^2 + (\sqrt{2}+1)^2}\right)\,du \\ & = \; \frac{1}{\sqrt{2}(b-a)^3}\left[ \frac{1}{\sqrt{2}-1}\tan^{-1}\left(\frac{u}{\sqrt{2}-1}\right) - \frac{1}{\sqrt{2}+1}\tan^{-1}\left(\frac{u}{\sqrt{2}+1}\right)\right]_{-1}^1 \\ & = \; \frac{\sqrt{2}}{(b-a)^3}\left[(\sqrt{2}+1)\tan^{-1}(\sqrt{2}+1) - (\sqrt{2}-1)\tan^{-1}(\sqrt{2}-1)\right] \\ & = \; \frac{\sqrt{2}}{(b-a)^3}\left[ \tfrac38\pi(\sqrt{2}+1) - \tfrac18\pi(\sqrt{2}-1)\right] \; = \; \frac{\pi(\sqrt{2}+1)}{2(b-a)^3} \end{aligned} We want A ( 1 , 2 ) = 1 2 π ( 2 + 1 ) A(1,2) \; = \; \tfrac12\pi(\sqrt{2}+1) and 10000 A ( 1 , 2 ) = 37922 \lfloor 10000 A(1,2)\rfloor = \boxed{37922} .

Chew-Seong Cheong
Dec 14, 2020

A = 1 2 d x ( x 1 ) 4 + ( x 2 ) 2 Let u = x 3 2 d u = d x = 1 2 1 2 d u ( u + 1 2 ) 4 + ( u 1 2 ) 4 Since the integrand is even = 2 0 1 2 d u ( u + 1 2 ) 4 + ( u 1 2 ) 4 = 2 0 1 2 d u 2 u 4 + 3 u 2 + 1 8 = 0 1 2 d u u 4 + 3 2 u 2 + 1 16 = 0 1 2 d u ( u 2 + ( 2 1 2 ) 2 ) ( u 2 + ( 2 + 1 2 ) 2 ) = 0 1 2 1 2 ( 1 u 2 + ( 2 1 2 ) 2 1 u 2 + ( 2 + 1 2 ) 2 ) d u = 1 2 [ 2 2 1 tan 1 2 u 2 1 2 2 + 1 tan 1 2 u 2 + 1 ] 0 1 2 = ( 2 + 2 ) tan 1 ( 2 + 1 ) ( 2 2 ) tan 1 ( 2 1 ) = 2 tan 1 2 + 1 2 + 1 1 + 1 + 2 tan 1 2 + 1 + 2 1 1 1 = π 2 ( 1 + 2 ) 3.792237796 \begin{aligned} A & = \int_1^2 \frac {dx}{(x-1)^4+(x-2)^2} & \small \blue{\text{Let }u = x - \frac 32 \implies du = dx} \\ & = \int_{-\frac 12}^\frac 12 \frac {du}{\left(u + \frac 12\right)^4 + \left(u - \frac 12\right)^4} & \small \blue{\text{Since the integrand is even}} \\ & = 2 \int_0^\frac 12 \frac {du}{\left(u + \frac 12\right)^4 + \left(u - \frac 12\right)^4} \\ & = 2 \int_0^\frac 12 \frac {du}{2u^4 + 3 u^2 + \frac 18} \\ & = \int_0^\frac 12 \frac {du}{u^4 + \frac 32 u^2 + \frac 1{16}} \\ & = \int_0^\frac 12 \frac {du}{\left(u^2+(\frac {\sqrt 2 -1}2)^2\right)\left(u^2+(\frac {\sqrt 2 +1}2)^2\right)} \\ & = \int_0^\frac 12 \frac 1{\sqrt 2}\left(\frac 1{u^2+(\frac {\sqrt 2 -1}2)^2} - \frac 1{u^2+(\frac {\sqrt 2+1}2)^2} \right) du \\ & = \frac 1{\sqrt 2} \left[\frac 2{\sqrt 2 -1} \tan^{-1} \frac {2u}{\sqrt 2 - 1} - \frac 2{\sqrt 2 +1} \tan^{-1} \frac {2u}{\sqrt 2 + 1} \right]_0^\frac 12 \\ & = (2+\sqrt 2) \tan^{-1} (\sqrt 2 + 1) - (2 - \sqrt 2) \tan^{-1}(\sqrt 2 -1) \\ & = 2 \tan^{-1} \frac {\sqrt 2 +1 - \sqrt 2 +1}{1+1} + \sqrt 2 \tan^{-1} \frac {\sqrt 2 +`1 + \sqrt 2 -1}{1-1} \\ & = \frac \pi 2 (1+\sqrt 2) \approx 3.792237796 \end{aligned}

Therefore 10000 A = 37922 \lfloor 10000A \rfloor = \boxed{37922} .

Pi Han Goh
Dec 14, 2020

Note: I've updated my solution to reflect Mark Hennings' feedback below. Previously, I mentioned that when a = b a=b , the integral is trivially 0. This is a false assertion because the integrand not a proper integral, so the property 0 0 f ( z ) d z = 0 \displaystyle \int_0^0 f(z) \, dz= 0 does not hold.


If a = b a=b , then the integral becomes a a 1 2 1 ( x a ) 4 d y = y = x a 1 2 0 0 1 y 4 d y . \int_a^a \frac12 \frac1{(x-a)^4} \, dy \quad \stackrel{y=x-a}{=} \quad \frac12 \int_0^0 \dfrac1{y^4} \, dy. But this is (clearly) not a proper integral as it is undefined when y = 0 , y=0, and it diverges. Hence, the integral in question is only finite when a b a\ne b .

So I will only consider the case where a b . a\ne b. Let us transform the integrand to make it an even function. That is, let y = x a + b 2 y = x - \frac{a+b}2 , A = ( a b ) / 2 ( b a ) / 2 1 ( y + b a 2 ) 4 + ( y + a b 2 ) 4 d y A = \int_{(a-b)/2}^{(b-a)/2} \dfrac1{\left(y + \frac {b-a}2 \right)^4 + \left(y + \frac{a-b}2 \right)^4} \, dy Let c = b a 2 . c = \frac{b-a}2 . The integral simplifies to A = c c 1 ( y c ) 4 + ( y + c ) 4 d y = 2 0 c 1 ( y c ) 4 + ( y + c ) 4 d y A = \int_{-c}^c \dfrac1{ (y-c)^4 + (y+c)^4} \, dy = 2 \int_0^c \dfrac1{ (y-c)^4 + (y+c)^4 } \, dy because the integrand is an even function. Let's try to simplify the integrand even further, A = 0 c 1 y 4 + 6 c 2 y 2 + c 4 d y 0 = 0 c 1 ( y 2 + 3 c 2 ) 2 8 c 4 d y 0 = 0 c 1 y 2 + [ c ( 2 + 1 ) ] 2 1 y 2 + [ c ( 2 1 ) ] 2 d y Apply partial fractions 0 = 1 4 2 c 2 [ 1 c ( 2 + 1 ) tan 1 ( y c ( 2 + 1 ) ) + 1 c ( 2 1 ) tan 1 ( y c ( 2 1 ) ) ] y = 0 y = c 0 = 1 4 2 c 3 [ 1 2 + 1 tan 1 ( 1 2 + 1 ) + 1 2 1 tan 1 ( 1 2 1 ) ] \newcommand{\intt} {\displaystyle \int_0^c} \newcommand{\bignewline} {\\ \phantom 0 \\ } \begin{array} { r c l l} A &=& \intt \dfrac1{y^4 + 6c^2 y^2 + c^4} \, dy \bignewline &=& \intt \dfrac1{ (y^2 + 3c^2)^2 - 8c^4 } \, dy \bignewline &=& \intt \dfrac1{ y^2 + [c(\sqrt2 + 1)]^2 } \cdot \dfrac1{ y^2 + [c(\sqrt2 - 1)]^2 } \, dy & \text{ Apply partial fractions } \bignewline &=& \dfrac1{4\sqrt2 c^2} \left [ - \dfrac1{c(\sqrt2 + 1)} \tan^{-1} \left( \dfrac y{c(\sqrt2 + 1)} \right) + \dfrac1{c(\sqrt2 - 1)} \tan^{-1} \left( \dfrac y{c(\sqrt2 - 1)} \right) \right ]_{y=0}^{y = c} \bignewline &=& \dfrac1{4\sqrt2 c^3} \left [ -\dfrac1{\sqrt2 + 1} \tan^{-1} \left( \dfrac1{\sqrt2 + 1} \right) +\dfrac1{\sqrt2 - 1} \tan^{-1} \left( \dfrac1{\sqrt2 - 1} \right) \right ]\end{array} Rationalize the denominators of each of the fractions above gives 1 2 ± 1 = 2 1 tan 1 ( 1 2 ± 1 ) = π 4 ± π 8 \frac1{\sqrt2 \pm 1} = \sqrt2 \mp 1 \quad\implies\quad \tan^{-1} \left( \frac1{\sqrt2 \pm 1} \right) = \frac\pi4 \pm \frac \pi8 We can further simplify A A to A = 1 4 2 c 3 ( 2 + 2 ) π 4 = π 2 1 + 2 ( b a ) 3 A = \frac1{4\sqrt2 c^3} \cdot \frac{(2+\sqrt2)\pi}4 = \frac\pi2 \cdot \frac{1+\sqrt2}{(b-a)^3} The answer is 1 0 4 π 2 ( 2 + 1 ) = 37922 . \left \lfloor 10^4 \cdot \dfrac{\pi}{2}(\sqrt2 + 1) \right \rfloor = \boxed{37922} .

Indeed, if we take the limit as b a + b\to a^+ , the integral does diverge to infinity, lim b a + A = lim b a + π 2 1 + 2 ( b a ) 3 . \lim_{b\to a^+} A = \lim_{b\to a^+} \frac\pi2 \cdot \frac{1+\sqrt2}{(b-a)^3} \to \infty .

“When a = b a=b , then the integral is trivially zero.” This is not true, and certainly not trivially. “When a = b a=b , the integral is undefined” is correct. Note that the integration range tends to 0 0 as b a b\to a , but the integrand diverges to \infty . Indeed, as b a b\to a , the integral diverges to \infty .

Mark Hennings - 5 months, 4 weeks ago

Log in to reply

I've been staring at your comment for over 2 hours now. I must be missing something obvious here...

If both the lower limit and upper limit are finite and equal to each other, doesn't that automatically makes the integral equal to 0? Regardless of whether the integrand is defined or not?

(I) : I agree that lim b 0 + 0 b 1 x d x . \displaystyle \lim_{b\to 0^+} \int_0^b \dfrac1x \, dx \to \infty .

But I believed the following 2 points are true:

(II) : lim b a + a b 1 x d x = 0 \displaystyle \lim_{b\to a^+} \int_a^b \dfrac1x \, dx =0 for a 0. a \ne 0 .

(III) : 0 0 1 x d x = 0. \displaystyle \int_0^0 \dfrac1x \, dx =0.

(IV) : So for the original integral, if we let a = b a=b , then it becomes A = a a 2 ( x a ) 4 d x = 0 0 2 y 4 d y = 0 A = \int_a^a \dfrac2{(x-a)^4} \, dx = \int_0^0 \dfrac2{y^4 } \, dy = 0

"based on my corollaries above".

So either my corollaries are not all correct, and that I need to punish myself, or we're using different semantics/definitions here.


(V) : To clarify, for a < b a<b , my interpretation of a b f ( x ) d x \displaystyle \int_a^b f(x) \, dx is the difference between the areas found for ( y > 0 , a < x < b ) (y>0, a<x<b) and ( y < 0 , a < x < b ) (y<0, a<x<b) .

(VI) : For example, 0 3 π / 2 sin x d x = 2 1 = 1 \displaystyle \int_0^{3\pi/2} \sin x \, dx = 2 - 1 = 1 because the area of region above and below the x x -axis for 0 < x < 3 π 2 0<x<\frac{3\pi}2 are 2 and 1, respectively.

(VII) : On the other hand, we can both agree that 0 1 x d x = 2 3 \displaystyle \int_0^{1} \sqrt x \, dx = \frac23 .

(VIII) : And, since the integrand x \sqrt x is only defined for x 0 x\geqslant 0 , then there is no "region formed" for x < 0 x<0 . Thus, 1 0 x d x = 0 \displaystyle \int_{-1}^0 \sqrt{x} \, dx = 0 , Or more generally, p q x d x = 0 \displaystyle \int_p^q \sqrt{x} \, dx = 0 for all negative numbers p p and q q ....

(IX) : But, this disagrees with WolframAlpha's output . I guessed WolframAlpha doesn't strictly restrict the integrand to a real value output.


If you could pinpoint and rectify my fallacy (plural?) above, please let me know.


By the way, love your solution, I don't know how you managed to motivate that substitution x = a cos 2 θ + b sin 2 θ x = a\cos^2 \theta + b \sin^2 \theta , but it's simply elegant.

Pi Han Goh - 5 months, 3 weeks ago

Log in to reply

The text you are quoting from is assuming that f f is well-defined. If the book is about Riemann integration, it is assuming that f f is bounded. Basically, there is nothing to say about trying to integrate an infinite function on an interval of zero width - it is undefined.

That said, the physicists are quite happy to have a "function" that is infinite over an interval of zero width, and zero elsewhere, but has integral 1 1 - consider the Dirac delta "function". As a mathematician, I regard the Dirac delta function more precisely as a distribution: the linear map from continuous functions on R \mathbb{R} to R \mathbb{R} that sends the function f f to f ( 0 ) f(0) .

The physicists like it as a "function".

  • It makes notation simpler, if the maths dodgier.
  • If is the "limit" as n n \to \infty of the function that is equal to 2 n 2n for 1 n < x < 1 n -\tfrac1n < x < \tfrac1n , and zero elsewhere. Thus it is a good idealisation of a quantity that is extremely large over a very small range, but nonetheless has measurable effect - the electrostatic potential of an atom in a lattice, for example.
  • Many equations using it can be solved exactly, which could not for a more realistic function

Mark Hennings - 5 months, 3 weeks ago

Log in to reply

@Mark Hennings Wow, I'm not astute at all, because I failed to notice that the link I've shared above only applies to DEFINITE integrals. This is a monumental failure on my part.

I've rectified my solution.

Thank you for your swift and detailed response as usual. I didn't realize that the Dirac delta "function" is also related to this conversation (indirectly).

Also, thank you for your response to the clever substitution x = a cos 2 θ + b sin 2 θ x = a\cos^2\theta + b\sin^2 \theta . You're literally a godsend.

Pi Han Goh - 5 months, 3 weeks ago

Log in to reply

@Pi Han Goh Replace "definite" with "proper", and it will be a better correction.

Mark Hennings - 5 months, 3 weeks ago

Log in to reply

@Mark Hennings Done. Mad respect.

Pi Han Goh - 5 months, 3 weeks ago

@Mark Hennings On a related note, I finally discovered why I failed to solve the limit below.

Question: lim x 0 0 sin x sin ( 1 t ) cos ( t 2 ) d t x = 0 \lim \limits_{x\to0} \dfrac{ \int \limits_0^{\sin x} \sin\left(\frac1t\right) \cos(t^2) \, dt } x = 0

My wrong attempt: Set x = 0 x=0 and realize that the numerator is in the form 0 0 \int_0^0 , which I wrongly concluded that it must equal to 0, so I then used Lhopital rule followed by Fundamental theorem of calculus part 1, which lead me to wrong answer of "limit does not exist."

Once again, you're truly a sagacious teacher.


I got the limit here .

The solution is here (second page) . If you can't view the solution for whatever reason, press this link .

You might like this Instagram page though.... but they don't have the same type of interaction as Brilliant.

Pi Han Goh - 5 months, 3 weeks ago

The substitution x = a cos 2 θ + b sin 2 θ x = a\cos^2\theta + b\sin^2\theta is a pretty standard one for these problems. It is the composition of the substitutions y = x a y = x-a and y = ( b a ) sin 2 θ y = (b-a)\sin^2\theta . The first of these makes the integral a function of b a b-a , and the second isolates b a b-a from the integration.

Mark Hennings - 5 months, 3 weeks ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...