1. The problem statement, all variables and given/known data
Let K be the closed interval [0,1] and consider the function f(x)=x^2. Is f convex? Is f linear?

help please :/ i don't even know how to set this up to check, our teacher didn't even get to this in class yet!

2. Relevant equations

3. The attempt at a solution

What is the definition of a linear function? Does your f(x) satisfy that? What is the definition of a convex function? Does that apply to f(x)? If your teacher has not covered that material yet, is it nevertheless in your textbook? If not, you can use Google, or go to the library.