1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Interesting piece-wise problem

  1. May 6, 2010 #1
    I hate a piece-wise function

    f(x)= [ 1 if 0 </eq x </1
    [ 0 if 1 < x < 2
    [ -2x+4 if x >/eq 2

    If I let F(x)= integral (from 0->x) f(t) dt, how can i find a formula for F(x) without using integrals? I think it may have something to do with the 2nd definition of the Fundamental Theorem of Calculus, but I'm not sure.
     
  2. jcsd
  3. May 6, 2010 #2

    Mark44

    Staff: Mentor

    Use <= instead of </eq, and >= instead of >/eq.
    Have you graphed this function? After you do this, you should be able to come up with a formula for F(x), using nothing more sophisticated than geometry.
     
  4. May 6, 2010 #3
    Should I be using limits? I actually did graph it. I know what the F(x) should be, I'm just not sure how to rigorously show it using a theorem, formula, etc
     
  5. May 6, 2010 #4

    Mark44

    Staff: Mentor

    No, you don't need limits. This is mostly a geometry problem. Your formula for F(x) will be defined in a piecewise fashion.
    To get you started,
    F(x) = x, 0 <= x < 1

    You will need two more definitions, one for each of the two additiona intervals. The formula for F(x) for 1 <= x < 2 is very easy.
     
  6. May 6, 2010 #5
    Is this correct? I'm worried the last one should be more complicated?

    F(x) = x, 0 <= x <= 1
    = 0, 1 < x < 2
    = -x^2+4x, x >= 2.
     
  7. May 6, 2010 #6
    Well it should actually be F(x)=-x^2+4x-4 for x>= 2 right?
     
  8. May 6, 2010 #7
    Just one??? I hate ALL piece-wise functions!
     
  9. May 6, 2010 #8
    Also, is there a way for me a find a formula for F'? How do I first find where F is differentiable?
     
  10. May 6, 2010 #9

    Mark44

    Staff: Mentor

    The second and third parts are wrong. Remember that F(x) is defined as
    [tex]\int_0^x f(t) dt[/tex]

    So, in particular, F(1.5) [itex]\neq[/itex] 0, as you have, and F(2) [itex]\neq[/itex] 4, as you have. F(2) should actually be equal to 1.
     
  11. May 6, 2010 #10

    Mark44

    Staff: Mentor

    I divide functions into three categories:
    • the ones I hate
    • the ones I love
    • the ones that I feel neutral about

    :smile:
     
  12. May 6, 2010 #11
    so should F(x)=x also if 1<x<2?
    F(x)= int (1,2)= int(0,1) 1 dx + int (1,2) 0 dx = x + 0 = 0

    is that correct?
     
  13. May 6, 2010 #12
    Actually shouldn't F(x)= 1, 0<=x<=1, F(x)=1, 1<x<2, and F(x)=-x^2+4x-3, x>=2
     
  14. May 6, 2010 #13

    Mark44

    Staff: Mentor

    Edit: This refers to post 11.
    No, that's not it either. For example, what is F(1.5)? It's not 1.5.
    I'm going to translate part of the line above into actual mathematics.
    [tex]F(2) = \int_0^1 1~dx + \int_1^2 0~dx [/tex]
    The value of the first integral is not x, and x + 0 is not 0.
     
  15. May 6, 2010 #14

    Mark44

    Staff: Mentor

    Edit:Changed my answer.
    Well, you're close. The first part should be F(x) = x, 0 <= x <= 1.
     
    Last edited: May 6, 2010
  16. May 6, 2010 #15
    But we're evaluating it from (0,1)... So once we integrate and get x|, then we have 1-0=1. This isn't correct?
     
  17. May 6, 2010 #16
    Oh and in Post #11, I meant to say:
    F(x)= int (1,2)= int(0,1) 1 dx + int (1,2) 0 dx = x + 0 = 1
     
  18. May 6, 2010 #17
    Oh and in Post #11, I meant to say:
    F(x)= int (1,2)= int(0,1) 1 dx + int (1,2) 0 dx = x + 0 = 1
     
  19. May 6, 2010 #18

    Mark44

    Staff: Mentor

    A lot of this is gibberish. F(x) is not the integral from 1 to 2 and it's not the integral from 0 to 2, and it's not x, which is not 1.

    F(x) needs to be defined in piecewise fashion.
     
  20. May 6, 2010 #19
    okay well thanks, anyways
     
  21. May 6, 2010 #20

    Mark44

    Staff: Mentor

    I'm not trying to discourage you (although I might be succeeding), but I am trying to get you to write things that make sense.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook