Linear regression with one variable (univariate linear regression) aims to find the best fitting straight line to describe the relationship between two variables. The model representation includes a hypothesis function that takes input values and predicts output values. The cost function measures the accuracy of predictions by calculating the mean squared error between predicted and actual output values. Gradient descent is used as an algorithm to minimize the cost function by iteratively updating the parameters of the hypothesis function in the direction of steepest descent.