函式是指將一個集合(定義域)對映到另一個集合(值域)的關係,使得定義域中的每個元素在其值域中都有唯一的像。
函式的例子包括 2 x + 3 y = 9 {\displaystyle 2x+3y=9} , 4 x + 7 z = 8 {\displaystyle 4x+7z=8}
函式用符號 f ( x ) {\displaystyle f(x)} 或 g ( x ) {\displaystyle g(x)} 表示,其中 x {\displaystyle x} 是自變數,函式寫成 f ( x ) = 7 x + 9 {\displaystyle f(x)=7x+9}