By the end of this chapter you'll be able to…

  • 1State when a limit exists in terms of one-sided limits
  • 2Identify indeterminate forms and apply L'Hopital only to them
  • 3Recall the standard limits without derivation
  • 4Use Maclaurin expansions to evaluate limits faster than repeated differentiation
  • 5Choose the order to which an expansion must be carried
  • 6Compare degrees to evaluate limits of rational functions at infinity
  • 7State the three separate conditions for continuity at a point
  • 8Explain why differentiability implies continuity but not the reverse
  • 9Recognise corners, vertical tangents and oscillation as failure modes
  • 10Determine constants making a piecewise function differentiable
  • 11State the hypotheses of Rolle's and the Lagrange mean value theorem
  • 12Identify which hypothesis a given counterexample violates
  • 13Count the values of c satisfying the mean value theorem
  • 14Apply the intermediate value theorem to establish root existence
  • 15Combine the intermediate value theorem with monotonicity for uniqueness
  • 16Locate critical points including where the derivative fails to exist
  • 17Apply the second-derivative test and know when it is inconclusive
  • 18Use the sign change of the first derivative when the second test fails
  • 19Distinguish inflection points from extrema
  • 20Find a global extremum by testing critical points and both endpoints
  • 21Choose substitution or parts, using ILATE for the latter
  • 22Use parity and the king's property on definite integrals
  • 23Differentiate an integral with a variable upper limit
  • 24Split an area computation at sign changes
  • 25Apply the p-test to improper integrals at infinity and at the origin
  • 26Classify critical points of a two-variable function by the discriminant
💡
Why this chapter matters in GATE
The GATE CS calculus syllabus is narrow — limits, continuity and differentiability, mean value theorems, maxima and minima, and integration — and it is examined well below degree level. What makes the questions non-trivial is not the computation but the hypotheses. Rolle's theorem, the mean value theorem, the intermediate value theorem and the extreme value theorem are all short to state and easy to apply, and every one of them fails on a function that violates a single condition. The questions are built on exactly those failures, which is why a stem supplying the absolute value function on a symmetric interval is testing differentiability specifically. The second principle is that a limit describes approach and says nothing about the value at the point: a function can have a perfectly good limit where it is undefined, or where its value is something else entirely, and confusing the limit with the value is the commonest error in the topic.

Before you start — revise these

🔗
School calculus
Differentiation rules, standard antiderivatives and the definition of a limit are assumed; this chapter concentrates on the hypothesis-checking GATE actually examines.
🔗
Linear Algebra
The two-variable second-derivative test is a determinant condition, and reading it as such makes the saddle case immediate.

Calculus

Calculus contributes a small but dependable share of the 13-mark Engineering Mathematics block. The syllabus for the CS paper is narrow — limits, continuity and differentiability, mean value theorems, maxima and minima, and integration — and it is examined at a level well below a mathematics degree.

What makes GATE calculus questions non-trivial is not the computation but the hypotheses. Rolle's theorem, the mean value theorem and the extreme value theorem are all short to state and easy to apply. Every one of them fails on a function that violates one condition, and the questions are built on exactly those failures.

So the working method is: state the theorem, then check each hypothesis against the specific interval given. Continuity on a closed interval, differentiability on the open interval, and the endpoint condition are three separate checks, and a question that supplies on is testing the second one specifically.

The second principle is that a limit is about approach, not about the value at the point. A function can have a perfectly good limit at a point where it is undefined, or where its value is something else entirely. Confusing the limit with the value is the single commonest error in the topic.

1. Limits

The limit of at exists when the left-hand and right-hand limits both exist and are equal, and it says nothing whatever about .

Three indeterminate forms cover almost every GATE question: , and . The others, such as and , appear occasionally and are handled by taking logarithms.

L'Hopital's rule applies to and only:

The rule must not be applied to a form that is not indeterminate, which is the standard misuse. If the limit evaluates to , applying L'Hopital gives a wrong answer, because the form is infinite rather than indeterminate.

A small set of standard limits removes most computation.

LimitValue
1
1/2
1
1

Series expansion is often faster than repeated L'Hopital. Substituting and turns a three-step differentiation into one cancellation.

The expansions worth carrying are few, and all are Maclaurin series about the origin.

FunctionExpansion

Keep terms only to the order the denominator requires. For a denominator of , expanding the numerator to suffices, and carrying further terms wastes time without changing the answer.

For limits at infinity of rational functions, compare degrees: the limit is 0 if the denominator has higher degree, infinite if the numerator does, and the ratio of leading coefficients if the degrees are equal.

2. Continuity and Differentiability

A function is continuous at if the limit at exists, exists, and they are equal. All three conditions are separate and each can fail alone.

Differentiability implies continuity, but continuity does not imply differentiability. The absolute value function at 0 is the canonical counterexample: continuous everywhere, not differentiable at 0 because the left derivative is and the right derivative is .

Three failure modes are worth recognising on sight.

FailureExample at 0
Corner: unequal one-sided derivatives
Vertical tangent: derivative infinite
Oscillation: derivative limit does not exist extended by 0

For a piecewise function, continuity at the join requires equal one-sided limits, and differentiability additionally requires equal one-sided derivatives. GATE questions supply a piecewise function with unknown constants and ask for the values making it differentiable, which means solving both conditions and never just the first.

3. The Mean Value Theorems

Rolle's theorem states that if is continuous on , differentiable on , and , then there is some in with .

The Lagrange mean value theorem drops the endpoint equality:

Every hypothesis is load-bearing, and questions are built by removing exactly one.

Take on . It is continuous on the closed interval and satisfies , so the endpoint condition holds. But it is not differentiable at 0, which lies inside the open interval, so Rolle's theorem does not apply — and indeed is never zero.

Take on . It fails continuity at 0, so no conclusion follows even though the arithmetic of the theorem could be written down.

The theorems assert existence, not uniqueness. There may be several values of , and a question asking "how many values of satisfy the mean value theorem" is asking you to solve and count roots in the open interval.

Cauchy's mean value theorem generalises to two functions and gives , which is the result L'Hopital's rule is proved from.

4. Maxima and Minima

Critical points are where or where fails to exist. The second condition is routinely forgotten, and it is exactly where a question about or places its answer.

The second-derivative test classifies a critical point where : negative gives a local maximum, positive gives a local minimum, and zero is inconclusive.

When the second derivative test is inconclusive, use the sign change of , which always works. For at 0, , but changes from negative to positive, so it is a minimum. For at 0, does not change sign, so it is neither.

For a global extremum on a closed interval, the extreme value theorem guarantees existence provided is continuous. The candidates are the critical points and the two endpoints, and evaluating at all of them and comparing is the complete method.

Omitting the endpoints is the standard error, and it is the difference between a local and a global answer.

The intermediate value theorem is the other existence result worth holding exactly. If is continuous on and and have opposite signs, then has at least one root in .

It requires only continuity, not differentiability, and it guarantees at least one root rather than exactly one. Questions asking how many roots a polynomial has in an interval combine it with monotonicity: the theorem gives existence and a constant sign of gives uniqueness.

The sign of gives monotonicity and the sign of gives concavity. A function is increasing where and concave up where , and a point where changes sign is an inflection point.

An inflection point is not an extremum, and a critical point where vanishes without changing sign is neither, as at the origin shows.

5. Integration

Two substitution patterns and integration by parts cover most of what is asked.

Substitute whenever the integrand contains a function together with a multiple of its own derivative. The clearest signal is a numerator that is exactly the derivative of the denominator, in which case the answer is the logarithm of the denominator.

Integration by parts follows from the product rule:

Choose by ILATE: inverse trigonometric, logarithmic, algebraic, trigonometric, exponential, in that priority order.

A small table of standard integrals removes most lookups.

IntegrandAntiderivative
,

Definite integrals carry properties that shorten work dramatically.

Over a symmetric interval , an odd integrand integrates to zero and an even one integrates to twice the half-interval value. Checking parity before integrating is worth a few seconds on every symmetric-interval question.

The king's property states that , which converts many trigonometric integrals into a form where the original and the transformed integral add to something trivial.

The fundamental theorem of calculus links the two halves of the subject and supplies a differentiation rule that is asked directly.

If with continuous, then . When the upper limit is itself a function, the chain rule applies, so differentiating gives .

For area, the definite integral gives signed area, so a region partly below the axis requires splitting at the zeros and taking absolute values. Integrating straight through a sign change and calling the result an area is a standard error.

6. Improper Integrals and Convergence

An improper integral has an infinite limit or an unbounded integrand, and the question is whether it converges.

The -test settles most cases. The integral of from 1 to infinity converges exactly when , and from 0 to 1 it converges exactly when . The two conditions are opposite, which is what makes the test worth stating carefully rather than half-remembering.

For a comparison, if and the integral of converges, so does that of ; if the integral of diverges, so does that of .

7. Functions of Two Variables

Partial derivatives differentiate with respect to one variable holding the others fixed.

For a smooth function the mixed partials are equal, so , which is Clairaut's theorem and is assumed throughout.

Critical points of satisfy , and they are classified by the discriminant

evaluated at the critical point.

If and it is a local minimum; if and a local maximum; if it is a saddle point; and if the test is inconclusive.

The saddle case has no one-variable analogue and is what most two-variable questions are actually testing.

8. Worked Examples

Example 1. Evaluate .

Substituting gives , so the form is indeterminate and L'Hopital applies.

Differentiating once gives , still .

Differentiating again gives , still .

Differentiating a third time gives , which at 0 is .

The series route is faster. Since , the numerator is , so the ratio is and the limit is in one step.

Both agree, and the series method is the one worth defaulting to when three L'Hopital applications would be needed.

Example 2. For what values of and is the function for and for differentiable at ?

Two conditions must hold, and solving only the first is the standard error.

Continuity at 1 requires the one-sided limits to agree: the left gives and the right gives . So .

Differentiability requires the one-sided derivatives to agree: the left derivative is at , which is 2, and the right derivative is . So .

Substituting into the first condition gives .

So and .

Note that with and the function would still be continuous, since , but the derivative would jump from 2 to 1 and the function would have a corner. Continuity alone never determines both constants.

Example 3. Does Rolle's theorem apply to on ?

Check each hypothesis in turn.

Continuity on the closed interval: is continuous everywhere, including at 0, so this holds.

Endpoint equality: and , so this holds.

Differentiability on the open interval: , which is undefined at , a point inside . This hypothesis fails.

So Rolle's theorem does not apply.

Confirm the conclusion genuinely fails: is never zero, since has no root. The function does have a maximum at , but it is a cusp rather than a stationary point, which is precisely why the differentiability hypothesis was needed.

Example 4. Find the absolute maximum and minimum of on .

The function is a polynomial, so it is continuous on the closed interval and the extreme value theorem guarantees both extrema exist.

Find the critical points: gives , both inside the interval. There are no points where fails to exist.

Evaluate at the critical points and both endpoints, which is the complete candidate list.

. . . .

The absolute maximum is 3, attained at both and . The absolute minimum is , attained at both and .

The instructive part is that the endpoint ties the interior maximum. Omitting endpoints would have found the same maximum value here by luck, but would have missed that it is attained twice.

Example 5. Evaluate .

Check parity before integrating anything.

, so the integrand is odd.

The interval is symmetric about the origin, so the integral of an odd function over it is zero.

The answer is 0, with no antiderivative computed at all.

Verify: the antiderivative is , which is even, so evaluating it at 2 and at gives the same value and the difference is zero. The parity check reaches the same place in one line.

Example 6. Classify the critical points of .

Set both partials to zero. gives , and gives .

Substituting: , so , giving or .

The critical points are and .

Compute the second partials: , , .

At : , so it is a saddle point.

At : and , so it is a local minimum.

The saddle at the origin is the point of the question. Along the line the function is , which has a local maximum at the origin, while along it behaves differently — the two directions disagree, which is exactly what a saddle is.

Summary

The theorems are cheap to state; the marks are in checking their hypotheses against the specific interval given.

A limit describes approach and says nothing about the value at the point. L'Hopital applies only to genuinely indeterminate forms, and series expansion often beats repeated differentiation.

Differentiability implies continuity, never the reverse. Corners, vertical tangents and oscillation are the three failure modes.

For a piecewise function, continuity matches the one-sided limits and differentiability additionally matches the one-sided derivatives; solving only the first never determines both constants.

Rolle's theorem needs continuity on the closed interval, differentiability on the open one, and equal endpoint values; removing any one is how questions are built. The mean value theorems assert existence, not uniqueness.

Critical points include those where the derivative fails to exist. When the second-derivative test is inconclusive, the sign change of always decides.

For a global extremum on a closed interval, the candidates are the critical points and both endpoints.

Substitute when the integrand contains a function and its derivative; choose by ILATE for parts. Check parity before integrating over a symmetric interval.

The -test converges for at infinity and for at the origin — opposite conditions.

For two variables, classify critical points by , with giving a saddle, which has no one-variable analogue.

Key formulas & results

Everything to memorise for the exam hall, in one card. Screenshot this for revision.

The organising tool
THE THEOREMS ARE CHEAP TO STATE; THE MARKS LIVE IN CHECKING THEIR HYPOTHESES AGAINST THE SPECIFIC INTERVAL GIVEN.
CONTINUITY ON THE CLOSED INTERVAL, DIFFERENTIABILITY ON THE OPEN INTERVAL AND THE ENDPOINT CONDITION ARE THREE SEPARATE CHECKS, AND QUESTIONS REMOVE EXACTLY ONE.
A limit is about approach
THE LIMIT AT a EXISTS WHEN THE LEFT AND RIGHT LIMITS EXIST AND AGREE, AND IT SAYS NOTHING ABOUT f(a).
A FUNCTION CAN HAVE A LIMIT WHERE IT IS UNDEFINED, OR WHERE ITS VALUE IS SOMETHING ELSE. CONFUSING THE LIMIT WITH THE VALUE IS THE COMMONEST ERROR IN THE TOPIC.
L'Hopital's rule
L = LIMIT OF f(x)/g(x) EQUALS LIMIT OF f'(x)/g'(x), FOR THE FORMS 0/0 AND INFINITY OVER INFINITY ONLY.
APPLYING IT TO A FORM THAT IS NOT INDETERMINATE, SUCH AS 2/0, GIVES A WRONG ANSWER. FORMS LIKE 1 TO THE INFINITY ARE HANDLED BY TAKING LOGARITHMS FIRST.
Standard limits
sin x OVER x TENDS TO 1; (1 - cos x) OVER x SQUARED TENDS TO 1/2; (e TO THE x MINUS 1) OVER x TENDS TO 1; ln(1+x) OVER x TENDS TO 1; (1 + 1/x) TO THE x TENDS TO e.
THESE FIVE REMOVE MOST COMPUTATION AND SHOULD BE RECALLED RATHER THAN DERIVED.
Maclaurin expansions
e TO THE x = 1 + x + x SQUARED OVER 2! + ... ; sin x = x - x CUBED OVER 3! + ... ; cos x = 1 - x SQUARED OVER 2! + ... ; ln(1+x) = x - x SQUARED OVER 2 + ... .
KEEP TERMS ONLY TO THE ORDER THE DENOMINATOR REQUIRES. FOR A DENOMINATOR OF x CUBED, EXPANDING TO x CUBED SUFFICES.
Limits at infinity of rational functions
COMPARE DEGREES: 0 IF THE DENOMINATOR IS HIGHER, INFINITE IF THE NUMERATOR IS, AND THE RATIO OF LEADING COEFFICIENTS IF EQUAL.
THIS AVOIDS L'HOPITAL ENTIRELY FOR A COMMON QUESTION SHAPE.
Continuity
CONTINUOUS AT a REQUIRES THE LIMIT TO EXIST, f(a) TO EXIST, AND THE TWO TO BE EQUAL.
ALL THREE CONDITIONS ARE SEPARATE AND EACH CAN FAIL ALONE, WHICH IS HOW REMOVABLE AND JUMP DISCONTINUITIES ARE DISTINGUISHED.
Differentiability versus continuity
DIFFERENTIABILITY IMPLIES CONTINUITY; CONTINUITY DOES NOT IMPLY DIFFERENTIABILITY.
THE ABSOLUTE VALUE FUNCTION AT 0 IS THE CANONICAL COUNTEREXAMPLE: THE LEFT DERIVATIVE IS -1 AND THE RIGHT IS +1.
The three failure modes
CORNER WITH UNEQUAL ONE-SIDED DERIVATIVES, AS IN |x|. VERTICAL TANGENT WITH INFINITE DERIVATIVE, AS IN x TO THE ONE-THIRD. OSCILLATION WHERE THE DERIVATIVE LIMIT FAILS TO EXIST.
RECOGNISING WHICH MODE A GIVEN FUNCTION EXHIBITS IS USUALLY THE WHOLE QUESTION.
Piecewise functions
CONTINUITY AT THE JOIN REQUIRES EQUAL ONE-SIDED LIMITS. DIFFERENTIABILITY ADDITIONALLY REQUIRES EQUAL ONE-SIDED DERIVATIVES.
SOLVING ONLY THE CONTINUITY CONDITION NEVER DETERMINES BOTH UNKNOWN CONSTANTS, WHICH IS EXACTLY WHAT SUCH QUESTIONS EXPLOIT.
Rolle's theorem
IF f IS CONTINUOUS ON THE CLOSED INTERVAL, DIFFERENTIABLE ON THE OPEN INTERVAL, AND f(a) = f(b), THEN SOME c IN THE OPEN INTERVAL HAS f'(c) = 0.
EVERY HYPOTHESIS IS LOAD-BEARING. |x| ON MINUS ONE TO ONE SATISFIES THE ENDPOINT CONDITION AND FAILS DIFFERENTIABILITY, AND ITS DERIVATIVE IS INDEED NEVER ZERO.
Lagrange mean value theorem
f'(c) EQUALS (f(b) MINUS f(a)) DIVIDED BY (b MINUS a), FOR SOME c IN THE OPEN INTERVAL.
IT ASSERTS EXISTENCE, NOT UNIQUENESS. A QUESTION ASKING HOW MANY VALUES OF c QUALIFY IS ASKING YOU TO SOLVE THE EQUATION AND COUNT ROOTS IN THE INTERVAL.
Intermediate value theorem
IF f IS CONTINUOUS ON THE CLOSED INTERVAL AND f(a) AND f(b) HAVE OPPOSITE SIGNS, THEN f HAS AT LEAST ONE ROOT INSIDE.
IT NEEDS ONLY CONTINUITY, AND IT GIVES AT LEAST ONE ROOT. COMBINE IT WITH A CONSTANT SIGN OF f' TO OBTAIN UNIQUENESS.
Critical points
CRITICAL POINTS ARE WHERE f'(x) = 0 OR WHERE f' FAILS TO EXIST.
THE SECOND CONDITION IS ROUTINELY FORGOTTEN, AND IT IS EXACTLY WHERE A QUESTION ABOUT |x| OR x TO THE TWO-THIRDS PLACES ITS ANSWER.
Classifying critical points
NEGATIVE SECOND DERIVATIVE GIVES A LOCAL MAXIMUM, POSITIVE GIVES A LOCAL MINIMUM, ZERO IS INCONCLUSIVE.
WHEN INCONCLUSIVE, THE SIGN CHANGE OF f' ALWAYS DECIDES: x TO THE FOURTH IS A MINIMUM AT 0, WHILE x CUBED IS NEITHER.
Monotonicity and concavity
f IS INCREASING WHERE f' IS POSITIVE AND CONCAVE UP WHERE THE SECOND DERIVATIVE IS POSITIVE. A SIGN CHANGE OF THE SECOND DERIVATIVE MARKS AN INFLECTION POINT.
AN INFLECTION POINT IS NOT AN EXTREMUM, AND A CRITICAL POINT WHERE THE SECOND DERIVATIVE VANISHES WITHOUT CHANGING SIGN IS NEITHER.
Global extrema
ON A CLOSED INTERVAL WITH f CONTINUOUS, THE EXTREME VALUE THEOREM GUARANTEES BOTH EXTREMA, AND THE CANDIDATES ARE THE CRITICAL POINTS AND THE TWO ENDPOINTS.
OMITTING THE ENDPOINTS IS THE STANDARD ERROR AND IS THE DIFFERENCE BETWEEN A LOCAL AND A GLOBAL ANSWER.
Integration by parts
THE INTEGRAL OF u dv EQUALS uv MINUS THE INTEGRAL OF v du.
CHOOSE u BY ILATE: INVERSE TRIGONOMETRIC, LOGARITHMIC, ALGEBRAIC, TRIGONOMETRIC, EXPONENTIAL, IN THAT PRIORITY ORDER.
When to substitute
SUBSTITUTE WHENEVER THE INTEGRAND CONTAINS A FUNCTION TOGETHER WITH A MULTIPLE OF ITS OWN DERIVATIVE.
THE CLEAREST SIGNAL IS A NUMERATOR THAT IS EXACTLY THE DERIVATIVE OF THE DENOMINATOR, IN WHICH CASE THE ANSWER IS THE LOGARITHM OF THE DENOMINATOR.
Parity on a symmetric interval
OVER MINUS a TO a, AN ODD INTEGRAND INTEGRATES TO ZERO AND AN EVEN ONE INTEGRATES TO TWICE THE HALF-INTERVAL VALUE.
CHECKING PARITY BEFORE INTEGRATING IS WORTH A FEW SECONDS ON EVERY SYMMETRIC-INTERVAL QUESTION AND OFTEN ANSWERS IT OUTRIGHT.
The king's property
THE INTEGRAL OF f(x) FROM a TO b EQUALS THE INTEGRAL OF f(a + b - x) OVER THE SAME LIMITS.
IT CONVERTS MANY TRIGONOMETRIC INTEGRALS INTO A FORM WHERE THE ORIGINAL AND THE TRANSFORMED INTEGRAL ADD TO SOMETHING TRIVIAL.
Fundamental theorem of calculus
IF F(x) IS THE INTEGRAL OF f(t) FROM a TO x WITH f CONTINUOUS, THEN F'(x) = f(x). WITH A VARIABLE UPPER LIMIT g(x), THE CHAIN RULE GIVES f(g(x)) TIMES g'(x).
THE DEFINITE INTEGRAL GIVES SIGNED AREA, SO A REGION PARTLY BELOW THE AXIS MUST BE SPLIT AT THE ZEROS AND ABSOLUTE VALUES TAKEN.
The p-test
THE INTEGRAL OF 1 OVER x TO THE p FROM 1 TO INFINITY CONVERGES EXACTLY WHEN p IS GREATER THAN 1. FROM 0 TO 1 IT CONVERGES EXACTLY WHEN p IS LESS THAN 1.
THE TWO CONDITIONS ARE OPPOSITE, WHICH IS WHY THE TEST MUST BE STATED CAREFULLY RATHER THAN HALF-REMEMBERED.
Two-variable critical points
D = f_xx f_yy MINUS f_xy SQUARED, EVALUATED AT A POINT WHERE BOTH FIRST PARTIALS VANISH.
D POSITIVE WITH f_xx POSITIVE IS A MINIMUM; D POSITIVE WITH f_xx NEGATIVE IS A MAXIMUM; D NEGATIVE IS A SADDLE; D ZERO IS INCONCLUSIVE.
Mixed partials
FOR A SMOOTH FUNCTION THE MIXED PARTIALS ARE EQUAL, SO f_xy EQUALS f_yx.
THIS IS CLAIRAUT'S THEOREM AND IS ASSUMED THROUGHOUT, WHICH IS WHY THE DISCRIMINANT USES A SINGLE MIXED PARTIAL SQUARED.
⚠️

Traps GATE sets — and how to dodge them

These are the exact option-traps and misreads that cost marks under negative marking.

WATCH OUT
Applying L'Hopital's rule to a form that is not indeterminate
The rule is valid only for 0/0 and infinity over infinity. Substituting first to identify the form takes seconds; applying the rule to a form like 2/0 produces a confidently wrong answer.
WATCH OUT
Confusing the limit at a point with the value there
The limit depends only on nearby values, not on f(a). A function can have a limit where it is undefined, or a limit different from its value, and that is exactly what a removable discontinuity is.
WATCH OUT
Carrying a series expansion further than needed
Expand only to the order of the denominator. For a denominator of x cubed, terms beyond x cubed cancel out of the limit and cost time without changing the answer.
WATCH OUT
Concluding differentiability from continuity
The implication runs one way only. The absolute value function is continuous everywhere and fails to be differentiable at the origin, where its one-sided derivatives are minus one and plus one.
WATCH OUT
Solving only the continuity condition for a piecewise function
Differentiability requires matching one-sided derivatives as well as one-sided limits. With two unknown constants, exactly two equations are needed, and continuity supplies only one of them.
WATCH OUT
Applying Rolle's theorem without checking differentiability inside
A function can satisfy continuity and the endpoint condition and still fail. The absolute value on a symmetric interval is the standard example, and its derivative is never zero anywhere.
WATCH OUT
Treating the mean value theorem as asserting a unique c
It guarantees at least one such point. A question asking how many values satisfy it wants you to solve f'(c) equal to the chord slope and count the roots lying inside the open interval.
WATCH OUT
Missing critical points where the derivative fails to exist
Critical points include those where f' is undefined, not only where it is zero. For the absolute value or x to the two-thirds, the extremum lies exactly at such a point.
WATCH OUT
Concluding 'neither' when the second-derivative test gives zero
A zero second derivative is inconclusive, not negative. Use the sign change of f': x to the fourth has a minimum at the origin despite a vanishing second derivative there.
WATCH OUT
Reporting a local extremum as the global one
On a closed interval the candidates are the critical points and both endpoints. Evaluating f at all of them and comparing is the complete method, and omitting endpoints is the standard error.
WATCH OUT
Treating an inflection point as an extremum
An inflection point is where concavity changes, which says nothing about whether the function turns. The cubic at the origin has both a vanishing derivative and an inflection, and is neither a maximum nor a minimum.
WATCH OUT
Integrating through a sign change and calling the result an area
The definite integral gives signed area. Split at the zeros of the integrand and take absolute values on the sub-intervals where the function is negative.
WATCH OUT
Ignoring parity before integrating over a symmetric interval
An odd integrand over a symmetric interval gives zero without any antiderivative being computed. Checking f(-x) against f(x) costs a few seconds and frequently answers the whole question.
WATCH OUT
Forgetting the chain rule for a variable upper limit
Differentiating an integral whose upper limit is g(x) gives f(g(x)) times g'(x), not just f(g(x)). The extra factor is the part questions are constructed around.
WATCH OUT
Reversing the p-test at the two ends
Convergence at infinity needs p greater than 1; convergence at the origin needs p less than 1. The conditions are opposite because the trouble is a slow tail in one case and a sharp spike in the other.
WATCH OUT
Assuming a two-variable critical point must be a maximum or minimum
A negative discriminant gives a saddle, which has no one-variable analogue. Along one direction the point looks like a maximum and along another like a minimum, and that disagreement is what a saddle is.

Exam-pattern practice

PYQ-style questions with full solutions. Work through them as a readiness check — mark yourself honestly and get your gap report at the end.

Readiness check

Are you exam-ready for Calculus?

9 problems from this chapter. Try each one, reveal the worked solution, mark yourself honestly — get your gap report at the end.

9 questions~6 min worth ~100 marks in GATE exams

5-minute revision

The whole chapter, distilled. Read this the night before the exam.

  • The marks are in the hypotheses, not the computation.
  • A limit describes approach, not the value at the point.
  • L'Hopital applies only to 0/0 and infinity over infinity.
  • sin x over x tends to 1.
  • (1 - cos x) over x squared tends to one half.
  • (e to the x minus 1) over x tends to 1.
  • Expand series only to the order of the denominator.
  • Compare degrees for rational limits at infinity.
  • Continuity needs limit, value, and their equality.
  • Differentiability implies continuity, never the reverse.
  • Corner, vertical tangent and oscillation are the failure modes.
  • Piecewise differentiability needs matched derivatives too.
  • Rolle needs closed continuity, open differentiability and equal endpoints.
  • |x| on a symmetric interval fails Rolle's differentiability.
  • The mean value theorems assert existence, not uniqueness.
  • Discard mean-value roots outside the open interval.
  • The intermediate value theorem needs only continuity.
  • Combine it with monotonicity to get uniqueness.
  • Critical points include where f' fails to exist.
  • Zero second derivative is inconclusive, not negative.
  • The sign change of f' always decides.
  • An inflection point is not an extremum.
  • Global extrema candidates include both endpoints.
  • Substitute when a function appears with its own derivative.
  • Choose u by ILATE for integration by parts.
  • An odd integrand over a symmetric interval gives zero.
  • The king's property replaces x by a + b - x.
  • Differentiating an integral to g(x) brings a factor g'(x).
  • Split area computations at sign changes.
  • The p-test needs p greater than 1 at infinity.
  • The p-test needs p less than 1 at the origin.
  • Mixed partials are equal for smooth functions.
  • D equals f_xx f_yy minus f_xy squared.
  • Negative D means a saddle point.
  • Positive D with positive f_xx means a minimum.

GATE question blueprint

How this topic is asked, tier by tier — so you can prep to the pattern.

Typical weightage: Engineering Mathematics is 13 of the 100 marks in the GATE CS paper; Calculus typically contributes 2-3 of those marks across 1-2 questions, often as NATs

Question styleMarks eachTypical countWhat it tests
Limits1~1Indeterminate forms, L'Hopital's applicability and series expansion
Continuity and differentiability1~1The three continuity conditions and the failure modes of differentiability
Piecewise functions2~1Determining constants from matched limits and matched derivatives
Mean value theorems2~1Hypothesis checking and counting the values of c
Maxima and minima2~1Critical points including non-differentiable ones, and endpoint candidates
Definite integrals2~1Parity, the king's property and the fundamental theorem with a variable limit
Improper integrals1~1The p-test at both ends and comparison
Two-variable calculus2~1The discriminant test and identifying saddle points

Exam-hall strategy

Battle-tested tips from mentors and toppers for this topic under the sectional clock.

  1. Substitute first to identify the indeterminate form before applying L'Hopital.
  2. Reach for a series expansion whenever two or more L'Hopital steps would be needed.
  3. For any theorem question, list the hypotheses and check each against the stated interval.
  4. Include both endpoints in every global-extremum candidate list.
  5. Check parity before integrating over a symmetric interval.
  6. For two-variable critical points, compute the discriminant before attempting to visualise.
  7. Calculus is frequently set as NAT, which carries no negative marking, so attempt every one even on a partial derivation.
  8. For 1-mark and 2-mark MCQs, negative marking is -1/3 and -2/3, so guess only after eliminating an option.
  9. GATE gives a single freely-navigable 180-minute window, so flag a long integral and return once the rest of the paper is secured.

Beyond the exam

Where this skill shows up in the job you're competing for — and in life.

Bounding an algorithm's growth

Comparing degrees and using L'Hopital on a ratio of running times is exactly how one shows that one complexity function eventually dominates another.

Tuning a parameter to a minimum

Locating a critical point and confirming it with a sign change is the mathematics behind choosing a cache size or a batch size that minimises cost.

Bisection search for a root

Bisection is the intermediate value theorem turned into an algorithm, and its correctness depends only on continuity and a sign change at the endpoints.

Gradient descent and saddle points

The Hessian discriminant is what distinguishes a genuine minimum from a saddle in optimisation, which is why saddle points are a practical concern in training.

Where else this topic is tested

Prepare once, score in every exam that asks it.

GATE DA and other GATE papersVery high overlap — calculus is common to every GATE paper's Engineering Mathematics block, with non-CS papers going further into vector calculus and differential equations
UGC NET Computer ScienceLow to moderate overlap — calculus appears only occasionally, usually as limits and basic differentiation
ISRO / BARC / DRDO computer science papersModerate overlap — limits, continuity and maxima-minima are examined in the same short MCQ form

Questions aspirants ask

Pulled from the Q&A community and mentor sessions.

Because the calculations in the CS syllabus are short enough that they would not distinguish candidates, while the hypotheses genuinely do. Rolle's theorem, the mean value theorem, the intermediate value theorem and the extreme value theorem each have two or three separate conditions, and each condition exists because a specific counterexample would otherwise break the conclusion. An examiner therefore has a ready supply of questions: present a function that satisfies all conditions but one, and ask whether the conclusion follows. The absolute value function on a symmetric interval satisfies continuity and the endpoint equality of Rolle's theorem and fails differentiability at the interior point, and its derivative is indeed never zero. The reciprocal function on an interval containing the origin fails continuity, so nothing follows even though the arithmetic of the mean value theorem could be written down. A function on an open interval fails the extreme value theorem's requirement of a closed interval, and may attain neither a maximum nor a minimum. The practical routine is therefore fixed: write the theorem's hypotheses in a list, check each against the exact interval given, and only then apply the conclusion. Checking takes under a minute and it is where the mark actually is.

Whenever more than one application of L'Hopital would be needed, and always when the expression is a combination of standard functions. Each L'Hopital step requires differentiating both numerator and denominator, and for expressions involving products or compositions those derivatives grow quickly, which is where sign and algebra errors enter. A series expansion replaces all of that with substitution and cancellation. The limit of (x minus sin x) over x cubed needs three L'Hopital applications, and each one produces a messier expression. Substituting sin x = x minus x cubed over 6 plus higher terms makes the numerator x cubed over 6 immediately, and the answer 1/6 follows in one line. The discipline that keeps the method fast is choosing the expansion order from the denominator. If the denominator is of order x squared, then expanding the numerator to x squared is enough, because all higher terms vanish in the limit. Carrying extra terms is wasted work and adds arithmetic. Five expansions cover essentially everything the CS syllabus asks: the exponential, sine, cosine, the logarithm of one plus x, and the binomial. They are worth memorising to three terms each, since that is the depth almost every question requires.

It fails when the second derivative vanishes at the critical point, because the test works by detecting curvature and a vanishing second derivative means the quadratic approximation is flat. At that point the function's behaviour is determined by higher-order terms the test cannot see. The two standard examples make the distinction concrete. For x to the fourth at the origin, the first and second derivatives both vanish, yet the point is a genuine minimum, because the quartic term is positive on both sides. For x cubed at the origin, the first and second derivatives also both vanish, and the point is neither a maximum nor a minimum, because the cubic term changes sign. The second-derivative test cannot distinguish these two cases, since it returns zero for both. The first-derivative sign test always can, and it is the method to fall back on. Examine the sign of f' just to the left and just to the right of the critical point. A change from negative to positive is a minimum, positive to negative is a maximum, and no change is neither. The test requires no additional differentiation, it works at points where f' fails to exist and the second derivative does not even make sense, and it never returns an inconclusive verdict.

A saddle point is a critical point where the function has a minimum along some directions and a maximum along others, so no single verdict applies. In one variable there is only one direction to move in, up to sign, so a critical point is a maximum, a minimum, or a point where the function does not turn at all. With two variables there is a whole circle of directions, and nothing forces them to agree. The discriminant detects the disagreement. Writing D as f_xx f_yy minus f_xy squared, a negative value means the quadratic approximation is an indefinite form, which is exactly the algebraic statement that it is positive in some directions and negative in others. Reading it as a determinant makes this immediate: it is the determinant of the Hessian, and a negative determinant for a two by two symmetric matrix means eigenvalues of opposite sign. The concrete example is worth carrying. For f = x squared plus y squared minus 4xy, the origin is the only critical point and D is minus twelve. Along the x-axis the function is x squared, rising in both directions, so it looks like a minimum. Along the line y = x the function is minus 2x squared, falling in both directions, so it looks like a maximum. Both descriptions are correct, which is precisely why neither label applies to the point itself.

Because the integral is threatened by different behaviour at each end, and a large p helps at one end while hurting at the other. Near infinity, the danger is that the tail decays too slowly to have finite total area. A larger p makes 1 over x to the p decay faster, so convergence needs p greater than 1; at p equal to 1 the integral is the logarithm, which grows without bound, and for smaller p it is worse. Near zero, the danger is the opposite: the integrand blows up, and a larger p makes the spike sharper. A larger p therefore hurts, and convergence needs p less than 1; again p equal to 1 gives the logarithm, which diverges at the origin. The practical consequence is that any improper integral with trouble at both ends must be split, usually at 1, and each piece tested separately with the appropriate condition. The full integral converges only if both pieces do. For 1 over x to the p from 0 to infinity, the requirements are p greater than 1 and p less than 1 at the same time, which nothing satisfies, so that integral diverges for every value of p. A candidate carrying only one half of the test will confidently produce an answer to a question that has none.
Header Logo