While correct, this does not look like traditional mathematics. Select the cell group, then choose the menu item ►►:
Alternatively, if you want to automatically format the answer, apply
TraditionalForm:
Use
InputForm to find out how to type an expression into
Mathematica:
TraditionalForm is sometimes ambiguous; in this case
Mathematica treats
f first as a number and then as a function: