GateAI
Calculus

GATE CSE 2025 Set 1 · Q31

NAT1 markEasy

Time

Consider the given function f(x)f(x). f(x)={ax+bfor x<1x3+x2+1for x≥1 f(x) = \begin{cases} ax + b & \text{for } x < 1 \\ x^3 + x^2 + 1 & \text{for } x \ge 1 \end{cases} If the function is differentiable everywhere, the value of bb must be ________. (rounded off to one decimal place)

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: -2

Calculus

For the piecewise function f(x)f(x) to be differentiable everywhere, it must be differentiable and continuous at the boundary point x=1x = 1.

1. Differentiability at x=1x = 1: The left-hand derivative (LHD) must equal the right-hand derivative (RHD) at x=1x = 1:

f′(1−)=ddx(ax+b)∣x=1=af^{\prime}(1^-) = \left. \frac{d}{dx}(ax + b) \right|_{x=1} = a
f′(1+)=ddx(x3+x2+1)∣x=1=(3x2+2x)∣x=1=3(1)2+2(1)=5f^{\prime}(1^+) = \left. \frac{d}{dx}(x^3 + x^2 + 1) \right|_{x=1} = \left. (3x^2 + 2x) \right|_{x=1} = 3(1)^2 + 2(1) = 5

Equating the derivatives gives:

a=5a = 5

2. Continuity at x=1x = 1: Since differentiability implies continuity, the left-hand limit must equal the value of the function at x=1x = 1:

lim⁡x→1−f(x)=f(1)\lim_{x \to 1^-} f(x) = f(1)
a(1)+b=(1)3+(1)2+1a(1) + b = (1)^3 + (1)^2 + 1
a+b=3a + b = 3

Substitute a=5a = 5 into the continuity equation:

5+b=3  ⟹  b=−25 + b = 3 \implies b = -2

Thus, the value of bb is -2.

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 Q31 of the GATE CSE 2025 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 it is the only one in GATE CSE 2025 Set 1.

How GATE tests Calculus

More from GATE CSE 2025 Set 1

Share this solution

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

GateAI solution cardGATE CSE 2025 Set 1 · Q31 · NAT

Consider the given function f(x). f(x) = ax + b & for x < 1 x3 + x2 + 1 & for x ≥ 1 If the function is differentiable everywhere, the value of b must be … (rounded off to one decimal place)

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.