<< Chapter < Page Chapter >> Page >
This module introduces piecewise functions for the purpose of understanding absolute value equations.

What do you get if you put a positive number into an absolute value? Answer: you get that same number back. 5 = 5 size 12{ lline 5 rline =5} {} . π = π size 12{ lline π rline =π} {} . And so on. We can say, as a generalization, that x = x size 12{ lline x rline =x} {} ; but only if x size 12{x} {} is positive .

OK, so, what happens if you put a negative number into an absolute value? Answer: you get that same number back, but made positive. OK, how do you make a negative number positive? Mathematically, you multiply it by –1 . 5 = ( 5 ) = 5 size 12{ lline - 5 rline = - \( - 5 \) =5} {} . π = ( π ) = π size 12{ lline - π rline = - \( - π \) =π} {} . We can say, as a generalization, that x = x size 12{ lline x rline = - x} {} ; but only if x size 12{x} {} is negative .

So the absolute value function can be defined like this.

The “piecewise” definition of absolute value

x = { x , x 0 x , x < 0

If you’ve never seen this before, it looks extremely odd. If you try to pin that feeling down, I think you’ll find this looks odd for some combination of these three reasons.

  1. The whole idea of a “piecewise function”—that is, a function which is defined differently on different domains—may be unfamiliar. Think about it in terms of the function game. Imagine getting a card that says “If you are given a positive number or 0, respond with the same number you were given. If you are given a negative number, multiply it by –1 and give that back.” This is one of those “can a function do that ?” moments. Yes, it can—and, in fact, functions defined in this “piecewise manner” are more common than you might think.
  2. The x size 12{ - x} {} looks suspicious. “I thought an absolute value could never be negative!” Well, that’s right. But if x size 12{x} {} is negative, then x size 12{ - x} {} is positive. Instead of thinking of the x size 12{ - x} {} as “negative x size 12{x} {} ” it may help to think of it as “change the sign of x size 12{x} {} .”
  3. Even if you get past those objections, you may feel that we have taken a perfectly ordinary, easy to understand function, and redefined it in a terribly complicated way. Why bother?

Surprisingly, the piecewise definition makes many problems easier . Let’s consider a few graphing problems.

You already know how to graph y = x size 12{y= lline x rline } {} . But you can explain the V shape very easily with the piecewise definition. On the right side of the graph (where x 0 size 12{x>= 0} {} ), it is the graph of y = x size 12{y=x} {} . On the left side of the graph (where x < 0 size 12{x<0} {} ), it is the graph of y = x size 12{y= - x} {} .

Line with a negative slope of 1 passing through the origin
y = - x The whole graph is shown, but the only part we care about is on the left, where x < 0 size 12{x<0} {}
A line with a positive slope of 1 with y-intercept 0
y = x The whole graph is shown, but the only part we care about is on the right, where x 0 size 12{x>= 0} {}
Graph showing the absolute value of x with cusp at (0,0).
y = | x | Created by putting together the relevant parts of the other two graphs.

Still, that’s just a new way of graphing something that we already knew how to graph, right? But now consider this problem: graph y = x + x size 12{y=x+ lline x rline } {} . How do we approach that? With the piecewise definition, it becomes a snap.

x + | x | = { x + x = 2 x x 0 x + ( - x ) = 0 x < 0

So we graph y = 2x size 12{y=2x} {} on the right, and y = 0 size 12{y=0} {} on the left. (You may want to try doing this in three separate drawings, as I did above.)

Combined peice-wise Graph
y = x + | x |

Our final example requires us to use the piecewise definition of the absolute value for both x and y .

Graph |x|+|y|=4

We saw that in order to graph x size 12{ lline x rline } {} we had to view the left and right sides separately. Similarly, y size 12{ lline y rline } {} divides the graph vertically .

  • On top, where y 0 size 12{y>= 0} {} , y = y size 12{ lline y rline =y} {} .
  • Where y < 0 size 12{y<0} {} , on the bottom, y = y size 12{ lline y rline = - y} {} .
Since this equation has both variables under absolute values, we have to divide the graph both horizontally and vertically, which means we look at each quadrant separately . x + y = 4 size 12{ lline x rline + lline y rline =4} {}
Second Quadrant First Quadrant
x 0 size 12{x>= 0} {} , so x = x size 12{ lline x rline = - x} {} x 0 size 12{x>= 0} {} , so x = x size 12{ lline x rline =x} {}
y 0 size 12{y>= 0} {} , so y = y size 12{ lline y rline =y} {} y 0 size 12{y>= 0} {} , so y = y size 12{ lline y rline =y} {}
( x ) + y = 4 size 12{ \( - x \) +y=4} {} x + y = 4 size 12{x+y=4} {}
y = x + 4 size 12{y=x+4} {} y = x + 4 size 12{y= - x+4} {}
Third Quadrant Fourth Quadrant
x 0 size 12{x<= 0} {} , so x = x size 12{ lline x rline = - x} {} x 0 size 12{x<= 0} {} , so x = x size 12{ lline x rline =x} {}
y 0 size 12{y<= 0} {} , so y = y size 12{ lline y rline = - y} {} y 0 size 12{y<= 0} {} , so y = y size 12{ lline y rline = - y} {}
( x ) + ( y ) = 4 size 12{ \( - x \) + \( - y \) =4} {} x + ( y ) = 4 size 12{x+ \( - y \) =4} {}
y = x 4 size 12{y= - x - 4} {} y = x 4 size 12{y=x - 4} {}
Now we graph each line, but only in its respective quadrant. For instance, in the fourth quadrant, we are graphing the line y = x 4 size 12{y=x - 4} {} . So we draw the line, but use only the part of it that is in the fourth quadrant.
Repeating this process in all four quadrants, we arrive at the proper graph.
x + y = 4

Got questions? Get instant answers now!

Questions & Answers

Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
sciencedirect big data base
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
characteristics of micro business
for teaching engĺish at school how nano technology help us
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
what is the actual application of fullerenes nowadays?
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
is Bucky paper clear?
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Do you know which machine is used to that process?
how to fabricate graphene ink ?
for screen printed electrodes ?
What is lattice structure?
s. Reply
of graphene you mean?
or in general
in general
Graphene has a hexagonal structure
On having this app for quite a bit time, Haven't realised there's a chat room in it.
what is biological synthesis of nanoparticles
Sanket Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Advanced algebra ii: conceptual explanations. OpenStax CNX. May 04, 2010 Download for free at http://cnx.org/content/col10624/1.15
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Advanced algebra ii: conceptual explanations' conversation and receive update notifications?