GateAI
Calculus

GATE CSE 2026 Set 1 · Q32

NAT1 markEasy

Time

Consider the function f ⁣:R→Rf\colon \mathbb{R} \to \mathbb{R} defined as follows: f(x)={c1ex−c2log⁡e(1x),if x>03otherwisef(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)

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 3

Calculus

For f(x)f(x) to be continuous at x=0x = 0, the right-hand limit must equal the value of the function at x=0x = 0:

lim⁡x→0+f(x)=f(0)=3\lim_{x \to 0^+} f(x) = f(0) = 3

For x>0x > 0, we have:

f(x)=c1ex−c2log⁡e(1x)=c1ex+c2log⁡e(x)f(x) = c_1 e^x - c_2 \log_e\left(\frac{1}{x}\right) = c_1 e^x + c_2 \log_e(x)

As x→0+x \to 0^+:

  • ex→e0=1e^x \to e^0 = 1

  • log⁡e(x)→−∞\log_e(x) \to -\infty

For lim⁡x→0+f(x)\lim_{x \to 0^+} f(x) to exist and be finite, the unbounded term must vanish, which requires:

c2=0c_2 = 0

With c2=0c_2 = 0:

lim⁡x→0+f(x)=lim⁡x→0+c1ex=c1(1)=c1\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} c_1 e^x = c_1(1) = c_1

Equating to $f(0) = 3$:

c1=3c_1 = 3

Therefore:

c1+c2=3+0=3c_1 + c_2 = 3 + 0 = 3

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Calculus previous year question is Q32 of the GATE CSE 2026 Set 1 paper. Find more GATE CSE PYQs on Calculus in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Calculus PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Calculus in GATE CSE

Calculus has 40 GATE CSE PYQs across 25 papers from 2011 to 2026. 11 of them are 1-mark NAT questions like this one, and GATE CSE 2026 Set 1 has 2.

How GATE tests Calculus

More from GATE CSE 2026 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2026 Set 1 · Q32 · NAT

Consider the function f R → R defined as follows: f(x) = c1 ex - c2 loge ((1)/(x) ), & if x > 0 3 & otherwise where c1, c2 ∈ R. If f is continuous at x = 0, then c1 + c2 = … (answer in integer)

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.