Q.Redefine the function f(x)=∣x−2∣+∣2+x∣, −3≤x≤3
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Piecewise Function Definition
What is a Piecewise Function? — The Intuition
Imagine you're describing how much a taxi ride costs. The fare might be: ₹25 for the first kilometer, then ₹15 for every kilometer after that. That's not a single, simple rule — the rule changes depending on how far you've gone. That's exactly what a piecewise function captures: a function whose rule is made of different "pieces," each applying to a different part of the input.
In everyday life, piecewise rules are everywhere:
- Income tax slabs (different rates for different income ranges)
- Mobile data plans (different speeds after a limit)
- Postage rates (different costs for different weights)
A piecewise function lets you write all these different rules in one clean mathematical statement.
The Precise Definition
A piecewise function is a function defined by multiple sub-functions, each applying to a specific interval (or "piece") of the domain.
Here's the standard notation:
f(x)=⎩⎨⎧f1(x),f2(x),⋮fn(x),x∈D1x∈D2⋮x∈Dn
Where:
- f1,f2,…,fn are the sub-functions (each is a rule)
- D1,D2,…,Dn are disjoint intervals that together cover the entire domain
- Each input x belongs to exactly one of these intervals
A piecewise function is still one function — not several functions glued together. For every x in the domain, there is exactly one output f(x).
A Concrete Example
Let's write the taxi fare example properly. Suppose the first kilometer costs ₹25, and every subsequent kilometer costs ₹15 per km. For a ride of x kilometers:
f(x)={25,25+15(x−1),0<x≤1x>1
Let's test it:
- For x=0.5 km: f(0.5)=25 (first piece)
- For x=1 km: f(1)=25 (first piece, includes the endpoint)
- For x=3 km: f(3)=25+15(3−1)=25+30=55 (second piece)
Notice how the second piece uses x−1 — that's because the ₹15 rate only applies to the distance beyond the first kilometer.
Common Pitfalls (Watch Out!)
Don't forget the domain conditions. A piecewise definition is incomplete without specifying which x values go with which rule. Writing just f(x)={x2,2x+1} is meaningless — you must say when each applies.
Check the boundaries carefully. At the point where two pieces meet (like x=1 in the taxi example), the function must give only one output. If both pieces try to claim the same x, you have a problem — it's no longer a function.
Why This Matters …
Concept: Piecewise Definition of Absolute Value Functions
The function involves two absolute value terms. We remove the absolute values by considering where each expression inside changes sign.
Step 1: Identify critical points where expressions inside absolute values are zero:
- x−2=0⟹x=2
- 2+x=0⟹x=−2
These divide [−3,3] into three intervals: [−3,−2), [−2,2], and (2,3].
Step 2: Rewrite f(x) on each interval by determining the sign of each expression:
-
For x∈[−3,−2): both (x−2)<0 and (2+x)≤0, so
f(x)=−(x−2)+(−(2+x))=−x+2−2−x=−2x
-
For x∈[−2,2]: (x−2)≤0 and (2+x)≥0, so …
The absolute-value function f(x)=∣x−2∣+∣2+x∣ changes behaviour at the critical points x=−2 and x=2, where each absolute value switches sign. Breaking the domain into three regions and simplifying yields a piecewise-linear function with minimum value 4 at all points in [−2,2].
The key to understanding any function built from absolute values is recognising that ∣u∣ is really a piecewise definition: it equals u when u≥0 and −u when u<0. The function switches its formula at the zeros of the expressions inside the absolute values.
Here we have two absolute values: ∣x−2∣ changes at x=2, and ∣2+x∣=∣x+2∣ changes at x=−2. These critical points divide our domain [−3,3] into three intervals, and on each interval both expressions have constant sign, so we can drop the absolute value bars.
Finding the piecewise formula
-
Region I: −3≤x<−2
When x<−2, we have x−2<0 (so ∣x−2∣=−(x−2)=2−x) and x+2<0 (so ∣x+2∣=−(x+2)=−x−2).
f(x)=(2−x)+(−x−2)=−2x
-
Region II: −2≤x≤2
When −2≤x≤2, we have x−2≤0 (so ∣x−2∣=2−x) and x+2≥0 (so ∣x+2∣=x+2).
f(x)=(2−x)+(x+2)=4
-
Region III: 2<x≤3
When x>2, both x−2>0 (so ∣x−2∣=x−2) and x+2>0 (so ∣x+2∣=x+2).
f(x)=(x−2)+(x+2)=2x
f(x)=⎩⎨⎧−2x42xif −3≤x<−2if −2≤x≤2if 2<x≤3
Behaviour and graph …
- TG EAPCET 2026Set eng-2026-05-09-FN1 markMCQQ.A function is defined as f(x)={3x−1,25(x−1),0≤x≤22<x≤∞. For f(x) in the interval [31,3] (A) only Rolle’s theorem is applicable, but Lagrange’s mean value theorem is not applicable (B) Rolle’s theorem is not applicable but Lagrange’s mean value theorem is applicable (C) Both Rolle’s and Lagrange’s theorems are applicable (D) Both Rolle’s and Lagrange’s theorems are not applicable
›Reveal solutionSolution
The function is piecewise-defined and has a jump discontinuity at x=2, which lies inside the interval [31,3], so it is not continuous on the closed interval; therefore neither Rolle’s theorem nor Lagrange’s mean value theorem applies. The correct option is (D).
We are asked whether Rolle’s theorem and/or Lagrange’s mean value theorem (LMVT) apply to the function
f(x)={3x−1,25(x−1),0≤x≤22<x≤∞
on the interval [31,3].
The core idea
Both Rolle’s theorem and Lagrange’s mean value theorem require the function to be continuous on the closed interval [a,b] and differentiable on the open interval (a,b). Rolle’s theorem additionally requires f(a)=f(b).
If the function has a break (discontinuity) inside the interval, neither theorem can be applied — no matter how nice the pieces are individually.
Step-by-step reasoning
-
Identify the interval and the potential trouble point
The interval is [31,3]. The function’s definition changes at x=2. Since 2 lies strictly between 31 and 3, the point x=2 is inside our interval. This is where we must check continuity.
-
Check continuity at x=2
- Left-hand limit: as x→2−, we use the first piece:
limx→2−f(x)=3(2)−1=5.
- Right-hand limit: as x→2+, we use the second piece:
limx→2+f(x)=25(2−1)=25=5.
- Function value at x=2: since x=2 belongs to the first piece (0≤x≤2),
f(2)=3(2)−1=5.
So the left-hand limit, right-hand limit, and function value all equal 5.
Thus f is continuous at x=2.
- Check differentiability at x=2
- Left-hand derivative: derivative of 3x−1 is 3, so
f−′(2)=3.
- Right-hand derivative: derivative of 25(x−1)=5x−1 is
2x−15,
so at $x=2$:f+′(2)=215=25=2.5.
Since 3=2.5, the left and right derivatives are different.
Therefore f is not differentiable at x=2. …
-
- TG EAPCET 2025Set eng-2025-05-03-FN1 markMCQQ.If the range of the real valued function f(x)=x2−x+kx2+x+k is [31,3], then k= (A) −2 (B) 2 (C) −1 (D) 1
›Reveal solutionSolution
The key idea is to treat the range condition as a quadratic in x having real solutions, leading to inequalities in k; solving them gives k=1, so the correct option is (D).
We are given
f(x)=x2−x+kx2+x+k
and told its range is exactly [31,3]. That means for every y in that interval, there is some real x with f(x)=y, and no y outside the interval can be attained.
1. Set up the equation f(x)=y
Write
x2−x+kx2+x+k=y.
Cross-multiply (the denominator is never zero for the x we care about; we'll check later):
x2+x+k=y(x2−x+k).
Bring all terms to one side:
x2+x+k−yx2+yx−yk=0,
which simplifies to
(1−y)x2+(1+y)x+k(1−y)=0.
2. For a given y, when does a real x exist?
This is a quadratic in x. For real x to exist, either:
- The coefficient of x2 is zero and the resulting linear equation gives a real x, or
- The coefficient is nonzero and the discriminant is ≥0.
Case 1: 1−y=0, i.e. y=1. Then the equation becomes
0⋅x2+(1+1)x+k(0)=2x=0⟹x=0,
which is real. So y=1 is always attainable (provided x=0 doesn't make denominator zero; f(0)=1 works for any k). So 1 is in the range for all k.
Case 2: y=1. Then we need the discriminant Δ≥0:
Δ=(1+y)2−4(1−y)⋅k(1−y)=(1+y)2−4k(1−y)2.
So the condition for y to be in the range is
(1+y)2−4k(1−y)2≥0.
3. The range is exactly [1/3,3] — what does that tell us?
The endpoints y=1/3 and y=3 should be the boundary where Δ=0 (since inside the interval Δ>0, outside Δ<0). Also note that y=1 is inside [1/3,3], consistent.
Set Δ=0 at y=1/3:
(1+31)2−4k(1−31)2=0⟹(34)2−4k(32)2=0⟹916−4k⋅94=0.
Multiply by 9: 16−16k=0⟹k=1.
Check at y=3:
(1+3)2−4k(1−3)2=16−4k⋅4=16−16k. …
- TG EAPCET 2023Set eng-2023-05-13-FN1 markMCQQ.The domain of the real valued function f(x)=[x]2−5[x]+6log10(x−2x) is (Here [x] denotes the greatest integer function) (A) (−∞,0)∪(2,∞) (B) (2,∞) (C) (−∞,2)∪(4,∞) (D) [4,∞)
›Reveal solutionSolution
The domain is found by requiring the numerator’s radicand to be non‑negative and the denominator’s radicand to be positive (since it’s in a square root in the denominator). After solving both conditions, the only values that satisfy both are x≥4, so the correct option is (D).
We need the set of all real x for which f(x) is defined.
f(x)=[x]2−5[x]+6log10(x−2x)
Two square roots appear: one in the numerator, one in the denominator.
- The numerator’s square root requires its inside to be ≥0.
- The denominator’s square root requires its inside to be >0 (strictly positive, because denominator cannot be zero).
We handle each condition separately, then intersect them.
1. Numerator condition: log10(x−2x)≥0
Since log10t≥0 iff t≥1, we need
x−2x≥1.
Solve:
x−2x−1≥0⇒x−2x−(x−2)≥0⇒x−22≥0.
The fraction x−22≥0 means x−2>0, i.e. x>2.
Also, the argument of the log must be positive: x−2x>0. For x>2, both numerator and denominator are positive, so this holds automatically.
So numerator condition gives: x>2.
Watch outA common mistake is to forget that log10t≥0 requires t≥1, not just t>0. Also, the denominator x−2 cannot be zero, so x=2 is excluded anyway.
2. Denominator condition: [x]2−5[x]+6>0
Let n=[x], an integer. Then we need
n2−5n+6>0.
Factor: (n−2)(n−3)>0.
This quadratic in n is positive when n<2 or n>3. …
- TG EAPCET 2021Set eng-2021-08-04-AN1 markMCQQ.Let f:A→B,g:B→A be defined as f(x)=x2∀x∈A and g(x)=x1/2∀x∈B. f(x) and g(x) are inverse functions to each other when (A) A=B=R (B) A=R∖R−,B=R∖R+ (C) A=R;B=R∖R− (D) A=B=R∖R−
›Reveal solutionSolution
For two functions to be inverses, each must be bijective on the given domains. The square and square-root functions are inverses only when both domain and codomain are the set of non‑negative reals. The correct choice is (D).
The core idea is that a function has an inverse only if it is bijective — both one‑to‑one (injective) and onto (surjective). When we say f and g are inverses, we mean g(f(x))=x for all x in A and f(g(y))=y for all y in B. That forces f to be a bijection from A onto B, and g to be its reverse.
The square function f(x)=x2 is not injective on all real numbers because (−2)2=22. The square‑root function g(x)=x1/2 is defined only for non‑negative inputs and gives only non‑negative outputs. So the natural question is: on what sets do these two become perfect mirrors of each other?
Let’s examine each option.
-
Option (A): A=B=R
f(x)=x2 from R to R is not injective (since f(−1)=f(1)) and not onto (negative numbers have no pre‑image). So f has no inverse. g(x)=x1/2 is not even defined for negative x in R. These cannot be inverses.
-
Option (B): A=R∖R− (all non‑negative reals), B=R∖R+ (all non‑positive reals)
Here A=[0,∞) and B=(−∞,0]. For x∈A, f(x)=x2 gives non‑negative outputs, but B contains only non‑positive numbers. So f does not map A into B at all — the composition g(f(x)) is not defined for most x. Not possible.
-
Option (C): A=R, B=R∖R− (non‑negative reals)
f from R to [0,∞) is onto but not injective (still f(−1)=f(1)). So f is not bijective. g from [0,∞) to R is injective but not onto (it never gives negative outputs). The compositions fail: g(f(−1))=g(1)=1=−1, so g(f(x))=x for negative x. …
-
- TG EAPCET 2021Set eng-2021-08-05-FN1 markMCQQ.A and B are subsets of R. Every element x of A is mapped to an element of B by the rule
[!FORMULA] y(x)={(x−3)(x+3)5x−1if x=−1if x=−1, then A=
(A) R/{−3,+3,−0} (B) R/{−3,+3} (C) R/{−3,3,0,−1} (D) R›Reveal solutionSolution
The domain of a function is the set of all inputs for which the rule produces a valid real output. Here, the rule fails at x=3, x=−3, and x=0 (division by zero), but x=−1 is explicitly handled. So A=R∖{−3,3,0}, which matches option (C).
The question gives you a mapping rule y(x) and asks for the set A — the domain of this function. The key idea: a function’s domain is the set of all inputs for which the output is defined and real. So we must find every real number x that the rule can handle.
The rule has two pieces: a rational expression for x=−1, and a constant value for x=−1. Let’s examine each.
-
The rational part: (x−3)(x+3)5x is defined only when the denominator is non-zero. The denominator (x−3)(x+3) equals zero when x=3 or x=−3. So x=3 and x=−3 are not allowed.
-
The x=−1 case: The rule explicitly says: if x=−1, then y=−1. That’s perfectly fine — no division, no problem. So x=−1 is allowed.
-
What about x=0? Plug x=0 into the rational part: (0−3)(0+3)5(0)=(−3)(3)0=−90=0. That’s defined. So x=0 seems allowed — but wait. Look closely at the denominator: (x−3)(x+3). At x=0, it’s (−3)(3)=−9=0, so no issue. So x=0 is allowed.
Watch outA common mistake is to think x=0 is excluded because “zero in numerator gives zero” — but division by zero is the only problem, and the denominator is non-zero at x=0. Don’t confuse numerator zero with undefinedness.
- Check the options: …
-
- TG EAPCET 2021Set eng-2021-08-06-FN1 markMCQQ.f:[2,10]→R is defined as f(x)={21(x−6)2−3,x−5,x≤4x>4. Which of the following is true? (A) f(2)=f(10) (B) f(x) is not continuous on [2,10] (C) Rolle's theorem is not applicable for f(x) in [2,10] (D) Rolle's theorem is applicable for f(x) in [2,10] and Rolle's point c=6
›Reveal solutionSolution
f is continuous on [2,10] with f(2)=f(10)=5, but it is not differentiable at x=4 (left slope −2, right slope +1), so Rolle's theorem does not apply.
Continuity at the join x=4.
limx→4−f(x)=21(4−6)2−3=2−3=−1,f(4+)=4−5=−1.
Both branches are polynomials and they agree at x=4, so f is continuous on all of [2,10]. (This rules out option B.)
Endpoint values.
f(2)=21(2−6)2−3=8−3=5,f(10)=10−5=5.
So f(2)=f(10) (this rules out option A).
Differentiability at x=4.
f′(x)=x−6 for x<4 ⇒ f′(4−)=−2,f′(x)=1 for x>4 ⇒ f′(4+)=1. …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.