There's some code here for drawing a sine wave on a bitmap:

http://snipplr.com/view.php?codeview&id=27706

Rather than saving the bitmap to a file, you could assign it (say) to a PictureBox's Image property instead.

No doubt you could adapt this code to draw other functions.