sketching help!!!

• June 1st 2008, 12:49 PM
skystar
sketching help!!!
how do i sketch a probability density function.i cant find how to do it anywhere!driving me nuts

example f(x)=

kx.........0 $\leq 1$
k(2-x)........ $1\leq x\leq2$
0 ........elsewhere

k=1 from my workings.thanks in advance
• June 1st 2008, 01:00 PM
sean.1986
Draw the line y=x between 0 and 1 on the x-axis and the line y=2-x between 1 and 2 on the x-axis. It should be a triangle with an area of 1.