Nonconvex Optimization and Model Representation with Applications in Control Theory and Machine Learning