Rolle's theorem and the Lagrange mean value theorem (LMVT) are two of the few theorems in JEE mathematics that are tested as theorems rather than as routines. A question will ask whether the hypotheses hold on a given interval, then for the value of $c$ that the conclusion promises, then, in harder forms, for a consequence: that an equation has a root in an interval, that a polynomial cannot have more than a certain number of real roots, that a function cannot grow faster than a given rate, or that an inequality holds between two logarithms. The calculations are short. The danger is in the hypotheses and in knowing which form of the argument fits the problem.
The chapter guide on continuity and differentiability states both theorems and includes three basic examples (a cubic on $[1,3]$, $x^3$ on $[1,4]$ and a disguised-derivative limit). This post does not repeat them. It takes the theorems further in six directions: checking hypotheses on awkward functions, finding $c$ when the equation is not linear, proving that a root exists, counting real roots with Rolle's corollary, using LMVT for bounds and inequalities, and the multiple-correct questions that combine Rolle on derivatives. There are ten worked examples, each verified numerically. The tools you need underneath are in differentiability and modulus functions for checking differentiability and in methods of differentiation for computing the derivatives quickly. The overview of the whole unit is limits, continuity and differentiation for JEE.
What this post covers
| Idea | Typical question |
|---|---|
| Hypothesis check | "Rolle's theorem is applicable to which of the following on the given interval" |
| Finding $c$ | Solve $f'(c)=0$ or $f'(c)=\frac{f(b)-f(a)}{b-a}$ and keep the roots inside $(a,b)$ |
| Rolle on a constructed function | If $\frac a3+\frac b2+c=0$, then $ax^2+bx+c=0$ has a root in $(0,1)$ |
| Root counting | "Number of real roots of $x^4-4x+1=0$" |
| LMVT bounds | If $f'\le k$, then $f(b)-f(a)\le k(b-a)$ |
| Inequalities from LMVT | $\frac1{101}<\ln\frac{101}{100}<\frac1{100}$ |
| Ratio rule for $(x-a)^m(x-b)^n$ | Position of $c$ in Rolle's theorem |
The theorems are in the JEE Main syllabus under continuity and differentiability.
The two theorems, stated for use
Rolle's theorem. If $f$ is continuous on $[a,b]$, differentiable on $(a,b)$, and $f(a)=f(b)$, then there is at least one $c\in(a,b)$ with $f'(c)=0$.
Lagrange's mean value theorem. If $f$ is continuous on $[a,b]$ and differentiable on $(a,b)$, then there is at least one $c\in(a,b)$ with $$f'(c)=\frac{f(b)-f(a)}{b-a}.$$
Rolle's theorem is the special case $f(a)=f(b)$ of LMVT. The conclusions are existence statements: "at least one". They do not say how many, nor where, and they say nothing at all when a hypothesis fails.
Reading the hypotheses
There are three conditions, and each can fail in a different way.
- Continuity on the closed interval can fail at a point inside (a jump, a pole such as $\tan x$ on $[0,\pi]$) or at an endpoint (a function that is only left-continuous at $b$).
- Differentiability on the open interval can fail at a corner ($\lvert x\rvert$ on $[-1,1]$) or at a vertical tangent ($x^{2/3}$ on $[-1,1]$, where $f'=\frac23x^{-1/3}$ is infinite at $0$).
- Equal endpoint values apply to Rolle only.
When a hypothesis fails the theorem is silent. The function may still satisfy the conclusion by accident, so "Rolle does not apply" and "no such $c$ exists" are different statements. The function $\lvert x\rvert$ on $[-1,2]$ fails differentiability at $0$ and the conclusion fails too: the average slope is $\frac{2-1}{3}=\frac13$, but the slope of $\lvert x\rvert$ is always $\pm1$. On the other hand $f(x)=\lvert x\rvert+x^2$ on $[-1,2]$ also fails differentiability at $0$, yet it has a point with $f'(c)=\frac43$, the average slope: for $x>0$, $f'=1+2x$, which equals $\frac43$ at $x=\frac16$. The statement to remember is that the theorems give sufficient conditions, not necessary ones.
Also read: Continuity and Differentiability for JEE in Telugu: MVT
Finding $c$
The calculation is a single equation. For Rolle solve $f'(c)=0$, for LMVT solve $f'(c)=m$ where $m$ is the average slope. Then discard roots outside the open interval $(a,b)$. Three habits save marks.
- Factorise $f'$ before solving. For $f(x)=x(x+3)e^{-x/2}$ on $[-3,0]$, $f'(x)=e^{-x/2}\left(2x+3-\frac{x^2+3x}2\right)=\frac{e^{-x/2}}2\left(6+x-x^2\right)=-\frac{e^{-x/2}}{2}(x-3)(x+2)$. The roots are $3$ and $-2$, and only $-2$ lies in $(-3,0)$.
- Count the roots that survive. LMVT can give two values of $c$ (Example 8), and a question asking "the number of values of $c$" wants the count of roots inside the interval.
- For $f(x)=(x-a)^m(x-b)^n$ on $[a,b]$ with $m,n>0$, Rolle's $c$ divides the interval in the ratio $m:n$. Differentiating, $f'=(x-a)^{m-1}(x-b)^{n-1}\left[m(x-b)+n(x-a)\right]$ and the bracket vanishes at $c=\frac{na+mb}{m+n}$. For $m=2$, $n=3$ on $[1,4]$: $c=\frac{3\cdot1+2\cdot4}{5}=\frac{11}5=2.2$.
Why LMVT is Rolle in disguise
Seeing the link makes the proofs in this post easier to reproduce. Given $f$ on $[a,b]$, let $m=\frac{f(b)-f(a)}{b-a}$ and define $g(x)=f(x)-m(x-a)$. Then $g(a)=f(a)$ and $g(b)=f(b)-m(b-a)=f(a)$, so $g$ satisfies Rolle's hypotheses whenever $f$ satisfies those of LMVT. Rolle gives $c$ with $g'(c)=f'(c)-m=0$, which is the LMVT conclusion. The picture is the chord joining the two end points of the graph: subtracting the chord's line tilts the graph until the end points are level, and a level graph must have a horizontal tangent somewhere between.
The same move solves a family of questions. To prove that some $c$ satisfies $f'(c)=kf(c)$, you look for a multiplier that makes the left side the derivative of a product: $e^{-kx}f(x)$ has derivative $e^{-kx}\left(f'-kf\right)$, so if $f(a)=f(b)=0$ then $f'(c)=kf(c)$ for some $c\in(a,b)$. The recipe is always the same: rewrite the relation so that one side is the derivative of an expression $G$, check $G(a)=G(b)$, apply Rolle to $G$.
A final practical point for timed work: when the question only asks for the value of $c$, do not prove anything. Write $f'(c)$ equal to the required slope, solve, and filter. When it asks whether a statement "must" hold, build the argument or the counterexample from the hypotheses, and do not rely on one example function.
Using Rolle to prove a root exists
The standard device is to build a function whose derivative is the given expression, check that it has equal values at the endpoints, and apply Rolle's theorem. If $p(x)=ax^2+bx+c$ and we let $F(x)=\frac{ax^3}3+\frac{bx^2}2+cx$, then $F'=p$ and $F(0)=0$. When $F(1)=\frac a3+\frac b2+c=0$ as well, Rolle's theorem gives $c_0\in(0,1)$ with $p(c_0)=0$. In words: if the integral of the polynomial from $0$ to $1$ is zero, the polynomial has a root in $(0,1)$. The same trick works for any polynomial $a_0x^n+a_1x^{n-1}+\cdots+a_n$ with $\frac{a_0}{n+1}+\frac{a_1}n+\cdots+a_n=0$.
A second device multiplies by an exponential or divides by $x$ to make the combined function have equal endpoint values. Example 5 uses the first device. For a differential-equation-flavoured version, the existence of $c$ with $f'(c)+f(c)=0$ follows from Rolle applied to $e^xf(x)$ when $f(a)=f(b)=0$, since $\left(e^xf\right)'=e^x(f'+f)$.
Counting real roots with Rolle's corollary
If $f$ is differentiable, then between any two distinct real roots of $f$ there is a root of $f'$. Therefore: $$\text{number of real roots of }f\le\text{number of real roots of }f'+1.$$ If $f'$ has no real root, $f$ has at most one. If $f'$ has exactly $k$ real roots, $f$ has at most $k+1$ real roots (distinct, counted without multiplicity).
The usual route to an exact count combines this upper bound with the intermediate value theorem to establish sign changes. For $f(x)=x^4-4x+1$, $f'(x)=4x^3-4$ has the single real root $x=1$. So $f$ has at most two real roots. The values $f(0)=1$, $f(1)=-2$ and $f(2)=9$ show a sign change in $(0,1)$ and another in $(1,2)$. So there are exactly two. Example 6 does this.
For a polynomial of odd degree there is always at least one real root, and the derivative trick bounds the number from above. A cubic $x^3+px+q$ with $p\ge0$ is strictly increasing and so has exactly one real root; with $p<0$ it has three real roots exactly when $4p^3+27q^2<0$. You can recover that condition yourself by requiring the values of $f$ at its two stationary points, $x=\pm\sqrt{-p/3}$, to have opposite signs.
LMVT for bounds and inequalities
Two forms cover almost all JEE questions.
Growth bound. If $m\le f'(x)\le M$ on $(a,b)$, then $m(b-a)\le f(b)-f(a)\le M(b-a)$. In particular if $f'(x)\le k$ everywhere and $f(a)$ is given, the largest possible value of $f(b)$ is $f(a)+k(b-a)$, and the function with constant derivative $k$ attains it.
Inequality for a standard function. To bound $\ln\frac{101}{100}$, apply LMVT to $\ln x$ on $[100,101]$: $$\ln101-\ln100=\frac1c,\qquad c\in(100,101),$$ so $\frac1{101}<\ln\frac{101}{100}<\frac1{100}$. The same method gives the inequality $\frac{b-a}{b}<\ln\frac ba<\frac{b-a}a$ for $0<a<b$, the inequality $\lvert\sin a-\sin b\rvert\le\lvert a-b\rvert$ (because $\lvert\cos c\rvert\le1$), and bounds for $\tan^{-1}$ differences, since $\left(\tan^{-1}x\right)'=\frac1{1+x^2}\le1$.
These are not numerical approximations; they give true two-sided bounds that sometimes let you pin down an integer part. Example 4 does that.
The multiple-correct pattern: Rolle applied to derivatives
Rolle's theorem can be reused on $f'$. If $f$ has three distinct zeros $r_1<r_2<r_3$, then $f'$ has a zero in each of $(r_1,r_2)$ and $(r_2,r_3)$, so at least two zeros. Applying Rolle to $f'$ on the interval between these two zeros gives a zero of $f''$. So three zeros of $f$ force at least two zeros of $f'$ and at least one of $f''$ (all assuming the required differentiability). In general $n$ distinct zeros of $f$ force at least $n-1$ distinct zeros of $f'$ and at least $n-2$ of $f''$.
The wrong lessons from this are exactly the options a question will offer: "exactly" instead of "at least", or an assertion about a specific point such as $f''(1)=0$ that is not forced. Example 10 builds both counterexamples.
Worked examples
Every example was checked numerically (derivatives by central differences, counts by sign scans) before it was written.
Example 1 (numerical, easy-medium). For $f(x)=x(x+3)e^{-x/2}$ on $[-3,0]$, Rolle's theorem holds. Find $c$.
$f(-3)=0=f(0)$ and $f$ is smooth. $f'(x)=-\frac{e^{-x/2}}{2}(x-3)(x+2)$, so $f'(c)=0$ gives $c=3$ or $c=-2$. Only $-2$ lies in $(-3,0)$. A numerical derivative at $x=-2$ is zero to nine decimal places. Answer: $c=-2$.
Example 2 (numerical, medium). The function $f(x)=x^3-6x^2+ax+b$ satisfies Rolle's theorem on $[1,3]$ with $c=2+\frac1{\sqrt3}$. Find $a$.
$f'(x)=3x^2-12x+a$ has roots with sum $4$ (from the coefficients). One root is $c=2+\frac1{\sqrt3}$, so the other is $2-\frac1{\sqrt3}$. Their product is $4-\frac13=\frac{11}3$ and equals $\frac a3$, so $a=11$. Check: $f(1)=-5+a+b$ and $f(3)=-27+3a+b$ are equal exactly when $2a=22$, so $a=11$ also makes the endpoint condition hold, whatever $b$ is. Answer: 11.
Example 3 (numerical, easy). Using LMVT for $f(x)=\ln x$ on $[1,e]$, find $c$ to two decimal places.
$f'(c)=\frac1c=\frac{\ln e-\ln1}{e-1}=\frac1{e-1}$, so $c=e-1\approx1.72$, which lies in $(1,e)$ because $e\approx2.718$. Answer: 1.72.
Example 4 (numerical, medium). Using LMVT, $\frac1{101}<\ln\frac{101}{100}<\frac1{100}$. Let $m$ be the integer with $m<10000\ln\frac{101}{100}<m+1$. Find $m$.
Multiplying the bounds by $10000$: $\frac{10000}{101}\approx99.0099<10000\ln1.01<100$. So the quantity lies strictly between $99$ and $100$, and $m=99$. The actual value is $99.5033$. Answer: 99.
Example 5 (single-correct, medium). If $2a+3b+6c=0$ with $a\ne0$, then the equation $ax^2+bx+c=0$
(A) has no real root (B) has at least one root in $(0,1)$ (C) has both roots in $(0,1)$ (D) has no root in $(0,1)$
Let $F(x)=\frac{ax^3}3+\frac{bx^2}2+cx$. Then $F(0)=0$ and $F(1)=\frac a3+\frac b2+c=\frac{2a+3b+6c}6=0$. By Rolle's theorem, $F'(x)=ax^2+bx+c$ has a root in $(0,1)$. For a sample, $a=3$, $b=2$, $c=-2$ satisfies the condition, and $3x^2+2x-2=0$ has the root $\frac{-2+\sqrt{28}}{6}\approx0.5486$. The other root is negative, which rules out (C). Answer: (B).
Example 6 (numerical, medium). Find the number of real roots of $x^4-4x+1=0$.
Let $f=x^4-4x+1$. $f'=4x^3-4=4(x-1)(x^2+x+1)$, with $x^2+x+1>0$ always, so $f'$ has exactly one real root, $x=1$. Therefore $f$ has at most two real roots. $f(0)=1>0$, $f(1)=-2<0$, $f(2)=9>0$, so there is a root in $(0,1)$ and another in $(1,2)$. Also $f$ is decreasing for $x<1$ and increasing for $x>1$, so those are all of them. Answer: 2.
Example 7 (numerical, medium). A differentiable function $f$ satisfies $f(0)=-3$ and $f'(x)\le5$ for all real $x$. Find the greatest possible value of $f(2)$.
By LMVT, $f(2)-f(0)=2f'(c)\le10$, so $f(2)\le7$. The function $f(x)=5x-3$ attains $7$. Answer: 7. The bound is sharp because the derivative can equal the bound everywhere.
Example 8 (numerical, medium). For $f(x)=x^3-3x$ on $[-2,2]$, how many values of $c$ does LMVT's equation $f'(c)=\frac{f(2)-f(-2)}{4}$ have in $(-2,2)$?
$f(2)=2$, $f(-2)=-2$, so the average slope is $\frac44=1$. Solve $3c^2-3=1$: $c^2=\frac43$, $c=\pm\frac{2}{\sqrt3}\approx\pm1.1547$. Both values are inside $(-2,2)$. Answer: 2. The theorem promises at least one; the function gives two.
Example 9 (numerical, hard). For $f(x)=(x-1)^2(x-4)^3$ on $[1,4]$, Rolle's theorem applies. Find $c$.
$f(1)=f(4)=0$. $f'(x)=(x-1)(x-4)^2\left[2(x-4)+3(x-1)\right]=(x-1)(x-4)^2(5x-11)$, so the roots are $1$, $4$ and $\frac{11}5$. The only root in $(1,4)$ is $\frac{11}5=2.2$, matching the ratio rule $c=\frac{3\cdot1+2\cdot4}5$. A numerical derivative at $2.2$ is zero. Answer: 2.2.
Example 10 (multiple-correct, hard). A function $f$ is twice differentiable on $\mathbb R$ with $f(0)=f(1)=f(2)=0$. Which statements must be true?
(A) $f'$ has at least two zeros in $(0,2)$ (B) $f''$ has at least one zero in $(0,2)$ (C) $f'$ has exactly two zeros in $(0,2)$ (D) $f''(1)=0$
Rolle on $[0,1]$ and $[1,2]$ gives a zero of $f'$ in each, so (A) holds. Those two zeros $c_1<c_2$ satisfy $f'(c_1)=f'(c_2)=0$, so Rolle on $f'$ over $[c_1,c_2]\subset(0,2)$ gives a zero of $f''$, so (B) holds. (C) fails because "exactly" is not forced: $f(x)=x(x-0.5)(x-1)(x-1.5)(x-2)$ vanishes at $0,1,2$ and its derivative has four zeros in $(0,2)$ (checked numerically). (D) fails: $f(x)=x(x-1)(x-2)(x-3)$ vanishes at $0,1,2$, but $f''(1)=-2\ne0$. Answer: (A) and (B).
Common traps
- Applying Rolle's theorem without checking $f(a)=f(b)$. The theorem needs equal endpoint values. Computing $f'(c)=0$ and finding a solution does not make the theorem applicable.
- Overlooking a corner or vertical tangent inside the interval. $\lvert x\rvert$ and $x^{2/3}$ on $[-1,1]$ fail differentiability at $0$ even though they are continuous and take equal endpoint values.
- Including a root of $f'(c)=m$ that lies outside $(a,b)$. In Example 1 the root $c=3$ is a solution of $f'=0$ but not in $[-3,0]$. Always filter.
- Treating the theorem as unique. LMVT gives at least one $c$. The count can be two or more, and "the number of $c$" questions ask for the count of roots inside the interval.
- Reading "Rolle's theorem fails" as "no $c$ exists". A failed hypothesis only removes the guarantee. Compute $f'$ directly to see whether a point still exists.
- Counting multiple roots as separate. The bound "roots of $f\le$ roots of $f'$ plus one" counts distinct real roots. A repeated root of $f$ is a root of $f'$ as well.
- Forgetting that an odd-degree polynomial always has a real root. An argument that "$f'$ has no real roots, so $f$ has none" is wrong; it only shows at most one. Use a sign change to show exactly one.
- Choosing the wrong auxiliary function. For $a x^2+bx+c$ the right choice integrates to $\frac{ax^3}3+\frac{bx^2}2+cx$. Using $ax^2+bx+c$ itself, or its derivative, does not fit the condition $2a+3b+6c=0$.
- Mixing the order of subtraction in the average slope. The quotient is the same when both differences are swapped, but $f(b)-f(a)$ over $a-b$ has the wrong sign. Write $f(b)-f(a)$ over $b-a$ every time.
- Using the wrong end for each bound. For $\ln x$ the derivative $\frac1x$ is decreasing, so the larger bound $\frac1{100}$ comes from the left endpoint and the smaller $\frac1{101}$ from the right. The inequalities are strict because $c$ is strictly inside the interval.
- Using Rolle on $f'$ without differentiability of $f'$. The second application needs $f'$ to be continuous on $[c_1,c_2]$ and differentiable inside. Twice differentiability on the whole interval is the assumption that makes (B) valid.
A one-page recap
- Rolle: continuous on $[a,b]$, differentiable on $(a,b)$, $f(a)=f(b)$ gives $f'(c)=0$.
- LMVT: continuous on $[a,b]$, differentiable on $(a,b)$ gives $f'(c)=\frac{f(b)-f(a)}{b-a}$.
- Failure of a hypothesis means no guarantee, not no conclusion.
- Finding $c$: factorise $f'$, solve, keep only roots in the open interval, count them.
- $(x-a)^m(x-b)^n$ on $[a,b]$: $c=\frac{na+mb}{m+n}$.
- If $\frac{a_0}{n+1}+\frac{a_1}{n}+\cdots+a_n=0$ then $a_0x^n+\cdots+a_n$ has a root in $(0,1)$ (Rolle on the integral).
- Real roots of $f\le$ real roots of $f'$ plus one; combine with sign changes for an exact count.
- $m\le f'\le M$ gives $m(b-a)\le f(b)-f(a)\le M(b-a)$.
- $\frac{b-a}b<\ln\frac ba<\frac{b-a}a$ for $0<a<b$, and $\lvert\sin a-\sin b\rvert\le\lvert a-b\rvert$.
- $n$ zeros of $f$ force $n-1$ zeros of $f'$ and $n-2$ zeros of $f''$.
Also read: JEE Main Numerical Value Questions: Rules and Strategy
How to practise this chapter
Read the book chapter: Continuity and Differentiability, English, Hindi, Telugu, and for the derivative techniques Methods of Differentiation, English. Chapter tests on this material come from the continuity and differentiability set, each of 15 questions in 36 minutes: test 1, test 2, test 3, test 4 and test 5. Applications of derivatives, where root counting and monotonicity meet, has test 1 to test 4. The tests are part of the Pro Pass; the free JEE Main mini mock gives a short sample.
A seven-day plan that we suggest:
- Day 1. Hypothesis checks: for twenty functions and intervals, write the three conditions and decide before computing anything.
- Day 2. Finding $c$ for Rolle and LMVT, filtering roots; include a case with two valid values.
- Day 3. The ratio rule for $(x-a)^m(x-b)^n$ and the auxiliary-function proofs of root existence.
- Day 4. Counting real roots with Rolle's corollary and sign checks; polynomial examples of degree three to five.
- Day 5. LMVT bounds and inequalities for $\ln$, $\sin$, $\tan^{-1}$ and growth-rate questions.
- Day 6. Multiple-correct questions using Rolle on $f'$; construct your own counterexamples for "exactly" and "specific point".
- Day 7. Chapter tests 1 and 2 timed, then an error log by category as in the error-log method.
After that, practise mixed sets with the mathematics practice tests from /t/jee-main-mathematics-pt26-01 and the full mocks from /t/jee-main-jm26-01. Related posts: monotonicity, where the same derivative-sign arguments count roots, and application of derivatives: maxima and minima. The wider plan is in JEE Main Maths preparation strategy. Practise official past papers from the NTA and JEE Advanced websites.
Frequently asked questions
Does Rolle's theorem tell me how many values of $c$ exist?
No. It guarantees at least one. The function $\sin x$ on $[0,2\pi]$ has two values of $c$ with $f'(c)=0$, namely $\frac\pi2$ and $\frac{3\pi}2$. If a question asks for the number, you must solve $f'(c)=0$ and count the roots inside the interval.
Why do I need both Rolle and Lagrange?
Rolle's theorem is the clean form when the endpoint values are equal and the goal is a stationary point or a root. LMVT is the general form for rates of change and for bounds. Many proofs apply Rolle to a function built from $f$ and a linear term, which is exactly how LMVT is proved.
How do I prove that an equation has a root in an interval using Rolle's theorem?
Find a function $F$ with $F'$ equal to the given expression and with $F(a)=F(b)$. For a polynomial $p$ on $(0,1)$ take the antiderivative that vanishes at $0$, and use the condition that it also vanishes at $1$. Rolle then gives a point where $F'=p$ is zero.
How can I count real roots of a polynomial quickly?
Find the real roots of the derivative; the polynomial has at most one more real root than the derivative. Then evaluate the polynomial at the derivative's roots and at a point on each side to find sign changes. The number of sign changes is the exact count of simple real roots.
Is the Lagrange theorem used for inequalities in JEE Main?
Yes, mainly for logarithms, sine and arctangent differences and for growth-rate statements. The method is to apply it to the standard function on the interval between the two numbers and bound the derivative at the unknown point $c$.
What if the function fails differentiability at one point in the interval?
Then neither theorem applies on that interval, but you may split the interval at the bad point and apply the theorem on each side if the function is continuous and the endpoint conditions fit. Do not claim the conclusion on the whole interval.
Which kind of question is more common, finding $c$ or checking hypotheses?
Hypothesis checking appears in statement-type and multiple-correct questions, while finding $c$ appears in short numerical questions. Both are quick once you write the three conditions explicitly each time.

Comments (0)
No comments yet. Be the first to share your thoughts.