inIn copyright lingo (see copyright.govU.S. Copyright Office), a "derived work" is something that is reworked from a copyrighted work. it'sIt's still copyrighted by the owner. youYou can copyright their work if you obtain permission from them to do so. butBut I am unsure if that has anything to do with putting copyright lines in your code that says "this function is Copyright 1990 X Software, All Rights Reserved", etc.
alsoAlso, according to copyrightU.govS. Copyright Office, if I remember right, when someone authors something, they own an automatic copyright on it, however, it's not defensible (you have to buy that privilege for about $35). and if you change the code, that's another $35 next year I think.
I noticed the GPLGPL mentions that you can't GPL anything under 10 lines of code (that means no short utility scripts). thisThis is not entirely from copyright law, just a GPL requirement because they wanted a number I think.
http://www.copyright.gov/help/faq/faq-fairuse.html#permission
http://www.copyright.gov/help/faq/faq-fairuse.html#howmuch
http://www.copyright.gov/help/faq/faq-digital.html#backup
http://www.copyright.gov/help/faq/faq-general.html#automatic
http://www.copyright.gov/help/faq/faq-general.html#register
http://www.copyright.gov/help/faq/faq-register.html#register
http://www.copyright.gov/help/faq/faq-fairuse.html#change
How do I get permission to use somebody else's work?
How much of someone else's work can I use without getting permission?
Can I backup my computer software?
Why should I register my work if copyright protection is automatic?
Do I have to register with your office to be protected?
How do I register my copyright?
How much do I have to change in order to claim copyright in someone else's work?
NOTENote: the last one is regarding other people's code and what you may do with it/how/permissions. interestingInteresting read.
http://www.copyright.gov/circs/circ01.pdf thisCopyright Basics mentions the allowable formats of a copyright string (p.4page 4).
thisThis says that there isn't a fixed number of lines/percentage/whatever for "fair use",use"; it should be just "limited". oneOne book publisher (I won't name names) charge fees for permission, even for little stuff that should actually fall under "fair use" under copyright law. soSo picking engineering books and book publishers takes a little work for me.
butBut when you see "All rights reserved", I don't know how fair use comes into play... maybe it still does, but that phrase does come with certain restrictions.