As someone mentioned, SAS is primarily a numerical language. If you are looking for symbolic computations such as simplifying an algebraic expression, Wolfram Alpha or other symbolic software would be a better choice.
If you want to find the value of x that minimizes or maximizes an expression, then you are solving an optimization problem, and SAS has many ways to numerically optimize equations, including PROC NLIN and NLMIXED (SAS/STAT), PROC IML (SAS/IML), and PROC OPTMODEL (SAS/OR).
... View more