Join the Most Relevant JEE Main 2025 Test Series & get 99+ percentile! Join Now
Search any question & find its solution
Question: Answered & Verified by Expert
Let y=y(x) be the solution of the differential equation dy dx=2y+2sinx-5x-2cosx such that y(0)=7. Then y(π) is equal to
MathematicsDifferential EquationsJEE MainJEE Main 2021 (27 Aug Shift 1)
Options:
  • A 7eπ2+5
  • B eπ2+5
  • C 2eπ2+5
  • D 3eπ2+5
Solution:
2311 Upvotes Verified Answer
The correct answer is: 2eπ2+5

dydx-2xy=22sin x-5x-2cos x

IF=e-x2

So, y e-x2=e-x22x2sin x-5-2cos x dx

y·e-x2=e-x25-2sinx+C

y=5-2 sinx+C·ex2

Given at x=0, y=7

7=5+C

C=2

So, y=5-2 sin x+2ex2

Now at x=π

y=5+2eπ2

Looking for more such questions to practice?

Download the MARKS App - The ultimate prep app for IIT JEE & NEET with chapter-wise PYQs, revision notes, formula sheets, custom tests & much more.