Skip to chapter text
MathematicsCh 5 Continuity and Differentiability

Continuity and Differentiability: Class 12 Maths · Chapter 5

Mathematics Part 1 · Companion notes, simulations and practice · Official NCERT chapter PDF ↗

Published · Updated

  • 145 min
  • 45 practice questions
  • 30 MCQs

What you will learn in Continuity and Differentiability

  • Decide whether a function is continuous at a point by comparing its one-sided limits with its value, and find every point of discontinuity of a piecewise function.
  • Use the algebra of continuous functions and composition to show that polynomial, rational, trigonometric and modulus functions are continuous on their domains.
  • Explain why differentiability implies continuity, and use one-sided derivatives to show that a corner such as |x − a| is not differentiable.
  • Differentiate composite, implicit and inverse trigonometric functions with the chain rule.
  • Describe exponential and logarithmic functions and their laws, and differentiate eˣ, log x, aˣ and their composites.
  • Use logarithmic differentiation for variable powers and long products, and find dy/dx for curves given in parametric form.
  • Find second order derivatives and verify relations between a function and its derivatives.

Original companion text aligned to NCERT Mathematics Class 12, Chapter 5, pp. 104–146. Not affiliated with or endorsed by NCERT.

5.1 Introduction

Picture two graphs from an ordinary day. The temperature in Jaipur climbs smoothly through the morning, never by a sudden leap. A car-park charge sits at ₹40 for a while, then leaps to ₹60 the instant another hour is completed.

This chapter turns that everyday difference into mathematics. A function whose graph has no breaks at a point is continuous (संतत) there. A function whose graph also has a single, well-defined slope at a point is differentiable (अवकलनीय) there. We will see exactly how the two ideas are linked.

Then we widen your Class XI toolkit for derivatives: composite functions, relations never solved for y, inverse trigonometric functions, exponentials and logarithms, curves given through a third variable, and derivatives of derivatives.

5.2 Continuity

Slide a pencil along a graph from left to right and watch what happens as you pass a particular point x=c. If the pencil never leaves the paper near c, the graph is unbroken there. Fig. 5.1 shows the ways a graph can break at c. Each break is a different failure, and our definition must catch every one of them.

3/5The left side and the right side head for different heights.

Fig. 5.1Four ways to break a graph at x=c, and the unbroken case.NCERT Figs 5.1–5.2 · p. 104

Axes with a dashed vertical guide at x = c. Step 1 shows an unbroken rising curve that passes through a filled dot at x = c. Step 2 shows the same curve with an open circle at x = c and no dot anywhere above c, so f(c) is not defined. Step 3 cuts the curve at c: the left piece ends at a filled dot and the right piece starts higher up at an open circle, so the two sides approach different heights. Step 4 shows the curve again with an open circle on it at c, while the filled dot giving f(c) sits well above the curve. Step 5 shows a curve that shoots up on the right of c and down on the left of c, hugging the dashed guide, with no finite height to approach.

Recall from Class XI that lim⁡x→c−f(x), the left-hand limit, is the value f(x) approaches as x comes towards c through numbers smaller than c. The right-hand limit lim⁡x→c+f(x) uses numbers larger than c. When both exist and are equal, their common value is the limit lim⁡x→cf(x). These one-sided limits are the tools that separate the cases in the figure.

Definition
Continuity at a point

Take a real function f and a number c at which f is defined. We say f is continuous at c when lim⁡x→cf(x)=f(c).

Examplef(x)=x2 is continuous at c=3: as x→3, x2→9=f(3).

Continuity at c, in full
lim⁡x→c−f(x)  =  lim⁡x→c+f(x)  =  f(c)

Written out, continuity at c asks three questions, and all three answers must be yes:

  1. Is f(c) defined? (A hole fails here.)
  2. Do the left-hand and right-hand limits exist and agree? (A jump or a blow-up fails here.)
  3. Is that common value equal to f(c)? (A misplaced point fails here.)

When f fails this test at a point c of its domain, we call c a point of discontinuity and say that f is discontinuous there. The words of its domain matter: a number at which f has no value at all is never called a point of discontinuity in this chapter.

Example 1NCERT Example 1 · p. 106

A straight line at one point

Is f(x)=4−3x continuous at x=2?

Try it yourself first. Then reveal the solution one step at a time.

Example 2NCERT Example 2 · p. 106

A cubic at a negative point

Check whether p(x)=x3−2x is continuous at x=−1.

Try it yourself first. Then reveal the solution one step at a time.

Example 3NCERT Example 3 · p. 106

A modulus at its kink

Discuss the continuity of f(x)=∣x+3∣ at x=−3.

Try it yourself first. Then reveal the solution one step at a time.

Example 4NCERT Example 4 · p. 106

A point lifted off the curve

Let f(x)=x2−1 for x≠1 and f(1)=2. Show that f is not continuous at x=1.

Try it yourself first. Then reveal the solution one step at a time.

Use the probe below to run the three checks yourself. It walks x towards the point from both sides, ten times closer at each press, and lists the heights it finds.

InteractiveContinuity probe

A graph from x = −1 to 5 with a dashed guide at c = 2 and six function buttons: joined pieces, a jump, a hole, a misplaced point, a blow-up and a corner. Two probe dots sit at 2 − h and 2 + h on the graph. Each press of Move closer divides h by 10, from 1 down to 0.001, and adds a row to a table of f(2 − h) and f(2 + h); a line shows f(2) or says it is undefined. After the last press three checks are ticked or crossed (f(2) defined, both sides settle on one number, that number equals f(2)) and a verdict says whether the function is continuous at 2. Reset starts again.

Fig. 5.2Choose a function, press Move closer to bring x towards c=2 from both sides, then read the verdict.
Example 5NCERT Example 5 · p. 107

A constant function

Show that the constant function f(x)=−4 is continuous at every real number.

Try it yourself first. Then reveal the solution one step at a time.

Example 6NCERT Example 6 · p. 107

The identity function

Show that f(x)=x, the identity function, has no point of discontinuity.

Try it yourself first. Then reveal the solution one step at a time.

So far we have tested one point at a time. Usually we want to know about every point of the domain at once.

Definition
Continuous function

A real function that is continuous at each point of its domain.

Examplef(x)=x2 is a continuous function: it is continuous at every real number.

Two edge cases are worth a moment. If the domain of f is just one point, f passes the test automatically, since no nearby values exist to disagree with f(c). If f lives on a closed interval [a,b], each end has neighbours on one side only, so we use one-sided limits there: lim⁡x→a+f(x)=f(a) at the left end and lim⁡x→b−f(x)=f(b) at the right end. Asking for the left-hand limit at a would mean asking for values that f does not have.

Example 7NCERT Example 7 · p. 108

Modulus everywhere

Is f(x)=∣x+3∣ a continuous function?

Try it yourself first. Then reveal the solution one step at a time.

Example 8NCERT Example 8 · p. 108

A polynomial of degree four

Discuss the continuity of f(x)=2x4−5x+1.

Try it yourself first. Then reveal the solution one step at a time.

Example 9NCERT Example 9 · p. 108

A reciprocal on its domain

Discuss the continuity of f(x)=1x−2, x≠2.

Try it yourself first. Then reveal the solution one step at a time.

What does happen near x=2? Try values ever closer to 2 from each side, as in Table 5.1. The table shows two runaway trends.

Table 5.1Values of f(x)=1/(x−2) as x closes in on 2
x (right of 2)f(x)x (left of 2)f(x)
311−1
2.521.5−2
2.1101.9−10
2.011001.99−100
2.00110001.999−1000

On the right of 2 the values grow past every bound: name a number, a million say, and f(x) beats it once x is within a millionth of 2. The shorthand is lim⁡x→2+f(x)=+∞. On the left the values sink past every bound in the same way, written lim⁡x→2−f(x)=−∞. Be careful with the symbol: +∞ and −∞ are not real numbers. The equations say that the one-sided limits do not exist as real numbers, and they describe how they fail.

2/2As x→2− the dots fall without bound: f(x)→−∞.

Fig. 5.3The graph of y=1x−2 near x=2.NCERT Fig 5.3 · p. 109

Axes with a dashed vertical guide at x = 2. In the first step the right branch is highlighted, with dots at x = 3, 2.5, 2.25 and 2.2 whose heights 1, 2, 4 and 5 climb towards the top of the frame, labelled plus infinity. In the second step the left branch is highlighted, with dots at x = 1, 1.5, 1.75 and 1.8 whose heights −1, −2, −4 and −5 fall towards the bottom, labelled minus infinity. The two branches never touch the guide.

Example 10NCERT Example 10 · p. 110

Two pieces that miss

Discuss the continuity of f(x)={2x−1,x≤3x+4,x>3

Try it yourself first. Then reveal the solution one step at a time.

Example 11NCERT Example 11 · p. 110

A three-part rule

Find all points of discontinuity of f(x)={x2,x<21,x=26−x,x>2

Try it yourself first. Then reveal the solution one step at a time.

Example 12NCERT Example 12 · p. 111

A gap in the domain is not a break

Discuss the continuity of f(x)={3−x,x<0x2+1,x>0

Try it yourself first. Then reveal the solution one step at a time.

Example 13NCERT Example 13 · p. 111

Pieces that meet

Show that f(x)={x2+2,x≤14x−1,x>1 is a continuous function.

Try it yourself first. Then reveal the solution one step at a time.

Example 14NCERT Example 14 · p. 112

Every polynomial is continuous

Prove that every polynomial p(x)=a0+a1x+a2x2+⋯+anxn (with real ai) is a continuous function.

Try it yourself first. Then reveal the solution one step at a time.

The greatest integer function [x] gives the largest integer that is less than or equal to x. For example [2.7]=2, [5]=5 and [−1.2]=−2 (not −1, because −1 is larger than −1.2). Between two neighbouring integers [x] stays constant, and at each integer it steps up by 1. Charges that rise in steps behave the same way, as Fig. 5.4 shows.

2/3At x=2 the left side approaches ₹40 but the fee is ₹60: a jump.

Fig. 5.4The fee F(x)=20+20[x] rupees for x hours, 0≤x<4.NCERT Fig 5.8 · p. 112

Axes show hours parked from 0 to 4 and the fee in rupees from 0 to 100. The graph is four flat steps at 20, 40, 60 and 80 rupees; each step starts with a filled dot on the left and ends with an open circle on the right. The second step highlights the whole hour x = 2: an arrow shows the left step approaching ₹40, while the fee at exactly 2 hours, ₹60, is marked on the step above. The third step highlights x = 2.5, in the middle of a flat step, where the graph is level on both sides and nothing breaks.

Example 15NCERT Example 15 · p. 112

Where does the parking fee jump?

A car park charges ₹20 on entry and another ₹20 at the end of every completed hour, up to 4 hours. So the fee for x hours is F(x)=20+20[x], 0≤x<4. Find the points where F is discontinuous.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 4
At x=c a function has left-hand limit 4, right-hand limit 4, and f(c)=6. Which statement is correct?
Show answer

Answer (B) lim⁡x→cf(x)=4, but f is not continuous at c

The limit exists and equals 4, because both sides agree. Continuity also needs the limit to equal f(c), and 4≠6. Agreeing sides give a limit, not continuity; and the value f(c) plays no part in whether the limit exists.

5.2.1 Algebra of continuous functions

Testing every function from scratch would be slow. Since continuity is a statement about limits, the limit laws from Class XI carry straight over: combine continuous functions with +, −, × or ÷ and the result is continuous too.

Theorem 1Algebra of continuous functions

If two real functions f and g are both continuous at c, so are their sum f+g, their difference f−g and their product f⋅g. Their quotient fg is continuous at c too, as long as g(c)≠0.

  1. Taking f to be a constant λ in the product part: if g is continuous, so is λg. With λ=−1, continuity of g gives continuity of −g.
  2. Taking f=λ in the quotient part: λg is continuous wherever g(x)≠0. In particular 1g is.
Example 16NCERT Example 16 · p. 114

Rational functions

Show that r(x)=x2+1x−3 is continuous, and explain why the same holds for every rational function.

Try it yourself first. Then reveal the solution one step at a time.

Example 17NCERT Example 17 · p. 114

The cosine function

Prove that cos⁡x is continuous. Use two facts that are clear from the graphs of sine and cosine near 0: lim⁡h→0sin⁡h=0 and lim⁡h→0cos⁡h=1.

Try it yourself first. Then reveal the solution one step at a time.

Example 18NCERT Example 18 · p. 115

The secant function

Show that sec⁡x is continuous wherever it is defined.

Try it yourself first. Then reveal the solution one step at a time.

Composition is the other way of building functions: feed the output of g into f to get (f∘g)(x)=f(g(x)), which needs every output of g to be an allowed input of f. Fig. 5.5 shows why continuity survives this too.

3/3f is continuous at g(c), so f(g(x)) stays close to f(g(c)).

Fig. 5.5Small changes stay small through each continuous stage.NCERT p. 115

Three horizontal number lines are stacked, labelled x, u = g(x) and y = f(u). In step 1 a short highlighted interval surrounds the point c on the x line. In step 2 curved arrows labelled g carry it to a short highlighted interval around g(c) on the middle line. In step 3 arrows labelled f carry that to a short highlighted interval around f(g(c)) on the bottom line, so a small change at the start causes only a small change at the end.

Theorem 2Continuity of a composite

Suppose f∘g is defined at c. Continuity of g at c, together with continuity of f at the point g(c), makes f∘g continuous at c.

We use this theorem without proof; the figure carries the idea.

Example 19NCERT Example 19 · p. 115

Sine of a polynomial

Show that h(x)=sin⁡(2x3−x) is a continuous function.

Try it yourself first. Then reveal the solution one step at a time.

Example 20NCERT Example 20 · p. 115

A modulus inside a modulus

Show that f(x)=∣ ∣x∣−2 ∣ is a continuous function.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 3
f and g are continuous at 2, and g(2)=0. Which of these may fail to be continuous at 2?
Show answer

Answer (C) fg

A quotient is guaranteed continuous only where the denominator is non-zero; here fg is not even defined at 2. Sums, products and constant multiples of functions continuous at 2 are always continuous at 2.
Practice · 12 questions

Practice 5.1: questions with answers

Fresh questions on the skills of NCERT Exercise 5.1.

  1. Short answerEasyNCERT Exercise 5.1, Q1–Q2

    Use the definition of continuity.

    1. Show that f(x)=7−2x is continuous at x=−1, x=0 and x=4.

      Show solution

      AnswerContinuous at all three points.

      f is a polynomial, so lim⁡x→cf(x)=7−2c=f(c) for every c. In particular f(−1)=9, f(0)=7 and f(4)=−1 equal the limits there.

    2. Examine the continuity of g(x)=3x2+x−4 at x=−2.

      Show solution

      AnswerContinuous at x=−2.

      g(−2)=12−2−4=6, and lim⁡x→−2(3x2+x−4)=6. The limit equals the value.

  2. Short answerEasyNCERT Exercise 5.1, Q3

    Examine each function for continuity.

    1. h(x)=4x+9

      Show solution

      AnswerContinuous everywhere.

      A polynomial is continuous at every real number.

    2. h(x)=1x+3, x≠−3

      Show solution

      AnswerContinuous on its domain.

      For c≠−3, lim⁡x→c1x+3=1c+3=h(c). The point −3 is not in the domain, so h is a continuous function.

    3. h(x)=x2−9x−3, x≠3

      Show solution

      AnswerContinuous on its domain.

      For x≠3, h(x)=x+3. At every c≠3, lim⁡x→ch(x)=c+3=h(c).

    4. h(x)=∣x+1∣

      Show solution

      AnswerContinuous everywhere.

      For c<−1, h=−(x+1) near c; for c>−1, h=x+1 near c; both are continuous. At −1 both one-sided limits are 0, which equals h(−1).

  3. Short answerEasyNCERT Exercise 5.1, Q4

    Prove that f(x)=xm is continuous at x=2 for every positive integer m.

    Show solution

    Answerlim⁡x→2xm=2m=f(2).

    xm is a product of m copies of x, and lim⁡x→2x=2. By the product law, lim⁡x→2xm=2m, which is f(2). So f is continuous at 2.

  4. Short answerMediumNCERT Exercise 5.1, Q5

    Let f(x)=x+1 for x≤2 and f(x)=4 for x>2. Is f continuous at x=0? At x=2? At x=3?

    Show solution

    AnswerYes at 0, no at 2, yes at 3.

    At 0 and at 3, f agrees with a polynomial or a constant near the point, so it is continuous there.

    At 2: f(2)=3, lim⁡x→2−(x+1)=3 but lim⁡x→2+4=4. The sides disagree, so f is discontinuous at 2.

  5. Short answerMediumNCERT Exercise 5.1, Q6–Q12

    Find all points of discontinuity of each function.

    1. f(x)=3x−1 for x≤1; f(x)=3x+2 for x>1

      Show solution

      Answerx=1 only.

      At 1: left-hand limit 2, right-hand limit 5. They differ, so 1 is a point of discontinuity; elsewhere f is continuous.

    2. f(x)=∣x∣+2 for x≤−1; x2+2 for −1<x<2; 3x+1 for x≥2

      Show solution

      Answerx=2 only.

      At −1: f(−1)=3, left-hand limit 3, right-hand limit 1+2=3, so continuous. At 2: left-hand limit 4+2=6, right-hand limit f(2)=7, so discontinuous.

    3. f(x)=∣x−2∣x−2 for x≠2; f(2)=1

      Show solution

      Answerx=2 only.

      For x>2, f(x)=1; for x<2, f(x)=−1. At 2 the one-sided limits are −1 and 1, so f is discontinuous there. Elsewhere f is constant near each point.

    4. f(x)=∣x∣x for x>0; f(x)=1 for x≤0

      Show solution

      AnswerNone.

      For x>0, ∣x∣/x=x/x=1. So f(x)=1 for every real x, a constant function, continuous everywhere.

    5. f(x)=2x+1 for x≥2; f(x)=x2+1 for x<2

      Show solution

      AnswerNone.

      At 2: f(2)=5, left-hand limit 4+1=5, right-hand limit 5. All agree, so f is continuous everywhere.

    6. f(x)=x3+1 for x≤1; f(x)=3x−1 for x>1

      Show solution

      AnswerNone.

      At 1: f(1)=2, left-hand limit 2, right-hand limit 3−1=2. Continuous everywhere.

    7. f(x)=x5+1 for x≤−1; f(x)=x2 for x>−1

      Show solution

      Answerx=−1 only.

      At −1: f(−1)=−1+1=0, but the right-hand limit is (−1)2=1. Discontinuous at −1 only.

  6. Short answerMediumNCERT Exercise 5.1, Q13–Q16

    Discuss the continuity of each function.

    1. f(x)=4−x for x≤0; f(x)=x+4 for x>0. Is f a continuous function?

      Show solution

      AnswerYes.

      At 0: f(0)=4 and both one-sided limits are 4. Elsewhere f is a polynomial near each point. So f is continuous.

    2. A courier charges ₹10 for parcels up to 2 kg, ₹15 for more than 2 kg up to 5 kg, and ₹25 for more than 5 kg up to 8 kg. Discuss the continuity of the charge C(w), 0≤w≤8.

      Show solution

      AnswerDiscontinuous at w=2 and w=5 only.

      C is constant on each interval. At 2: C(2)=10, left-hand limit 10, right-hand limit 15, so discontinuous. At 5: C(5)=15, right-hand limit 25, so discontinuous. At the end points 0 and 8 the one-sided limits match the values.

    3. f(x)=−3x for x<0; 0 for 0≤x≤2; 2x−3 for x>2

      Show solution

      AnswerDiscontinuous at x=2 only.

      At 0: left-hand limit 0, f(0)=0, right-hand limit 0, so continuous. At 2: f(2)=0, but the right-hand limit is 4−3=1, so discontinuous.

    4. f(x)=1 for x≤0; cos⁡x for 0<x≤π; −1 for x>π

      Show solution

      AnswerContinuous everywhere.

      At 0: f(0)=1 and lim⁡x→0+cos⁡x=1. At π: f(π)=cos⁡π=−1 and the right-hand limit is −1. Each piece is continuous, so f is continuous everywhere.

  7. Short answerMediumNCERT Exercise 5.1, Q17–Q18

    Joining pieces with unknown constants.

    1. Find the relation between a and b for which f(x)=ax−2 (x≤2), f(x)=bx2+1 (x>2) is continuous at x=2.

      Show solution

      Answer2a−4b=3.

      f(2)=2a−2 and the right-hand limit is 4b+1. Continuity needs 2a−2=4b+1, that is 2a−4b=3.

    2. For which λ is f(x)=λ(x2+3) (x≤1), f(x)=2x+6 (x>1) continuous at x=1? Is f continuous at x=0 for every λ?

      Show solution

      Answerλ=2; yes, f is continuous at 0 for every λ.

      At 1: f(1)=4λ and the right-hand limit is 8, so λ=2. Near 0, f(x)=λ(x2+3) for all x close to 0 on both sides, a polynomial, so f is continuous at 0 whatever λ is.

  8. Short answerHardNCERT Exercise 5.1, Q19

    Show that h(x)=[x]+[−x] is discontinuous at every integer.

    Show solution

    Answerh=0 at integers and h=−1 elsewhere, so lim⁡x→nh(x)=−1≠0=h(n).

    If x is not an integer, write [x]=n with n<x<n+1. Then −n−1<−x<−n, so [−x]=−n−1 and h(x)=−1.

    If x=n is an integer, h(n)=n+(−n)=0.

    Near any integer n (but not at it), h equals −1, so lim⁡x→nh(x)=−1≠h(n). Every integer is a point of discontinuity.

  9. Short answerMediumNCERT Exercise 5.1, Q20–Q22

    Trigonometric combinations.

    1. Is f(x)=2cos⁡x+x3 continuous at x=π2?

      Show solution

      AnswerYes.

      It is a sum of continuous functions, so it is continuous everywhere, including at π2, where its value is π38.

    2. Discuss the continuity of 3sin⁡x−x2, of xsin⁡x and of sin⁡x2+cos⁡x.

      Show solution

      AnswerAll three are continuous everywhere.

      The first is a difference and the second a product of continuous functions. In the third, 2+cos⁡x≥1, so the denominator is never zero and the quotient is continuous at every real number.

    3. Discuss the continuity of sin⁡x, tan⁡x, cosec⁡x and cot⁡x.

      Show solution

      AnswerEach is continuous on its domain: sin⁡ everywhere, tan⁡ for x≠(2n+1)π2, cosec⁡ and cot⁡ for x≠nπ.

      For sine use sin⁡(c+h)=sin⁡ccos⁡h+cos⁡csin⁡h→sin⁡c. Then tan⁡=sin⁡cos⁡, cosec⁡=1sin⁡ and cot⁡=cos⁡sin⁡ are quotients of continuous functions, continuous wherever the denominator is non-zero.

  10. Short answerHardNCERT Exercise 5.1, Q23–Q25

    Limits involving sine.

    1. Find the points of discontinuity of f(x)=sin⁡2xx for x<0, f(x)=x+2 for x≥0.

      Show solution

      AnswerNone.

      lim⁡x→0−sin⁡2xx=lim⁡2⋅sin⁡2x2x=2, the right-hand limit is 2 and f(0)=2. Each piece is continuous on its own interval, so f is continuous everywhere.

    2. Is f(x)=xsin⁡1x (x≠0), f(0)=0 a continuous function?

      Show solution

      AnswerYes.

      For x≠0, ∣xsin⁡1x∣≤∣x∣, which tends to 0. So lim⁡x→0f(x)=0=f(0). Away from 0, f is a product and composite of continuous functions.

    3. Examine the continuity of f(x)=cos⁡x+sin⁡x (x≠0), f(0)=2.

      Show solution

      AnswerDiscontinuous at 0 only.

      lim⁡x→0(cos⁡x+sin⁡x)=1+0=1, but f(0)=2. Elsewhere f is a sum of continuous functions.

  11. Short answerMediumNCERT Exercise 5.1, Q26–Q30

    Find the constants that make each function continuous at the indicated point.

    1. f(x)=ksin⁡xπ−x for x≠π, f(π)=5, at x=π. Find k.

      Show solution

      Put t=π−x. Then sin⁡x=sin⁡(π−t)=sin⁡t, and sin⁡tt→1 as t→0. The limit is k, so k=f(π)=5.

    2. f(x)=kx2+1 for x≤3, f(x)=4 for x>3, at x=3. Find k.

      Show solution

      f(3)=9k+1 must equal the right-hand limit 4, so k=13.

    3. f(x)=kx−1 for x≤π2, f(x)=sin⁡x for x>π2, at x=π2. Find k.

      Show solution

      f(π2)=kπ2−1 must equal sin⁡π2=1, so k=4π.

    4. f(x)=kx+3 for x≤4, f(x)=2x−1 for x>4, at x=4. Find k.

      Show solution

      4k+3=8−1=7, so k=1.

    5. Find a and b so that f(x)=2 (x≤1), ax+b (1<x<4), 14 (x≥4) is a continuous function.

      Show solution

      Answera=4, b=−2.

      At 1: a+b=2. At 4: 4a+b=14. Subtracting, 3a=12, so a=4 and b=−2.

  12. Short answerMediumNCERT Exercise 5.1, Q31–Q34

    Composites and moduli.

    1. Show that f(x)=cos⁡(11+x2) is continuous.

      Show solution

      AnswerContinuous everywhere.

      u(x)=11+x2 is rational with a denominator that is never zero, so it is continuous everywhere; cosine is continuous; the composite is continuous by Theorem 2.

    2. Show that f(x)=∣sin⁡2x∣ is continuous.

      Show solution

      AnswerContinuous everywhere.

      sin⁡2x is a composite of 2x and sine, so it is continuous; the modulus of a continuous function is continuous (Theorem 2 with m(u)=∣u∣).

    3. Show that f(x)=sin⁡(∣x∣−2) is continuous.

      Show solution

      AnswerContinuous everywhere.

      ∣x∣−2 is continuous and sine is continuous, so the composite is continuous.

    4. Find all points of discontinuity of f(x)=∣x−1∣+∣x+2∣.

      Show solution

      AnswerNone.

      Each modulus is a composite of a polynomial and ∣u∣, so it is continuous; their sum is continuous everywhere.

5.3 Differentiability

In Class XI you met the derivative of a real function f at a point c of its domain:

Derivative at c
f′(c)=lim⁡h→0f(c+h)−f(c)h
where
h
a small step away from c, positive or negative

Geometrically, f′(c) is the slope on which chord slopes settle as the chords shrink. Collecting these slopes at every x where the limit exists builds a new function, the derivative f′. You will meet all its names in this chapter: f′(x), ddxf(x), and dydx or y′ when y=f(x); the whole process is differentiation. Three Class XI rules do most of the work, for functions u and v of x:

  • (u±v)′=u′±v′
  • (uv)′=u′v+uv′ (the product rule, also called Leibniz's rule)
  • (uv)′=u′v−uv′v2 wherever v≠0 (the quotient rule)
Table 5.2Standard derivatives from Class XI
f(x)f′(x)
xnnxn−1
sin⁡xcos⁡x
cos⁡x−sin⁡x
tan⁡xsec⁡2x

The formula for f′(c) only works when its limit exists, and at some points it does not. There f simply has no derivative: it is not differentiable at c. To see which way the limit fails, let h approach 0 from each side separately. This gives a left-hand derivative (from h<0) and a right-hand derivative (from h>0).

Left-hand and right-hand derivatives
Lf′(c)=lim⁡h→0−f(c+h)−f(c)h,Rf′(c)=lim⁡h→0+f(c+h)−f(c)h
Definition
Differentiable at a point

We call f differentiable at a point c of its domain when its left-hand and right-hand derivatives at c are both finite and equal; their common value is f′(c).

Examplef(x)=x2 at c=1: both one-sided difference quotients equal 2+h, which tends to 2, so f′(1)=2.

Differentiability on an open interval (a,b) means differentiability at each of its points. On a closed interval [a,b] we also need the one-sided derivatives at the ends: the right-hand derivative at a and the left-hand derivative at b, just as continuity at an end point uses only one side.

Theorem 3Differentiable implies continuous

Differentiability at a point forces continuity there: if f′(c) exists, then f is continuous at c.

Corollary 1Differentiable functions

Every differentiable function is continuous.

The converse is false: a graph can be unbroken at a point and still have no single slope there. The simplest culprit is a corner.

ExampleNCERT p. 120

A corner at x = 3

Show that f(x)=∣x−3∣ is continuous but not differentiable at x=3.

Try it yourself first. Then reveal the solution one step at a time.

At a corner the chords from the two sides settle on two different slopes. Fig. 5.6 shows this for a curved corner, where the chords visibly turn as they shorten.

4/4−2≠2: no single tangent, so f is not differentiable at 1.

Fig. 5.6Chords to the corner of y=∣x2−1∣ at x=1.NCERT p. 120

The graph of y = |x² − 1| for x from about −0.2 to 2 has a sharp corner at the point (1, 0). Step 1 shows only the curve and the corner. Step 2 draws three chords from the corner to points on the left branch at x = 0.2, 0.6 and 0.85; they get steeper towards slope −2, and a dashed line of slope −2 is labelled. Step 3 draws three chords to points on the right branch at x = 1.8, 1.4 and 1.15, settling towards a dashed line of slope 2. Step 4 shows both dashed limiting lines together: two different slopes, so no single tangent.

The zoom lab below makes the same point another way. Zoom in on a point of a smooth graph and the graph soon looks like a straight line, whose slope is the derivative. Zoom in on a corner and it stays a corner however far you go.

InteractiveZoom lab

A graph window centred on a marked point, with five function buttons: x squared at 1, a smooth join at 1, a kinked join at 1, |x − 1| at 1 and the cube root of x − 1 at 1. Zoom in and Zoom out buttons halve or double the window; a readout gives the window width. Two chords join the point to points h to its left and right, with h tied to the window width, and a table lists the left and right chord slopes for h = 0.1, 0.01 and 0.001. A verdict line says whether the two slopes settle on one number (the derivative), on two different numbers (a corner), or grow without bound (a vertical tangent).

Fig. 5.7Pick a function, zoom in on the marked point, and compare the slopes of chords from the left and from the right.
Quick check
1 of 4
Which describes f(x)=∣x−5∣ at x=5?
Show answer

Answer (C) continuous but not differentiable

The graph has no break at 5, but the one-sided derivatives are −1 and 1. Option B is impossible: Theorem 3 says differentiability forces continuity.

5.3.1 Derivatives of composite functions

How would you differentiate y=(5−2x)2? One way is to expand first: y=25−20x+4x2, so dydx=−20+8x=−4(5−2x). Now look at the answer differently. The outer operation, squaring, contributes 2(5−2x); the inner expression 5−2x changes at rate −2; and 2(5−2x)×(−2) is exactly −4(5−2x).

That pattern is worth having, because expanding (5−2x)40 is hopeless, while the pattern gives 40(5−2x)39×(−2)=−80(5−2x)39 at once. The idea behind it is that rates multiply along a chain, as Fig. 5.8 shows.

3/3y=u2 moves from 16 to 18.49: Δy≈8 Δu≈24 Δx.

Fig. 5.8A change in x passes through u to y, multiplied at each link.NCERT p. 121

Three horizontal rulers are stacked: the top one for x, the middle one for u = 3x + 1 and the bottom one for y = u squared. Step 1 marks x = 1 moving to 1.1, a change of 0.1. Step 2 shows u moving from 4 to 4.3, a change of 0.3, three times as big, labelled du/dx = 3. Step 3 shows y moving from 16 to 18.49, a change of 2.49, about 8 times the change in u because dy/du = 2u = 8, so y changes about 24 times as fast as x.

Theorem 4The chain rule

Suppose f(x)=v(u(x)), and write t=u(x) for the inner value. Whenever the inner rate dtdx and the outer rate dvdt both exist, the composite's rate is their product: dfdx=dvdt⋅dtdx.

We use the chain rule without proof. In the figure, dudx=3 and dydu=2u=8 at u=4, so dydx=24; the actual change 2.49 for a step of 0.1 is close to 24×0.1. Longer chains work the same way. If x→t=u(x)→s=v(t)→y=w(s), then, provided all three derivatives exist,

Chain rule with three links
dydx=dwds⋅dsdt⋅dtdx
Example 21NCERT Example 21 · p. 121

A cosine of a cube

Differentiate f(x)=cos⁡(x3).

Try it yourself first. Then reveal the solution one step at a time.

ExampleNCERT p. 121

Three links

Differentiate y=sin⁡3(2x+1).

Try it yourself first. Then reveal the solution one step at a time.

Practice · 3 questions

Practice 5.2: questions with answers

Fresh questions on the skills of NCERT Exercise 5.2.

  1. Short answerMediumNCERT Exercise 5.2, Q1–Q8

    Differentiate each function with respect to x.

    1. cos⁡(x3−2)

      Show solution

      Answer−3x2sin⁡(x3−2)

      Outer cos⁡t gives −sin⁡t; inner t=x3−2 gives 3x2. So −3x2sin⁡(x3−2).

    2. tan⁡(sin⁡x)

      Show solution

      Answercos⁡xsec⁡2(sin⁡x)

      ddxtan⁡t=sec⁡2t⋅dtdx with t=sin⁡x, giving sec⁡2(sin⁡x)cos⁡x.

    3. cos⁡(4−3x)

      Show solution

      Answer3sin⁡(4−3x)

      −sin⁡(4−3x)⋅(−3)=3sin⁡(4−3x).

    4. cos⁡(tan⁡2x)

      Show solution

      Answer−2sec⁡22x⋅sin⁡(tan⁡2x)

      Three links: −sin⁡(tan⁡2x)⋅sec⁡2(2x)⋅2.

    5. cos⁡2xsin⁡(x2)

      Show solution

      Answer−2sin⁡2xsin⁡(x2)−2xcos⁡2xcos⁡(x2)sin⁡2(x2)

      Quotient rule with u=cos⁡2x, u′=−2sin⁡2x, v=sin⁡(x2) and v′=2xcos⁡(x2), wherever sin⁡(x2)≠0:

      u′v−uv′v2=−2sin⁡2xsin⁡(x2)−2xcos⁡2xcos⁡(x2)sin⁡2(x2)
    6. sin⁡(x2)cos⁡3(2x)

      Show solution

      Answer2xcos⁡(x2)⋅cos⁡32x−6sin⁡(x2)⋅cos⁡22xsin⁡2x

      Product rule. ddxsin⁡(x2)=2xcos⁡(x2) and ddxcos⁡32x=3cos⁡22x⋅(−sin⁡2x)⋅2=−6cos⁡22xsin⁡2x.

    7. tan⁡3x (where tan⁡3x>0)

      Show solution

      Answer3sec⁡23x2tan⁡3x

      12t⋅sec⁡23x⋅3 with t=tan⁡3x.

    8. cos⁡(1x), x≠0

      Show solution

      Answer1x2sin⁡(1x)

      −sin⁡(1x)⋅(−1x2)=1x2sin⁡1x.

  2. Short answerMediumNCERT Exercise 5.2, Q9

    Prove that f(x)=∣x+2∣ is not differentiable at x=−2.

    Show solution

    AnswerThe left-hand derivative is −1 and the right-hand derivative is 1.

    f(−2+h)−f(−2)h=∣h∣−0h. For h<0 this is −1; for h>0 it is 1. The one-sided derivatives differ, so f′(−2) does not exist.

  3. Short answerHardNCERT Exercise 5.2, Q10

    Let f(x)=[2x] for 0<x<2. Show that f is not differentiable at x=12, x=1 and x=32.

    Show solution

    Answerf jumps by 1 at each of these points, so it is not continuous there and cannot be differentiable.

    [2x] jumps when 2x passes an integer, that is at x=12,1,32 in (0,2). For example at x=1: the left-hand limit is [2−]=1 but f(1)=[2]=2.

    A function that is not continuous at a point cannot be differentiable there (Theorem 3). Directly: for h<0, f(1+h)−f(1)h=1−2h=−1h, which grows without bound as h→0−.

5.3.2 Derivatives of implicit functions

Many curves come as an equation tying x and y together rather than as a formula for y. The relation 3x+2y=7 is easily rearranged to y=7−3x2: here y is an explicit function of x. The relation y5+y=x is different. For each x there is exactly one y, because y5+y increases steadily, yet no formula from algebra writes y in terms of x.

Definition
Implicit function

When a relation between x and y fixes y as a function of x, but is not solved (or not easily solvable) in the form y=f(x), we say the relation gives y implicitly as a function of x.

Exampley5+y=x defines y implicitly.

We do not need the formula to find dydx. Differentiate both sides of the relation with respect to x, remembering that y is a function of x, so every term in y brings a factor dydx by the chain rule: ddx(y2)=2ydydx. Then solve for dydx. Fig. 5.9 uses a circle, which is not the graph of a single function, but each half of it is.

3/32x+2y y′=0 gives y′=−xy=−34 at (3,4).

Fig. 5.9Implicit differentiation of x2+y2=25.NCERT p. 122

A circle of radius 5 centred at the origin on square axes. Step 1 shows the whole circle with a vertical line x = 3 meeting it twice, at (3, 4) and (3, −4), so the circle is not the graph of one function. Step 2 highlights the upper half, y equals the square root of 25 minus x squared, and dims the lower half. Step 3 adds the tangent line at the point (3, 4), with slope −3/4, and a label giving dy/dx = −x/y.

Check the tangent's slope another way: on the upper half, y=25−x2 gives y′=−x25−x2=−34 at x=3, as before. The implicit route reached it without choosing a half.

Example 22NCERT Example 22 · p. 123

Two routes, one answer

Find dydx if 4x−2y=9.

Try it yourself first. Then reveal the solution one step at a time.

Example 23NCERT Example 23 · p. 123

A relation you cannot solve

Find dydx if y2+sin⁡y=x3.

Try it yourself first. Then reveal the solution one step at a time.

5.3.3 Derivatives of inverse trigonometric functions

The inverse trigonometric functions of Chapter 2 are continuous on their domains; we accept this without proof. To differentiate them, turn each one round into a trigonometric equation and differentiate implicitly.

Example 24NCERT Example 24 · p. 124

The derivative of tan⁻¹ x

Find the derivative of y=tan⁡−1x, assuming it exists.

Try it yourself first. Then reveal the solution one step at a time.

DerivationDerivatives of sin⁻¹ x and cos⁻¹ x

Let y=sin⁡−1x, so x=sin⁡y with −π2≤y≤π2. Differentiating, 1=cos⁡y dydx, so dydx=1cos⁡y. This needs cos⁡y≠0, which rules out y=±π2, that is x=±1.

For −π2<y<π2 the cosine is positive, so cos⁡y=+1−sin⁡2y=1−x2. Therefore

ddxsin⁡−1x=11−x2,−1<x<1

For y=cos⁡−1x, x=cos⁡y with 0≤y≤π, and 1=−sin⁡y dydx. On 0<y<π the sine is positive, so sin⁡y=1−x2:

ddxcos⁡−1x=−11−x2,−1<x<1

A check: sin⁡−1x+cos⁡−1x=π2, a constant, so the two derivatives must add to 0, and they do.

Table 5.3Derivatives of the inverse trigonometric functions
f(x)f′(x)valid for
sin⁡−1x11−x2−1<x<1
cos⁡−1x−11−x2−1<x<1
tan⁡−1x11+x2all real x

Why reciprocals? The graph of sin⁡−1 is the mirror image of a piece of the sine graph in the line y=x. Reflection swaps rise and run, so a tangent of slope m becomes a tangent of slope 1m, as Fig. 5.10 shows.

3/3The reflected tangent has slope 2=11−(3/2)2, the reciprocal of 12.

Fig. 5.10Mirror images in the dashed line y=x have reciprocal slopes at matching points.NCERT p. 124

Square axes with a dashed mirror line y = x. Step 1 shows the piece of y = sin x from −π/2 to π/2 and the point (π/3, √3/2), about (1.05, 0.87), with its tangent of slope cos(π/3) = 1/2. Step 2 adds the reflected curve y = sin⁻¹ x from −1 to 1, and a dotted segment joining the point to its mirror image (√3/2, π/3). Step 3 adds the tangent to the reflected curve at (√3/2, π/3), whose slope is 2, the reciprocal of 1/2.

Quick check
1 of 4
ddxsin⁡(5x2)=
Show answer

Answer (B) 10xcos⁡(5x2)

Outer: cos⁡(5x2); inner: ddx5x2=10x; multiply. Option A forgets the inner rate, and option C differentiates the inside twice.
Practice · 2 questions

Practice 5.3: questions with answers

Fresh questions on the skills of NCERT Exercise 5.3.

  1. Short answerMediumNCERT Exercise 5.3, Q1–Q8

    Find dydx for each relation.

    1. 5x−2y=cos⁡x

      Show solution

      Answer5+sin⁡x2

      5−2y′=−sin⁡x, so y′=5+sin⁡x2.

    2. x+4y=cos⁡y

      Show solution

      Answer−14+sin⁡y

      1+4y′=−sin⁡y y′, so y′(4+sin⁡y)=−1.

    3. px2+qy=sin⁡y (p, q constants)

      Show solution

      Answer2pxcos⁡y−q

      2px+qy′=cos⁡y y′, so y′(cos⁡y−q)=2px.

    4. xy2+y=sec⁡x

      Show solution

      Answersec⁡xtan⁡x−y22xy+1

      y2+2xy y′+y′=sec⁡xtan⁡x, so y′(2xy+1)=sec⁡xtan⁡x−y2.

    5. x2−xy+2y2=50

      Show solution

      Answery−2x4y−x

      2x−(y+xy′)+4y y′=0, so y′(4y−x)=y−2x.

    6. x3+y3=3xy+7

      Show solution

      Answery−x2y2−x

      3x2+3y2y′=3y+3xy′, so y′(y2−x)=y−x2.

    7. cos⁡2y+sin⁡(xy)=12

      Show solution

      Answerycos⁡(xy)sin⁡2y−xcos⁡(xy)

      −2cos⁡ysin⁡y y′+cos⁡(xy)(y+xy′)=0. With 2sin⁡ycos⁡y=sin⁡2y: y′(xcos⁡(xy)−sin⁡2y)=−ycos⁡(xy).

    8. tan⁡2x+sec⁡2y=4

      Show solution

      Answer−tan⁡xsec⁡2xtan⁡ysec⁡2y

      2tan⁡xsec⁡2x+2sec⁡y⋅sec⁡ytan⁡y y′=0, so y′=−tan⁡xsec⁡2xtan⁡ysec⁡2y.

  2. Short answerHardNCERT Exercise 5.3, Q9–Q15

    Simplify with a substitution, then find dydx.

    1. y=tan⁡−12x1−x2, −1<x<1

      Show solution

      Answer21+x2

      With x=tan⁡θ, −π4<θ<π4: 2tan⁡θ1−tan⁡2θ=tan⁡2θ and 2θ∈(−π2,π2), so y=2θ=2tan⁡−1x.

    2. y=sin⁡−1(3x−4x3), −12<x<12

      Show solution

      Answer31−x2

      With x=sin⁡θ, −π6<θ<π6: 3sin⁡θ−4sin⁡3θ=sin⁡3θ and 3θ∈(−π2,π2), so y=3sin⁡−1x.

    3. y=sin⁡−11−x21+x2, 0<x<1

      Show solution

      Answer−21+x2

      With x=tan⁡θ, 0<θ<π4: the fraction is cos⁡2θ=sin⁡(π2−2θ) and π2−2θ∈(0,π2). So y=π2−2tan⁡−1x.

    4. y=cos⁡−1(2x1−x2), 0<x<12

      Show solution

      Answer−21−x2

      With x=sin⁡θ, 0<θ<π4: 2sin⁡θcos⁡θ=sin⁡2θ=cos⁡(π2−2θ), with π2−2θ∈(0,π2). So y=π2−2sin⁡−1x.

    5. y=tan⁡−11+x2−1x, x≠0

      Show solution

      Answer12(1+x2)

      With x=tan⁡θ, θ∈(−π2,π2), θ≠0: sec⁡θ−1tan⁡θ=1−cos⁡θsin⁡θ=tan⁡θ2. So y=θ2=12tan⁡−1x.

    6. y=cos⁡−1(4x3−3x), 12<x<1

      Show solution

      Answer−31−x2

      With x=cos⁡θ, 0<θ<π3: 4cos⁡3θ−3cos⁡θ=cos⁡3θ and 3θ∈(0,π). So y=3cos⁡−1x.

    7. y=sec⁡−111−2x2, 0<x<12

      Show solution

      Answer21−x2

      With x=sin⁡θ, 0<θ<π4: 1−2sin⁡2θ=cos⁡2θ, so the argument is sec⁡2θ with 2θ∈(0,π2). So y=2sin⁡−1x.

5.4 Exponential and Logarithmic Functions

Savings that earn interest, bacteria multiplying in milk, a medicine leaving the bloodstream: these change by equal factors over equal times, which no polynomial can describe. The functions that can are the exponentials, and their inverses are the logarithms. We argue for their main properties instead of proving them; the proofs need tools from later courses.

Start with powers. When x goes from 1 to 2, x2 goes from 1 to 4, x5 from 1 to 32 and x10 from 1 to 1024. For x>1, the higher the power, the faster it grows. Yet a different kind of function, 2x, eventually leaves every power behind. Compare x10 with 2x at x=100: 10010=1020, while 2100≈1.27×1030, more than ten billion times larger. From about x=59 onwards, 2x stays ahead of x10 for good, and a similar crossover happens against any power you choose. Fig. 5.11 shows the race against x3, where the crossover comes early enough to draw.

3/3At x=12: 4096 against 1728. Each step of 1 doubles 2x, but multiplies x3 by less and less.

Fig. 5.11y=x3 against y=2x.NCERT Fig 5.9 · p. 126

Step 1 is a close-up with x from 0 to 6 and y from 0 to 230: the cube curve is far above the exponential, with dots at 125 and 32 above x = 5. Steps 2 and 3 zoom out to x from 0 to 12.6 and y from 0 to 4600. Step 2 marks the crossing near x = 9.94, where both values are close to 980. Step 3 marks the values at x = 12, where 2 to the power 12 is 4096 but 12 cubed is only 1728, and the exponential climbs almost vertically while the cube rises slowly.

Definition
Exponential function

For a real number b>1, the exponential function with base b is y=f(x)=bx.

Exampley=2x, y=10x (the common exponential function) and y=ex.

Sketch y=2x, y=3x and y=5x on one set of axes; you will see the following features in every one of them.

  1. Every graph passes through (0,1), because b0=1 for every base.
  2. Each graph rises all the way from left to right: bx is an increasing function.
  3. Far to the left the graph hugs the negative x-axis without ever touching it, because bx shrinks towards 0 but stays positive.
  4. So bx accepts every real input (domain 𝐑) and returns only positive outputs (range (0,∞)).

In Class XI you met the number e=1+11!+12!+13!+⋯, which lies between 2 and 3 (it is about 2.71828). With e as the base we get the natural exponential function y=ex, the most important exponential in calculus.

Does an exponential function have an inverse? Since bx is increasing, each positive number is bx for exactly one x. That exponent is its logarithm.

Definition
Logarithm

Let b>1 and a>0. The logarithm of a to base b is the number x with bx=a. We write log⁡ba=x.

Example34=81, so log⁡381=4.

More examples: 10−2=0.01 says the same as log⁡100.01=−2; and since 64=43=82, we have log⁡464=3 and log⁡864=2. Fixing the base, log⁡b becomes a function from positive reals to all reals: log⁡bx=y exactly when by=x. Base 10 gives common logarithms and base e gives natural logarithms, often written ln⁡x. In this chapter, log⁡x always means the natural logarithm log⁡ex.

  1. The graph of log⁡bx is the graph of bx reflected in the line y=x, as Fig. 5.12 shows for base 2. The other features follow from this.
  2. Reflecting (0,1) gives (1,0): log⁡b1=0 for every base.
  3. Reflection keeps the graph rising, so log⁡b is increasing.
  4. Inputs and outputs swap roles: the logarithm accepts only positive numbers (domain (0,∞); log⁡0 and logs of negatives are undefined) and can return any real number (range 𝐑).
  5. As x shrinks towards 0, log⁡x plunges without bound, hugging the negative y-axis without touching it.

3/3The mirror points lie on y=log⁡2x, which passes through (1,0).

Fig. 5.12Swapping coordinates turns the graph of 2x into the graph of log⁡2x.NCERT Figs 5.10–5.11 · p. 128

Square axes from −2 to 5 with the dashed line y = x. Step 1 shows y = 2ˣ through the points (−1, 1/2), (0, 1), (1, 2) and (2, 4). Step 2 joins each of these points by a short dotted segment, crossing y = x at right angles, to its mirror point (1/2, −1), (1, 0), (2, 1) and (4, 2). Step 3 draws y = log₂ x through the mirror points, hugging the negative y-axis as x approaches 0.

The laws of logarithms come straight from the laws of exponents. In the derivation below, p and q are positive and the base b>1 is fixed.

DerivationLaws of logarithms

Let log⁡bp=β and log⁡bq=γ, so bβ=p and bγ=q.

Product. pq=bβbγ=bβ+γ, so log⁡b(pq)=β+γ:

log⁡b(pq)=log⁡bp+log⁡bq

Quotient. pq=bβbγ=bβ−γ, so

log⁡bpq=log⁡bp−log⁡bq

Power. Applying the product law n times to p⋅p⋯p gives log⁡bpn=nlog⁡bp for every positive integer n. (It holds for every real n, but we do not prove that here.)

Change of base. Let a>1 be another base and log⁡ap=α, so aα=p. If log⁡ba=δ, then a=bδ and p=(bδ)α=bδα. Comparing with p=bβ gives β=αδ, that is

log⁡ap=log⁡bplog⁡ba
Example 25NCERT Example 25 · p. 129

When does e^(2 log x) equal x²?

Is e2log⁡x=x2 for every real x?

Try it yourself first. Then reveal the solution one step at a time.

Theorem 5Derivatives of eˣ and log x

(1) ddxex=ex. (2) ddxlog⁡x=1x for x>0.

We do not prove part (1). It says that at every point the slope of y=ex equals its height, and e is the only base with this property. Part (2) then follows by implicit differentiation, assuming log⁡x is differentiable: if y=log⁡x then x=ey, so 1=eydydx and dydx=1ey=1x.

Example 26NCERT Example 26 · p. 129

Chain rule with exponentials and logarithms

Differentiate (i) ex2 (ii) log⁡(1+x2) (iii) etan⁡−1x (iv) log⁡(sec⁡x), −π2<x<π2.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 3
Find log⁡232.
Show answer

Answer 5

25=32, so log⁡232=5.
Practice · 2 questions

Practice 5.4: questions with answers

Fresh questions on the skills of NCERT Exercise 5.4.

  1. Short answerMediumNCERT Exercise 5.4, Q1–Q5

    Differentiate with respect to x.

    1. ex1+x2

      Show solution

      Answerex(x−1)2(1+x2)2

      Quotient rule: ex(1+x2)−ex⋅2x(1+x2)2=ex(x2−2x+1)(1+x2)2.

    2. ecos⁡−1x, −1<x<1

      Show solution

      Answer−ecos⁡−1x1−x2

      ecos⁡−1x⋅(−11−x2).

    3. ex, x>0

      Show solution

      Answerex2x

      ex⋅12x.

    4. sin⁡−1(e−2x), x>0

      Show solution

      Answer−2e−2x1−e−4x

      11−(e−2x)2⋅(−2e−2x). For x>0, 0<e−2x<1, so the formula applies.

    5. log⁡(1+sin⁡2x)

      Show solution

      Answersin⁡2x1+sin⁡2x

      11+sin⁡2x⋅2sin⁡xcos⁡x=sin⁡2x1+sin⁡2x.

  2. Short answerMediumNCERT Exercise 5.4, Q6–Q10

    Differentiate with respect to x.

    1. ex+e2x2+e3x3

      Show solution

      Answerex+4x e2x2+9x2e3x3

      Term by term: ex; e2x2⋅4x; e3x3⋅9x2.

    2. ex23

      Show solution

      Answer2x3ex2/3

      ex23=ex2/3, whose derivative is ex2/3⋅2x3.

    3. log⁡(1+log⁡x), x>1e

      Show solution

      Answer1x(1+log⁡x)

      For x>1e, 1+log⁡x>0. The derivative is 11+log⁡x⋅1x.

    4. log⁡xx, x>0

      Show solution

      Answer1−log⁡xx2

      Quotient rule: 1x⋅x−log⁡x⋅1x2.

    5. sin⁡(x2+log⁡x), x>0

      Show solution

      Answer(2x+1x)cos⁡(x2+log⁡x)

      Outer sin⁡t, inner t=x2+log⁡x with t′=2x+1x.

5.5 Logarithmic Differentiation

How do you differentiate y=xx? The power rule needs a fixed exponent and the rule for ax needs a fixed base, but here both vary. Taking logarithms turns the awkward exponent into a product, which the product rule handles. The same trick turns a long product or quotient into a sum. The general case is y=[u(x)]v(x) with u(x)>0.

DerivationDifferentiating u to the power v

Take natural logarithms of y=uv (both sides are positive):

log⁡y=vlog⁡u

Differentiate both sides with respect to x, using the chain rule on the left and the product rule on the right:

1ydydx=v′log⁡u+v⋅u′u

Multiply by y=uv:

dydx=uv[vu u′+v′log⁡u]

This is logarithmic differentiation. Its one condition matters: u(x), and hence y, must be positive, or the logarithms make no sense. For a product or quotient that may be negative, apply the method to ∣y∣: since ddxlog⁡∣y∣=y′y wherever y≠0, you reach the same formula. For y=xx (x>0) the formula gives dydx=xx(1+log⁡x), and Fig. 5.13 shows what that says about the graph.

Definition
Logarithmic differentiation

Finding dydx by first taking logarithms of both sides of y=f(x), differentiating log⁡y, and then multiplying by y; used for variable powers and for long products and quotients.

3/3The slope is 0 where log⁡x=−1, at x=1e≈0.37, y≈0.69.

Fig. 5.13y=xx and its derivative xx(1+log⁡x).NCERT p. 130

Axes show x from 0 to 2 and y from 0 to 4. Step 1 draws y = x^x: it starts near height 1 just right of 0, dips to a low point and then climbs steeply to 4 at x = 2. Step 2 adds the tangent at (1, 1), which has slope 1. Step 3 marks the lowest point at x = 1/e, about 0.37, where y is about 0.69, with a flat tangent, because there 1 + log x = 0.

Example 27NCERT Example 27 · p. 131

A long quotient

Differentiate y=(x+1)2x−2(x+4)3, x>2.

Try it yourself first. Then reveal the solution one step at a time.

Example 28NCERT Example 28 · p. 131

The derivative of 7ˣ, two ways

Differentiate y=7x.

Try it yourself first. Then reveal the solution one step at a time.

Example 29NCERT Example 29 · p. 132

Variable base, variable exponent

Differentiate y=xx, x>0.

Try it yourself first. Then reveal the solution one step at a time.

Example 30NCERT Example 30 · p. 132

A variable power inside an implicit relation

Find dydx if xy+y2=5x, where x>0 and y>0.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 3
ddxxx= (for x>0)
Show answer

Answer (D) xx(1+log⁡x)

Logarithmic differentiation gives xx(1+log⁡x). The answer x⋅xx−1 uses the power rule as if the exponent were fixed, and xxlog⁡x uses the ax rule as if the base were fixed; the correct answer is their sum.
Practice · 6 questions

Practice 5.5: questions with answers

Fresh questions on the skills of NCERT Exercise 5.5.

  1. Short answerMediumNCERT Exercise 5.5, Q1–Q6

    Differentiate with respect to x.

    1. x2exsin⁡x, 0<x<π

      Show solution

      Answer2xexsin⁡x+x2exsin⁡x+x2excos⁡x

      log⁡y=2log⁡x+x+log⁡sin⁡x, so y′y=2x+1+cot⁡x.

    2. (x+1)(x+2)(x+3)(x+4)3, x>−1

      Show solution

      Answery3 times 1x+1+1x+2−1x+3−1x+4, with y the given function

      log⁡y=13[log⁡(x+1)+log⁡(x+2)−log⁡(x+3)−log⁡(x+4)]; differentiate and multiply by y.

    3. (tan⁡x)x, 0<x<π2

      Show solution

      Answer(tan⁡x)xlog⁡tan⁡x+2x(tan⁡x)xsin⁡2x

      log⁡y=xlog⁡tan⁡x; y′y=log⁡tan⁡x+xsec⁡2xtan⁡x, and sec⁡2xtan⁡x=1sin⁡xcos⁡x=2sin⁡2x.

    4. x2x+3cos⁡x, x>0

      Show solution

      Answer2x2x(1+log⁡x)−3cos⁡xsin⁡xlog⁡3

      For x2x: log⁡u=2xlog⁡x, u′=u(2log⁡x+2). For 3cos⁡x: 3cos⁡xlog⁡3⋅(−sin⁡x).

    5. (2x+1)3(x−4)2(x+1)5

      Show solution

      Answery times 62x+1+2x−4+5x+1, with y the given product

      log⁡∣y∣=3log⁡∣2x+1∣+2log⁡∣x−4∣+5log⁡∣x+1∣; differentiate (wherever y≠0) and multiply by y.

    6. x1/x+(x+1)x, x>0

      Show solution

      Answerx1/x1−log⁡xx2+(x+1)xlog⁡(x+1)+x(x+1)x−1

      log⁡u=log⁡xx gives u′u=1−log⁡xx2; log⁡v=xlog⁡(x+1) gives v′v=log⁡(x+1)+xx+1.

  2. Short answerHardNCERT Exercise 5.5, Q7–Q11

    Differentiate with respect to x.

    1. xex+(ex)x, x>0

      Show solution

      Answerxexex(log⁡x+1x)+2x ex2

      log⁡u=exlog⁡x, so u′u=exlog⁡x+exx. And (ex)x=ex2, with derivative 2xex2.

    2. (1+x2)x+tan⁡−1x, x>0

      Show solution

      Answer(1+x2)xlog⁡(1+x2)+2x2(1+x2)x−1+12x(1+x)

      log⁡u=xlog⁡(1+x2) gives u′u=log⁡(1+x2)+2x21+x2. And ddxtan⁡−1x=11+x⋅12x.

    3. xtan⁡x+(cos⁡x)x2, 0<x<π2

      Show solution

      Answerxtan⁡xsec⁡2xlog⁡x+xtan⁡x−1tan⁡x+2x(cos⁡x)x2⋅log⁡cos⁡x−x2(cos⁡x)x2⋅tan⁡x

      log⁡u=tan⁡xlog⁡x and log⁡v=x2log⁡cos⁡x; differentiate each with the product rule.

    4. xx2+1+x1−x, 0<x<1

      Show solution

      Answerxx2 x(1+2log⁡x)+2(1−x)2

      log⁡u=x2log⁡x gives u′u=2xlog⁡x+x. The quotient rule gives (1−x)+(1+x)(1−x)2.

    5. (xex)x+(log⁡x)1/x, x>1

      Show solution

      Answer(xex)x(log⁡x+1+2x)+(log⁡x)1/xx2log⁡x−(log⁡x)1/xlog⁡(log⁡x)x2

      log⁡u=xlog⁡x+x2, so u′u=log⁡x+1+2x. log⁡v=log⁡(log⁡x)x, so v′v=1x2log⁡x−log⁡(log⁡x)x2.

  3. Short answerHardNCERT Exercise 5.5, Q12–Q15

    Find dydx (all variables positive).

    1. xy⋅yx=1

      Show solution

      Answer−yx+log⁡ylog⁡x+xy

      ylog⁡x+xlog⁡y=0. Differentiating: y′log⁡x+yx+log⁡y+xyy′=0.

    2. y=xy

      Show solution

      Answery2x(1−ylog⁡x)

      log⁡y=ylog⁡x, so y′y=y′log⁡x+yx, giving y′(1y−log⁡x)=yx.

    3. (1+x)y=(1+y)x

      Show solution

      Answerlog⁡(1+y)−y1+xlog⁡(1+x)−x1+y

      ylog⁡(1+x)=xlog⁡(1+y). Differentiating: y′log⁡(1+x)+y1+x=log⁡(1+y)+x1+yy′.

    4. x2y=ex+y

      Show solution

      Answery(x−2)x(1−y)

      2log⁡x+log⁡y=x+y. Differentiating: 2x+y′y=1+y′, so y′(1y−1)=1−2x.

  4. Short answerMediumNCERT Exercise 5.5, Q16

    Let f(x)=(1+x)(1+2x)(1+3x)(1+4x). Find f′(x) by logarithmic differentiation, and hence find f′(1).

    Show solution

    For x where every factor is positive, log⁡f=∑log⁡(1+kx), so f′(x) is f(x) times 11+x+21+2x+31+3x+41+4x.

    At x=1: f(1)=2⋅3⋅4⋅5=120 and the bracket is 30+40+45+4860=16360. So f′(1)=120⋅16360=326.

  5. Short answerMediumNCERT Exercise 5.5, Q17

    Differentiate (x2+2x−1)(x3−4x+6) in three ways: (i) the product rule, (ii) expanding first, (iii) logarithmic differentiation. Do the answers agree?

    Show solution

    AnswerAll three give 5x4+8x3−15x2−4x+16.

    (i) (2x+2)(x3−4x+6)+(x2+2x−1)(3x2−4). Expanding each product: 2x4+2x3−8x2+4x+12 and 3x4+6x3−7x2−8x+4, which add to 5x4+8x3−15x2−4x+16.

    (ii) The product is x5+2x4−5x3−2x2+16x−6, whose derivative is 5x4+8x3−15x2−4x+16.

    (iii) Multiplying the hint by y gives back exactly the expression in (i). So all three agree.

  6. Short answerHardNCERT Exercise 5.5, Q18

    If u, v and w are differentiable functions of x with w≠0, show in two ways that ddx(uvw)=uvw(u′u+v′v−w′w) (where u,v≠0): by the product and quotient rules, and by logarithmic differentiation.

    Show solution

    AnswerBoth ways give u′vw+uv′w−uvw′w2.

    Rules: (uv)′w−uvw′w2=u′vw+uv′w−uvw′w2. Factor out uvw: this is uvw(u′u+v′v−w′w).

    Logarithms: with y=uvw, log⁡∣y∣=log⁡∣u∣+log⁡∣v∣−log⁡∣w∣, so y′y=u′u+v′v−w′w, and multiplying by y gives the same result.

5.6 Derivatives of Functions in Parametric Forms

A batter lofts a cricket ball. Its horizontal distance x and its height y are each easier to describe in terms of the time t than in terms of each other. Time is the natural link: each of x and y comes as its own formula in t.

Definition
Parameter

If x=f(t) and y=g(t) for a third variable t, the pair of equations gives the relation between x and y in parametric form, and t is called the parameter.

Examplex=3cos⁡t, y=2sin⁡t describes an ellipse with parameter t.

To find dydx, apply the chain rule to y as a function of x, with x itself a function of t: dydt=dydx⋅dxdt. Divide, provided dxdt≠0:

Derivative in parametric form
dydx=dy/dtdx/dt=g′(t)f′(t),f′(t)≠0

In words: the slope of the path is the vertical speed divided by the horizontal speed. Fig. 5.14 shows this for a ball with x=20t and y=20t−5t2 (metres, seconds, air resistance ignored, g rounded to 10 m/s2).

1/3dxdt=20, dydt=10: slope 12.

Fig. 5.14x=20t, y=20t−5t2: slope = vertical speed ÷ horizontal speed.NCERT p. 135

Axes show horizontal distance from 0 to 80 metres and height from 0 to 25 metres. The path is a symmetric arch from (0, 0) up to (40, 20) and down to (80, 0). Step 1 marks the ball at t = 1 s at (20, 15), with a horizontal speed arrow of 20 m/s and an upward arrow of 10 m/s, and the tangent of slope 10/20 = 1/2. Step 2 marks the ball at t = 2 s at the top (40, 20), where the vertical speed is 0 and the tangent is flat. Step 3 marks the ball at t = 3 s at (60, 15), with a downward arrow of 10 m/s and the tangent of slope −1/2.

Example 31NCERT Example 31 · p. 135

An ellipse

Find dydx if x=3cos⁡t, y=2sin⁡t.

Try it yourself first. Then reveal the solution one step at a time.

Example 32NCERT Example 32 · p. 135

The cricket ball

For the ball with x=20t, y=20t−5t2, find dydx. Where is the path level, and at what angle does the ball land?

Try it yourself first. Then reveal the solution one step at a time.

Example 33NCERT Example 33 · p. 136

A looping curve

Find dydx if x=2cos⁡t−cos⁡2t and y=2sin⁡t−sin⁡2t.

Try it yourself first. Then reveal the solution one step at a time.

Notice that the answers above are written in the parameter alone, with no need to find x or y first. A parameter can even be introduced on purpose to tame an implicit relation, as the next example shows.

Example 34NCERT Example 34 · p. 136

Choosing a parameter

Find dydx if x+y=a, where a>0 and x,y>0.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 3
If x=t2 and y=t3, find dydx at t=2.
Show answer

Answer 3

dydx=3t22t=3t2=3 at t=2.
Practice · 3 questions

Practice 5.6: questions with answers

Fresh questions on the skills of NCERT Exercise 5.6.

  1. Short answerMediumNCERT Exercise 5.6, Q1–Q5

    Find dydx without eliminating the parameter.

    1. x=3t2, y=2t3

      Show solution

      Answert

      6t26t=t for t≠0.

    2. x=2sin⁡θ, y=5sin⁡θ

      Show solution

      Answer52

      5cos⁡θ2cos⁡θ=52 where cos⁡θ≠0. (The points lie on the line y=52x.)

    3. x=tan⁡t, y=cos⁡2t

      Show solution

      Answer−2sin⁡2tcos⁡2t

      −2sin⁡2tsec⁡2t=−2sin⁡2tcos⁡2t.

    4. x=t+1t, y=t−1t

      Show solution

      Answert2+1t2−1

      1+1/t21−1/t2=t2+1t2−1 for t≠±1.

    5. x=2cos⁡θ+cos⁡2θ, y=2sin⁡θ−sin⁡2θ

      Show solution

      Answer−tan⁡θ2

      dydθ=2(cos⁡θ−cos⁡2θ)=4sin⁡3θ2sin⁡θ2 and dxdθ=−2(sin⁡θ+sin⁡2θ)=−4sin⁡3θ2cos⁡θ2. The quotient is −tan⁡θ2.

  2. Short answerMediumNCERT Exercise 5.6, Q6–Q10

    Find dydx without eliminating the parameter.

    1. x=2θ−sin⁡2θ, y=1−cos⁡2θ

      Show solution

      Answercot⁡θ

      2sin⁡2θ2−2cos⁡2θ=2sin⁡θcos⁡θ2sin⁡2θ=cot⁡θ.

    2. x=1−t21+t2, y=2t1+t2

      Show solution

      Answert2−12t

      dxdt=−4t(1+t2)2, dydt=2(1−t2)(1+t2)2. The quotient is t2−12t, which equals −xy: these points lie on the unit circle.

    3. x=log⁡(sec⁡t+tan⁡t), y=tan⁡t, 0<t<π2

      Show solution

      Answersec⁡t

      dxdt=sec⁡ttan⁡t+sec⁡2tsec⁡t+tan⁡t=sec⁡t and dydt=sec⁡2t, so dydx=sec⁡t.

    4. x=2tan⁡θ, y=3sec⁡θ

      Show solution

      Answer32sin⁡θ

      3sec⁡θtan⁡θ2sec⁡2θ=32⋅tan⁡θsec⁡θ=32sin⁡θ.

    5. x=eθ(sin⁡θ+cos⁡θ), y=eθ(sin⁡θ−cos⁡θ)

      Show solution

      Answertan⁡θ

      dxdθ=eθ(sin⁡θ+cos⁡θ+cos⁡θ−sin⁡θ)=2eθcos⁡θ and dydθ=2eθsin⁡θ.

  3. Short answerMediumNCERT Exercise 5.6, Q11

    If x=et+e−t and y=et−e−t, show that dydx=xy.

    Show solution

    Answerdxdt=y and dydt=x, so dydx=xy (for t≠0).

    dxdt=et−e−t=y and dydt=et+e−t=x. Dividing, dydx=xy wherever y≠0. (The points satisfy x2−y2=4, and implicit differentiation gives the same slope.)

5.7 Second Order Derivative

Differentiating y=x4 gives 4x3, which is a new function, and nothing stops us differentiating that too: the result is 12x2. Repeating the operation like this is common enough to deserve a name and notation.

Definition
Second order derivative

If y=f(x) and f′ is differentiable, then ddx(dydx) is the second order derivative of y with respect to x, written d2ydx2, f′′(x), D2y, y′′ or y2.

Exampley=x4: dydx=4x3 and d2ydx2=12x2.

In the same notation the first derivative is often written y1, and third and higher derivatives are defined the same way. Two readings make y′′ concrete. If s(t) is position, dsdt is velocity and d2sdt2 is acceleration, the rate at which velocity changes. On a graph, y′′ is the rate at which the slope changes, so its sign tells which way the curve bends (Fig. 5.15).

3/3y′′=6x: negative for x<0 (bends down), positive for x>0 (bends up).

Fig. 5.15y′′ is the slope of the slope.NCERT p. 137

The top panel shows y = x³ − 3x for x from −2.2 to 2.2, rising to a peak at (−1, 2), falling through the origin and reaching a valley at (1, −2). Step 1 draws short tangents at x = −1, 0 and 1 with slopes 0, −3 and 0. Step 2 draws the bottom panel, the slope graph y′ = 3x² − 3, a U-shaped curve through (−1, 0), (0, −3) and (1, 0), with dotted links to the matching tangents. Step 3 shades the left half of the top panel as bending down, where y″ = 6x is negative, and the right half as bending up, where y″ is positive.

Example 35NCERT Example 35 · p. 138

Differentiating twice

Find d2ydx2 if y=x4−sec⁡x.

Try it yourself first. Then reveal the solution one step at a time.

Example 36NCERT Example 36 · p. 138

A function that its second derivative undoes

If y=Acos⁡3x+Bsin⁡3x (A, B constants), show that d2ydx2+9y=0.

Try it yourself first. Then reveal the solution one step at a time.

Example 37NCERT Example 37 · p. 138

Two exponentials

If y=2ex−e4x, show that d2ydx2−5dydx+4y=0.

Try it yourself first. Then reveal the solution one step at a time.

Example 38NCERT Example 38 · p. 139

An inverse sine squared

If y=(sin⁡−1x)2, −1<x<1, show that (1−x2)d2ydx2−xdydx=2.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 3
If y=x5, find d2ydx2 at x=1.
Show answer

Answer 20

y′=5x4 and y′′=20x3, which is 20 at x=1.
Practice · 4 questions

Practice 5.7: questions with answers

Fresh questions on the skills of NCERT Exercise 5.7.

  1. Short answerEasyNCERT Exercise 5.7, Q1–Q5

    Find the second order derivative of each function.

    1. 4x3−5x+7

      Show solution

      Answer24x

      y′=12x2−5, y′′=24x.

    2. x15

      Show solution

      Answer210x13

      y′=15x14, y′′=210x13.

    3. x2sin⁡x

      Show solution

      Answer2sin⁡x+4xcos⁡x−x2sin⁡x

      y′=2xsin⁡x+x2cos⁡x; y′′=2sin⁡x+2xcos⁡x+2xcos⁡x−x2sin⁡x.

    4. x, x>0

      Show solution

      Answer−14x3/2

      y′=12x−1/2, y′′=−14x−3/2.

    5. x2log⁡x, x>0

      Show solution

      Answer2log⁡x+3

      y′=2xlog⁡x+x; y′′=2log⁡x+2+1.

  2. Short answerMediumNCERT Exercise 5.7, Q6–Q10

    Find the second order derivative of each function.

    1. e2xsin⁡x

      Show solution

      Answere2x(3sin⁡x+4cos⁡x)

      y′=e2x(2sin⁡x+cos⁡x); y′′=e2x[2(2sin⁡x+cos⁡x)+(2cos⁡x−sin⁡x)].

    2. e−xcos⁡2x

      Show solution

      Answere−x(4sin⁡2x−3cos⁡2x)

      y′=e−x(−cos⁡2x−2sin⁡2x); y′′=e−x[(cos⁡2x+2sin⁡2x)+(2sin⁡2x−4cos⁡2x)].

    3. sin⁡−1x, −1<x<1

      Show solution

      Answerx(1−x2)3/2

      y′=(1−x2)−1/2; y′′=−12(1−x2)−3/2(−2x).

    4. log⁡(1+x2)

      Show solution

      Answer2(1−x2)(1+x2)2

      y′=2x1+x2; quotient rule: 2(1+x2)−2x⋅2x(1+x2)2.

    5. log⁡(sin⁡x), 0<x<π

      Show solution

      Answer−cosec⁡2x

      y′=cos⁡xsin⁡x=cot⁡x; y′′=−cosec⁡2x.

  3. Short answerHardNCERT Exercise 5.7, Q11–Q14

    Prove each identity.

    1. If y=4sin⁡2x−3cos⁡2x, show that y′′+4y=0.

      Show solution

      Answery′′=−4y.

      y′=8cos⁡2x+6sin⁡2x and y′′=−16sin⁡2x+12cos⁡2x=−4(4sin⁡2x−3cos⁡2x).

    2. If y=sin⁡−1x, find d2ydx2 in terms of y alone.

      Show solution

      Answersec⁡2ytan⁡y

      x=sin⁡y gives y′=1cos⁡y=sec⁡y (cosine is positive on (−π2,π2)). Then y′′=ddxsec⁡y=sec⁡ytan⁡y⋅y′=sec⁡2ytan⁡y.

    3. If y=xcos⁡(log⁡x), x>0, show that x2y2−xy1+2y=0.

      Show solution

      AnswerSubstitution gives 0.

      y1=cos⁡(log⁡x)−sin⁡(log⁡x) and y2=−sin⁡(log⁡x)+cos⁡(log⁡x)x. Write s=sin⁡(log⁡x) and c=cos⁡(log⁡x); then

      x2y2−xy1+2y=(−xs−xc)−(xc−xs)+2xc=0
    4. If y=(A+Bx)ekx, show that y′′−2ky′+k2y=0.

      Show solution

      AnswerSubstitution gives 0.

      y′=Bekx+ky and y′′=kBekx+ky′=2kBekx+k2y. So y′′−2ky′+k2y=2kBekx+k2y−2kBekx−2k2y+k2y=0.

  4. Short answerHardNCERT Exercise 5.7, Q15–Q17

    Prove each identity.

    1. If y=4e−3x+7e3x, show that d2ydx2=9y.

      Show solution

      Answery′′=36e−3x+63e3x=9y.

      y′=−12e−3x+21e3x and y′′=36e−3x+63e3x=9(4e−3x+7e3x).

    2. If y=log⁡(cos⁡x), −π2<x<π2, show that y′′+(y′)2+1=0.

      Show solution

      Answery′′=−sec⁡2x=−(1+(y′)2).

      y′=−tan⁡x and y′′=−sec⁡2x=−(1+tan⁡2x)=−(1+(y′)2).

    3. If y=etan⁡−1x, show that (1+x2)y2+(2x−1)y1=0.

      Show solution

      AnswerDifferentiate (1+x2)y1=y.

      y1=y1+x2, so (1+x2)y1=y. Differentiating, 2xy1+(1+x2)y2=y1, which rearranges to the result.

Miscellaneous examples

These examples combine the techniques of the chapter. Two habits help: state where the function is defined before differentiating, and simplify first when an identity is available, checking that it holds on the whole interval you need.

Example 39NCERT Example 39 · p. 140

Roots and a change of base

Differentiate (i) y=5−2x+1x2+1, x<52 (ii) y=log⁡3(sin⁡x), 0<x<π.

Try it yourself first. Then reveal the solution one step at a time.

Example 40NCERT Example 40 · p. 141

Simplify first, but mind the interval

Differentiate (i) y=cos⁡−1(cos⁡x), 0<x<2π, x≠π (ii) y=tan⁡−11−x1+x, −1<x<1 (iii) y=cos⁡−11−9x1+9x.

Try it yourself first. Then reveal the solution one step at a time.

2/2Beyond [0,π] the graph turns: slopes alternate between 1 and −1.

Fig. 5.16y=cos⁡−1(cos⁡x) equals x only on [0,π].NCERT p. 141

Axes show x from −π to 3π and y from 0 to π. Step 1 draws the line y = x dashed and the graph of y = cos⁻¹(cos x) only for x from 0 to π, where the two coincide. Step 2 draws the whole graph: a zigzag of straight segments rising with slope 1 from 0 to π and falling with slope −1 from π to 2π, repeating, with peaks of height π at x = −π, π and 3π. The line y = x leaves the zigzag at x = π.

Example 41NCERT Example 41 · p. 143

The compound-interest function

Find f′(x) if f(x)=(1+1x)x, x>0.

Try it yourself first. Then reveal the solution one step at a time.

Example 42NCERT Example 42 · p. 143

A parametric pair with variable powers

Find dydx if x=(t2+1)3 and y=3t2.

Try it yourself first. Then reveal the solution one step at a time.

Example 43NCERT Example 43 · p. 144

One function with respect to another

Differentiate tan⁡x with respect to sin⁡x, for −π2<x<π2.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 3
On which interval is cos⁡−1(cos⁡x)=x?
Show answer

Answer (B) [0,π]

cos⁡−1 returns values in [0,π], so the identity can hold only there. [−π2,π2] is the range of sin⁡−1, the usual mix-up.
Practice · 13 questions

Practice questions with answers (NCERT “Miscellaneous exercises”)

Fresh questions on the skills of NCERT's Miscellaneous Exercise on Chapter 5, plus three quick self-checks.

  1. Short answerMediumNCERT Miscellaneous Exercise 5, Q1–Q6

    Differentiate with respect to x.

    1. (2x3−x+4)7

      Show solution

      Answer7(2x3−x+4)6(6x2−1)

      Chain rule: 7u6⋅u′ with u=2x3−x+4.

    2. sin⁡4x+cos⁡4x

      Show solution

      Answer−sin⁡4x

      The derivative is 4sin⁡3xcos⁡x−4cos⁡3xsin⁡x. Factorise: −4sin⁡xcos⁡x⋅(cos⁡2x−sin⁡2x), which is −2sin⁡2xcos⁡2x=−sin⁡4x.

    3. (x2)sin⁡3x, x>0

      Show solution

      Answer3cos⁡3xlog⁡(x2)⋅(x2)sin⁡3x+2sin⁡3xx⋅(x2)sin⁡3x

      log⁡y=sin⁡3x⋅2log⁡x, so y′y=3cos⁡3x⋅2log⁡x+2sin⁡3xx, and 2log⁡x=log⁡(x2).

    4. tan⁡−1(xx), x≥0

      Show solution

      Answer3x2(1+x3)

      11+x3⋅ddxx3/2=11+x3⋅32x1/2.

    5. sin⁡−1(x/3)x+4, −3<x<3

      Show solution

      Answer19−x2x+4−sin⁡−1(x/3)2(x+4)3/2

      ddxsin⁡−1x3=11−x2/9⋅13=19−x2. Then the quotient rule with v=(x+4)1/2, v′=12(x+4)−1/2.

    6. tan⁡−1cos⁡x1+sin⁡x, −π2<x<π2

      Show solution

      Answer−12

      cos⁡x1+sin⁡x=cos⁡2x2−sin⁡2x2(cos⁡x2+sin⁡x2)2=1−tan⁡x21+tan⁡x2=tan⁡(π4−x2), with π4−x2∈(0,π2). So y=π4−x2.

  2. Short answerHardNCERT Miscellaneous Exercise 5, Q7–Q11

    Differentiate with respect to x.

    1. (sin⁡x)log⁡x, 0<x<π

      Show solution

      Answerlog⁡(sin⁡x)x⋅(sin⁡x)log⁡x+log⁡xcot⁡x⋅(sin⁡x)log⁡x

      log⁡y=log⁡x⋅log⁡(sin⁡x); product rule: y′y=log⁡sin⁡xx+log⁡x⋅cos⁡xsin⁡x.

    2. easin⁡x+bcos⁡x (a, b constants)

      Show solution

      Answer(acos⁡x−bsin⁡x) easin⁡x+bcos⁡x

      Chain rule with inner derivative acos⁡x−bsin⁡x.

    3. (x2+1)x2+1

      Show solution

      Answer2x(x2+1)x2+1⋅[log⁡(x2+1)+1]

      log⁡y=(x2+1)log⁡(x2+1), so y′y=2xlog⁡(x2+1)+(x2+1)⋅2xx2+1.

    4. xx−xe+ex−ee, x>0

      Show solution

      Answerxx(1+log⁡x)−e xe−1+ex

      Four different rules: variable base and exponent; a constant power (e is a number); the natural exponential; a constant.

    5. xx2+1+(x−1)x, x>1

      Show solution

      Answer2xlog⁡x⋅xx2+1+(x2+1)xx2+(x−1)xlog⁡(x−1)+x(x−1)x−1

      log⁡u=(x2+1)log⁡x and log⁡v=xlog⁡(x−1); differentiate each and multiply back.

  3. Short answerMediumNCERT Miscellaneous Exercise 5, Q12–Q14

    Parametric and implicit slopes.

    1. Find dydx if x=6(t+sin⁡t), y=4(1−cos⁡t), −π<t<π.

      Show solution

      Answer23tan⁡t2

      4sin⁡t6(1+cos⁡t)=23⋅2sin⁡t2cos⁡t22cos⁡2t2.

    2. Find dydx if y=tan⁡−1x+tan⁡−11x, x>0.

      Show solution

      Answer0

      Directly: the two derivatives cancel. Or note that for x>0 the sum is the constant π2.

    3. If yx2+1=log⁡(x2+1−x), show that (x2+1)dydx+xy+1=0.

      Show solution

      AnswerDifferentiate both sides and multiply by x2+1.

      Right side: xx2+1−1x2+1−x=−1x2+1. Left side: y′x2+1+xyx2+1. Equate and multiply by x2+1.

  4. Short answerHardNCERT Miscellaneous Exercise 5, Q15

    A circle has centre (a,b) and radius c: x=a+ccos⁡t, y=b+csin⁡t. Show that [1+(dydx)2]3/2∣d2ydx2∣=c, a constant that does not depend on a and b.

    Show solution

    Answerdydx=−cot⁡t and d2ydx2=−1csin⁡3t, so the ratio is c.

    dydx=ccos⁡t−csin⁡t=−cot⁡t. Then d2ydx2=cosec⁡2t−csin⁡t=−1csin⁡3t.

    Numerator: (1+cot⁡2t)3/2=(cosec⁡2t)3/2=1∣sin⁡t∣3. Dividing by 1c∣sin⁡t∣3 leaves c. (This ratio is the radius of curvature; for a circle it is the radius.)

  5. Short answerHardNCERT Miscellaneous Exercise 5, Q16

    If sin⁡y=xsin⁡(a+y), where sin⁡a≠0, prove that dydx=sin⁡2(a+y)sin⁡a.

    Show solution

    Answerdxdy=sin⁡asin⁡2(a+y).

    x=sin⁡ysin⁡(a+y), so dxdy=cos⁡ysin⁡(a+y)−sin⁡ycos⁡(a+y)sin⁡2(a+y)=sin⁡((a+y)−y)sin⁡2(a+y)=sin⁡asin⁡2(a+y).

    Since dydx=1÷dxdy, the result follows.

  6. Short answerHardNCERT Miscellaneous Exercise 5, Q17–Q18

    Second derivatives in unusual settings.

    1. If x=etcos⁡t and y=etsin⁡t, find d2ydx2.

      Show solution

      Answer2et(cos⁡t−sin⁡t)3

      dydx=sin⁡t+cos⁡tcos⁡t−sin⁡t. By the quotient rule its t-derivative is

      (cos⁡t−sin⁡t)2+(sin⁡t+cos⁡t)2(cos⁡t−sin⁡t)2=2(cos⁡t−sin⁡t)2

      Divide this by dxdt=et(cos⁡t−sin⁡t).

    2. Let f(x)=x∣x∣. Show that f′(x) exists for every real x, but f′′(0) does not exist.

      Show solution

      Answerf′(x)=2∣x∣; f′′ is −2 for x<0 and 2 for x>0.

      f(x)=x2 for x≥0 and −x2 for x<0. Away from 0, f′(x)=2x or −2x, that is 2∣x∣. At 0, f(h)−f(0)h=∣h∣→0, so f′(0)=0 and f′(x)=2∣x∣ everywhere. But 2∣x∣ has a corner at 0 (one-sided derivatives −2 and 2), so f′′(0) does not exist.

  7. Short answerMediumNCERT Miscellaneous Exercise 5, Q19

    Starting from cos⁡(x+B)=cos⁡xcos⁡B−sin⁡xsin⁡B, where B is a constant, differentiate with respect to x to obtain the addition formula for sin⁡(x+B).

    Show solution

    Answersin⁡(x+B)=sin⁡xcos⁡B+cos⁡xsin⁡B.

    Differentiating, −sin⁡(x+B)=−sin⁡xcos⁡B−cos⁡xsin⁡B. Multiply by −1.

  8. Short answerMediumNCERT Miscellaneous Exercise 5, Q20

    Give a function that is continuous at every real number but not differentiable at exactly three points, x=−1, 0 and 2. Justify your answer.

    Show solution

    AnswerFor example f(x)=∣x+1∣+∣x∣+∣x−2∣.

    Each term is continuous, so f is continuous. Away from −1,0,2, f is linear near each point and so differentiable.

    At x=0 the other two terms are differentiable, while ∣x∣ has one-sided derivatives −1 and 1. So the one-sided derivatives of f differ by 2 and f′(0) does not exist. The same argument works at −1 and at 2.

  9. Short answerHardNCERT Miscellaneous Exercise 5, Q21

    Let y=∣x2sin⁡xexx∣. Find dydx by expanding, and check that it equals ∣2xcos⁡xexx∣+∣x2sin⁡xex1∣ (differentiate one row at a time).

    Show solution

    Answer3x2−ex(sin⁡x+cos⁡x) both ways.

    y=x3−exsin⁡x, so y′=3x2−exsin⁡x−excos⁡x.

    The first determinant is 2x2−excos⁡x and the second is x2−exsin⁡x. Their sum is 3x2−excos⁡x−exsin⁡x, the same.

  10. Short answerHardNCERT Miscellaneous Exercise 5, Q22

    If y=sin⁡(msin⁡−1x), −1<x<1, show that (1−x2)d2ydx2−xdydx+m2y=0.

    Show solution

    AnswerDifferentiating 1−x2 y1=mcos⁡(msin⁡−1x) gives the result.

    y1=cos⁡(msin⁡−1x)⋅m1−x2, so 1−x2 y1=mcos⁡(msin⁡−1x).

    Differentiate: 1−x2 y2−x1−x2y1=−msin⁡(msin⁡−1x)⋅m1−x2=−m2y1−x2. Multiply by 1−x2.

  11. Quick answerEasy

    Which of these functions is continuous at x=0 but not differentiable there?

    Show answer

    Answer (C) ∣sin⁡x∣

    ∣sin⁡x∣ has a corner at 0 (one-sided derivatives −1 and 1). x2 is differentiable, [x] jumps at 0, and 1x is not defined at 0.
  12. Quick answerEasy

    If x=2t2 and y=t4, find dydx when t=3.

    Show answer

    Answer 9

    dydx=t2=9.
  13. Quick answerEasy

    True or false: if f is differentiable at c, then lim⁡x→cf(x) exists.

    Show answer

    Answer True

    Differentiability implies continuity (Theorem 3), so the limit exists and equals f(c).
Recap

Continuity and Differentiability: key points and summary

  1. A real function f is continuous at a point c of its domain if lim⁡x→cf(x)=f(c): both one-sided limits exist, agree, and equal f(c) (Section 5.2).
  2. A continuous function has no point of discontinuity in its domain; at the end of a closed interval only the one-sided limit is used (continuous functions).
  3. Sums, differences, products and quotients (where the denominator is non-zero) of continuous functions are continuous, and so are composites (Section 5.2.1).
  4. Polynomials, rational functions, trigonometric functions, ∣x∣, exponentials and logarithms are continuous on their domains; [x] jumps at every integer (Example 15).
  5. f is differentiable at c when its left-hand and right-hand derivatives at c are finite and equal. Differentiability implies continuity, not the other way round: ∣x−3∣ is unbroken but has a corner at 3 (Section 5.3).
  6. Chain rule: if t=u(x) and f=v∘u, then dfdx=dvdt⋅dtdx, and longer chains multiply more rates (Section 5.3.1).
  7. For an implicit relation, differentiate both sides with respect to x, attaching dydx to every term in y (Section 5.3.2).
  8. ddxsin⁡−1x=11−x2, ddxcos⁡−1x=−11−x2 on (−1,1), and ddxtan⁡−1x=11+x2 (Section 5.3.3).
  9. log⁡ba=x means bx=a; log⁡ turns products into sums, quotients into differences and powers into multiples, and log⁡bx is the mirror image of bx in y=x (Section 5.4).
  10. ddxex=ex, ddxlog⁡x=1x and ddxax=axlog⁡a (Theorem 5).
  11. Logarithmic differentiation handles [u(x)]v(x) and long products: dydx=uv[vuu′+v′log⁡u], valid when u>0 (Section 5.5).
  12. For x=f(t), y=g(t): dydx=g′(t)f′(t) wherever f′(t)≠0 (Section 5.6).
  13. The second derivative d2ydx2 is the derivative of dydx: the rate of change of the slope (Section 5.7).
Flash cards · 10

Derivatives to know

1 / 10

Find your NCERT exercise question

Our practice questions are written for ncert.ai and follow the NCERT exercises. Find the one that matches the question in your textbook; its answer is with it.

In your NCERT textbookPractice question here
NCERT Exercise 5.1, Q1–Q2Practice 5.1 · Q1
NCERT Exercise 5.1, Q3Practice 5.1 · Q2
NCERT Exercise 5.1, Q4Practice 5.1 · Q3
NCERT Exercise 5.1, Q5Practice 5.1 · Q4
NCERT Exercise 5.1, Q6–Q12Practice 5.1 · Q5
NCERT Exercise 5.1, Q13–Q16Practice 5.1 · Q6
NCERT Exercise 5.1, Q17–Q18Practice 5.1 · Q7
NCERT Exercise 5.1, Q19Practice 5.1 · Q8
NCERT Exercise 5.1, Q20–Q22Practice 5.1 · Q9
NCERT Exercise 5.1, Q23–Q25Practice 5.1 · Q10
NCERT Exercise 5.1, Q26–Q30Practice 5.1 · Q11
NCERT Exercise 5.1, Q31–Q34Practice 5.1 · Q12
NCERT Exercise 5.2, Q1–Q8Practice 5.2 · Q1
NCERT Exercise 5.2, Q9Practice 5.2 · Q2
NCERT Exercise 5.2, Q10Practice 5.2 · Q3
NCERT Exercise 5.3, Q1–Q8Practice 5.3 · Q1
NCERT Exercise 5.3, Q9–Q15Practice 5.3 · Q2
NCERT Exercise 5.4, Q1–Q5Practice 5.4 · Q1
NCERT Exercise 5.4, Q6–Q10Practice 5.4 · Q2
NCERT Exercise 5.5, Q1–Q6Practice 5.5 · Q1
NCERT Exercise 5.5, Q7–Q11Practice 5.5 · Q2
NCERT Exercise 5.5, Q12–Q15Practice 5.5 · Q3
NCERT Exercise 5.5, Q16Practice 5.5 · Q4
NCERT Exercise 5.5, Q17Practice 5.5 · Q5
NCERT Exercise 5.5, Q18Practice 5.5 · Q6
NCERT Exercise 5.6, Q1–Q5Practice 5.6 · Q1
NCERT Exercise 5.6, Q6–Q10Practice 5.6 · Q2
NCERT Exercise 5.6, Q11Practice 5.6 · Q3
NCERT Exercise 5.7, Q1–Q5Practice 5.7 · Q1
NCERT Exercise 5.7, Q6–Q10Practice 5.7 · Q2
NCERT Exercise 5.7, Q11–Q14Practice 5.7 · Q3
NCERT Exercise 5.7, Q15–Q17Practice 5.7 · Q4
NCERT Miscellaneous Exercise 5, Q1–Q6Miscellaneous exercises · Q1
NCERT Miscellaneous Exercise 5, Q7–Q11Miscellaneous exercises · Q2
NCERT Miscellaneous Exercise 5, Q12–Q14Miscellaneous exercises · Q3
NCERT Miscellaneous Exercise 5, Q15Miscellaneous exercises · Q4
NCERT Miscellaneous Exercise 5, Q16Miscellaneous exercises · Q5
NCERT Miscellaneous Exercise 5, Q17–Q18Miscellaneous exercises · Q6
NCERT Miscellaneous Exercise 5, Q19Miscellaneous exercises · Q7
NCERT Miscellaneous Exercise 5, Q20Miscellaneous exercises · Q8
NCERT Miscellaneous Exercise 5, Q21Miscellaneous exercises · Q9
NCERT Miscellaneous Exercise 5, Q22Miscellaneous exercises · Q10

Quick check: MCQs on Continuity and Differentiability

  1. 5.2 Continuity4 questions
  2. 5.2.1 Algebra of continuous functions3 questions
  3. 5.3 Differentiability4 questions
  4. 5.3.3 Derivatives of inverse trigonometric functions4 questions
  5. 5.4 Exponential and Logarithmic Functions3 questions
  6. 5.5 Logarithmic Differentiation3 questions
  7. 5.6 Derivatives of Functions in Parametric Forms3 questions
  8. 5.7 Second Order Derivative3 questions
  9. Miscellaneous examples3 questions
Glossary · 13

Key terms (English–Hindi)

chain ruleशृंखला नियमshrinkhala niyam
The derivative of a composite is the product of the rates along the chain: dydx=dydt⋅dtdx.First seen in the chapter →
continuous (at a point)संततsantat
f is continuous at a point c of its domain when lim⁡x→cf(x) exists and equals f(c).First seen in the chapter →
continuous functionसंतत फलनsantat phalan
A function that is continuous at every point of its domain.
differentiableअवकलनीयavakalaneeya
f is differentiable at c when its left-hand and right-hand derivatives at c are finite and equal.First seen in the chapter →
exponential functionचरघातांकी फलनcharghaataanki phalan
y=bx for a fixed base b>1; with base e it is the natural exponential ex.
greatest integer functionमहत्तम पूर्णांक फलनmahattam poornaank phalan
[x], the largest integer less than or equal to x; for example [−1.2]=−2.First seen in the chapter →
implicit functionअस्पष्ट फलनaspasht phalan
A function of x fixed by a relation between x and y that is not written in the form y=f(x).
logarithmलघुगणकlaghuganak
log⁡ba=x means bx=a. In this chapter log⁡x is the natural logarithm, base e.
logarithmic differentiationलघुगणकीय अवकलनlaghuganakiya avakalan
Differentiating log⁡y instead of y, then multiplying by y; used for [u(x)]v(x) and long products.
one-sided limitएकपक्षीय सीमाekpakshiya seema
The value f(x) approaches as x→c from the left only (x<c) or from the right only (x>c).First seen in the chapter →
parameterप्राचलpraachal
A third variable t through which x=f(t) and y=g(t) are both given.
point of discontinuityअसांतत्य का बिंदुasaantatya ka bindu
A point of the domain at which the function is not continuous.First seen in the chapter →
second order derivativeद्वितीय कोटि का अवकलजdvitiya koti ka avakalaj
The derivative of dydx, written d2ydx2 or y′′.