Question

If f(x)=Rsin⁡(πx2)+Sf(x) = R \sin\left(\frac{\pi x}{2}\right) + S, f′(12)=2f'\left(\frac{1}{2}\right) = \sqrt{2} and ∫01f(x) dx=2Rπ\int_0^1 f(x) \, dx = \frac{2R}{\pi}, then the constants RR and SS are, respectively

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2017 answer key

Solution

Differentiate f(x)f(x) and equate it to f′(1/2)=2f'(1/2) = \sqrt{2} to find RR, then integrate f(x)f(x) from 0 to 1 to find SS.

Given f(x)=Rsin⁡(πx2)+Sf(x) = R \sin\left(\frac{\pi x}{2}\right) + S.
Compute the first derivative using the chain rule:

f′(x)=R⋅π2cos⁡(πx2)f'(x) = R \cdot \frac{\pi}{2} \cos\left(\frac{\pi x}{2}\right)

Evaluate at x=1/2x = 1/2:

f′(12)=Rπ2cos⁡(π4)=Rπ2⋅12=Rπ22f'\left(\frac{1}{2}\right) = \frac{R\pi}{2} \cos\left(\frac{\pi}{4}\right) = \frac{R\pi}{2} \cdot \frac{1}{\sqrt{2}} = \frac{R\pi}{2\sqrt{2}}

Equating to the given value 2\sqrt{2}:

Rπ22=2  ⟹  Rπ=4  ⟹  R=4π\frac{R\pi}{2\sqrt{2}} = \sqrt{2} \implies R\pi = 4 \implies R = \frac{4}{\pi}

Now compute the definite integral:

∫01f(x) dx=∫01[Rsin⁡(πx2)+S]dx=[−R⋅2πcos⁡(πx2)+Sx]01\int_0^1 f(x) \, dx = \int_0^1 \left[ R \sin\left(\frac{\pi x}{2}\right) + S \right] dx = \left[ -R \cdot \frac{2}{\pi} \cos\left(\frac{\pi x}{2}\right) + Sx \right]_0^1

Evaluating at the upper and lower limits:

=(−2Rπcos⁡(π2)+S)−(−2Rπcos⁡(0)+0)=(0+S)−(−2Rπ⋅1)=S+2Rπ= \left( -\frac{2R}{\pi} \cos\left(\frac{\pi}{2}\right) + S \right) - \left( -\frac{2R}{\pi} \cos(0) + 0 \right) = (0 + S) - \left( -\frac{2R}{\pi} \cdot 1 \right) = S + \frac{2R}{\pi}

We are given that ∫01f(x) dx=2Rπ\int_0^1 f(x) \, dx = \frac{2R}{\pi}. Therefore:

S+2Rπ=2Rπ  ⟹  S=0S + \frac{2R}{\pi} = \frac{2R}{\pi} \implies S = 0

Thus, R=4πR = \frac{4}{\pi} and S=0S = 0.

Final answer

C

Common trap

Forgetting the chain rule factor π/2\pi/2 when differentiating or integrating sin⁡(πx/2)\sin(\pi x / 2).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2017 Computer Science and Information Technology (CS) Session 2
Question
10 of 65, printed as CS Q.10
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.