title: Is it possible to concatenate a string and expression without converting the expression into string
body: <p>In my quest to learn Python for mathematics course, I have stumbled upon a rather unique problem. I'm looking to concatenate the output of an integration (an equation) along with a string say "Fx(x)" and using the print command to concatenate them results in the integration output been converted into string.</p>
  
  <p>Link for the image to describe the issue - <a href="https://i.stack.imgur.com/5R6wV.png" rel="nofollow noreferrer">Desired Concatenation</a></p>
  
  <p>The output of the integration is 1/x+1 and I would like it to be displayed normally as it would be in a textbook and not in the string format.</p>
  
  <p>Following is my code</p>
  
  <pre><code>from sympy import integrate, symbols, exp, oo
  from IPython.display import display, Markdown
  
  x, y = symbols('x,y', positive=True)
  
  integral = integrate(exp(-y*(x+1)), (y, 0, oo))
  
  display(Markdown(r'$f_X(x) =$')) 
  
  integral
  </code></pre>
  
  <p>The current output of this code shows both in different lines, while the output I'm looking for it Fx(X) = 1/x+1, as it would be displayed in a textbook. </p>