Class 12 Maths, Worked in Full Past papersGet updates
Chapter 6 · Application of Derivatives

Example 12: Where sin⁡3x\sin 3x increases and decreases on [0,π2]\left[0,\frac{\pi}{2}\right]

ExamplesIncreasing and decreasing functions · Section 6.3
The question

Find intervals in which the function given by f(x)=sin⁡3xf(x) = \sin 3x⁠, x∈[0,π2]x \in \left[0, \frac{\pi}{2}\right] is (a) increasing (b) decreasing.

Exam answer f′(x)=3cos⁡3xf'(x) = 3\cos 3x

f′(x)=0⇒cos⁡3x=0f'(x) = 0 \Rightarrow \cos 3x = 0⁠.

As 0≤3x≤3π20 \le 3x \le \frac{3\pi}{2}⁠, 3x=π2,3π2⇒x=π6,π23x = \frac{\pi}{2}, \frac{3\pi}{2} \Rightarrow x = \frac{\pi}{6}, \frac{\pi}{2}⁠.

For 0≤x<π60 \le x < \frac{\pi}{6}⁠, 0≤3x<π20 \le 3x < \frac{\pi}{2}⁠, so f′(x)>0f'(x) > 0⁠.

For π6<x<π2\frac{\pi}{6} < x < \frac{\pi}{2}⁠, π2<3x<3π2\frac{\pi}{2} < 3x < \frac{3\pi}{2}⁠, so f′(x)<0f'(x) < 0⁠.

As ff is continuous on [0,π2]\left[0, \frac{\pi}{2}\right]⁠, the end points can be included.

(a) ff is increasing in [0,π6]\left[0, \frac{\pi}{6}\right]⁠.

(b) ff is decreasing in [π6,π2]\left[\dfrac{\pi}{6}, \dfrac{\pi}{2}\right]⁠.

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

The one idea this problem is built on

As before, the sign of f′(x)f'(x) decides whether ff climbs or falls. Here f′(x)=3cos⁡3xf'(x) = 3\cos 3x⁠, so we need the sign of a cosine. The trick is to watch the angle 3x3x, not xx⁠: while xx runs from 0 to π2\frac{\pi}{2}⁠, the angle 3x3x runs three times as far, from 0 to 3π2\frac{3\pi}{2}⁠, and on that stretch the cosine is positive up to π2\frac{\pi}{2} and negative after it.

Given, to find, and the plan
Given
f(x)=sin⁡3xf(x) = \sin 3x⁠, defined only for 0≤x≤π20 \le x \le \frac{\pi}{2}⁠.
To find
(a) the intervals inside [0,π2]\left[0, \frac{\pi}{2}\right] where ff is increasing; (b) those where it is decreasing.
Plan
Differentiate with the chain rule; find where cos⁡3x=0\cos 3x = 0 by first finding the range of the angle 3x3x⁠; decide the sign of cos⁡3x\cos 3x on each piece; conclude with Theorem 1, including end points where ff is continuous.

Basics you need

1Increasing on an interval (Definition 1) and the derivative test (Theorem 1)

ff is increasing on I if x1<x2x_1 < x_2 in I gives f(x1)≤f(x2)f(x_1) \le f(x_2) (strictly: <<⁠). If ff is continuous on [a,b][a,b]⁠, differentiable on (a,b)(a,b) and f′(x)≥0f'(x) \ge 0 there, then ff is increasing on [a,b][a,b]⁠; with f′(x)≤0f'(x) \le 0 it is decreasing (Theorem 1, Section 6.3). Lesson: increasing and decreasing functions

2Chain rule

For sin⁡(u)\sin(u) with u=3xu = 3x⁠: ddxsin⁡3x\frac{d}{dx}\sin 3x =cos⁡3x⋅ddx(3x)= \cos 3x \cdot \frac{d}{dx}(3x) =3cos⁡3x= 3\cos 3x⁠. The outer function is sin⁡\sin⁠, the inner function is 3x3x⁠.

3Where cosine is positive, negative or zero

On the unit circle, cos⁡θ\cos\theta is the xx-coordinate. It is positive for 0≤θ<π20 \le \theta < \frac{\pi}{2} (first quadrant), zero at θ=π2\theta = \frac{\pi}{2} and 3π2\frac{3\pi}{2}⁠, and negative for π2<θ<3π2\frac{\pi}{2} < \theta < \frac{3\pi}{2} (second and third quadrants). Basics: signs of sin and cos on the unit circle

4Interval notation

[0,π6)\left[0, \frac{\pi}{6}\right) contains 0 but not π6\frac{\pi}{6}⁠; (π6,π2]\left(\frac{\pi}{6}, \frac{\pi}{2}\right] contains π2\frac{\pi}{2} but not π6\frac{\pi}{6}⁠. Basics: interval notation

Solution

  1. Differentiate

    By the chain rule (Basic 2), with outer function sin⁡u\sin u and inner function u=3xu = 3x⁠:

    f′(x)=cos⁡3x⋅3=3cos⁡3x.f'(x) = \cos 3x \cdot 3 = 3\cos 3x.
    The factor 3 comes from differentiating the inner function 3x3x⁠. It is positive, so it never affects the sign: f′(x)f'(x) has the same sign as cos⁡3x\cos 3x everywhere.
    sin⁡3x\sin 3x is continuous and differentiable at every real xx⁠, so in particular on [0,π2]\left[0, \frac{\pi}{2}\right]⁠, and Theorem 1 can be used on any closed piece of this interval.
  2. Where is f′(x)=0f'(x) = 0 in the domain?

    f′(x)=0  ⟺  cos⁡3x=0f'(x) = 0 \iff \cos 3x = 0⁠. First find the range of the angle: multiplying 0≤x≤π20 \le x \le \frac{\pi}{2} by 3 gives

    0≤3x≤3π2.0 \le 3x \le \frac{3\pi}{2}.

    The cosine is zero only at odd multiples of π2\frac{\pi}{2}⁠; those lying in [0,3π2]\left[0, \frac{3\pi}{2}\right] are π2\frac{\pi}{2} and 3π2\frac{3\pi}{2} (the next ones, −π2-\frac{\pi}{2} and 5π2\frac{5\pi}{2}⁠, are outside). So

    3x=π2  or  3x=3π2,sox=π6  or  x=π2.\begin{aligned} 3x &= \frac{\pi}{2} \ \text{ or } \ 3x = \frac{3\pi}{2}, \\ \text{so} \quad x &= \frac{\pi}{6} \ \text{ or } \ x = \frac{\pi}{2}. \end{aligned}

    The point x=π2x = \frac{\pi}{2} is the right-hand end of the domain, so only x=π6x = \frac{\pi}{6} splits the domain, into [0,π6)\left[0, \frac{\pi}{6}\right) and (π6,π2]\left(\frac{\pi}{6}, \frac{\pi}{2}\right]⁠.

    Solving cos⁡3x=0\cos 3x = 0 without the range of 3x3x would give infinitely many answers x=π6+nπ3x = \frac{\pi}{6} + \frac{n\pi}{3}⁠. Fixing the range of the angle first picks out exactly the ones inside the domain, and makes sure none is missed.
    Cosine is zero exactly where the unit-circle point is at the top or bottom of the circle: θ=π2,3π2,…\theta = \frac{\pi}{2}, \frac{3\pi}{2}, \dots Basics: signs of sin and cos
  3. The sign of f′f' on each piece

    For 0≤x<π60 \le x < \frac{\pi}{6}⁠: multiply by 3 to get 0≤3x<π20 \le 3x < \frac{\pi}{2}⁠. The angle is in the first quadrant (or at 0), where cosine is positive, so f′(x)=3cos⁡3x>0f'(x) = 3\cos 3x > 0⁠.

    For π6<x<π2\frac{\pi}{6} < x < \frac{\pi}{2}⁠: multiply by 3 to get π2<3x<3π2\frac{\pi}{2} < 3x < \frac{3\pi}{2}⁠. The angle is in the second or third quadrant, where cosine is negative, so f′(x)<0f'(x) < 0⁠.

    0 π/2 π/6 3x lies in [0, π/2) (π/2, 3π/2) cos 3x + − f′(x) + − f(x) increasing decreasing
    Sign chart on [0,π2]\left[0, \frac{\pi}{2}\right] (filled dots: the domain includes its ends). Row 1 shows where the angle 3x3x lies; rows 2 and 3 its consequence for cos⁡3x\cos 3x and f′(x)f'(x)⁠.

    Test values: f′ ⁣(π12)=3cos⁡π4f'\!\left(\frac{\pi}{12}\right) = 3\cos\frac{\pi}{4} =32≈2.1213>0= \frac{3}{\sqrt2} \approx 2.1213 > 0 and f′ ⁣(π3)=3cos⁡π=−3<0f'\!\left(\frac{\pi}{3}\right) = 3\cos\pi = -3 < 0⁠.

    Multiplying an inequality by a positive number (here 3) keeps its direction, so the range of xx translates directly into a range of the angle. Then the unit circle answers the sign question for the whole range at once.
    First quadrant: cos⁡>0\cos > 0⁠. Second and third quadrants: cos⁡<0\cos < 0⁠. Basics: signs of sin and cos
  4. Conclude with Theorem 1, end points included

    On [0,π6]\left[0, \frac{\pi}{6}\right]⁠: ff is continuous on this closed interval, differentiable inside it, and f′(x)>0f'(x) > 0 for 0<x<π60 < x < \frac{\pi}{6}⁠. By Theorem 1(a), ff is increasing on [0,π6]\left[0, \frac{\pi}{6}\right].

    On [π6,π2]\left[\frac{\pi}{6}, \frac{\pi}{2}\right]⁠: ff is continuous there and f′(x)<0f'(x) < 0 for π6<x<π2\frac{\pi}{6} < x < \frac{\pi}{2}⁠. By Theorem 1(b), ff is decreasing on [π6,π2]\left[\frac{\pi}{6}, \frac{\pi}{2}\right].

    Because f′f' is strictly positive (strictly negative) inside, the Mean Value Theorem argument of the book's proof gives f(x1)<f(x2)f(x_1) < f(x_2) (respectively >>⁠): the monotonicity is in fact strict on each closed piece.

    Theorem 1 only asks about the sign of f′f' inside (a,b)(a,b) plus continuity on [a,b][a,b]⁠. That is why the end points 0, π6\frac{\pi}{6} and π2\frac{\pi}{2} can be included even though f′(π6)=0f'(\frac{\pi}{6}) = 0 and f′(π2)=0f'(\frac{\pi}{2}) = 0⁠. The book first writes [0,π6)\left[0, \frac{\pi}{6}\right) and (π6,π2]\left(\frac{\pi}{6}, \frac{\pi}{2}\right]⁠, then uses continuity at 0 and π6\frac{\pi}{6} to close them up, exactly as here.
    Theorem 1, Section 6.3: continuous on [a,b][a,b]⁠, differentiable on (a,b)(a,b)⁠, and the sign of f′f' on (a,b)(a,b) decides. Lesson: increasing and decreasing functions
  5. Picture the result

    The key values are f(0)=sin⁡0=0f(0) = \sin 0 = 0⁠, f ⁣(π6)=sin⁡π2=1f\!\left(\frac{\pi}{6}\right) = \sin\frac{\pi}{2} = 1 and f ⁣(π2)=sin⁡3π2=−1f\!\left(\frac{\pi}{2}\right) = \sin\frac{3\pi}{2} = -1⁠. So the graph climbs from 0 to its top value 1 at x=π6x = \frac{\pi}{6}⁠, then falls all the way to −1-1 at x=π2x = \frac{\pi}{2}⁠, crossing the axis at x=π3x = \frac{\pi}{3} (where 3x=π3x = \pi⁠).

    x y O π/6 1 −1 π/2 (π/6, 1) (π/2, −1) increasing decreasing
    The graph of f(x)=sin⁡3xf(x) = \sin 3x on [0,π2]\left[0, \frac{\pi}{2}\right]⁠: green where increasing, rose where decreasing. The unlabelled tick between π6\frac{\pi}{6} and π2\frac{\pi}{2} is π3\frac{\pi}{3}⁠.
    Over the domain, 3x3x sweeps three quarters of a full turn, from 0 to 3π2\frac{3\pi}{2}⁠. The sine of the angle rises during the first quarter turn and falls during the next two, which is the graph we see.
Result

f′(x)=3cos⁡3xf'(x) = 3\cos 3x⁠, which is positive for 0≤x<π60 \le x < \frac{\pi}{6} and negative for π6<x<π2\frac{\pi}{6} < x < \frac{\pi}{2}⁠. Hence (a) ff is increasing on [0,π6]\left[0, \frac{\pi}{6}\right] and (b) ff is decreasing on [π6,π2]\left[\frac{\pi}{6}, \frac{\pi}{2}\right] (strictly, in both cases). This agrees with the book's solution.

Check it with numbers

With π6≈0.5236\frac{\pi}{6} \approx 0.5236 and π2≈1.5708\frac{\pi}{2} \approx 1.5708⁠:

xx00.10.5π6\frac{\pi}{6}0.61.2π2\frac{\pi}{2}
3x3x00.31.5π2\frac{\pi}{2}1.83.63π2\frac{3\pi}{2}
sin⁡3x\sin 3x00.295520.9974910.97385−0.44252-0.44252−1-1

The values rise up to x=π6x = \frac{\pi}{6} and fall after it, as Step 4 says.

Common mistakes
  1. Forgetting the factor 3 or the chain rule. ddxsin⁡3x\frac{d}{dx}\sin 3x is 3cos⁡3x3\cos 3x⁠, not cos⁡3x\cos 3x or cos⁡x\cos x⁠. (Here the missing 3 would not change the sign, but it would change every value.)
  2. Solving cos⁡3x=0\cos 3x = 0 as if the angle were xx⁠. cos⁡x=0\cos x = 0 gives x=π2x = \frac{\pi}{2}⁠; cos⁡3x=0\cos 3x = 0 gives x=π6x = \frac{\pi}{6} and π2\frac{\pi}{2} in this domain. Always find the range of 3x3x first.
  3. Looking outside the domain. The function is only given on [0,π2]\left[0, \frac{\pi}{2}\right]⁠; the next zero x=5π6x = \frac{5\pi}{6} is irrelevant.
  4. Excluding π6\frac{\pi}{6} from both intervals. Theorem 1 allows the closed intervals because ff is continuous at π6\frac{\pi}{6}⁠.
What to take away
  1. For sin⁡(kx)\sin(kx) or cos⁡(kx)\cos(kx)⁠, translate the domain of xx into the range of the angle kxkx⁠, then read signs off the unit circle.
  2. Points where f′=0f' = 0 at an end of the domain do not split it.
  3. Continuity at the end points lets Theorem 1 deliver closed intervals.

Every fact used, and where it comes from

FactUsed inSource
ddxsin⁡u=cos⁡u⋅dudx\frac{d}{dx}\sin u = \cos u\cdot\frac{du}{dx}Step 1Chain rule, Theorem 4, Section 5.3.1
cos⁡θ=0\cos\theta = 0 at odd multiples of π2\frac{\pi}{2}⁠; signs of cos⁡\cos by quadrantSteps 2, 3Basics: signs of sin and cos on the unit circle
Multiplying an inequality by a positive number keeps its directionSteps 2, 3Algebra of inequalities (Class XI)
Increasing / decreasing on an intervalStep 4Definition 1, Section 6.3
Sign of f′f' on (a,b)(a,b) and continuity on [a,b][a,b] decideStep 4Theorem 1 and its proof, Section 6.3 (Lesson)
Mean Value Theorem (for the strictness remark)Step 4Used without proof in the book's proof of Theorem 1, which cites it as "Theorem 8 in Chapter 5"; this reprint's Chapter 5 does not contain it (a stale reference)
Decimal values in the check tableCheckRecomputed in the site's verification script
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 →