Solve the given problem involving functions: f(x)=|ax-b| and y=f(x)+c

In summary, the conversation discusses finding the parameters a, b, and c for the equation y = |ax - b| + c and determining the vertex of the graph. The correct values are a = 2, b = 6, and c = 1, and the vertex is located at (3,1). The conversation also touches on solving for the inverse function of g(x) and its domain.
  • #1
chwala
Gold Member
2,753
388
Homework Statement
Kindly see attached.
Relevant Equations
Understanding of functions
1686590936436.png


A bit confusing here; what i did,

Using gradient, we have,

##m=\dfrac{7-1}{0-3}=-2##

##y=-2x+7##

Since there is a Vertex, we have the other ##m_2=2##

thus,
##y=mx+c##

##1=2×3 +c##

##... y=2x-5##

##a=2, b=-5, c=12## or##a=-2, b=5, c=2##
 
Physics news on Phys.org
  • #2
It says ##a## and ##b## are positive, which excludes both your solutions. I don't understand your working, in any case.

What can you say about the vertex of this graph?
 
  • Like
Likes MatinSAR and chwala
  • #3
Perhaps you could draw a graph of the function for some arbitrary positive values of a and b. Then see what 'vertex' and 'crosses y-axis at ... ' mean.

##\ ##
 
  • Like
Likes chwala
  • #4
I will check this later...
 
  • #5
chwala said:
A bit confusing here; what i did,

Using gradient, we have,

##m=\dfrac{7-1}{0-3}=-2##

##y=-2x+7##

Since there is a Vertex, we have the other ##m_2=2##

thus,
##y=mx+c##
Yes, to the left of the vertex the graph coincides with the line given by: ##\ y=-2x+7##.

To the right of the vertex, the graph coincides with a line having a slope of ##2## . I suppose that's what you mean by
" we have the other ##m_2=2## "

How can you justify having ##c## in the following, but not ##b## also?

##y=mx+c##
 
  • Like
Likes chwala
  • #6
chwala said:
Homework Statement: Kindly see attached.
Relevant Equations: Understanding of functions

View attachment 327774

A bit confusing here; what i did,

Using gradient, we have,

##m=\dfrac{7-1}{0-3}=-2##

##y=-2x+7##

Since there is a Vertex, we have the other ##m_2=2##

thus,
##y=mx+c##

##1=2×3 +c##

##... y=2x-5##

##a=2, b=-5, c=12## or##a=-2, b=5, c=2##
Ok i now have,

##y=f(x) + c##

##y=-ax+b+c=-2x+7##

##a=2##

##b+c=7##

We know that the vertex is at ##(3,1)## therefore,

##2x-b=1##

##b=5, ⇒c=2##
 
  • #7
Allow me to post the continuation of the question here; part (b)

1686626988933.png


Part (b) (i)

Let

##y=g(x)##

##y=px-q##

##px=y+q##

##x=\dfrac {y+q}{p}##

##g^{-1}( x)= \left[\dfrac {x+q}{p}\right]##

The domain of ##g^{-1}( x)## is ##x≥0##

I need help on part b.ii

I have,

##px-q=\left[\dfrac {x+q}{p}\right]##

##p^2x-pq=x+q##

...
##x=\dfrac{q(p+1)}{(p+1)(p-1)}##

##x=\dfrac{q}{p-1}##

##p≠1##
 
Last edited:
  • #8
chwala said:
Ok i now have,

##y=f(x) + c##

##y=-ax+b+c=-2x+7##

##a=2##

##b+c=7##

We know that the vertex is at ##(3,1)## therefore,

##2x-b=1##

##b=5, ⇒c=2##
This is all wrong!
 
  • #9
chwala said:
Ok i now have,

##y=f(x) + c##

##y=-ax+b+c=-2x+7##

##a=2##

##b+c=7##

We know that the vertex is at ##(3,1)## therefore,

##2x-b=1##

##b=5, ⇒c=2##
You still do not have part a) correct.
 
  • Like
Likes pbuk
  • #10
SammyS said:
You still do not have part a) correct.
Which you @chwala should have been able to see immediately by substituting back into the question: ## | 2 \cdot 3 - 5 | + 2 \ne 1 ##.

After more than 2,000 posts here you still have not learned this most basic and essential step: why not?
 
Last edited:
  • #11
chwala said:
Homework Statement: Kindly see attached.
Relevant Equations: Understanding of functions

View attachment 327774

A bit confusing here; what i did,

Using gradient, we have,

##m=\dfrac{7-1}{0-3}=-2##

##y=-2x+7##

Since there is a Vertex, we have the other ##m_2=2##

thus,
##y=mx+c##

##1=2×3 +c##

##... y=2x-5##

##a=2, b=-5, c=12## or##a=-2, b=5, c=2##

BvU said:
Perhaps you could draw a graph of the function for some arbitrary positive values of a and b. Then see what 'vertex' and 'crosses y-axis at ... ' mean.

##\ ##
I did that; looks like i am missing something here;

I have

If ##-ax+b+c=-2x+7##

then i know that ##a=2##

Now since the vertex is at ##(3,1)## then ##\dfrac{b}{a}=3##

##\dfrac{b}{2}=3##

##b=6, c=1## using ##f(x)=2x-5## as my line of reference..
 
Last edited:
  • #12
pbuk said:
Which you @chwala should have been able to see immediately by substituting back into the question: ## | 2 \cdot 3 - 5 | + 2 \ne 1 ##.

After more than 2,000 posts here you still have not learned this most basic and essential step: why not?
Noted @pbuk , your input highly appreciated sir.
 
  • #13
chwala said:
Ok i now have,

##y=f(x) + c##
##y=-ax+b+c=-2x+7##
##a=2##
##b+c=7##

We know that the vertex is at ##(3,1)## therefore,
##2x-b=1##
##b=5, ⇒c=2##
No. a = 2 is correct, but your values for b and c are not.
You have y = |2x - 5| + 2
This equation is satisfied for the point (0, 7) since 7 = |2*0 - 5| + 2, but is it satisfied for the points (3, 1) and (6, 7)?

Before you post a solution, you should check your work to ensure that you actually have found a solution.
 
  • Like
Likes chwala
  • #14
chwala said:
I did that; looks like i am missing something here;

I have

If ##-ax+b+c=-2x+7##

then i know that ##a=2##

Now since the vertex is at ##(3,1)## then ##\dfrac{b}{a}=3##

##\dfrac{b}{2}=3##

##b=6, c=1## using ##f(x)=2x-5## as my line of reference..
This is my latest result on the post...sorry for the confusion @Mark44 .... such questions can be a bit crazy! :biggrin:
 
  • #15
chwala said:
This is my latest result on the post...sorry for the confusion @Mark44 .... such questions can be a bit crazy! :biggrin:
I see now that you had the correct values of b = 6, c = 1 in an earlier post that I missed. Since the original question asked for the parameters a, b, and c in the equation y = |ax - b| + c, you should not have used b and c with different values in a different equation.
 
  • Like
Likes chwala
  • #16
chwala said:
I did that; looks like i am missing something here;

I have

If ##-ax+b+c=-2x+7##

then i know that ##a=2##

Now since the vertex is at ##(3,1)## then ##\dfrac{b}{a}=3##

##\dfrac{b}{2}=3##

##b=6, c=1## using ##f(x)=2x-5## as my line of reference..
This is almost correct.

Yes, the correct values are what you have ; ##a=2,\,b=6,\, \text{and } c=1##.

However, nowhere is ##f(x)=2x-5## a reference line.

##f(x)=|\,2x-6\,|##, so that for ##x<=3## we have ##f(x)=-2x+6## and for ##x>=3## we have ##f(x)=2x-6##

Perhaps you are thinking of ##y=f(x)+c##.

It is true that for ##x>=3## we have that ##y=f(x)+c=2x-6+1=2x-5## .

More briefly, it's ##y=2x-5##
 
Last edited:
  • Informative
Likes chwala
  • #17
chwala said:
Allow me to post the continuation of the question here; part (b)

View attachment 327779

Part (b) (i)

Let

##y=g(x)##

##y=px-q##

##px=y+q##

##x=\dfrac {y+q}{p}##

##g^{-1}( x)= \left[\dfrac {x+q}{p}\right]##

The domain of ##g^{-1}( x)## is ##x≥0##

I need help on part b.ii

I have,

##px-q=\left[\dfrac {x+q}{p}\right]##

##p^2x-pq=x+q##

...
##x=\dfrac{q(p+1)}{(p+1)(p-1)}##

##x=\dfrac{q}{p-1}##

##p≠1##
just making a correction here:The domain of ##g^{-1}( x)## is ##x≥1##
 
  • #18
chwala said:
just making a correction here:

The domain of ##g^{-1}( x)## is ##x≥1##
No. Not correct. You are ignoring an essential relationship between the domain and range for each of a function and its inverse

in addition to that:

To help anyone reading this thread, you likely should have pointed out that you are now addressing part (b) of the exercise. Also, part (b) was not included in the OP, but was given in an attachment in post #7, the post you quote regarding your "correction". Here I re-post that attachment:

1686626988933-png.png


In part (b) we have a function, ##g(x)##, which is closely related to ##f(x)## found in part (a).
##g(x)## is defined as ##\displaystyle g(x)=\left| px-q\right|##, where constants ##p## and ##q## are positive. Also, ##g(x)## is defined only for ##x\ge\dfrac q p##.

What significance does ##x\ge\dfrac q p## have besides defining the domain of ##g(x)## ?
 
  • #19
SammyS said:
No. Not correct. You are ignoring an essential relationship between the domain and range for each of a function and its inverse

in addition to that:

To help anyone reading this thread, you likely should have pointed out that you are now addressing part (b) of the exercise. Also, part (b) was not included in the OP, but was given in an attachment in post #7, the post you quote regarding your "correction". Here I re-post that attachment:

View attachment 328157

In part (b) we have a function, ##g(x)##, which is closely related to ##f(x)## found in part (a).
##g(x)## is defined as ##\displaystyle g(x)=\left| px-q\right|##, where constants ##p## and ##q## are positive. Also, ##g(x)## is defined only for ##x\ge\dfrac q p##.

What significance does ##x\ge\dfrac q p## have besides defining the domain of ##g(x)## ?
Let me analyze this again, the Modulus is/was a bit confusing,

Now if we have,

##g(x)=|px-q|## then the domain of ##g(x)## will be ##x∈\mathbb{R}## and the range will be ##g(x)≥0##

Now it follows that the domain of ##g^{-1}(x)## will be ##x≥0## and the range will be ##g^{-1}(x)∈\mathbb{R}##
 
  • #20
chwala said:
Let me analyze this again, the Modulus is/was a bit confusing,

Now if we have,

##g(x)=|px-q|## then the domain of ##g(x)## will be ##x∈\mathbb{R}## and the range will be ##g(x)≥0##

Now it follows that the domain of ##g^{-1}(x)## will be ##x≥0## and the range will be ##g^{-1}(x)∈\mathbb{R}##
It is explicitly stated that the function, ##g##, is defined for ##x\ge\dfrac q p## . This implies that the domain of function ##g## is the interval ##\displaystyle \left[\dfrac q p,\, \infty \right) ## .

##p## is positive so ##x\in \left[\dfrac q p,\, \infty \right) ## implies that ##px-q\ge0##.

However, if ##px-q\ge0##, then we can drop the absolute value notation from the definition of function, ##g##.
 
  • Like
Likes chwala

FAQ: Solve the given problem involving functions: f(x)=|ax-b| and y=f(x)+c

What is the effect of the parameter 'a' on the function f(x)=|ax-b|?

The parameter 'a' affects the slope of the linear segments of the absolute value function. If 'a' is positive, the function will have a V-shape opening upwards, and if 'a' is negative, the V-shape will be reflected across the y-axis. The larger the absolute value of 'a', the steeper the slopes of the linear segments.

How does the parameter 'b' influence the graph of f(x)=|ax-b|?

The parameter 'b' determines the horizontal shift of the function. Changing 'b' moves the vertex of the V-shape along the x-axis. If 'b' is positive, the vertex shifts to the right, and if 'b' is negative, the vertex shifts to the left.

What role does the parameter 'c' play in the equation y=f(x)+c?

The parameter 'c' represents a vertical shift of the function. Adding 'c' to f(x) moves the entire graph of the function up by 'c' units if 'c' is positive, and down by 'c' units if 'c' is negative.

How do you find the vertex of the function f(x)=|ax-b|?

The vertex of the function f(x)=|ax-b| occurs where the expression inside the absolute value is zero. To find the vertex, set ax-b=0 and solve for x, giving x=b/a. The y-coordinate of the vertex is f(b/a), which is zero because |ax-b|=0 at this point. Therefore, the vertex is at (b/a, 0).

How do you graph the function y=f(x)+c?

To graph y=f(x)+c, first graph the function f(x)=|ax-b| by identifying the vertex at (b/a, 0) and plotting the V-shape with slopes determined by 'a'. Then, shift the entire graph vertically by 'c' units. If 'c' is positive, move the graph up; if 'c' is negative, move it down.

Back
Top