Question: How I can simplify an expression based on another expression

Hi, I am working on a complicated expression. For the matter of simplicity, I want to define some new variables in order to express it in a more concise form. For example, where ever I have p^2/q^2, I want in to be replaced by a new defined variable like s, which is defined the same, i.e. p^2/q^2. So an expression like p^2/q^2 + 3 will turn to s+2. Please let me know if maple can do it, and if yes, how? Thanks, Hamidreza
Please Wait...