Example 3: Solve .
The characterictic equation is .
> solve(r^2+r+1=0,r);
The roots are complex with
> u:=-1/2;v:=sqrt(3)/2;
so the solution is
> C;