# How do you graph this?

## Homework Statement

I am not sure how to graph the function

f(x)=(x+p)+q

## The Attempt at a Solution

When x=0 y=p+q
if y=0 x=-q-p ???

what shape would this give??[/B]

## Homework Statement

I am not sure how to graph the function

f(x)=(x+p)+q

## The Attempt at a Solution

When x=0 y=p+q
if y=0 x=-q-p ???

what shape would this give??[/B]
f(x) = (x + p) + q can also be written as f(x) = x + (p + q)
No as p and q are both constants, let:
p + q = c
Sp, we get f(x) = x + c
This is similar to the equation y = mx + c. What does this equation stand for?

f(x) = (x + p) + q can also be written as f(x) = x + (p + q)
No as p and q are both constants, let:
p + q = c
Sp, we get f(x) = x + c
This is similar to the equation y = mx + c. What does this equation stand for?

So it will just be a straight line upwards with a gradient of 1 and y intercept of p+q?

Mark44
Mentor
lola2000 said:
f(x)=(x+p)+q
This is nothing more than a straight line whose slope is 1 and whose y-intercept is p + q.

The only reason I can think of for writing the right side as (x + p) + q is to get you to recognize this as a horizontal translation and a vertical translation of the graph of y = x.

So it will just be a straight line upwards with a gradient of 1 and y intercept of p+q?
Yes!