Piecewise Function Math Example 1

Follow the full solution, then compare it with the other examples linked below.

Example 1

easy
Evaluate f(x)={x2x<02x+1xโ‰ฅ0f(x) = \begin{cases} x^2 & x < 0 \\ 2x + 1 & x \geq 0 \end{cases} at x=โˆ’3x = -3, x=0x = 0, and x=4x = 4.

Solution

  1. 1
    For x=โˆ’3x = -3: since โˆ’3<0-3 < 0, use f(x)=x2f(x) = x^2. So f(โˆ’3)=(โˆ’3)2=9f(-3) = (-3)^2 = 9.
  2. 2
    For x=0x = 0: since 0โ‰ฅ00 \geq 0, use f(x)=2x+1f(x) = 2x+1. So f(0)=2(0)+1=1f(0) = 2(0)+1 = 1.
  3. 3
    For x=4x = 4: since 4โ‰ฅ04 \geq 0, use f(x)=2x+1f(x) = 2x+1. So f(4)=2(4)+1=9f(4) = 2(4)+1 = 9.

Answer

f(โˆ’3)=9,โ€…โ€Šf(0)=1,โ€…โ€Šf(4)=9f(-3)=9,\; f(0)=1,\; f(4)=9
In a piecewise function, the domain is partitioned into intervals, each with its own rule. The key skill is identifying which interval the input belongs to before applying the corresponding formula.

About Piecewise Function

A piecewise function is defined by different formulas on different non-overlapping intervals of its domain, with the applicable formula determined by the input value.

Learn more about Piecewise Function โ†’

More Piecewise Function Examples