Step by step
The question
Question: find f(2) for f(x) = x² if x ≤ 2, x + 1 if x > 2.
f(x) = x2 if x ≤ 2
= x + 1 if x > 2
This is a piecewise function.
It has 2 rules.
Which rule we use depends on x.
Each x uses only one rule.
piecewise: a different rule for different x's
each x uses only one rule
Careful!
2 is an edge: two rules meet there.
It belongs to the rule with the "or equal to" sign.
Careful: x = 2 goes where the "or equal to" is
1 Find the right piece
Let's see where each rule works on a number line.
So we use this rule: x².
2 Put 2 in
Put 2 in place of x in x².
f(2) = 22
2² means 2 times 2.
22 = 2 × 2 = 4
That is 4.
f(2) = 4
So f(2) = 4.
3 Check
Let's check: does 2 fit each rule's x's?
Only one must say yes.
first rule: 2 ≤ 2 yes
second rule: 2 > 2 no ✗
Only the first rule fits.
So f(2) is right!
Let's look back.
First: find the right piece.
Then: put 2 in.
Last: check.
Answer
f(2) = 4