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 :
- (a) -3π
- (b) 3π
- (c) -π
- (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).
- 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
- 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).
- Put in values. 6y(π/6) = π(1 + ln 1/2) = π - π ln 2. Also 8y(π/4) = 2π(1 + ln 1/√2) = 2π - π ln 2.
- 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.