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

Click For Summary

Discussion Overview

The discussion centers on finding the value of x that minimizes the function |x| + 3|x-1| + |x-3| + 2|x-4| within the interval 0 <= x <= 4. Participants explore various methods for approaching this problem, including graphical analysis and piecewise functions, while some express uncertainty about differentiation techniques.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant seeks help with minimizing the function without knowledge of differentiation or graphing techniques.
  • Another participant notes that the function consists of linear segments with critical points at x=0, 1, 3, and 4, suggesting that the minimum can be found at these points.
  • Some participants argue that differentiation is not necessary for this specific function due to its piecewise nature and suggest evaluating integer values directly.
  • There is a discussion about the nature of the function being non-differentiable at certain points, which complicates the use of traditional calculus methods.
  • A participant provides a breakdown of the function into piecewise segments and discusses how to differentiate it, emphasizing the importance of understanding the behavior at the breakpoints.
  • Another participant requests clarification in TeX format, indicating difficulty in understanding the previous explanations.
  • A later reply provides a detailed piecewise definition of the function and its derivative, highlighting where the function is not differentiable.

Areas of Agreement / Disagreement

Participants express differing views on the necessity and applicability of differentiation for this problem. While some suggest evaluating specific points directly, others advocate for a more formal approach using piecewise functions and derivatives. The discussion remains unresolved regarding the best method to find the minimum value.

Contextual Notes

Participants mention the importance of critical points and the behavior of the function at breakpoints, but there are unresolved aspects regarding the application of differentiation and the implications of non-differentiability at certain points.

cateater2000
Messages
35
Reaction score
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
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
 
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?
 
That approach only works for differentiable functions. :-p
 
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.
 
modmans2ndcoming obviously I'd differentiate it if I knew how to. Thanks for your help to the rest of you.
 
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.
 
Wait a minute can you put all that in TeX I did not understand.
 
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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K