september 4, 2012. general graph shapes think about splitting up the domain draw both separately...

31
MA 107 Recitation September 4, 2012

Upload: shawn-baker

Post on 17-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

MA 107 RecitationSeptember 4, 2012

Page 2: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions• General graph shapes• Think about splitting up the domain• Draw both separately before you put them together if it

helps you to visualize it better• Can be infinitely many pieces, usually you’ll only have to

deal with 3 or less• Usually we notate piecewise functions with a large curly

bracket, and each piece of the function needs to have the values of x for which it is defined to the right hand side of the equation

• Remember that colored circles indicate that the value is included in the domain (square bracket), while an open circle indicates that it is not, but values can get infinitely closer to that value

Page 3: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions• For example, what does this graph look like?

Page 4: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions• Graph each separately

first if you need to

Page 5: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions

Page 6: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions

Page 7: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions• We can also look at a graph of a piecewise

function and be asked to come up with its equation, if it is made up of simple line segments with which we are familiar (review the types of lines from last week).

Page 8: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions• What would the equation be for this graph?

(-4,-4)

(-1,2)

(-1,1)

(1,1)

(3,-1)

Page 9: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions• Tackle each section

independently• Three pieces in the

domain:

(-4,-4)

(-1,2)

(-1,1)

(1,1)

(3,-1)

Page 10: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise Functions• Tackle each section

independently• Three pieces in the

domain:• [-4,-1)• [-1,1]• (1,3]

**Note: the 1 can be considered in either the second or third domain, but not both.**

(-4,-4)

(-1,2)

(-1,1)

(1,1)

(3,-1)

Page 11: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise FunctionsFirst piece [-4,-1) Linear Slope = rise/run

= (2 - - 4)/(-1 - - 4)= (6)/(3) = 2

Intercept:y = mx+b(2) = (2)(-1)+b4=b

y = 2x + 4

Thus we have the first part of the function:2x + 4, -4 <= x < -1

(-4,-4)

(-1,2)

(-1,1)

(1,1)

(3,-1)

Page 12: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise FunctionsSecond piece [-1,1] Quadratic (x^2) Does not appear

to have any adjustments

Thus we have the second part of the function:x^2, -1 <= x <=1

(-4,-4)

(-1,2)

(-1,1)

(1,1)

(3,-1)

Page 13: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise FunctionsThird piece (1,3] Linear Slope = (-1 – 1)/(3-1)

= -2/2 = - 1 Intercept:

y = mx+b(1)=(-1)(1) + b2 = b

Thus we have the last part of the function: - x + 2, 1 < x < 3

(-4,-4)

(-1,2)

(-1,1)

(1,1)

(3,-1)

Page 14: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Piecewise FunctionsPut it all together:

(-4,-4)

(-1,2)

(-1,1)

(1,1)

(3,-1)

Page 15: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

WebAssign HW 4

Page 16: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Horizontal changes happen “within” the function,

and they’re usually the opposite of what you think would happen.

• Vertical changes happen “outside” the function, and they are usually the direction you would expect.

• There are a total of 10 different things that we can do to a graph to manipulate it, and theoretically we could do all these things to the same function.

Page 17: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Vertical Adjustments• f(x) + c• Moves graph up c units

• f(x) – c• Moves graph down c units

• 2*f(x)• Stretches vertically by a factor of 2 (could be any

number > 1)• 0.5*f(x)• Compresses vertically by a factor of 2

(any fraction between 0 and 1)• -f(x)• Reflection over the x axis

Page 18: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Vertical Example• For example, let’s look at f(x) = x^2

Page 19: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Vertical Example• For example, let’s look at f(x) = x^2• This is g(x) = f(x) + 2, which shifts up 2 units:

Page 20: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Vertical Example• For example, let’s look at f(x) = x^2• This is g(x) = f(x) - 2, which shifts down 2 units:

Page 21: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Vertical Example• For example, let’s look at f(x) = x^2• This is g(x) = 2*f(x), which stretches vertically by a factor

of 2:

Page 22: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Vertical Example• For example, let’s look at f(x) = x^2• This is g(x) = 0.5*f(x), which compresses vertically by a

factor of 2:

Page 23: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Vertical Example• For example, let’s look at f(x) = x^2• This is g(x) = -f(x), which flips over the axis:

Page 24: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Horizontal Adjustments (usually backwards from

what you expect)• f(x + c) • Moves graph left c units

• f(x – c)• Moves graph right c units

• f(2*x)• Compresses horizontally by a factor of (1/2) (could be any number > 1)

• f(0.5*x)• Stretches by a factor of 2 (any fraction between 0 and 1)

• f(-x)• Reflection over the y axis

Page 25: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Horizontal Example• Let’s think about f(x) = sqrt(x).

Page 26: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Horizontal Example• Let’s think about f(x) = sqrt(x).• Here’s g(x) = sqrt(x-2), which shifts right 2 units

Page 27: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Horizontal Example• Let’s think about f(x) = sqrt(x).• Here’s g(x) = sqrt(x+2), which shifts left 2 units

Page 28: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Horizontal Example• Let’s think about f(x) = sqrt(x).• Here’s g(x) = sqrt(2*x), which compresses by a factor of

(1/2)

Page 29: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Horizontal Example• Let’s think about f(x) = sqrt(x).• Here’s g(x) = sqrt(0.5x), which stretches by a factor of 2

Page 30: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Horizontal Example• Let’s think about f(x) = sqrt(x).• Here’s g(x) = sqrt(-x), which causes it to flip over the y

axis

Page 31: September 4, 2012. General graph shapes Think about splitting up the domain Draw both separately before you put them together if it helps you to visualize

Graph Adjustments• Usually the situation ends up being a combination

of both, with adjustments being made from a basic function that you are already familiar with.