how do i sketch a probability density function.i cant find how to do it anywhere!driving me nuts

example f(x)=

kx.........0$\displaystyle \leq 1$

k(2-x)........$\displaystyle 1\leq x\leq2$

0 ........elsewhere

k=1 from my workings.thanks in advance