NVAMediumJEE 2023Linear Differential Equations

JEE Mathematics 2023 Question with Solution

Let f:RRf: \mathbb{R} \to \mathbb{R} be a differentiable function such that

f(x)+f(x)=02f(t)dt.f'(x) + f(x) = \int_{0}^{2} f(t) \, dt.

If f(0)=e2f(0) = e^{-2}, then

2f(0)f(2) is equal to: 2f(0) - f(2) \text{ is equal to: }

Answer

Correct answer:1

Step-by-step solution

Standard Method

Given:

f(x)+f(x)=02f(t)dtf'(x) + f(x) = \int_{0}^{2} f(t) \, dt

and f(0)=e2f(0) = e^{-2}.

Find: 2f(0)f(2)2f(0) - f(2).

Let

k=02f(t)dtk = \int_{0}^{2} f(t) \, dt

which is a constant. Then the differential equation becomes

dydx+y=k\frac{dy}{dx} + y = k

Multiplying by the integrating factor exe^x,

yex=kex+cy e^x = k e^x + c

So,

y=k+cexy = k + c e^{-x}

Using f(0)=e2f(0) = e^{-2},

e2=k+ce^{-2} = k + c

Hence,

c=e2kc = e^{-2} - k

Therefore,

f(x)=k+(e2k)exf(x) = k + (e^{-2} - k)e^{-x}

Now use the definition of kk:

k=02(k+(e2k)ex)dxk = \int_{0}^{2} \left(k + (e^{-2} - k)e^{-x}\right) \, dx

Solving this gives

k=e21k = e^{-2} - 1

Thus,

f(x)=(e21)+exf(x) = (e^{-2} - 1) + e^{-x}

Evaluating at x=2x=2,

f(2)=2e21f(2) = 2e^{-2} - 1

and

f(0)=e2f(0) = e^{-2}

Therefore,

2f(0)f(2)=12f(0) - f(2) = 1

So the required answer is 11.

Using the constant integral term explicitly

Given:

f(x)+f(x)=02f(t)dtf'(x) + f(x) = \int_{0}^{2} f(t) \, dt

with f(0)=e2f(0)=e^{-2}.

Find: 2f(0)f(2)2f(0)-f(2).

Since the right-hand side does not depend on xx, denote it by

k=02f(t)dtk = \int_{0}^{2} f(t) \, dt

Then

f(x)+f(x)=kf'(x) + f(x) = k

This is a linear first-order differential equation. Its solution is

f(x)=k+cexf(x) = k + c e^{-x}

Using the initial condition,

f(0)=k+c=e2f(0)=k+c=e^{-2}

so

c=e2kc=e^{-2}-k

Hence,

f(x)=k+(e2k)exf(x)=k+(e^{-2}-k)e^{-x}

Now integrate from 00 to 22:

k=02f(x)dx=02[k+(e2k)ex]dxk=\int_{0}^{2} f(x) \, dx = \int_{0}^{2} \left[k+(e^{-2}-k)e^{-x}\right] \, dx

That is,

k=2k+(e2k)02exdxk=2k+(e^{-2}-k)\int_{0}^{2} e^{-x} \, dx

Also,

02exdx=1e2\int_{0}^{2} e^{-x} \, dx = 1-e^{-2}

Therefore,

k=2k+(e2k)(1e2)k=2k+(e^{-2}-k)(1-e^{-2})

which simplifies to the value stated in the solution:

k=e21k=e^{-2}-1

So,

f(x)=(e21)+exf(x)=(e^{-2}-1)+e^{-x}

Now,

f(2)=(e21)+e2=2e21f(2)=(e^{-2}-1)+e^{-2}=2e^{-2}-1

and

2f(0)=2e22f(0)=2e^{-2}

Thus,

2f(0)f(2)=2e2(2e21)=12f(0)-f(2)=2e^{-2}-(2e^{-2}-1)=1

Therefore, the required value is 11.

Common mistakes

  • Treating 02f(t)dt\int_{0}^{2} f(t) \, dt as a function of xx. It is a constant because the limits are fixed. First set it equal to a constant such as kk, then solve the linear differential equation.

  • Using the wrong integrating factor. For dydx+y=k\frac{dy}{dx}+y=k, the integrating factor is exe^x, not exe^{-x}. Using the wrong factor gives an incorrect general solution.

  • Applying the initial condition incorrectly. After obtaining f(x)=k+cexf(x)=k+ce^{-x}, substitute x=0x=0 carefully to get k+c=e2k+c=e^{-2}. Missing that e0=1e^{0}=1 leads to the wrong constant.

Practice more Linear Differential Equations questions

Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.

Related questions