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
If $f^{\prime}(x)=k(\cos x+\sin x)$ and $f(0)=9, f\left(\frac{\pi}{2}\right)=15$, then $f(x)=$
MathematicsIndefinite IntegrationMHT CETMHT CET 2020 (12 Oct Shift 2)
Options:
  • A $3(\sin x-\cos x)+12$
  • B $3(\sin x-\cos x)-12$
  • C $3(\sin x+\cos x)+12$
  • D $3(\cos x+\sin x)-12$
Solution:
2580 Upvotes Verified Answer
The correct answer is: $3(\sin x-\cos x)+12$
$f^{\prime}(x)=k(\cos x+\sin x)$
On integrating both sides, we get
$f(x)=k(\sin x-\cos x)+C$
$f(0)=k(0-1)+C$
$f(0)=-k+C \Rightarrow-k+C=9$ ...(1)
Also $f\left(\frac{\pi}{2}\right)=k\left(\sin \frac{\pi}{2}-\cos \frac{\pi}{2}\right)+C$
$15=k+C$ ...(2)
Adding (1) $\&(2)$ we get
$2 C=24 \Rightarrow C=12 \Rightarrow k=3$
$\therefore f(x)=3(\sin x-\cos x)+12$

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.