Which Value of x Minimizes the Absolute Function in 0<=x<=4?

In summary, the function |x| + 3|x-1| + |x-3|+2|x-4| is minimized for values of x in the interval [1,3]. To find the minimum value, one can differentiate the function and set it equal to zero, or simply evaluate the function at x=1 and x=3. However, since the function is not differentiable at these points, it is important to consider all critical points, including those where the derivative does not exist. The function can also be broken into a piecewise defined function to aid in graphing and understanding its behavior.
  • #1
cateater2000
35
0
For which value of x in 0<=x<=4 is the function|x| + 3|x-1| + |x-3|+2|x-4| minimized. I don't know how to differentiate, this and I'm not sure how to draw the graph, any tips would be great.
 
Physics news on Phys.org
  • #2
Note that your function consists of linear segments, with vertices at x=0,1,3,4
Therefore find the minimum value of these 4 points
 
  • #3
in general, you take the derivative, set it equal to zero and solve for the unknown then plug that into the original equation. depending on the type of equation you will have a relative or absolute min or max.

why are you trying to solve a minimization without differentiation? are you in pre calc and working with guess and check?
 
  • #4
That approach only works for differentiable functions. :-p
 
  • #5
Although you can differentiate it in general it won't be possible at its minimum points.

However it's not a particularly complex function and just involves integers, so just work out x = 0, 1, 2, 3, 4 and that should give you your answer.
 
  • #6
modmans2ndcoming obviously I'd differentiate it if I knew how to. Thanks for your help to the rest of you.
 
  • #7
Zurtex said:
Although you can differentiate it in general it won't be possible at its minimum points.

Which is fine, to max/minimize the "calculus way" you look at the critical points, which includes all the points where the derivative does not exist.


cateater2000, you should be able to break this up into a piecewise defined function, if only to convince yourself it is linear in between the integers 0, 1, 3, 4, as arildno mentioned (this will also aid in graphing). You can then differentiate it as usual (with special care at the break points).

f(x)=|x| + 3|x-1| + |x-3|+2|x-4|

when 0<=x<1, all the arguments inside the absolute values are negative except the first, so
f(x)=(x)+3(-(x-1))-(x-3)+2(-(x-4))=-5x+8

when 1<=x<3, the first two arguments are positive, the second two are negative, so
f(x)=(x)+3(x-1)-(x-3)+2(-(x-4))=x+2

You can do the interval 3<=x<=4.

You can now differentiate this guy, and get a piecewise defined function as it's derivative. When 0<x<1, f'(x)=-5, and so on. Note that the derivative is not defined at x=1, or 3 (why?).


I'd strongly suggest you finish what I've started in converting this to a piecewise defined function and draw the graph to give you an idea of how this thing behaves.
 
  • #8
Wait a minute can you put all that in TeX I did not understand.
 
  • #9
Sure, not much will change though, the end piecewise defined function will look neater.

We're concerned with the function [tex]f(x)=|x|+3|x-1|+|x-3|+2|x-4|[/tex] on the interval [tex][0,4][/tex]. We have to break it up at the points where one of the arguments of an absolute value changes sign, namely [tex]x=1[/tex] and [tex]x=3[/tex]. 0 and 4 won't matter for this since they are at the endpoints of our domain.

When [tex]0\leq x<1[/tex], [tex]x[/tex] is non-negative, so [tex]|x|=x[/tex]. On this same interval, [tex]x-1, x-3, x-4[/tex] are all negative, so [tex]|x-1|=-(x-1)=1-x,|x-3|=-(x-3)=3-x,|x-4|=-(x-4)=4-x[/tex]. We can use this to determine:

[tex]f(x)=x+3(1-x)+3-x+2(4-x)=-5x+14[/tex] on the interval [tex]0\leq x <1[/tex]

which may be why you didn't understand, I apparently can't add, sorry. You do a similar analysis on the other intervals, and (hopefully) find

[tex]f(x)=\begin{cases}-5x+14& if\ 0\leq x <1,\\x+8& if\ 1 \leq x <3,\\ 3x+2& if\ 3\leq x\leq 4\end{cases}[/tex]

You can now differentiate this guy and quickly see

[tex]f'(x)=\begin{cases}-5& if\ 0< x <1,\\1& if\ 1 < x <3,\\ 3& if\ 3< x<4\end{cases}[/tex]

You should be able to see it's not differentiable at 1 and 3.
 
  • #10
Oooh there we go thank you very much.
 

FAQ: Which Value of x Minimizes the Absolute Function in 0<=x<=4?

What is the minimum value of an absolute function?

The minimum value of an absolute function is always 0. This is because an absolute function can never have a negative value, as it always returns the positive value of the input.

How do you find the minimum of an absolute function?

To find the minimum of an absolute function, you can set the input value to 0. This will always return a value of 0, which is the minimum value. Alternatively, you can graph the absolute function and find the lowest point on the graph.

Can an absolute function have multiple minimum values?

No, an absolute function can only have one minimum value, which is always 0. This is because the absolute value of any number is always positive, so there can never be multiple minimum values.

How is the minimum of an absolute function related to the absolute value of its input?

The minimum value of an absolute function is directly related to the absolute value of its input. The minimum value will always be equal to the absolute value of the input, as the function will always return the positive value of the input.

Are there any real-life applications of the minimum of an absolute function?

Yes, the minimum of an absolute function is commonly used in optimization problems. For example, it can be used to find the minimum cost or minimum distance between two points.

Similar threads

Replies
1
Views
2K
Replies
13
Views
1K
Replies
4
Views
1K
Replies
2
Views
1K
Replies
12
Views
2K
Replies
22
Views
2K
Replies
2
Views
1K
Back
Top