# The step-by-step of the SymPy package procedure

**URL:** <https://discourse.julialang.org/t/the-step-by-step-of-the-sympy-package-procedure/95901>\
**Category:** General Usage\
**Tags:** question, symbolics, sympy\
**Created:** [March 11, 2023, 4:36am UTC](https://discourse.julialang.org/t/the-step-by-step-of-the-sympy-package-procedure/95901 "2023-03-11T04:36:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maoc](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maoc](https://discourse.julialang.org/u/maoc)\
**Post date:** [March 11, 2023, 4:36am UTC](https://discourse.julialang.org/t/the-step-by-step-of-the-sympy-package-procedure/95901/1 "2023-03-11T04:36:23Z")

</div>

I am reading the tutorial of the [SymPy](https://docs.juliahub.com/SymPy/KzewI/1.1.8/) package. I would like to know if there is a way to show the step-by-step calculations that the package performs. For example, we know that this works well:

```julia
using SymPy
x = symbols("x")
integrate((x^4 + x^2*exp(x) - x^2 - 2*x*exp(x) - 2*x - exp(x))*exp(x)/((x - 1)^2*(x + 1)^2*(exp(x) + 1)), x)

```

But I would like to know which were the different procedures (integration methods, algebraic manipulations, etc.) that were used to arrive at the result. Perhaps SymPy does not offer this option, but do you know of another solution?

---

<div class="post-metadata">

**Author:** ![devel-chm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/devel-chm/32/3572_2.png) [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Post date:** [March 11, 2023, 4:38pm UTC](https://discourse.julialang.org/t/the-step-by-step-of-the-sympy-package-procedure/95901/2 "2023-03-11T16:38:17Z")

</div>

What do you get if you do the same calculation directly in  
[SymPy](https://www.sympy.org/en/index.html)?

The Julia module is just bindings to that.

This question might be more appropriately answered  
on a Python/SymPy forum.

---

<div class="post-metadata">

**Author:** ![maoc](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maoc](https://discourse.julialang.org/u/maoc)\
**Post date:** [March 11, 2023, 6:05pm UTC](https://discourse.julialang.org/t/the-step-by-step-of-the-sympy-package-procedure/95901/3 "2023-03-11T18:05:46Z")

</div>

Thanks for the suggestion. Would this [site](https://github.com/sympy/sympy/discussions) be the most appropriate? Or is there another, more specific one?

---

<div class="post-metadata">

**Author:** ![devel-chm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/devel-chm/32/3572_2.png) [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Post date:** [March 11, 2023, 8:08pm UTC](https://discourse.julialang.org/t/the-step-by-step-of-the-sympy-package-procedure/95901/4 "2023-03-11T20:08:49Z")

</div>

I’m not a SymPy user but you might start by working through  
the tutorials and documentation to understand what it does  
and how to use it. I think that might give you the understanding  
to solve your problem/question. It is written in Python so you  
could possibly look at the source or trace the operation to see  
what is being run…?
