Imagine an ideal transformer interfacing an ideal current source with a ramp function \$i_1(t)=a t\$ connected to the primary winding and a resistor \$R\$ connected to the second winding. We want to know the current in the second loop \$i_2\$.
We could proceed in two ways,
We compute the current in the secondary loop, using ideal transformer's theory we obtain $$i_2 = \frac{N_1}{N_2} i_1 \tag 1 $$.
We could also reason that in an ideal transformer, the magnetic flux in the secondary is the same as in the primary \$\phi_2 = \phi_1 \$, with $$ \phi_1 = B_1 A_1 = \mu n_1 i_1 A_1 \tag 2 $$ with \$n_1 = N_1 / l_1\$. We can then use Ohm's and Faraday's laws to derive \$i_2\$, $$ i_2 = \frac{v_2}{R} = - \frac{\mathcal{E}_2}{R} = - \frac{1}{R} N_2 \frac{d \phi_2}{d t} = \frac{\mu n_1 N_2}{R} \frac{d i_1}{d t} \tag 3 $$ which is clearly different from the expression obtained in equation (1).
Can somebody tell me what is wrong in this reasoning?