given
simplify(expr) does not work. So tried subsindets
restart; expr := exp((2*ln(sqrt(p^2 + 1) + p) + 2*ln(a) + ln(p^2 + 1)*a)/(2*a))+ exp(3*x); subsindets(expr,'specfunc( anything, exp )',f->(`if`(has(op(1,f),'ln'),expand(f),f)))
It is possible to also try simplify(expr,exp) in some cases, but for the above example,
this did not work, i.e. it did not simplify it.
Update December 2023. Trying Maple 2023.2.1, it simpliļ¬es the above using
simplify(expr,exp)
restart; expr := exp((2*ln(sqrt(p^2 + 1) + p) + 2*ln(a) + ln(p^2 + 1)*a)/(2*a))+ exp(3*x); simplify(expr,exp)
And