JEE Main 2026 · 28 January · evening · Single correct · +4 / −1

Let y=y(x) be the solution of the differential equation xdy/dx-y=x²cot x, x∈ (0,π). If y(π/2)=π/2, then
6y(π/6)-8y(π/4) is equal to :

  1. (a) -3π
  2. (b) 3π
  3. (c) -π
  4. (d) π
Answer and solution

Answer (c) -π

Solution

Maths sir · 4 steps

Divide by x to get the standard linear form, and the integrating factor 1/x makes the left side d(y/x).

  1. Standard form. Divide by x: dy/dx - 1/xy = x cot x. Here P = -1/x, so the integrating factor is e⁻ˡⁿˣ = 1/x, valid since x > 0.

    d/dx(y/x) = cot x ⇒ y/x = ln(sin x) + C

  2. Find C. At x = π/2, y/x = 1 and ln(sin π/2) = ln 1 = 0, so C = 1. The solution is y = x(1 + ln sin x).
  3. Put in values. 6y(π/6) = π(1 + ln 1/2) = π - π ln 2. Also 8y(π/4) = 2π(1 + ln 1/√2) = 2π - π ln 2.
  4. So. (π - π ln 2) - (2π - π ln 2) = -π. The ln 2 terms cancel, and the answer is (c).

The idea to keep. For an equation like x y' - y = f(x), divide by x first. The integrating factor 1/x turns the left side into d/dx(y/x), which you can integrate in one line.

Answer from the NTA final answer key. Solution by PrepWiser.

Study Differential Equations

Asked about 200 times in JEE Main since 2020. This question is from 2026.