Question

Consider the given function f(x)f(x).

f(x)={ax+bfor x<1x3+x2+1for x≥1f(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)

Official answer and solution
Accepted answers
-2.1 to -1.9
From
Official GATE 2025 answer key

Solution

Enforce both continuity and equality of left-hand and right-hand derivatives at x=1x = 1.

For f(x)f(x) to be differentiable at x=1x = 1, it must be both continuous and have equal left-hand and right-hand derivatives at x=1x = 1:

  1. Equal derivatives at x=1x = 1:
    • Left-hand derivative: f−′(1)=af'_-(1) = a
    • Right-hand derivative: f+′(1)=(3x2+2x)∣x=1=3(1)2+2(1)=5f'_+(1) = \left.(3x^2 + 2x)\right|_{x=1} = 3(1)^2 + 2(1) = 5
    • Thus a=5a = 5.
  2. Continuity at x=1x = 1:
    • lim⁡x→1−(ax+b)=f(1)  ⟹  a(1)+b=13+12+1=3\lim_{x \to 1^-} (ax + b) = f(1) \implies a(1) + b = 1^3 + 1^2 + 1 = 3
    • Substituting a=5a = 5 gives 5+b=3  ⟹  b=−25 + b = 3 \implies b = -2.
Final answer

-2

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

Source

Paper
GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
Question
31 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.