The f2 visa is linked with the F1 visa. The F2 visa will be valid for as long as the F1 visa is valid for.