3
$\begingroup$

Suppose we have two expressions and == between them. I want to simplify only the right-hand side. What should I do?

$\endgroup$
4
  • $\begingroup$ Also, #[[1]] == Simplify[#[[2]]] &@equation or ReplacePart[equation, 2 -> Simplify[equation[[2]]]] $\endgroup$
    – Bob Hanlon
    Commented Nov 26, 2021 at 12:39
  • $\begingroup$ Alternative: Simplify[equation[[2] ] $\endgroup$ Commented Nov 26, 2021 at 12:39
  • $\begingroup$ @UlrichNeumann did not you forget a brace? $\endgroup$
    – Anixx
    Commented Nov 26, 2021 at 14:31
  • $\begingroup$ @Anixx: Yes, Simplify[equation[[2]] ] $\endgroup$ Commented Nov 26, 2021 at 14:46

1 Answer 1

10
$\begingroup$
equation = y + z  == D[Integrate[1/(x^3 + 1), x], x] 

enter image description here

You can use MapAt:

MapAt[Simplify, equation, {2}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.