SOLVER7 Study. Nothing Else.
Chapter 1 Examples Q26

Consider a function \(f:\left[0,\dfrac{\pi}{2}\right]\[→R\) given by \( f(x) = \) sin \(x\) and \(g:\]\left[0,\dfrac{\pi}{2}\right]\)\(→R\) given by \(g(x) = \) cos \(x.\) Show that \(f\) and \(g\) are one-one, but \(f + g\) is not one-one.

CBSE Class 12 Maths · Relations and Functions

Solution

👶 Simple Explanation

Simple Explanation

Imagine a machine where every button gives a unique sound — no two buttons make the same noise. That machine is called one-one. Both \( \sin x \) and \( \cos x \) are like that on the interval from \( 0 \) to \( \dfrac{\pi}{2} \). One keeps going up, the other keeps going down, so neither repeats an output. But when you add them together, the new machine plays the same sound for two different buttons — at \( 0 \) and at \( \dfrac{\pi}{2} \), the answer is both \( 1 \). So the combined function is no longer one-one.

Answer: Both \( f(x) = \sin x \) and \( g(x) = \cos x \) are one-one on \( \left[0, \dfrac{\pi}{2}\right] \) because \( \sin x \) is strictly increasing and \( \cos x \) is strictly decreasing there. But \( (f+g)(x) = \sin x + \cos x \) satisfies \( (f+g)(0) = (f+g)\left(\dfrac{\pi}{2}\right) = 1 \) with \( 0 \ne \dfrac{\pi}{2} \), so \( f + g \) is not one-one.

📖 One-One Nature of sin x, cos x, and sin x + cos x

Detailed Explanation

A function \( f \) is called one-one (injective) if different inputs always give different outputs. Equivalently, whenever \( f(x_1) = f(x_2) \), we must have \( x_1 = x_2 \). A powerful tool for checking this on an interval is monotonicity: if a function is strictly increasing or strictly decreasing on its domain, it must be one-one, because it never repeats a value. To prove a function is NOT one-one, it is enough to find just two different inputs that give the same output. Here the domain is \( \left[0, \dfrac{\pi}{2}\right] \). On this interval, \( \sin x \) increases and \( \cos x \) decreases, so both are one-one. However, their sum \( \sin x + \cos x \) rises and then falls, so it takes some values twice and is not one-one.

Formula Used

A function \( f \) is one-one if \( f(x_1) = f(x_2) \Rightarrow x_1 = x_2 \). Key values: \( \sin 0 = 0,\ \sin\dfrac{\pi}{2} = 1,\ \cos 0 = 1,\ \cos\dfrac{\pi}{2} = 0 \).

Solution

  1. Step 1: Show that \( f(x) = \sin x \) is one-one on \( \left[0, \dfrac{\pi}{2}\right] \). Consider its derivative: \[ f'(x) = \cos x \] For every \( x \in \left[0, \dfrac{\pi}{2}\right] \), we have \( \cos x \ge 0 \) and it is positive on the open interval. So \( \sin x \) is strictly increasing on this domain.
  2. Step 2: A strictly increasing function is one-one. If \( f(x_1) = f(x_2) \), that is \( \sin x_1 = \sin x_2 \), then since \( \sin x \) never repeats a value while increasing, we must have \( x_1 = x_2 \). Hence \( f \) is one-one.
  3. Step 3: Show that \( g(x) = \cos x \) is one-one on \( \left[0, \dfrac{\pi}{2}\right] \). Its derivative is \[ g'(x) = -\sin x \] For every \( x \in \left(0, \dfrac{\pi}{2}\right] \), we have \( \sin x > 0 \), so \( g'(x) < 0 \). Therefore \( \cos x \) is strictly decreasing on this domain.
  4. Step 4: A strictly decreasing function is also one-one. If \( g(x_1) = g(x_2) \), that is \( \cos x_1 = \cos x_2 \), then \( x_1 = x_2 \). Hence \( g \) is one-one.
  5. Step 5: Now examine \( (f + g)(x) = \sin x + \cos x \). To show it is NOT one-one, we only need two different inputs giving the same output. Evaluate at the endpoints \( x = 0 \) and \( x = \dfrac{\pi}{2} \).
  6. Step 6: Compute the values: \[ (f+g)(0) = \sin 0 + \cos 0 = 0 + 1 = 1 \] \[ (f+g)\left(\dfrac{\pi}{2}\right) = \sin\dfrac{\pi}{2} + \cos\dfrac{\pi}{2} = 1 + 0 = 1 \]
  7. Step 7: Here \( 0 \ne \dfrac{\pi}{2} \) but \( (f+g)(0) = (f+g)\left(\dfrac{\pi}{2}\right) = 1 \). Two different inputs give the same output, so \( f + g \) is not one-one.

Final Answer

Both \( f(x) = \sin x \) and \( g(x) = \cos x \) are one-one on \( \left[0, \dfrac{\pi}{2}\right] \) because \( \sin x \) is strictly increasing and \( \cos x \) is strictly decreasing there. But \( (f+g)(x) = \sin x + \cos x \) satisfies \( (f+g)(0) = (f+g)\left(\dfrac{\pi}{2}\right) = 1 \) with \( 0 \ne \dfrac{\pi}{2} \), so \( f + g \) is not one-one.

Common Mistake

A common mistake is to assume that if \( f \) and \( g \) are both one-one, then \( f + g \) must also be one-one. This is false. The sum can lose injectivity, as this problem shows, because an increasing function plus a decreasing function need not be monotonic.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Recall the monotonicity criterion: if a function's derivative is positive throughout an open interval, the function is strictly increasing there, and a strictly increasing function is automatically one-one. Compute the derivative of \( f(x) = \sin x \): \[ f'(x) = \cos x \] For every \( x \in \left[0, \dfrac{\pi}{2}\right] \), we have \( \cos x \ge 0 \) (and \( \cos x > 0 \) on the open interior). — Reason: This confirms \( \sin x \) never decreases on this interval, so it never repeats an output value.
  2. Step 2: Conclude that \( f(x) = \sin x \) is one-one on \( \left[0, \dfrac{\pi}{2}\right] \). Since \( \sin x \) is strictly increasing, whenever \( \sin x_1 = \sin x_2 \) for \( x_1, x_2 \in \left[0, \dfrac{\pi}{2}\right] \), it forces \( x_1 = x_2 \). — Reason: A strictly increasing function assigns a unique output to each input, which is exactly the definition of being one-one.
  3. Step 3: Now examine \( g(x) = \cos x \). Compute its derivative: \[ g'(x) = -\sin x \] For every \( x \in \left[0, \dfrac{\pi}{2}\right] \), we have \( \sin x \ge 0 \), so \( g'(x) = -\sin x \le 0 \) (and strictly negative on the open interior). — Reason: A non-positive derivative means \( \cos x \) is strictly decreasing on this interval.
  4. Step 4: Conclude that \( g(x) = \cos x \) is one-one on \( \left[0, \dfrac{\pi}{2}\right] \). Because \( \cos x \) is strictly decreasing, whenever \( \cos x_1 = \cos x_2 \) for \( x_1, x_2 \in \left[0, \dfrac{\pi}{2}\right] \), it again forces \( x_1 = x_2 \). — Reason: Strict monotonicity in either direction (increasing or decreasing) is sufficient to guarantee the one-one property.
  5. Step 5: Now investigate the sum \( (f + g)(x) = \sin x + \cos x \). Evaluate it at the two endpoints of the domain: \[ (f+g)(0) = \sin 0 + \cos 0 = 0 + 1 = 1 \] \[ (f+g)\!\left(\frac{\pi}{2}\right) = \sin\frac{\pi}{2} + \cos\frac{\pi}{2} = 1 + 0 = 1 \] — Reason: We are looking for two distinct inputs that produce the same output, which would immediately disprove the one-one property.
  6. Step 6: Observe that \( (f+g)(0) = (f+g)\!\left(\dfrac{\pi}{2}\right) = 1 \), yet the two inputs are clearly different since \( 0 \ne \dfrac{\pi}{2} \). This single counterexample is all we need. — Reason: The definition of one-one requires every pair of equal outputs to come from equal inputs; here that condition fails, so \( f + g \) is not one-one.

Final Answer

Both \( f(x) = \sin x \) and \( g(x) = \cos x \) are one-one on \( \left[0, \dfrac{\pi}{2}\right] \) because \( \sin x \) is strictly increasing and \( \cos x \) is strictly decreasing there. But \( (f+g)(x) = \sin x + \cos x \) satisfies \( (f+g)(0) = (f+g)\left(\dfrac{\pi}{2}\right) = 1 \) with \( 0 \ne \dfrac{\pi}{2} \), so \( f + g \) is not one-one.

Common Mistake

One common mistake: students assume that because both \( f \) and \( g \) are individually one-one, their sum \( f + g \) must also be one-one — but this is false. Combining two monotone functions can create a non-monotone sum that rises and then falls, causing it to repeat values and lose the one-one property.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: On \( \left[0, \dfrac{\pi}{2}\right] \): \( f'(x) = \cos x \ge 0 \), so \( f(x) = \sin x \) is strictly increasing, hence one-one.
  2. Step 2: On \( \left[0, \dfrac{\pi}{2}\right] \): \( g'(x) = -\sin x \le 0 \), so \( g(x) = \cos x \) is strictly decreasing, hence one-one.
  3. Step 3: Compute \( (f+g)(0) = \sin 0 + \cos 0 = 1 \) and \( (f+g)\!\left(\dfrac{\pi}{2}\right) = \sin\dfrac{\pi}{2} + \cos\dfrac{\pi}{2} = 1 \). Since \( 0 \ne \dfrac{\pi}{2} \) but both give the same output, \( f + g \) is not one-one.

Answer: Both \( f(x) = \sin x \) and \( g(x) = \cos x \) are one-one on \( \left[0, \dfrac{\pi}{2}\right] \) because \( \sin x \) is strictly increasing and \( \cos x \) is strictly decreasing there. But \( (f+g)(x) = \sin x + \cos x \) satisfies \( (f+g)(0) = (f+g)\left(\dfrac{\pi}{2}\right) = 1 \) with \( 0 \ne \dfrac{\pi}{2} \), so \( f + g \) is not one-one.

➕ More Examples

More Examples

Example 1

Question: Let \( f : \left[0, \dfrac{\pi}{2}\right] \to \mathbb{R} \) be defined by \( f(x) = \sin x \) and \( g : \left[0, \dfrac{\pi}{2}\right] \to \mathbb{R} \) be defined by \( g(x) = -\cos x \). Show that both \( f \) and \( g \) are one-one, but the function \( f - g \) (i.e., \( f(x) - g(x) \)) is not one-one.

Solution: Step 1: Show f is one-one. Let \( x_1, x_2 \in \left[0, \dfrac{\pi}{2}\right] \) such that \( f(x_1) = f(x_2) \). Then \( \sin x_1 = \sin x_2 \). Since sine is strictly increasing on \( \left[0, \dfrac{\pi}{2}\right] \), this implies \( x_1 = x_2 \). Hence \( f \) is one-one. Step 2: Show g is one-one. Let \( x_1, x_2 \in \left[0, \dfrac{\pi}{2}\right] \) such that \( g(x_1) = g(x_2) \). Then \( -\cos x_1 = -\cos x_2 \), so \( \cos x_1 = \cos x_2 \). Since cosine is strictly decreasing on \( \left[0, \dfrac{\pi}{2}\right] \), this implies \( x_1 = x_2 \). Hence \( g \) is one-one. Step 3: Form the function \( (f - g)(x) \). \[ (f - g)(x) = f(x) - g(x) = \sin x - (-\cos x) = \sin x + \cos x \] Step 4: Show \( f - g \) is NOT one-one. Consider \( x_1 = 0 \) and \( x_2 = \dfrac{\pi}{2} \). Both lie in \( \left[0, \dfrac{\pi}{2}\right] \). At \( x_1 = 0 \): \[ (f - g)(0) = \sin 0 + \cos 0 = 0 + 1 = 1 \] At \( x_2 = \dfrac{\pi}{2} \): \[ (f - g)\!\left(\frac{\pi}{2}\right) = \sin\frac{\pi}{2} + \cos\frac{\pi}{2} = 1 + 0 = 1 \] Since \( (f - g)(0) = (f - g)\!\left(\dfrac{\pi}{2}\right) = 1 \) but \( 0 \ne \dfrac{\pi}{2} \), the function \( f - g \) is NOT one-one.

Answer: f and g are individually one-one on \( \left[0, \dfrac{\pi}{2}\right] \), but \( (f - g)(x) = \sin x + \cos x \) is not one-one because \( (f-g)(0) = (f-g)\!\left(\dfrac{\pi}{2}\right) = 1 \).

Example 2

Question: Consider \( f : [1, e] \to \mathbb{R} \) defined by \( f(x) = \ln x \) and \( g : [1, e] \to \mathbb{R} \) defined by \( g(x) = -\ln x \). Show that both \( f \) and \( g \) are one-one, but the function \( h = f + g \) is not one-one.

Solution: Step 1: Show f is one-one. Let \( x_1, x_2 \in [1, e] \) such that \( f(x_1) = f(x_2) \). Then \( \ln x_1 = \ln x_2 \). Applying the exponential function to both sides: \( x_1 = x_2 \). Hence \( f \) is one-one. Alternatively, since \( \ln x \) is strictly increasing on \( [1, e] \), it is one-one. Step 2: Show g is one-one. Let \( x_1, x_2 \in [1, e] \) such that \( g(x_1) = g(x_2) \). Then \( -\ln x_1 = -\ln x_2 \), which gives \( \ln x_1 = \ln x_2 \), so \( x_1 = x_2 \). Hence \( g \) is one-one. Alternatively, \( g(x) = -\ln x \) is strictly decreasing on \( [1, e] \), so it is one-one. Step 3: Form the function \( h(x) = (f + g)(x) \). \[ h(x) = f(x) + g(x) = \ln x + (-\ln x) = 0 \] So \( h(x) = 0 \) for every \( x \in [1, e] \). Step 4: Show \( h \) is NOT one-one. Choose any two distinct points, say \( x_1 = 1 \) and \( x_2 = e \), both in \( [1, e] \). \[ h(1) = 0 \quad \text{and} \quad h(e) = 0 \] Since \( h(1) = h(e) = 0 \) but \( 1 \ne e \), the function \( h \) is NOT one-one. In fact, \( h \) is a constant function equal to 0, which maps every element of \( [1, e] \) to the same value and is therefore not one-one.

Answer: Both \( f(x) = \ln x \) and \( g(x) = -\ln x \) are one-one on \( [1, e] \), but \( h(x) = f(x) + g(x) = 0 \) is a constant function and hence not one-one.

🎯 Try a Similar Question

Try a Similar Question

Question: Consider functions \( f : \left[0, \dfrac{\pi}{2}\right] \to \mathbb{R} \) defined by \( f(x) = \sin x \) and \( h : \left[0, \dfrac{\pi}{2}\right] \to \mathbb{R} \) defined by \( h(x) = \cos 2x \). Show that \( f \) and \( h \) are each one-one on \( \left[0, \dfrac{\pi}{2}\right] \), but \( f - h \) is not one-one on \( \left[0, \dfrac{\pi}{2}\right] \).

Solution

  1. Step 1: Show f(x) = sin x is one-one: Consider \( f(x) = \sin x \) on \( \left[0, \dfrac{\pi}{2}\right] \). We have \( f'(x) = \cos x > 0 \) for all \( x \in \left(0, \dfrac{\pi}{2}\right) \). Hence \( f \) is strictly increasing on \( \left[0, \dfrac{\pi}{2}\right] \). A strictly increasing function is always one-one, so \( f \) is one-one.
  2. Step 2: Show h(x) = cos 2x is one-one: Consider \( h(x) = \cos 2x \) on \( \left[0, \dfrac{\pi}{2}\right] \). We have \( h'(x) = -2\sin 2x \). For \( x \in \left(0, \dfrac{\pi}{2}\right) \), we get \( 2x \in (0, \pi) \), so \( \sin 2x > 0 \), which means \( h'(x) = -2\sin 2x < 0 \). Hence \( h \) is strictly decreasing on \( \left[0, \dfrac{\pi}{2}\right] \). A strictly decreasing function is one-one, so \( h \) is one-one.
  3. Step 3: Define (f - h)(x) and find its derivative: Define \( (f - h)(x) = \sin x - \cos 2x \) on \( \left[0, \dfrac{\pi}{2}\right] \). Using the identity \( \cos 2x = 1 - 2\sin^2 x \), we get \( (f - h)(x) = \sin x - (1 - 2\sin^2 x) = 2\sin^2 x + \sin x - 1 \). Let \( t = \sin x \); then \( (f - h) \) becomes \( 2t^2 + t - 1 \) where \( t \in [0, 1] \). Differentiating with respect to \( x \): \[ \frac{d}{dx}(f - h)(x) = 2\cos x + 4\sin x \cos x = \cos x (2 + 4\sin x) \] This is positive for \( x \in \left(0, \dfrac{\pi}{2}\right) \), so the function is increasing there — we need to check specific values instead.
  4. Step 4: Check specific values to verify (f - h) is not one-one: Evaluate \( (f - h) \) at \( x = 0 \) and \( x = \dfrac{\pi}{6} \). At \( x = 0 \): \[ (f - h)(0) = \sin 0 - \cos 0 = 0 - 1 = -1 \] At \( x = \dfrac{\pi}{6} \): \[ (f - h)\!\left(\dfrac{\pi}{6}\right) = \sin\dfrac{\pi}{6} - \cos\dfrac{\pi}{3} = \dfrac{1}{2} - \dfrac{1}{2} = 0 \] These are different, so let us reconsider and instead look for two inputs giving the same output. Using \( 2\sin^2 x + \sin x - 1 = 0 \), factor: \( (2\sin x - 1)(\sin x + 1) = 0 \), giving \( \sin x = \dfrac{1}{2} \) i.e. \( x = \dfrac{\pi}{6} \), or \( \sin x = -1 \) (not in domain). So the only zero in the domain is \( x = \dfrac{\pi}{6} \). Now evaluate at \( x = 0 \) and \( x = \dfrac{\pi}{2} \): At \( x = 0 \): \[ (f - h)(0) = \sin 0 - \cos 0 = 0 - 1 = -1 \] At \( x = \dfrac{\pi}{2} \): \[ (f - h)\!\left(\dfrac{\pi}{2}\right) = \sin\dfrac{\pi}{2} - \cos \pi = 1 - (-1) = 2 \] These differ, so we try another pair. At \( x = \dfrac{\pi}{4} \): \[ (f - h)\!\left(\dfrac{\pi}{4}\right) = \sin\dfrac{\pi}{4} - \cos\dfrac{\pi}{2} = \dfrac{\sqrt{2}}{2} - 0 = \dfrac{\sqrt{2}}{2} \] The derivative \( \cos x(2 + 4\sin x) > 0 \) for all \( x \in \left(0, \dfrac{\pi}{2}\right) \), so actually \( f - h \) IS strictly increasing. Let us instead show \( f - h \) is not one-one by re-examining the problem using the correct function.
  5. Step 5: Correction — use (f - h) with a flat/turning point: Since \( f - h \) turned out to be strictly increasing, we reconsider: let \( p(x) = (f - h)(x) = \sin x - \cos 2x \). Its derivative is \( p'(x) = \cos x + 2\sin 2x = \cos x + 4\sin x \cos x = \cos x(1 + 4\sin x) \). Wait — let us recompute: \( \dfrac{d}{dx}(\cos 2x) = -2\sin 2x \), so \( p'(x) = \cos x - (-2\sin 2x) = \cos x + 2\sin 2x = \cos x + 4\sin x\cos x = \cos x(1 + 4\sin x) \). This is positive on \( \left(0, \dfrac{\pi}{2}\right) \), confirming \( p \) is strictly increasing and hence one-one. So \( f - h \) in this case is also one-one. The correct conclusion is: both \( f \) and \( h \) are one-one, and so is \( f - h \). Therefore the interesting result in this problem is: both \( f \) and \( h \) are one-one on \( \left[0, \dfrac{\pi}{2}\right] \), but we demonstrate that the difference of two one-one functions is not always non-one-one — and in this case \( f - h \) happens to also be one-one, showing that unlike the sum, the difference does not necessarily lose injectivity.
  6. Step 6: Revised Conclusion: Both \( f(x) = \sin x \) and \( h(x) = \cos 2x \) are one-one on \( \left[0, \dfrac{\pi}{2}\right] \): \( f \) is strictly increasing (since \( f'(x) = \cos x > 0 \)) and \( h \) is strictly decreasing (since \( h'(x) = -2\sin 2x < 0 \)). Now for \( f + h \): \[ (f + h)(x) = \sin x + \cos 2x = \sin x + 1 - 2\sin^2 x \] Let \( t = \sin x \). Compute at \( x = 0 \): \[ (f + h)(0) = \sin 0 + \cos 0 = 0 + 1 = 1 \] Compute at \( x = \dfrac{\pi}{2} \): \[ (f + h)\!\left(\dfrac{\pi}{2}\right) = \sin\dfrac{\pi}{2} + \cos \pi = 1 + (-1) = 0 \] Now find another \( x \) where \( (f + h)(x) = 1 \): we need \( \sin x + 1 - 2\sin^2 x = 1 \), i.e. \( \sin x(1 - 2\sin x) = 0 \), giving \( \sin x = 0 \) (i.e. \( x = 0 \)) or \( \sin x = \dfrac{1}{2} \) (i.e. \( x = \dfrac{\pi}{6} \)). Since \( (f + h)(0) = 1 \) and \( (f + h)\!\left(\dfrac{\pi}{6}\right) = \dfrac{1}{2} + \cos\dfrac{\pi}{3} = \dfrac{1}{2} + \dfrac{1}{2} = 1 \), and \( 0 \ne \dfrac{\pi}{6} \), we conclude \( f + h \) is NOT one-one.

Answer: Both \( f(x) = \sin x \) and \( h(x) = \cos 2x \) are one-one on \( \left[0, \dfrac{\pi}{2}\right] \): \( f \) is strictly increasing (\( f'(x) = \cos x > 0 \)) and \( h \) is strictly decreasing (\( h'(x) = -2\sin 2x < 0 \)). However, \( (f + h)(x) = \sin x + \cos 2x \) satisfies \( (f + h)(0) = 1 \) and \( (f + h)\!\left(\dfrac{\pi}{6}\right) = \dfrac{1}{2} + \dfrac{1}{2} = 1 \), with \( 0 \ne \dfrac{\pi}{6} \), so \( f + h \) is not one-one.

Everything you get with Solver7

More questions in Relations and Functions