GATE / CS ARCHIVE

SIMILAR QUESTIONS / ENGINEERING MATHEMATICS & OTHER TOPICS

Match one-sided limits or derivatives of piecewise functions

3 questions solved the same way, newest first. Back to Engineering Mathematics & Other Topics

1 mark · NAT
Report issue

Continuity with an unbounded logarithm

Calculus

Question 32, GATE 2026: For x>0, f(x)=c₁e^x−c₂ln(1/x); for x≤0, f(x)=3. The constants are real. Continuity at zero is required. Find c₁+c₂ as an integer.
Tap to enlarge
Answer & solution

Official answer: 3

Givens and goal

For x>0, f(x)=c₁ex−c₂ln(1/x); for x≤0, f(x)=3. The constants are real. Continuity at zero is required. Find c₁+c₂ as an integer.

Approach

Compare the right-hand limit with f(0), first eliminating any divergent contribution.

Step-by-step solution

1. Since f(0)=3 and f is constant 3 on the negative half-line, the value and left-hand limit already agree. Only the limit as x→0+ needs to be imposed.
2. Use ln(1/x)=−ln x to rewrite the positive branch as c₁ex+c₂ln x. As x→0+, ex→1 while ln x→−∞.
3. If c₂>0, the logarithmic term tends to −∞; if c₂<0, it tends to +∞. The exponential term has finite limit c₁ and cannot cancel either divergence. A finite right-hand limit therefore requires c₂=0.
4. With c₂=0, the right-hand limit is c₁. Continuity requires c₁=3, so c₁+c₂=3.
5. Checking the resulting function confirms it: its right branch is 3ex and tends to 3 at zero. There is no need for the derivatives on the two sides to agree because the question asks only for continuity.

Original paper, page 23 · Answer key

1 mark · NAT
Report issue

Matching value and slope at a piecewise join

Calculus

Question 31, GATE 2025: Let f(x)=ax+b for x<1 and f(x)=x³+x²+1 for x≥1. If f is differentiable everywhere, find b to one decimal place.
Tap to enlarge
Answer & solution

Official answer: -2.1 to -1.9

Our answer: -2.0

Approach: Both pieces are polynomials, so only the join x=1 can cause a problem. Differentiability requires both continuity and matching one-sided derivatives there.
The right-hand value is f(1)=1+1+1=3. The left-hand limit is a+b. Continuity therefore requires a+b=3.
The derivative on the left is a. The derivative on the right is 3x²+2x, whose value at 1 is 5. Matching the slopes gives a=5. Substituting into the continuity equation yields b=3−5=−2.
Thus enter −2.0. Matching derivatives alone would determine a but leave b undetermined; the continuity condition is essential. Once both conditions hold, the polynomial pieces join differentiably and there are no other problematic points. The official accepted interval −2.1 to −1.9 remains unchanged. This supplemental calculus item retains its existing excluded subject label.

Original paper, page 31 · Answer key

Descriptive
Report issue

Match a piecewise function and its derivative

Calculus

Question 3, GATE 1996: Let f(x)=x² for x≤1, ax²+bx+c for 1<x≤2, and x+d for x>2. Find a,b,c,d making f continuous and differentiable on the real line.
Tap to enlarge
Answer & solution

Answer: a=−1/2, b=3, c=−3/2, d=1/2. (no official key was published)

Each branch is a polynomial, so only the joining points 1 and 2 can cause trouble. Continuity at 1 requires a+b+c=1. Equality of the left and right derivatives at 1 requires 2a+b=2, because the derivative of x² is 2x. At 2, continuity gives 4a+2b+c=2+d, while equality of derivatives gives 4a+b=1.

Subtract the derivative equation at 1 from that at 2: 2a=−1, hence a=−1/2. Then 2a+b=2 gives b=3. Substituting in a+b+c=1 gives c=−3/2. The middle branch at 2 is −2+6−3/2=5/2, so 2+d=5/2 and d=1/2.

As a direct check, the middle branch has value 1 and derivative 2 at x=1, and value 5/2 and derivative 1 at x=2. These match the adjacent branches exactly. The four linear matching conditions determine the four constants uniquely. Continuity is needed in addition to matching formal derivative formulas: derivative agreement alone would not rule out jumps in the function.

Original paper, page 7