Display symbolic expressions without expansion
I'm trying to write symbolic expressions with many intermediate variables. When I use the "show" function to display the final symbolic expression, it always shows the expression with the intermediate variables fully expanded. How can I show the final expression in terms of intermediate variables? Here is a simplified example:
var('t')
cc=matrix(SR, 3, 3, t)
I1=cc.trace()
Q=exp(I1)
show(Q)
With the above code, the output would be
\begin{equation} Q=e^{3t} \end{equation}
How can I generate an output as \begin{equation} Q=e^{I1} \end{equation}