QlarIITy

MathematicsJEE Main 2026 · 24 JanuaryInteger

If f(x)f(x) satisfies the relationf(x)=ex+∫01(y+xex)f(y) dyf(x) = e^x + \int_0^1 \left(y + xe^x\right) f(y)\ dy, then e+f(0)e + f(0) is equal to ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Definite integrals of the unknown function are constants, so the equation fixes ff up to a few numbers.

Concept refresher. A definite integral with constant limits is a number, so in

f(x)=g(x)+∫abK(x,y)f(y) dyf(x) = g(x) + \int_a^b K(x, y)f(y)\ dy

each part of the integral that does not depend on xx can be named as a constant, and ff then has a known form with unknown constants. Integration by parts gives

∫01yey dy=[yey−ey]01=1\int_0^1 ye^y\ dy = \left[ye^y - e^y\right]_0^1 = 1

Approach. Split the integral into A+BxexA + Bxe^x, integrate the resulting form of ff over [0,1][0, 1] to find AA, and evaluate e+f(0)=e+1+Ae + f(0) = e + 1 + A.

  1. Step 1: Name the constants

    The integrand (y+xex)f(y)(y + xe^x)f(y) splits into a part free of xx and a part with the factor xexxe^x:

    f(x)=ex+A+BxexA=∫01yf(y) dyB=∫01f(y) dy\begin{aligned} f(x) &= e^x + A + Bxe^x \\[4pt] A &= \int_0^1 yf(y)\ dy \\[4pt] B &= \int_0^1 f(y)\ dy \end{aligned}
  2. Step 2: Integrate f over the interval

    By the definition of BB, integrating the form of ff from 00 to 11 must give BB back:

    B=∫01(ey+A+Byey)dy=(e−1)+A+B⋅1\begin{aligned} B &= \int_0^1 \left(e^y + A + Bye^y\right) dy \\[4pt] &= (e - 1) + A + B \cdot 1 \end{aligned}

    The terms in BB cancel, so A=1−eA = 1 - e.

  3. Step 3: Evaluate the expression

    At x=0x = 0 the term BxexBxe^x vanishes and e0=1e^0 = 1, so f(0)=1+A=2−ef(0) = 1 + A = 2 - e and

    e+f(0)=e+2−e=2e + f(0) = e + 2 - e = 2

Answer. 2

Sanity check. The second condition A=∫01yf(y) dy=1+A2+B(e−2)A = \int_0^1 yf(y)\ dy = 1 + \frac{A}{2} + B(e - 2) fixes B=e+12(2−e)≈−2.59B = \frac{e + 1}{2(2 - e)} \approx -2.59, a finite value, so a function of the assumed form exists and the answer 22 does not depend on BB.

Common wrong answers

  • 1: Taking ∫01ey dy=e\int_0^1 e^y\ dy = e gives A=−eA = -e and e+f(0)=e+1−e=1e + f(0) = e + 1 - e = 1; the integral is e−1e - 1, so A=1−eA = 1 - e and the answer is 22.
  • 0: Evaluating ∫01ey dy\int_0^1 e^y\ dy as e+1e + 1 gives A=−1−eA = -1 - e and e+f(0)=0e + f(0) = 0; the lower limit contributes −e0-e^0, so the integral is e−1e - 1.
  • 3: 33 would need f(0)=3−ef(0) = 3 - e, that is A=2−eA = 2 - e; but integrating ff over [0,1][0, 1] forces A=1−eA = 1 - e because the terms in BB cancel.

Key takeaway

The trap. Evaluating ∫01ey dy\int_0^1 e^y\ dy as ee and losing the −1-1 from the lower limit.

How toppers think. They notice that only AA is needed for f(0)f(0) and pick the condition that gives AA alone.

Remember. ∫01yey dy=1\int_0^1 ye^y\ dy = 1 and ∫01ey dy=e−1\int_0^1 e^y\ dy = e - 1.

More on Fundamental Theorem of Calculus