01 / 20

Graph \(\sqrt{x}\) and
Piecewise Functions

Master graphing square root functions and piecewise-defined functions, including step functions and absolute value.

Algebra 1

What Is a Square Root Function?

A square root function has the parent form \( f(x) = \sqrt{x} \). It returns the principal (non-negative) square root. The general form is \( f(x) = a\sqrt{x - h} + k \).

Domain
\( x \ge 0 \) for the parent. You can only take the square root of non-negative numbers.
Range
\( y \ge 0 \) for the parent. Output is always zero or positive.

Parent Graph: \( f(x) = \sqrt{x} \)

0 1 4 9 1 2 3 4 (0, 0) (1, 1) (4, 2) (9, 3)

Transformations: \( a\sqrt{x-h}+k \)

Every square root function can be written as \( f(x) = a\sqrt{x - h} + k \). Each parameter shifts or stretches the parent graph.

\( h \): Horizontal
Shifts the starting point to \( x = h \). Positive \( h \) moves right.
\( k \): Vertical
Shifts the starting point to \( y = k \). Positive \( k \) moves up.
\( a \): Stretch/Reflect
Stretches by \( |a| \). If \( a < 0 \), reflects over the x-axis.

What Is a Piecewise Function?

A piecewise-defined function uses different formulas for different intervals of the domain. You pick the rule that matches the input value of \( x \).

Domain Split
The x-axis is divided into intervals, each governed by its own rule.
Boundary Dots
A closed dot means the point is included. An open dot means it is not.

Absolute Value as Piecewise

2 -2 4 -4 1 2 3 vertex (0, 0)
\( y = -x \)
\( y = x \)

Step Functions: Flat Pieces

A step function is a piecewise function whose pieces are all horizontal segments. The most famous is the greatest integer (floor) function \( f(x) = \lfloor x \rfloor \).

1 2 3 -1 -2 1 2 -1
\( f(x) = \lfloor x \rfloor \)

Continuous vs. Discontinuous

Some piecewise functions connect smoothly; others have jumps. This distinction affects how you graph boundary points.

Continuous
Pieces connect at boundaries with no gap. Example: \( |x| \) meets smoothly at the origin.
Discontinuous
Pieces have jumps at boundaries. Example: \( \lfloor x \rfloor \) jumps at every integer.

How to Graph Step by Step

1
Identify the type: square root, absolute value, step, or general piecewise?
2
Find the domain intervals: for piecewise, note boundaries. For \( \sqrt{x-h} \), set the radicand \( \ge 0 \).
3
Build a table of key points: starting point, boundaries, and 2-3 extra points per piece.
4
Mark open/closed dots at every boundary based on \(<\) vs. \(\le\).
5
Connect points within each piece: smooth curves for roots, straight lines for linear pieces, flat lines for steps.

Example 1: \( f(x) = \sqrt{x - 1} + 2 \)

0 1 2 5 8 1 2 3 4 (1, 2) (2, 3) (5, 4)

Example 2: Piecewise Linear

0 1 2 3 -1 -2 1 2 3
\( y = -x + 3 \)
\( y = 2x - 1 \)
jump at \(x=1\)

Example 3: Three-Piece Function

0 1 2 3 -1 -2 -3 1 2 3 4 5
\( y = 1 \)
\( y = x^2 \)
\( y = 5 \)

Example 4: Reflected Square Root

0 -3 -2 -1 1 4 1 2 3 4 5 (-3, 4) (-2, 3) (1, 2)

Common Mistakes to Avoid

Wrong Domain
Extending \( \sqrt{x} \) to negative \(x\)-values. The radicand must be \( \ge 0 \).
Shift Direction
Confusing \( \sqrt{x - 3} \) (shift right) with \( \sqrt{x + 3} \) (shift left). The sign inside is opposite.
Open vs. Closed Dots
Using a closed dot for \( x < a \) or an open dot for \( x \le a \). Check the inequality symbol carefully.

Summary Comparison

Property \( \sqrt{x} \) \( |x| \) \( \lfloor x \rfloor \)
Shape Curve (half parabola) V-shape Staircase
Domain \( x \ge 0 \) All reals All reals
Range \( y \ge 0 \) \( y \ge 0 \) All integers
Continuous? Yes Yes No (jumps)
Key Feature Starts at vertex, slows Symmetric V at vertex Flat steps, open/closed dots

Question 1 of 5

What is the domain of \( f(x) = \sqrt{x - 4} \)?

Question 2 of 5

The graph of \( f(x) = \sqrt{x + 2} - 3 \) starts at which point?

Question 3 of 5

For the piecewise function \( g(x) = \begin{cases} 2x, & x < 3 \\ 10 - x, & x \ge 3 \end{cases} \), what type of dot goes at \( x = 3 \) for each piece?

Question 4 of 5

Which function produces a V-shaped graph with vertex at \( (1, -2) \)?

Question 5 of 5

What is the range of \( f(x) = -2\sqrt{x} + 6 \)?