How to graph a piecewise function with absolute value and cubic pieces

  • Topic:
  • Thread starter mathdad
  • Start date
4 replies · 2K views · last reply
mathdad
Messages
1,280
Reaction score
0
What is the easiest way to graph a piecewise-defined function by hand?

y = | x | if x is < or = 0...this is the upper piece

y = x^3 if x > 0...this is the bottom piece
 
RTCNTC said:
What is the easiest way to graph a piecewise-defined function by hand?

y = | x | if x is < or = 0...this is the upper piece

y = x^3 if x > 0...this is the bottom piece

We are given:

$$y(x)=\begin{cases}|x|, & x\le0 \\[3pt] x^3, & 0<x \\ \end{cases}$$

Now, since we have by definition:

$$|x|=\begin{cases}-x, & x<0 \\[3pt] x, & 0\le x \\ \end{cases}$$

And:

$$0=-0$$

We may simplify the given function by writing:

$$y(x)=\begin{cases}-x, & x\le0 \\[3pt] x^3, & 0<x \\ \end{cases}$$

And so, to plot this function by hand, we would draw the line $y=-x$ on the interval $(-\infty,0]$ and the cubic $y=x^3$ on the interval $(0,\infty)$.

View attachment 6653
 
Attachments
  • Graph of a piecewise function on a coordinate grid: a straight line descends from upper left to the origin, then a curve rises steeply to the right, both meeting at the origin.
    piecewise_001.png
    2.8 KB · Views: 147
Are you saying we graph one piece at a time on the same xy-plane?
 
RTCNTC said:
Are you saying we graph one piece at a time on the same xy-plane?

Yes. :D