Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.1 · Q26: Find kk⁠: kcos⁡xπ−2x\frac{k\cos x}{\pi-2x} continuous at π2\frac{\pi}{2}

Exercise 5.1Continuity at a point · Section 5.2
The question

Find the values of kk so that the function ff is continuous at the indicated point in Exercises 26 to 29.

26. f(x)={kcos⁡xπ−2x,if x≠π23,if x=π2at x=π2.f(x) = \begin{cases} \dfrac{k\cos x}{\pi - 2x}, & \text{if } x \ne \dfrac{\pi}{2} \\[3mm] 3, & \text{if } x = \dfrac{\pi}{2} \end{cases} \qquad \text{at } x = \frac{\pi}{2}.

Exam answer

f(π2)=3f\left(\frac{\pi}{2}\right) = 3⁠.

LHL=lim⁡h→0f(π2−h)=lim⁡h→0kcos⁡(π2−h)π−2(π2−h)=lim⁡h→0ksin⁡h2h=k2RHL=lim⁡h→0f(π2+h)=lim⁡h→0kcos⁡(π2+h)π−2(π2+h)=lim⁡h→0−ksin⁡h−2h=k2\begin{aligned} \text{LHL} &= \lim_{h\to0}f\left(\tfrac{\pi}{2} - h\right) \\ &= \lim_{h\to0}\frac{k\cos\left(\frac{\pi}{2} - h\right)}{\pi - 2\left(\frac{\pi}{2} - h\right)} \\ &= \lim_{h\to0}\frac{k\sin h}{2h} = \frac{k}{2} \\ \text{RHL} &= \lim_{h\to0}f\left(\tfrac{\pi}{2} + h\right) \\ &= \lim_{h\to0}\frac{k\cos\left(\frac{\pi}{2} + h\right)}{\pi - 2\left(\frac{\pi}{2} + h\right)} \\ &= \lim_{h\to0}\frac{-k\sin h}{-2h} = \frac{k}{2} \end{aligned}

(using cos⁡(π2−h)=sin⁡h\cos\left(\frac{\pi}{2} - h\right) = \sin h⁠, cos⁡(π2+h)=−sin⁡h\cos\left(\frac{\pi}{2} + h\right) = -\sin h and lim⁡h→0sin⁡hh=1\lim_{h\to0}\frac{\sin h}{h} = 1⁠)

For continuity at x=π2x = \frac{\pi}{2}⁠,

LHL=RHL=f(π2)\text{LHL} = \text{RHL} = f\left(\tfrac{\pi}{2}\right) ⇒ k2=3 ⇒ k=6\Rightarrow\ \frac{k}{2} = 3\ \Rightarrow\ k = 6

∴ k=6\therefore\ k = 6⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

At x=π2x = \frac{\pi}{2} the top formula becomes 00\frac{0}{0}⁠, which is not a number, so we cannot just substitute. Instead we let xx approach π2\frac{\pi}{2} by writing x=π2±hx = \frac{\pi}{2} \pm h⁠. The quotient turns into k2⋅sin⁡hh\frac{k}{2}\cdot\frac{\sin h}{h}⁠, and since sin⁡hh→1\frac{\sin h}{h} \to 1⁠, both one-sided limits equal k2\frac{k}{2}⁠. Continuity demands that this equal the value f(π2)=3f(\frac{\pi}{2}) = 3⁠. So k2=3\frac{k}{2} = 3⁠, giving k=6k = 6⁠.

Given, to find, and the plan
Given
f(x)=kcos⁡xπ−2xf(x) = \frac{k\cos x}{\pi-2x} for x≠π2x \ne \frac{\pi}{2}⁠, and f(π2)=3f(\frac{\pi}{2}) = 3⁠. Here kk is an unknown constant.
To find
Every value of kk for which ff is continuous at x=π2x = \frac{\pi}{2}⁠.
Plan
(1) Check that π2\frac{\pi}{2} is in the domain and read off f(π2)f(\frac{\pi}{2})⁠. (2) See why substitution fails. (3) Find the left-hand limit with x=π2−hx = \frac{\pi}{2} - h⁠. (4) Find the right-hand limit with x=π2+hx = \frac{\pi}{2} + h⁠. (5) Set both limits equal to f(π2)f(\frac{\pi}{2}) and solve for kk⁠.

Basics you need

1Continuity at a point

ff is continuous at a point cc of its domain when the left-hand limit, the right-hand limit and the value f(c)f(c) all exist and are equal (Definition 1, Section 5.2). Lesson: continuity at a point

2One-sided limits

lim⁡x→c−f(x)\lim_{x\to c^-} f(x) uses only xx just below cc⁠; lim⁡x→c+f(x)\lim_{x\to c^+} f(x) uses only xx just above cc⁠. Writing x=c−hx = c - h or x=c+hx = c + h with h>0h > 0⁠, h→0h \to 0⁠, turns each into a limit in hh⁠. Basics: left-hand and right-hand limits

3Cosine near π2\frac{\pi}{2}

cos⁡(π2−h)=sin⁡h\cos(\frac{\pi}{2} - h) = \sin h and cos⁡(π2+h)=−sin⁡h\cos(\frac{\pi}{2} + h) = -\sin h⁠. Both follow from the formulas for cos⁡(A+B)\cos(A + B) and cos⁡(A−B)\cos(A - B) with cos⁡π2=0\cos\frac{\pi}{2} = 0 and sin⁡π2=1\sin\frac{\pi}{2} = 1⁠. Basics: trigonometric identities

4The standard limit sin⁡hh→1\frac{\sin h}{h} \to 1

lim⁡h→0sin⁡hh=1\lim_{h\to0} \frac{\sin h}{h} = 1 when hh is measured in radians (Class XI, Limits and Derivatives). The same holds for h→0+h \to 0^+⁠, since the two-sided limit exists. Basics: what a limit is

5"00\frac{0}{0}" is a warning, not an answer

If substitution gives 00\frac{0}{0}⁠, the expression has no value at that point, but its limit may well exist. We must rewrite the expression before letting h→0h \to 0⁠.

Solution

  1. The point π2\frac{\pi}{2} is in the domain, and f(π2)=3f(\frac{\pi}{2}) = 3

    The top rule needs π−2x≠0\pi - 2x \ne 0⁠, that is x≠π2x \ne \frac{\pi}{2}⁠, which is exactly where it is used. The bottom rule covers the single point x=π2x = \frac{\pi}{2}⁠. So ff is defined at every real number, and in particular

    f ⁣(π2)=3.f\!\left(\tfrac{\pi}{2}\right) = 3.
    Continuity is only asked at points of the domain (Definition 1), so first we confirm π2\frac{\pi}{2} is one, and we record the value that the limits will have to match. Note that the value 3 is given; it does not depend on kk⁠.
    A piecewise rule: decide which line applies to the input, then use only that line. At exactly x=π2x = \frac{\pi}{2} the second line applies. Basics: piecewise functions
  2. Why we cannot simply substitute x=π2x = \frac{\pi}{2} in the top rule

    At x=π2x = \frac{\pi}{2}⁠: the numerator is kcos⁡π2=k⋅0=0k\cos\frac{\pi}{2} = k \cdot 0 = 0 and the denominator is π−2⋅π2=0\pi - 2\cdot\frac{\pi}{2} = 0⁠. The top rule would give 00\frac{0}{0}⁠, which is not a number.

    So the limit has to be found by letting xx get close to π2\frac{\pi}{2} without being equal to it, from each side separately.

    A limit only looks at values of xx near cc⁠, never at x=cx = c itself. That is why the top rule (valid for x≠π2x \ne \frac{\pi}{2}⁠) is the one that decides the limits, while the bottom rule only supplies f(π2)f(\frac{\pi}{2})⁠.
    "00\frac{0}{0}" means "both parts shrink to 0"; their ratio can tend to any number, or to none. Rewriting is needed (Basic 5).
  3. Left-hand limit: put x=π2−hx = \frac{\pi}{2} - h

    For xx just below π2\frac{\pi}{2}⁠, write x=π2−hx = \frac{\pi}{2} - h with h>0h > 0 and h→0h \to 0⁠. Then

    cos⁡x=cos⁡ ⁣(π2−h)=sin⁡h,π−2x=π−π+2h=2h.\begin{aligned} \cos x &= \cos\!\left(\tfrac{\pi}{2} - h\right) = \sin h,\\ \pi - 2x &= \pi - \pi + 2h = 2h. \end{aligned}

    So

    lim⁡x→π2−f(x)=lim⁡h→0+ksin⁡h2h=k2lim⁡h→0+sin⁡hh=k2⋅1=k2.\begin{aligned} \lim_{x\to \frac{\pi}{2}^-} f(x) &= \lim_{h\to0^+} \frac{k\sin h}{2h}\\ &= \frac{k}{2}\lim_{h\to0^+} \frac{\sin h}{h}\\ &= \frac{k}{2}\cdot 1 = \frac{k}{2}. \end{aligned}
    The substitution moves the problem to h→0h \to 0⁠, where we know a standard limit. After the substitution the troublesome cos⁡x\cos x becomes sin⁡h\sin h and the denominator becomes 2h2h⁠, so the expression is a constant times sin⁡hh\frac{\sin h}{h}⁠. A constant factor k2\frac{k}{2} can be taken outside the limit.
    By the formula for cos⁡(A−B)\cos(A - B) (Basic 3), cos⁡ ⁣(π2−h)=cos⁡π2cos⁡h+sin⁡π2sin⁡h=0⋅cos⁡h+1⋅sin⁡h=sin⁡h,\begin{aligned} \cos\!\left(\tfrac{\pi}{2} - h\right) &= \cos\tfrac{\pi}{2}\cos h + \sin\tfrac{\pi}{2}\sin h\\ &= 0\cdot\cos h + 1\cdot\sin h = \sin h, \end{aligned} and sin⁡hh→1\frac{\sin h}{h} \to 1 (Basic 4). Basics: trigonometric identities
  4. Right-hand limit: put x=π2+hx = \frac{\pi}{2} + h

    For xx just above π2\frac{\pi}{2}⁠, write x=π2+hx = \frac{\pi}{2} + h with h>0h > 0 and h→0h \to 0⁠. Then

    cos⁡x=cos⁡ ⁣(π2+h)=−sin⁡h,π−2x=π−π−2h=−2h.\begin{aligned} \cos x &= \cos\!\left(\tfrac{\pi}{2} + h\right) = -\sin h,\\ \pi - 2x &= \pi - \pi - 2h = -2h. \end{aligned}

    Both numerator and denominator are negative, and the two minus signs cancel:

    lim⁡x→π2+f(x)=lim⁡h→0+−ksin⁡h−2h=k2lim⁡h→0+sin⁡hh=k2.\begin{aligned} \lim_{x\to \frac{\pi}{2}^+} f(x) &= \lim_{h\to0^+} \frac{-k\sin h}{-2h}\\ &= \frac{k}{2}\lim_{h\to0^+} \frac{\sin h}{h}\\ &= \frac{k}{2}. \end{aligned}
    The right-hand side has to be checked on its own: a function can approach different numbers from the two sides. Here the sign changes in numerator and denominator cancel, so the right-hand limit is also k2\frac{k}{2}⁠. Hence the (two-sided) limit at π2\frac{\pi}{2} exists and equals k2\frac{k}{2}⁠, whatever kk is.
    By the formula for cos⁡(A+B)\cos(A + B)⁠, cos⁡ ⁣(π2+h)=cos⁡π2cos⁡h−sin⁡π2sin⁡h=0⋅cos⁡h−1⋅sin⁡h=−sin⁡h.\begin{aligned} \cos\!\left(\tfrac{\pi}{2} + h\right) &= \cos\tfrac{\pi}{2}\cos h - \sin\tfrac{\pi}{2}\sin h\\ &= 0\cdot\cos h - 1\cdot\sin h = -\sin h. \end{aligned} Basics: left-hand and right-hand limits
  5. Make the limit equal the value: k2=3\frac{k}{2} = 3

    By Definition 1, ff is continuous at π2\frac{\pi}{2} exactly when

    lim⁡x→π2−f(x)=lim⁡x→π2+f(x)=f ⁣(π2),\lim_{x\to \frac{\pi}{2}^-} f(x) = \lim_{x\to \frac{\pi}{2}^+} f(x) = f\!\left(\tfrac{\pi}{2}\right),

    that is, k2=k2=3\frac{k}{2} = \frac{k}{2} = 3⁠. The two limits already agree (Steps 3 and 4), so the only condition is

    k2=3⟺k=6.\frac{k}{2} = 3 \quad\Longleftrightarrow\quad k = 6.

    For any other kk the limit k2\frac{k}{2} differs from 3 and ff is discontinuous at π2\frac{\pi}{2}⁠. So k=6k = 6 is the only value.

    x y π/4 π/2 3π/4 π 1 2 3 f(π/2) = 3 dashed: k = 4, the curve heads to 2, leaving a gap below the dot blue: k = 6, the curve runs into the dot
    For k=6k = 6 (blue) the curve y=6cos⁡xπ−2xy = \frac{6\cos x}{\pi - 2x} rises to height 3 as x→π2x \to \frac{\pi}{2} from either side and runs straight into the filled dot (π2,3)(\frac{\pi}{2}, 3)⁠. For k=4k = 4 (dashed) the curve heads to height 2 instead: there is a hole at (π2,2)(\frac{\pi}{2}, 2) and the value 3 sits above it, so that ff would be discontinuous.
    "Find the values of kk" asks for all of them, so we also note that no other value works: the condition k2=3\frac{k}{2} = 3 is a linear equation with exactly one solution. The picture shows what goes wrong otherwise: the limit is pulled to k2\frac{k}{2} while the point stays at 3.
    Continuity at cc⁠: left-hand limit = right-hand limit = f(c)f(c) (Basic 1). Lesson: continuity at a point
Result

ff is continuous at x=π2x = \frac{\pi}{2} if and only if k=6k = 6. Then both one-sided limits and f(π2)f(\frac{\pi}{2}) equal 3. (Textbook answer: k=6k = 6⁠.)

Check it with numbers

Take k=6k = 6 and step a little to each side of π2≈1.5707963\frac{\pi}{2} \approx 1.5707963 (radians):

hhf(π2−h)f(\frac{\pi}{2} - h)f(π2+h)f(\frac{\pi}{2} + h)
0.12.99500252.9950025
0.012.99995002.9999500
0.0012.99999952.9999995

Both columns close in on 3 =f(π2)= f(\frac{\pi}{2})⁠. ✓ With k=4k = 4 instead, f(π2+0.01)≈1.99997f(\frac{\pi}{2} + 0.01) \approx 1.99997⁠, close to 2, not 3, so k=4k = 4 fails, as Step 5 says.

Common mistakes
  1. Substituting x=π2x = \frac{\pi}{2} into the top rule. That gives 00\frac{0}{0}⁠, not a value. The top rule is only for x≠π2x \ne \frac{\pi}{2} and only feeds the limits.
  2. Sign slips on the right. cos⁡(π2+h)=−sin⁡h\cos(\frac{\pi}{2} + h) = -\sin h and π−2x=−2h\pi - 2x = -2h⁠. Dropping one minus sign gives the limit −k2-\frac{k}{2} and the wrong answer k=−6k = -6⁠.
  3. Using degrees. sin⁡hh→1\frac{\sin h}{h} \to 1 only when hh is in radians; the textbook's π\pi means radians throughout.
  4. Checking one side only. Here the two sides agree, but that has to be shown, not assumed.
What to take away
  1. When a "find kk" rule is 00\frac{0}{0} at the point, shift the variable (x=c±hx = c \pm h⁠) to reach a standard limit.
  2. cos⁡(π2±h)=∓sin⁡h\cos(\frac{\pi}{2} \pm h) = \mp\sin h turns cosines near π2\frac{\pi}{2} into sines near 0.
  3. Continuity then reduces to one equation: limit = given value.

Every fact used, and where it comes from

FactUsed inSource
Continuity at cc⁠: left-hand limit, right-hand limit and f(c)f(c) equalSteps 1, 5Definition 1, Section 5.2 (Lesson: continuity at a point)
cos⁡(π2−h)=sin⁡h\cos(\frac{\pi}{2} - h) = \sin h⁠, cos⁡(π2+h)=−sin⁡h\cos(\frac{\pi}{2} + h) = -\sin hSteps 3, 4cos⁡(A±B)\cos(A\pm B) formulas, Class XI, Trigonometric Functions
lim⁡h→0sin⁡hh=1\lim_{h\to0} \frac{\sin h}{h} = 1 (radians)Steps 3, 4Standard limit, Class XI, Limits and Derivatives
A constant factor comes out of a limitSteps 3, 4Algebra of limits, Class XI, Limits and Derivatives
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →