Question

Consider the function f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} defined as follows:

f(x)={c1ex−c2log⁡e(1x),if x>03,otherwisef(x) = \begin{cases} c_1 e^x - c_2 \log_e\left(\frac{1}{x}\right), & \text{if } x > 0 \\ 3, & \text{otherwise} \end{cases}

where c1,c2∈Rc_1, c_2 \in \mathbb{R}.

If ff is continuous at x=0x = 0, then c1+c2=c_1 + c_2 = _________. (answer in integer)

Official answer and solution
Official answer
3
From
Official GATE 2026 answer key

Solution

Equate the right-hand limit lim⁡x→0+f(x)\lim_{x \to 0^+} f(x) with f(0)=3f(0) = 3.

For ff to be continuous at x=0x = 0, the right-hand limit must exist and equal f(0)=3f(0) = 3:

lim⁡x→0+f(x)=lim⁡x→0+(c1ex+c2ln⁡x)=3\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} \left(c_1 e^x + c_2 \ln x\right) = 3

Since lim⁡x→0+ex=1\lim_{x \to 0^+} e^x = 1 and lim⁡x→0+ln⁡x=−∞\lim_{x \to 0^+} \ln x = -\infty, the limit is finite if and only if c2=0c_2 = 0. Substituting c2=0c_2 = 0 gives:

lim⁡x→0+c1ex=c1=3\lim_{x \to 0^+} c_1 e^x = c_1 = 3

Therefore, c1+c2=3+0=3c_1 + c_2 = 3 + 0 = 3.

Final answer

3

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

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 1 (CS1)
Question
32 of 65
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.