I'm new to Mathematica and really struggling with something seemingly simple. I'm trying to do an integration and keep the results in terms of the symbol $T_1$ and $A_i$:
$$ T_1=\frac{\text{pi} A_i}{2 J_a} $$
I want to integrate $j_1$:
$$ j_1=J_a \sin \left(\frac{\text{pi} t}{T_1}\right) $$
The result I get is:
$$ -\frac{1}{2} A_i \cos \left(\frac{2 t J_a}{A_i}\right) $$
I'm not sure how to get the results in terms of the desired variables. I understand that Mathematica evaluates symbols as early as possible, and so I have tried playing with Hold but it didn't help. I've also tried to recast the problem as simultaneous equations and then using Solve or Eliminate as mentioned here:
Rewriting expression in terms of factor
Here's an example of something I've tried:
$$ j_1=J_a \sin \left(\frac{\text{pi} t}{\text{Hold}\left[T_1\right]}\right) $$
$$ a_1 = Integrate[\%, t] $$
$$ \text{ReleaseHold}\left[\text{Solve}\left[\left\{\text{expr}=a_1,T_j=T_1\right\},\text{expr},\left\{J_a\right\}\right]\right] $$
I tried introducing $T_j$ since I figured $T_1=T_1$ probably wouldn't make sense.
The results are still in terms of $J_a$ though:
$$ \left\{\left\{\text{expr}\to -\frac{\text{pi} A_i^2 \cos \left(\frac{2 t J_a}{A_i}\right)}{4 J_a T_j}\right\}\right\} $$
Any advice greatly appreciated!
t[1]
(that is, single brackets and not double ones) should work. $\endgroup$