Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica help - simplification

  1. Jun 17, 2011 #1

    I'm trying to find out how I can let Mathematica know what is a variable and what is a parameter when asking it to simplify an expression.

    For example: if I have the following expression

    \[Beta] \[CapitalOmega] ((1 - \[Gamma] y) \[Xi] \[Sigma] + (x - \[Xi]) \[CapitalOmega]) + a ((-1 + \[Gamma])^2 (y (-1 + \[Beta]) + x \[Delta]))

    how to define x and y as my variables so that when I run FullSimplify I get an expression like



    Otherwise, Mathematica does a simplification that gives me:

    a (-1 + \[Gamma])^2 (y (-1 + \[Beta]) +
    x \[Delta]) + \[Beta] \[CapitalOmega] (x \[CapitalOmega] - \[Xi] ((-1 + y \[Gamma]) \[Sigma] + \[CapitalOmega]))

    Many thanks,
  2. jcsd
  3. Jun 17, 2011 #2
    I think I've sorted it out using Collect (had never used this function before).

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook