Home

Tutoring

Subjects

Live Classes

Study Coach

Essay Review

On-Demand Courses

Colleges

Games

Opening subject page...

Loading your content

  1. Algebra
  2. Graph Square Root and Piecewise Functions

Algebra 1 Lesson

Graph Square Root and Piecewise Functions

Learn Graph Square Root and Piecewise Functions.

Where Did These Functions Come From?

Long before graphing calculators existed, mathematicians wrestled with curves that could not be drawn using straight lines and parabolas alone. The functions you will study in this lesson — square root , cube root , absolute value , and piecewise-defined functions — each arose because real-world problems demanded them. Here is a brief look at how these ideas developed.

The common thread across all these milestones is a single question: How do we describe and visualize relationships that don't follow a straight line or a simple parabola? Each function type you'll learn in this lesson answers that question in its own elegant way.

Core Definitions & Principles

Before you graph anything, you need a clear picture of what each function type actually means . Think of each definition below as a building block — once you understand what a function does to its input, sketching its graph becomes much easier.

1

Square Root Function

The parent function is f(x) = √x. It is defined only for x ≥ 0 (domain) and produces only non-negative outputs (range: y ≥ 0). The graph starts at the origin and curves upward to the right, growing more slowly as x increases.
2

Cube Root Function

The parent function is f(x) = ∛x. Unlike the square root, it is defined for all real numbers (domain: all reals) and produces all real outputs (range: all reals). The graph passes through the origin and extends into all four quadrants, with an S-shaped curve that is steep near the origin and flattens farther out.
3

Absolute Value Function

The parent function is f(x) = |x|. It returns the non-negative distance from x to zero. Domain: all reals; Range: y ≥ 0. The graph forms a V-shape with vertex at the origin, with both arms rising at a slope of 1 in magnitude.
4

Piecewise-Defined Function

A piecewise function uses different rules for different parts of its domain. Each rule applies only on a specified interval. The graph may look like disconnected pieces, and careful attention to open and closed endpoints is essential.
5

Step Function (Floor Function)

A step function has constant output values over intervals of the domain, creating a staircase appearance. The most common is the greatest integer (floor) function f(x) = ⌊x⌋, which returns the greatest integer less than or equal to x.
✦ KEY TAKEAWAY
Think of these five function types as five different "lenses" for viewing relationships. A square root lens lets you model things that grow quickly at first and then slow down (like the time it takes sound to travel a certain distance). A piecewise lens lets you stitch together different rules — just like how your phone plan might charge one rate for the first 5 GB and a different rate after that. Learning to switch between lenses is the real skill here.

Seeing the Parent Functions

Below is a coordinate-plane diagram showing the parent graphs of the square root , cube root , and absolute value functions plotted together. Study how each curve behaves differently — its starting point, its direction, and how steeply it rises or falls.

There are a few things worth noticing in the graph above. The square root curve lives entirely in the first quadrant (x ≥ 0, y ≥ 0) because you cannot take the square root of a negative number, and a square root is never negative. The cube root curve passes through all four quadrants — it accepts negative inputs and can produce negative outputs. Meanwhile, the absolute value graph forms a "V" that opens upward because the output is always non-negative, yet the input can be anything on the number line.

Each of these shapes is a parent function . That means it is the simplest version of its family. Later, when you add shifts, stretches, or reflections, the shape moves or changes size, but its basic character stays the same.

The Mathematical Framework

Let's pin down the exact equations and the key features — domain, range, and important points — for each function type. When you understand these features, you can sketch a quick, accurate graph even without a calculator.

Square Root Parent Function
f(x) = √x

The square root function increases as x increases, but it slows down . Going from x = 0 to x = 1 raises y by 1, but going from x = 1 to x = 4 only raises y by 1 more (from 1 to 2). This "diminishing returns" shape is typical of root functions.

Cube Root Parent Function
f(x) = ∛x

The cube root function is symmetric about the origin , meaning if you rotate the graph 180° around (0, 0), it looks exactly the same. This is called odd symmetry . Near x = 0, the curve is steep; farther out, it flattens — similar behavior to the square root, but mirrored into the negative side as well.

Absolute Value Parent Function
f(x) = |x|

The absolute value function is made of two linear pieces: for x ≥ 0, it behaves like f(x) = x (slope of 1); for x < 0, it behaves like f(x) = −x (slope of −1). The sharp corner at the origin is called the vertex of the "V."

Piecewise-Defined Function (General Form)
f(x) = { rule₁ if condition₁ , rule₂ if condition₂ , … }

When you graph a piecewise function, the most important steps are: (1) identify each interval, (2) graph each rule only within its interval, and (3) check the boundary points carefully. Use a solid dot (●) when the endpoint is included (≤ or ≥) and an open dot (○) when it is not (< or >). This prevents the graph from having two different y-values at the same x-value.

✦ KEY TAKEAWAY
Solid and open dots on a piecewise graph work like traffic signals. A solid dot says "this point is part of the function — go ahead and include it." An open dot says "stop — this point belongs to a different piece." Getting the dots right is the number-one way to avoid mistakes on piecewise graphs.

Step Functions & Piecewise in Detail

Step functions deserve special attention because they behave unlike any function you have graphed in earlier courses. Their outputs don't smoothly transition — they jump . The most common step function is the greatest integer function (also called the floor function), written f(x) = ⌊x⌋. It returns the greatest integer that is less than or equal to x. For instance, ⌊2.7⌋ = 2, ⌊−1.3⌋ = −2, and ⌊5⌋ = 5.

Notice the pattern in Figure 2: on every interval from one integer to the next, the output stays constant. At each integer, the graph "jumps" up by 1. The solid dot (●) sits on the left end of each step because the floor function includes the lower integer. The open dot (○) sits on the right because the next integer belongs to the step above.

Real-world step functions pop up more often than you might expect. Postage rates are a classic example: mailing a letter that weighs up to 1 oz costs one price, anything over 1 oz up to 2 oz costs a higher price, and so on. Each weight range corresponds to a flat "step" in the cost function.

Graphing a Custom Piecewise Function

Suppose you need to graph the piecewise function:

Custom Piecewise Function
f(x) = { x + 3 if x < −1 | 2 if −1 ≤ x ≤ 2 | (x − 2)² if x > 2 }

You would handle each piece separately. For x < −1, graph the line y = x + 3 but stop at x = −1 with an open dot (since the condition is strict <). At x = −1 the second piece kicks in: y = 2, a horizontal line from x = −1 to x = 2, both endpoints included (solid dots). Finally, for x > 2, graph the parabola y = (x − 2)² starting just to the right of x = 2 with an open dot and continuing to the right.

Worked Example

Let's walk through a complete, step-by-step example of graphing a transformed square root function and a piecewise-defined function .

Step 1

Step 2

Step 3

Step 4

Step 5

Step 6

xx − 1√(x − 1)−√(x − 1) + 3Point (x, y)
1003(1, 3)
2112(2, 2)
5421(5, 1)
10930(10, 0)

Comparing the Function Families

With so many function types, it helps to line them up side by side. The table below summarizes the key features that distinguish each family. Use this as a quick reference when you're deciding which function type fits a given situation.

FeatureSquare RootCube RootAbsolute ValueStep (Floor)
Parent Functionf(x) = √xf(x) = ∛xf(x) = |x|f(x) = ⌊x⌋
Domainx ≥ 0All realsAll realsAll reals
Rangey ≥ 0All realsy ≥ 0All integers
ShapeHalf-curve, Q1 onlyS-curve, all quadrantsV-shapeStaircase
SymmetryNoneOdd (origin)Even (y-axis)None
Key Point(0, 0)(0, 0)Vertex at (0, 0)Jumps at integers

One common source of confusion is mixing up square root and cube root domains. Remember: squaring any real number always gives a non-negative result, so the square root is only defined for non-negative inputs. Cubing, on the other hand, can produce negative numbers (−2 × −2 × −2 = −8), so the cube root happily accepts negatives.

✦ KEY TAKEAWAY
When deciding which function to use for a modeling situation, ask yourself two questions. First, does the relationship need to handle negative inputs? If so, cube root or absolute value might be the right pick, but square root won't work. Second, does the output change smoothly or in jumps? Smooth changes call for root or absolute value functions; jumpy changes (like pricing tiers) call for a piecewise or step function.

Connections to Advanced Topics

The functions you've learned in this lesson form the foundation for several ideas you will encounter in Algebra 2, Pre-Calculus, and beyond. Understanding where each function type leads can motivate why it's worth mastering them now.

What You Learned NowWhere It Leads
Square root function f(x) = √xInverse functions (√x is the inverse of x²); radical equations in Algebra 2
Cube root function f(x) = ∛xRational exponents (∛x = x^(1/3)); solving cubic equations
Absolute value function f(x) = |x|Absolute value inequalities; distance in the coordinate plane; complex number magnitude
Piecewise functionsLimits and continuity in Calculus; real-world modeling in economics and engineering
Step functionsCeiling/floor functions in computer science; discrete mathematics

One especially exciting connection is how piecewise functions relate to real-world modeling . Engineers, economists, and data scientists routinely build piecewise models because real systems often behave differently under different conditions — just as your cell phone uses Wi-Fi at home and cellular data on the road. The ability to read and write piecewise definitions is a skill you'll use well beyond math class.

Practice Problems

Try these five problems on your own before revealing the answers. They start with a conceptual warm-up and build toward full graphing tasks.

PROBLEM 1 — PROBLEM 1
Without graphing, state the domain and range of f(x) = √(x + 4). Explain your reasoning.
PROBLEM 2 — PROBLEM 2
Evaluate the floor function: ⌊3.99⌋, ⌊−2.1⌋, and ⌊7⌋.
PROBLEM 3 — PROBLEM 3
Describe the transformations applied to f(x) = ∛x to obtain g(x) = ∛(x + 2) − 5.
PROBLEM 4 — PROBLEM 4
Graph the piecewise function h(x) = { −x + 1 if x < 0 | x² if x ≥ 0 }. Use open and closed dots correctly at x = 0.
PROBLEM 5 — PROBLEM 5
A parking garage charges $3 for the first hour (or any part thereof) and $2 for each additional hour (or any part thereof). Write and graph a step function C(t) for the cost in terms of hours t, where 0 < t ≤ 4.
Great work reviewing this lesson.