Show that affine functions are both concave and convex

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 6K views
retspool
Messages
35
Reaction score
0

Homework Statement


In my textbook, the author briefly makes a statement that affine functions are both concave and convex, how is that true? and how can it be proven?


Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
Isn't an affine function a line?
Lines don't have any concavity.
 
This is exactly how the problem goes
let f(x) be a function in Rn.
prove that f(x) is both concave and convex if f(x) = cTx for some vector c

I thought that the function was a affine function, but i can't prove it