Q.Find the derivative of cosx from first principle.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Difference Quotient
The Difference Quotient: What It Is and Why It Matters
Imagine you're tracking the distance a car has travelled over time. At 2:00 PM, the odometer reads 40 km. At 2:30 PM, it reads 70 km. How fast was the car going on average during that half-hour?
You'd calculate: 0.5 hours70−40=60 km/h.
That fraction — change in distance divided by change in time — is the average rate of change. The difference quotient is just a formal, algebraic way of writing that same idea for any function.
The Intuition: Slope of a Secant Line
Take any function f(x). Pick two points on its graph: (x,f(x)) and (x+h,f(x+h)), where h is some horizontal step (positive or negative). The line that cuts through both points is called a secant line.
The slope of that secant line is:
slope=runrise=(x+h)−xf(x+h)−f(x)=hf(x+h)−f(x)
That expression — hf(x+h)−f(x) — is the difference quotient.
The name comes from "difference" (you subtract two function values) and "quotient" (you divide by h). It's literally a quotient of differences.
The Precise Statement
hf(x+h)−f(x),h=0
This gives the average rate of change of f over the interval from x to x+h. Geometrically, it's the slope of the secant line through (x,f(x)) and (x+h,f(x+h)).
Key restrictions:
- h cannot be zero (you can't divide by zero).
- x and x+h must both be in the domain of f.
A Concrete Example
Let f(x)=x2. Compute the difference quotient at x=3 with h=0.1:
0.1f(3+0.1)−f(3)=0.1(3.1)2−9=0.19.61−9=0.10.61=6.1
This tells us: over the interval [3,3.1], the function x2 increases at an average rate of 6.1 units per unit change in x.
If you shrink h to 0.01, you'd get 6.01. As h gets smaller, the average rate approaches 6 — which is exactly the instantaneous rate of change (the derivative) of x2 at x=3.
The difference quotient is the bridge between average rates (which you can compute with simple algebra) and instantaneous rates (which require limits). When you take the limit as h→0, you get the derivative.
Why You'll See It Everywhere
The difference quotient isn't just a classroom exercise. It's the foundation of calculus: …
Concept: First Principle of Differentiation (Limit Definition)
The derivative from first principle is defined as:
f′(x)=limh→0hf(x+h)−f(x)
For f(x)=cosx, we have:
f′(x)=limh→0hcos(x+h)−cosx
Using the identity cosA−cosB=−2sin(2A+B)sin(2A−B):
=limh→0h−2sin(x+2h)sin(2h)
Rewrite as: …
The derivative of cosx from first principles is −sinx. This is found by applying the limit definition of the derivative, using the cosine difference identity, and evaluating two standard trigonometric limits.
The "first principle" method is the formal definition of a derivative. It asks: what happens to the function when we make an infinitesimally small change in x? For any function f(x), the derivative at x is defined as:
f′(x)=limh→0hf(x+h)−f(x)
This is the slope of the tangent line, calculated as the limit of the slope of a secant line as the two points get infinitely close. For f(x)=cosx, we need to evaluate:
dxd(cosx)=limh→0hcos(x+h)−cosx
The challenge is that we cannot simply plug h=0 — that gives 00. We need to manipulate the expression using trigonometric identities until the limit becomes computable.
- Apply the cosine sum formula. The identity cos(A+B)=cosAcosB−sinAsinB lets us expand cos(x+h):
cos(x+h)=cosxcosh−sinxsinh
Substituting into the limit:
limh→0h(cosxcosh−sinxsinh)−cosx
- Factor and separate terms. Group the cosx terms together:
limh→0hcosx(cosh−1)−sinxsinh
Since the limit of a sum is the sum of the limits (provided each exists), we can split:
cosx⋅limh→0hcosh−1−sinx⋅limh→0hsinh
-
Evaluate the two standard limits.
These are the heart of the proof. You must know them:
- h→0limhsinh=1 (this is the fundamental trigonometric limit)
- h→0limhcosh−1=0 (this follows from the identity cosh−1=−2sin2(h/2) and the previous limit)
›Proof
Proof of h→0limhcosh−1=0:
Use cosh−1=−2sin2(2h). Then …
- KCET 2025Set A-11 markMCQQ.The function f(x)={ex+ax,b(x−1)2,x<0x≥0 is differentiable at x=0. Then (A) a=1,b=1 (B) a=3,b=1 (C) a=−3,b=1 (D) a=3,b=−1
›Reveal solutionSolution
Differentiability at a junction of a piecewise function forces two conditions — the values must agree (continuity) and the one-sided derivatives must agree — giving two equations for a and b.
f(x)={ex+ax,b(x−1)2,x<0x≥0
Step 1 — Continuity at x=0 (necessary for differentiability).
limx→0−f(x)=e0+a(0)=1,f(0)=b(0−1)2=b.
A differentiable function is always continuous, so these must be equal:
b=1
Step 2 — Left-hand derivative at x=0. For x<0, f′(x)=ex+a, so
LHD=limx→0−(ex+a)=1+a.
Step 3 — Right-hand derivative at x=0. For x≥0, f′(x)=2b(x−1), so
RHD=2b(0−1)=−2b=−2(using b=1). …
- COMEDK 2025Set 2025-E1 markMCQQ.Evaluate: limx→0x31+x−31−x (A) 1 (B) 0 (C) 32 (D) 31
›Reveal solutionSolution
This limit is a derivative in disguise: the expression is the difference quotient for the cube‑root function at x=0. The limit equals 32, which corresponds to option (C).
The core idea is that a limit of the form
limx→0xf(0+x)−f(0−x)
is actually twice the derivative of f at 0, provided the derivative exists. Here f(t)=3t=t1/3, so we can avoid messy algebra by using the derivative rule.
- Recognize the derivative structure Write the limit as
limx→0x31+x−31−x.
Let f(t)=3t. Then the numerator is f(1+x)−f(1−x). For small x,
f(1+x)≈f(1)+f′(1)x,f(1−x)≈f(1)−f′(1)x,
so their difference is approximately 2f′(1)x. Dividing by x gives 2f′(1).
- Compute the derivative f(t)=t1/3 so f′(t)=31t−2/3. At t=1,
f′(1)=31⋅1−2/3=31.
Hence the limit is 2⋅31=32.
- Verify with algebraic manipulation (optional) Use the identity a3−b3=(a−b)(a2+ab+b2) with a=31+x,b=31−x. Multiply numerator and denominator by a2+ab+b2: xa−b=x(a2+ab+b2)a3−b3=x(a2+ab+b2)(1+x)−(1−x)=x(a2+ab+b2)2x=a2+ab+b22. …
- COMEDK 2025Set 2025-M1 markMCQQ.Find the value of h→0limh(a+h)2sin(a+h)−a2sina (A) −a2sina (B) 0 (C) 1 (D) a2cosa+2asina
›Reveal solutionSolution
This limit is the definition of the derivative of f(x)=x2sinx at x=a. The derivative is 2xsinx+x2cosx, so the limit equals a2cosa+2asina, which is option (D).
The key insight is recognizing that the expression
limh→0h(a+h)2sin(a+h)−a2sina
is exactly the definition of the derivative of the function f(x)=x2sinx evaluated at x=a.
So instead of manipulating the limit directly, we can differentiate f(x) and then plug in x=a.
- Identify the function and the derivative definition The general definition of the derivative is
f′(a)=limh→0hf(a+h)−f(a).
Here, f(x)=x2sinx, so f(a+h)=(a+h)2sin(a+h) and f(a)=a2sina.
Thus the given limit is simply f′(a).
- Differentiate f(x)=x2sinx Use the product rule:
f′(x)=(x2)′sinx+x2(sinx)′=2xsinx+x2cosx.
- Evaluate at x=a
f′(a)=2asina+a2cosa.
- Match with the options …
- COMEDK 2024Set 2024-A1 markMCQQ.
[!FORMULA] The value of limx→0xsin(a+x)−sin(a−x) is
(A) 1 (B) 0 (C) 2cosa (D) 2sina›Reveal solutionSolution
This limit is the definition of the derivative of sinx at x=a, but with a symmetric difference. The value is 2cosa, so the correct option is (C).
The key insight is that the numerator sin(a+x)−sin(a−x) is a difference of two sines. Instead of memorizing formulas, think: as x→0, both sin(a+x) and sin(a−x) approach sina, so we have a 00 form. The natural tool is either the sine difference identity or recognizing this as a derivative.
- Use the sine difference identity Recall: sinP−sinQ=2cos(2P+Q)sin(2P−Q). Here P=a+x, Q=a−x. Then
sin(a+x)−sin(a−x)=2cos(2(a+x)+(a−x))sin(2(a+x)−(a−x))
Simplify:
=2cos(22a)sin(22x)=2cosa⋅sinx.
- Rewrite the limit The original limit becomes
limx→0x2cosa⋅sinx=2cosa⋅limx→0xsinx.
- Apply the fundamental limit We know x→0limxsinx=1. Therefore, limx→0xsin(a+x)−sin(a−x)=2cosa⋅1=2cosa. …
- COMEDK 2024Set 2024-M1 markMCQQ.limx→0xa(a+x)a+x−a equals to (A) a−23 (B) 2a231 (C) 21 (D) 2a−23
›Reveal solutionSolution
The limit simplifies by rationalizing the numerator and cancelling the factor of x, yielding 2a3/21; the correct option is (B).
We are asked to evaluate
limx→0xa(a+x)a+x−a.
The direct substitution x=0 gives 00, an indeterminate form. The presence of square roots suggests rationalizing the numerator — a classic trick that turns a difference of square roots into an expression where the x cancels cleanly.
- Rationalize the numerator Multiply numerator and denominator by the conjugate a+x+a:
xa(a+x)a+x−a⋅a+x+aa+x+a=xa(a+x)(a+x+a)(a+x)−a.
- Simplify the numerator The numerator becomes (a+x)−a=x. So we have:
xa(a+x)(a+x+a)x.
- Cancel the common factor x (valid for x=0, which is fine since we take the limit):
a(a+x)(a+x+a)1.
- Take the limit as x→0 Now substitute x=0: a(a+0)(a+0+a)1=a2(a+a)1. …
- KCET 2023Set A-21 markMCQQ.If f(x) and g(x) are two functions with g(x)=x−x1 and fog(x)=x3−x31 then f′(x)= (A) 3x2+x43 (B) x2−x21 (C) 1−x21 (D) 3x2+3
›Reveal solutionSolution
Rewrite x3−x31 as a cubic in g(x)=x−x1; that identifies f explicitly, and then f′ is immediate.
Step 1 — What we are given.
g(x)=x−x1,(f∘g)(x)=f(g(x))=x3−x31
To find f′ we must first know f as a function of its own argument — so we must express x3−x31 purely in terms of (x−x1).
Step 2 — Use the algebraic identity.
Recall (a−b)3=a3−b3−3ab(a−b). Put a=x, b=x1 (so ab=1):
(x−x1)3=x3−x31−3(x−x1)
Rearranging,
x3−x31=(x−x1)3+3(x−x1)
Step 3 — Read off f.
The right-hand side is written entirely in terms of g(x):
f(g(x))=[g(x)]3+3g(x)
Since this holds for every x (and g takes all real values), the rule of f is
f(t)=t3+3t.
Step 4 — Differentiate.
f′(t)=3t2+3⟹f′(x)=3x2+3
Step 5 — Verify with the chain rule (independent check).
dxd(x3−x31)=3x2+x43, and g′(x)=1+x21. The chain rule demands f′(g(x))g′(x)=3x2+x43, i.e. …
- KCET 2023Set A-21 markMCQQ.If f(x)=1+nx+2n(n−1)x2+6n(n−1)(n−2)x3+…+xn then f′′(1)= (A) n(n−1)2n−2 (B) n(n−1)2n (C) 2n−1 (D) (n−1)2n−1
›Reveal solutionSolution
Recognise the series as (1+x)n, differentiate twice, then substitute x=1.
Step 1 — Identify the function.
The coefficients 1,n,2n(n−1),6n(n−1)(n−2),…,1 are precisely (0n),(1n),(2n),(3n),…,(nn), because
(2n)=2!n(n−1)=2n(n−1),(3n)=3!n(n−1)(n−2)=6n(n−1)(n−2).
So by the binomial theorem
f(x)=∑k=0n(kn)xk=(1+x)n.
This is the key move: instead of differentiating a long polynomial term by term, we collapse it to a closed form.
Step 2 — Differentiate twice.
Using the power/chain rule, …
- COMEDK 2023Set 2023-E1 markMCQQ.
[!FORMULA] limx→0xax−bx is equal to
(A) logab (B) logb (C) logba (D) loga›Reveal solutionSolution
Using limx→0xax−1=loga, the limit equals loga−logb=logba.
Write
xax−bx=x(ax−1)−(bx−1).
As x→0, xax−1→loga and xbx−1→logb, so …
- KCET 2022Set C-41 markMCQQ.If f(1)=1, f′(1)=3 then the derivatives of f(f(f(x)))+(f(x))2 at x=1 is (A) 33 (B) 35 (C) 12 (D) 10
›Reveal solutionSolution
Chain rule on the triple composite plus power rule on (f(x))2; because f(1)=1 is a fixed point, every inner argument stays 1 and every factor becomes f′(1)=3.
Step 1 — Note the key fact: x=1 is a fixed point
We are given f(1)=1. Therefore
f(f(1))=f(1)=1,f(f(f(1)))=1
So whenever we substitute x=1, every inner argument collapses to 1, and every derivative factor becomes f′(1)=3. This is what makes the problem tractable without knowing f.
Step 2 — Differentiate the composite f(f(f(x)))
Apply the chain rule from the outside in:
dxdf(f(f(x)))=f′(f(f(x)))⋅f′(f(x))⋅f′(x)
Evaluate at x=1:
=f′(f(f(1)))⋅f′(f(1))⋅f′(1)=f′(1)⋅f′(1)⋅f′(1)=3×3×3=27 …
- KCET 2022Set C-41 markMCQQ.limy→0y33+y3−3= (A) 321 (B) 23 (C) 32 (D) 231
›Reveal solutionSolution
Put t=y3 to turn the expression into the standard ta+t−a form, then rationalise the numerator to kill the 00 indeterminacy.
Step 1 — Recognise the indeterminate form
L=limy→0y33+y3−3
As y→0, the numerator →3−3=0 and the denominator y3→0: the form is 00, so direct substitution is not allowed.
Step 2 — Substitute to simplify
Notice that y appears only as y3. Put
t=y3so that y→0⟺t→0
L=limt→0t3+t−3
Step 3 — Rationalise the numerator
The standard tool for a surd difference is multiplication by the conjugate, because (A−B)(A+B)=A−B removes the radicals from the numerator:
t3+t−3×3+t+33+t+3=t(3+t+3)(3+t)−3=t(3+t+3)t
Since t=0 in the limiting process, cancel t: …
- KCET 2018Set A-11 markMCQQ.If f(x)={x1+kx−1−kxx−12x+1if −1≤x<0if 0≤x≤1 is continuous at x=0, then the value of k is (A) k=1 (B) k=−1 (C) k=0 (D) k=2
›Reveal solutionSolution
For continuity at x=0, the left-hand limit must equal the right-hand limit, which is f(0)=−1. Evaluating the left-hand limit using rationalisation gives 1k=k, so k=−1.
The key idea here is that continuity at a point means the function's value at that point equals the limit from both sides. For a piecewise function, we must check the boundary where the definition changes — here, x=0.
The left-hand piece (−1≤x<0) involves a difference of square roots, which is a classic indeterminate form 00 when x→0. The right-hand piece (0≤x≤1) is a rational function, and at x=0 it gives a finite value directly.
Let's work through it step by step.
- Find f(0) from the right-hand definition. Since 0≤x≤1 includes x=0, we use the second piece:
f(0)=0−12(0)+1=−11=−1.
For continuity, the left-hand limit must also equal −1.
- Set up the left-hand limit. For −1≤x<0, we have
f(x)=x1+kx−1−kx.
As x→0−, both numerator and denominator approach 0, so we need to simplify.
- Rationalise the numerator. Multiply numerator and denominator by the conjugate:
x1+kx−1−kx⋅1+kx+1−kx1+kx+1−kx.
The numerator becomes:
(1+kx)−(1−kx)=2kx.
So the expression simplifies to:
x(1+kx+1−kx)2kx=1+kx+1−kx2k.
- Take the limit as x→0−. As x→0, both 1+kx and 1−kx approach 1=1. So: limx→0−f(x)=1+12k=22k=k. …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.