Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Miscellaneous · Q40 (MCQ): ∫abxf(x) dx\int_a^b x f(x)\,dx when f(a+b−x)=f(x)f(a+b-x)=f(x)

Miscellaneous ExerciseProperties of definite integrals (P3) · Miscellaneous Exercise
The question

Choose the correct answer.

If f(a+b−x)=f(x)f(a + b - x) = f(x)⁠, then ∫abx f(x) dx\displaystyle\int_a^b x\,f(x)\,dx is equal to

(A) a+b2∫abf(b−x) dx\dfrac{a+b}{2}\displaystyle\int_a^b f(b - x)\,dx    (B) a+b2∫abf(b+x) dx\dfrac{a+b}{2}\displaystyle\int_a^b f(b + x)\,dx
(C) b−a2∫abf(x) dx\dfrac{b-a}{2}\displaystyle\int_a^b f(x)\,dx    (D) a+b2∫abf(x) dx\dfrac{a+b}{2}\displaystyle\int_a^b f(x)\,dx

Exam answer

Let I=∫abx f(x) dxI = \displaystyle\int_a^b x\,f(x)\,dx⁠. Using ∫abg(x) dx\displaystyle\int_a^b g(x)\,dx =∫abg(a+b−x) dx= \displaystyle\int_a^b g(a + b - x)\,dx and f(a+b−x)=f(x)f(a + b - x) = f(x)⁠,

I=∫ab(a+b−x)f(x) dx=(a+b)∫abf(x) dx−I⇒ 2I=(a+b)∫abf(x) dx\begin{aligned} I &= \int_a^b (a + b - x)f(x)\,dx \\ &= (a + b)\int_a^b f(x)\,dx - I \\ \Rightarrow\ 2I &= (a + b)\int_a^b f(x)\,dx \end{aligned}

Answer: (D) a+b2∫abf(x) dx\dfrac{a + b}{2}\displaystyle\int_a^b f(x)\,dx

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Property P3 says an integral over [a,b][a, b] is unchanged when xx is replaced by a+b−xa + b - x (reading the interval backwards). Doing that to I=∫abxf(x) dxI = \int_a^b x f(x)\,dx changes the factor xx into a+b−xa + b - x but, by the given symmetry, leaves ff alone. So II =∫ab(a+b−x)f(x) dx= \int_a^b (a + b - x)f(x)\,dx =(a+b)∫abf−I= (a + b)\int_a^b f - I⁠, and solving gives option (D).

Given, to find, and the plan
Given
A function ff⁠, continuous on [a,b][a, b] (needed for the integrals to make sense), with f(a+b−x)=f(x)f(a + b - x) = f(x) for all xx in [a,b][a, b]⁠.
To find
Which option equals I=∫abx f(x) dxI = \int_a^b x\,f(x)\,dx⁠.
Plan
(1) Read the condition as a symmetry. (2) Apply P3. (3) Solve for II⁠. (4) Test every option on a concrete example.

Basics you need

1Property P3 (Section 7.10)

∫abg(x) dx=∫abg(a+b−x) dx\int_a^b g(x)\,dx = \int_a^b g(a + b - x)\,dx for any gg continuous on [a,b][a, b]⁠. It is proved with the substitution t=a+b−xt = a + b - x⁠. Lesson: properties of definite integrals

2Mirror symmetry

xx and a+b−xa + b - x are mirror images in the midpoint a+b2\frac{a+b}{2} of [a,b][a, b]⁠. So f(a+b−x)=f(x)f(a + b - x) = f(x) says the graph of ff is symmetric about the line x=a+b2x = \frac{a+b}{2}⁠. Basics: symmetry and mirror images

3Linearity

∫ab(c−x)f(x) dx\int_a^b (c - x)f(x)\,dx =c∫abf(x) dx−∫abxf(x) dx= c\int_a^b f(x)\,dx - \int_a^b x f(x)\,dx for a constant cc⁠. Lesson: definite integrals

Solution

  1. What the condition means

    The midpoint of xx and a+b−xa + b - x is x+(a+b−x)2=a+b2\frac{x + (a + b - x)}{2} = \frac{a+b}{2}⁠, the midpoint of [a,b][a, b]⁠. So the condition f(a+b−x)=f(x)f(a + b - x) = f(x) says that ff takes equal values at points placed symmetrically about a+b2\frac{a+b}{2}⁠.

    Seeing the condition as a symmetry suggests the answer: a symmetric weight ff balances at its centre a+b2\frac{a+b}{2}⁠, so "xx weighted by ff" should average to a+b2\frac{a+b}{2}⁠. Option (D) says exactly that: ∫xf=a+b2∫f\int x f = \frac{a+b}{2}\int f⁠. The next steps prove it.
  2. Apply P3 to g(x)=x f(x)g(x) = x\,f(x)

    I=∫abx f(x) dx=∫ab(a+b−x) f(a+b−x) dx=∫ab(a+b−x) f(x) dx.\begin{aligned} I &= \int_a^b x\,f(x)\,dx \\ &= \int_a^b (a + b - x)\,f(a + b - x)\,dx \\ &= \int_a^b (a + b - x)\,f(x)\,dx . \end{aligned}
    The second line is P3: every xx in g(x)=xf(x)g(x) = x f(x) is replaced by a+b−xa + b - x⁠, including the one inside ff⁠. The third line uses the given condition f(a+b−x)=f(x)f(a + b - x) = f(x)⁠. P3 applies because gg is continuous on [a,b][a, b] (a product of continuous functions).
  3. Split and solve for II

    I=(a+b)∫abf(x) dx−∫abx f(x) dx=(a+b)∫abf(x) dx−I.\begin{aligned} I &= (a + b)\int_a^b f(x)\,dx \\ &\quad - \int_a^b x\,f(x)\,dx \\ &= (a + b)\int_a^b f(x)\,dx - I . \end{aligned}

    Adding II to both sides, 2I=(a+b)∫abf(x) dx2I = (a + b)\int_a^b f(x)\,dx⁠, so

    ∫abx f(x) dx=a+b2∫abf(x) dx.\int_a^b x\,f(x)\,dx = \frac{a + b}{2}\int_a^b f(x)\,dx .

    This is option (D).

    The original integral reappears on the right with a minus sign, which lets us solve for it like an unknown in an equation (the same trick as in Examples 30 and 32 of Section 7.10). II is a finite number because xf(x)x f(x) is continuous on [a,b][a, b]⁠.
    Linearity of the definite integral. Lesson: definite integrals
  4. Examine every option on a concrete example

    Take a=1a = 1⁠, b=3b = 3 and f(x)=(x−2)2f(x) = (x - 2)^2⁠. The condition holds: f(4−x)=(2−x)2=(x−2)2=f(x)f(4 - x) = (2 - x)^2 = (x - 2)^2 = f(x)⁠. Then

    I=∫13x(x−2)2 dx=∫−11(u+2)u2 du=0+2⋅23=43,\begin{aligned} I &= \int_1^3 x(x - 2)^2\,dx \\ &= \int_{-1}^{1}(u + 2)u^2\,du \\ &= 0 + 2\cdot\tfrac23 = \tfrac43 , \end{aligned}

    with u=x−2u = x - 2 (the u3u^3 part is odd and gives 0 by P7 (ii)). Also ∫13(x−2)2 dx=23\int_1^3 (x - 2)^2\,dx = \frac23 and a+b2=2\frac{a+b}{2} = 2⁠, b−a2=1\frac{b-a}{2} = 1⁠.

    • (A) 2∫13f(3−x) dx2\int_1^3 f(3 - x)\,dx =2∫13(1−x)2 dx= 2\int_1^3 (1 - x)^2\,dx =2⋅83= 2\cdot\frac83 =163= \frac{16}{3} ≠43\ne \frac43⁠. Wrong.
    • (B) 2∫13f(3+x) dx2\int_1^3 f(3 + x)\,dx =2∫13(x+1)2 dx= 2\int_1^3 (x + 1)^2\,dx =2⋅563= 2\cdot\frac{56}{3} =1123= \frac{112}{3} ≠43\ne \frac43⁠. Wrong.
    • (C) 1⋅23=23≠431\cdot\frac23 = \frac23 \ne \frac43⁠. Wrong. (It has the length b−ab - a where the midpoint sum a+ba + b belongs.)
    • (D) 2⋅23=432\cdot\frac23 = \frac43 ✓. Correct, as Step 3 proves in general.
    One example where an option gives the wrong number is enough to reject it, because the option claims to hold for every such ff⁠. A constant ff would not do as the test: with f=1f = 1⁠, (A) and (B) also give the right value, since then f(b−x)=f(b+x)=f(x)f(b - x) = f(b + x) = f(x)⁠; only (C) would be rejected. A non-constant symmetric ff and a≠0a \ne 0 are needed to separate (A) from (D). (When a=0a = 0⁠, P4 makes (A) the same as (D).)
    ∫13(1−x)2dx\int_1^3(1 - x)^2dx =[(x−1)33]13= \big[\frac{(x-1)^3}{3}\big]_1^3 =83= \frac83⁠; ∫13(x+1)2dx=64−83=563\int_1^3(x+1)^2dx = \frac{64 - 8}{3} = \frac{56}{3}⁠.
Result

If f(a+b−x)=f(x)f(a + b - x) = f(x)⁠, then ∫abx f(x) dx=a+b2∫abf(x) dx.\int_a^b x\,f(x)\,dx = \frac{a + b}{2}\int_a^b f(x)\,dx . The correct option is (D). (Textbook answer: D.)

Check it with numbers

For f(x)=(x−2)2f(x) = (x - 2)^2 on [1,3][1, 3]⁠, numerical integration (adaptive quadrature) gives ∫13xf(x) dx≈1.3333333333\int_1^3 x f(x)\,dx \approx 1.3333333333 and ∫13f(x) dx≈0.6666666667\int_1^3 f(x)\,dx \approx 0.6666666667⁠; twice the second is 43≈1.3333333333\frac43 \approx 1.3333333333⁠, the first ✓. The options compute to (A) 5.3333333333, (B) 37.3333333333, (C) 0.6666666667, (D) 1.3333333333.

A second example, f(x)=sin⁡xf(x) = \sin x on [0,π][0, \pi] (where sin⁡(π−x)=sin⁡x\sin(\pi - x) = \sin x⁠): ∫0πxsin⁡x dx=π≈3.1415927\int_0^\pi x\sin x\,dx = \pi \approx 3.1415927⁠, and π2∫0πsin⁡x dx=π2⋅2=π\frac{\pi}{2}\int_0^\pi\sin x\,dx = \frac{\pi}{2}\cdot 2 = \pi ✓.

Common mistakes
  1. Applying P3 only to ff and forgetting to replace the factor xx by a+b−xa + b - x⁠.
  2. Confusing a+ba + b with b−ab - a: the symmetry is about the midpoint a+b2\frac{a+b}{2}⁠, not the half-length b−a2\frac{b-a}{2}⁠.
  3. Testing with a constant ff: it cannot tell (A) or (B) from (D).
What to take away
  1. If ff is symmetric about the midpoint of [a,b][a, b]⁠, then ∫abxf(x) dx=a+b2∫abf(x) dx\int_a^b x f(x)\,dx = \frac{a+b}{2}\int_a^b f(x)\,dx⁠.
  2. The special case a=0a = 0⁠, b=πb = \pi⁠, f(π−x)=f(x)f(\pi - x) = f(x) gives ∫0πxf(x) dx=π2∫0πf(x) dx\int_0^\pi x f(x)\,dx = \frac{\pi}{2}\int_0^\pi f(x)\,dx⁠, used in Example 30.

Every fact used, and where it comes from

FactUsed inSource
P3: ∫abg(x) dx=∫abg(a+b−x) dx\int_a^b g(x)\,dx = \int_a^b g(a + b - x)\,dxStep 2Section 7.10, property P3 (Lesson: properties)
Linearity of the definite integralStep 3Properties (III), (IV), Section 7.2.1, with Theorem 2, Section 7.8.3
Solving for the integral that reappearsStep 3Examples 30 and 32, Section 7.10
P7 (ii); P4Step 4Section 7.10
All valuesStep 4, CheckRecomputed (exact sympy and mpmath quadrature) in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →