
Constraints are restrictions (limitations, boundaries) that need to be placed upon variables used in equations that model realworld situations. 
It is possible that certain solutions which make an equation true mathematically, may not make any sense in the context of a realworld word problem. Constraints then become necessary to allow the mathematical model to realistically represent the situation.
It is possible to set constraints
on the xvalues
(the independent variable)
or the yvalues (dependent variable) associated with an equation.
When graphing, the set of all possible xcoordinates used to create the graph are referred to as the domain. Constraints may already be stated in a problem as limitations upon the domain, or may need to be specified if the situation is reality based.
The set of all of the ycoordinates used by the
domain elements is called the range. 
Linear Equation:
It is discovered that the college registration process for Professor Smith's Calculus class can be modeled by the equation y = 2x + 12, where y = the number of students registered at the end of each day, and x = the day of registration. Professor Smith has 12 students preregistered before the registration process begins, and the registration closes after 7 days.
While it can be said that y = 2x + 12 models the registration process for this Calculus class, you can see that the "real" model is only a portion of this straight line. There are no "negative" days for the registration process, and there are no days beyond Day 7 for registration.
A better model is an equation with constraints:


Quadratic Equation:
A ball is dropped from 40 feet above the ground. As the ball falls to the ground, in a straight drop, its height above the ground, as time passes, is modeled by the equation y = 16x^{2} + 40, where
y = the height above the ground in feet and x = time in seconds.
While it can be said that y = 16x^{2} + 40 models the fall of the ball, you can see that the "real" model is only a portion of this quadratic graph. There are no "negative" seconds of time, and there are no heights below ground level.
The ball hits the ground after approximately 1.6 seconds, which is the end of its fall.
A better model is an equation with constraints:


