# Gr. 11 Functions - Limiting domain and range on a graphing calculator

I'm trying to do a homework assignment on my graphing calculator app for my ipad (Quick graph+).

(Edit by Willie: The images are originally posted here http://imgur.com/a/XRj4g I've included them below.)

The first image at the top right is what I am trying to make on my graphing calculator. Basically I have to limit the domain when graphing. Halfway down in the red box I highlighted is the ears that we have to graph by limiting f(x)=-2abs(2x-5)+6 to a domain of 1<=x<=4

At the bottom right of the first image you can see how they insert it into the graphing calculator they use. They put f(x)=(-2abs(2x-5)+6)((x<=1)(x<=4)) however looking at the second image in the album my graphing calculator disallows that. I emailed the app creators and they said to use the "if" button. (image 3)

However when I used "if" it didn't turn out properly like I expected (image 4). I was wondering how I could go about properly graphing this function so it will limit the domain properly.

If there is any confusion in what I'm trying to do leave a comment and I'll try to explain my self further.

-
I've inlined your images. Unfortunately you do not have enough reputation yet to "save" a post with in-lined images. Drop me a line (by writing @Willie in a followup comment) if you need help with that. –  Willie Wong Sep 25 '12 at 8:48
@WillieWong Thanks so much! Do you have any idea on how I can fix this issue? –  matt Sep 25 '12 at 19:03

You used the if operator incorrectly. The format is

if( condition, what to do if True, what to do if False)


But you put another condition in the place of "what to do if false".

Here's an example: I want a function which is equal to $3x$ between $x=1$ and $x=4$, is equal to $x+8$ between $x=4$ and $x=5$, and is undefined otherwise. The code could be

if(x>5, ln(0), if(x>4, x+8, if(x>1, 3*x, ln(0) ) ) )


Here I'm using $\ln(0)$ with the hope that it will simply produce no output for the corresponding range, rather than halt the entire computation. Don't have the app (or iPad for that matter), so can't tell for sure.

-
Thanks LVL it worked great! I've got it all working now –  matt Sep 26 '12 at 23:59