syms x;

f = x^2 -2*x +1;

% Evaluate/Enumerate f

subs(f,3);

%simplify 
simplify(f)  

% factorize

solve(f)

% Algebraic Manipulation

g = x;
g2 = 2*x + 1;
g + g2


% plot

figure(1)
ezplot(f)

%  another Rational function

figure(2)

f1 = (x+1)/(x-1);
ezplot(f1)

% yet another

figure(3)

f2 = (2*x+1)/((x-2)*(x+1)*(x-3));
ezplot(f2)