View Single Post
Old 01-24-2005, 09:31 PM   #6 (permalink)
a-j
Tilted
 
Quote:
Originally Posted by fuzzybottom
i tried to use:
-[(x-1)²]^(1/2) +1
and integrate that but it got messy, and i'm not sure if thats a good way to go about it because of the exponents and how they might distribute.
I guess that would work, but it is ugly. I think using abolute values would be much cleaner:

f'(x) = -|x-1|+1

Then if you need to integrate it it would break down into pieces:

x: 0<x<=1
-x+2: 1<x<2

Which is what you have already. It really isn't that uncommon for integrals to be evaluated piecewise, and it makes your job a lot easier than messing around trying to get one nice function. After all the function isn't smooth, so I wouldn't try to integrate it as if it were.
a-j is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73