Solve for f if=M