Force on a magnet in a magnetic field I was wondering what happens when i put a wire in which current flows parallel to a magnet, something like this:

where the straight line is the wire, the circle is a cylindrical magnet(with outgoing magnetic field) and the red line is a line force for the magnetic field of the wire.
In particular i was wondering if the force on the magnet is directly proportional to the magnetic field produced by the wire.
Thanks.
 A: Yes the force on the magnet or the wire is directly proportional to the the strength of the magnet and amount of current in the wire. F=BLI force on a wire= magnetic field strength x length of wire x current in wire
A: 
In particular i was wondering if the force on the magnet is directly proportional to the magnetic field produced by the wire. 

If the magnet is far away from the wire, the force on the magnet can be expressed as
$$
\mathbf F = \mathbf m \cdot \nabla \mathbf B_w,
$$
where $\mathbf m$ is magnetic moment of the magnet and $\nabla\mathbf B_w$ is a gradient of magnetic field of the wire at the position of the magnet (a tensor).
However, if the magnet gets close enough to the wire, the above formula breaks down - there is no single relevant value of the tensor that could be easily found and put into the above formula to obtain the right value of the force. Instead, similar formula can be integrated over the region containing the magnet:
$$
\mathbf F = \int_{magnet} \mathbf M(\mathbf x) \cdot \nabla \mathbf B_w(\mathbf x) d^3\mathbf x
$$
where $\mathbf M$ gives magnetic moment of the magnet per unit volume.
Still, the magnetic field $\mathbf B_w$ at all positions is proportional to the current in the wire. From this and the last equation, it follows that the force $\mathbf F$ on the magnet is proportional to the current in the wire.
