I have this lovely function
f(x) = { 0 if x < 0
x if 0 <= x <= 1
2-x if 1 < x <= 2
0 x > 2 }
so it stays at zero and as it approaches x = 0 it gets a slight curve.
now.. g(x) = the integral from 0 to x of f(t)dt.
I need to find a expression for g(x) similar to the one for f(x). It needs to be piecewise defined. I'm not even sure where to start to be honest. Help would be much appreciated!
f(x) = { 0 if x < 0
x if 0 <= x <= 1
2-x if 1 < x <= 2
0 x > 2 }
so it stays at zero and as it approaches x = 0 it gets a slight curve.
now.. g(x) = the integral from 0 to x of f(t)dt.
I need to find a expression for g(x) similar to the one for f(x). It needs to be piecewise defined. I'm not even sure where to start to be honest. Help would be much appreciated!