The following script gives not the simplest result. What should be the right command to get the simplest result?
f[x_, y_, a_, b_] := x (a/b)^(y/x b)
g[x_, y_, a_, b_] := Log[f[x, y, a, b]]*x
TraditionalForm[Simplify[g[x, y, a, b]]]
resulting in:
x log(x (a/b)^((b y)/x))
// PowerExpand // Expand
after your result, if the variables and parameters are real valued. the function g[_] is not defined $\endgroup$ – Andreas Feb 22 at 21:48g
isf
? with this change, Mathematica does not thinkx log(x (a/b)^((b y)/x))
is correct result. You can useReduce
to check. $\endgroup$ – Nasser Feb 22 at 21:49PowerExpand[g[x, y, a, b]] // Simplify // TraditionalForm
$\endgroup$ – Daniel Huber Feb 23 at 16:05// PowerExpand // Expand // FullSimplify
$\endgroup$ – Andreas Feb 23 at 16:05