How did Polk force Mexican surrendered?

By invading Mexico. See Mexican-American War (1846-1848)