Steply

f(x) = 5 - 2x if x <= -1, x^2 if x > -1, find f(-1)

Step by step, with the reason for every step · Piecewise functions · Algebra 2

Step by step

The question

Question: find f(−1) for f(x) = 5 − 2x if x ≤ −1, x² if x > −1.

f(x) = 5 − 2x if x ≤ −1
= x2 if x > −1

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!

−1 is an edge: two rules meet there.

It belongs to the rule with the "or equal to" sign.

Careful: x = −1 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: 5 − 2x.

2 Put −1 in

Put −1 in place of x in 5 − 2x.

We write it in brackets.

f(−1) = 5 − 2(−1)

Times comes before minus.

Order: ( ) → x² √ → × ÷ → + −
2(−1) = 2 × (−1)
+ × − = −

2(−1) means 2 times −1.

Plus times minus is minus.

2 times 1 is 2.

So we get −2.

= 5 − (−2)

Taking away a negative is the same as adding.

− (−) = +

So 5 − (−2) becomes 5 + 2.

= 5 + 2

5 plus 2 is 7.

f(−1) = 7

So f(−1) = 7.

3 Check

Let's check: does −1 fit each rule's x's?

Only one must say yes.

first rule: −1 ≤ −1 yes
second rule: −1 > −1 no ✗

Only the first rule fits.

So f(−1) is right!

Let's look back.

First: find the right piece.

Then: put −1 in.

Last: check.

Answer
f(−1) = 7

Your turn

Try this one yourself, then check:

f(x) = 6 − 2x if x ≤ −1, x2 if x > −1, find f(−1)
Show the answer
f(−1) = 8

More from Piecewise functions

The whole lesson: Piecewise functions →