determining multipart functions

The graph of a function *y* = *g*(*x*)

on the domain −4 ≤ *x* ≤ 4

consists of line segments and semicircles of radius 1 connecting the points (−4, 0), (−2, 2), (0, 2), (2, 2), (4, 0).

http://www.webassign.net/uwaprecalc1/6-p-012.gif

(c) Find the multipart formula for y=g(x)

if -4≤x≤-2

if -2≤x≤0

if 0≤x≤2

if 2≤x≤4

to solve this, I used the formula of the line for

(-4≤x≤-2) = y= -x-4

(2≤x≤-2) = y=

and the pos/neg semi-circle equations for

(-2≤x≤0) =y =2+sqrt(x^{2}-2x)

(0≤x≤2) = y = 2-sqrt(x^{2}-2x)

But none of my answers were correct. what should I try now?

Re: determining multipart functions

Quote:

Originally Posted by

**UWstudent** The graph of a function y = g(x)

on the domain −4 ≤ x ≤ 4

consists of line segments and semicircles of radius 1 connecting the points (−4, 0), (−2, 2), (0, 2), (2, 2), (4, 0).

http://www.webassign.net/uwaprecalc1/6-p-012.gif
(c) Find the multipart formula for y=g(x)

if -4≤x≤-2

if -2≤x≤0

if 0≤x≤2

if 2≤x≤4

From $(-4,0)\to (-2,2)$ the slope of the line is **positive** $1$.

Re: determining multipart functions

Oh! I was doing this problem wayyy too late last night (early this morning..)

My approach was correct, I just made calculation errors on all of them

I got:

x+4

2+sqrt1-(x+1)^2

2-sqrt1-(x-1)^2

-x+4