Skip to ContentGo to accessibility page

Summary

12.1 The Biot-Savart Law

  • The magnetic field created by a current-carrying wire is found by the Biot-Savart law.
  • The current element Idl→Idl→ produces a magnetic field a distance r away.

12.2 Magnetic Field Due to a Thin Straight Wire

  • The strength of the magnetic field created by current in a long straight wire is given by B=μ0I2πRB=μ0I2πR (long straight wire) where I is the current, R is the shortest distance to the wire, and the constant μ0=4π×10−7T⋅m/sμ0=4π×10−7T⋅m/s is the permeability of free space.
  • The direction of the magnetic field created by a long straight wire is given by right-hand rule 2 (RHR-2): Point the thumb of the right hand in the direction of current, and the fingers curl in the direction of the magnetic field loops created by it.

12.3 Magnetic Force between Two Parallel Currents

  • The force between two parallel currents I1I1 and I2,I2, separated by a distance r, has a magnitude per unit length given by Fl=μ0I1I22πr.Fl=μ0I1I22πr.
  • The force is attractive if the currents are in the same direction, repulsive if they are in opposite directions.

12.4 Magnetic Field of a Current Loop

  • The magnetic field strength at the center of a circular loop is given by B=μ0I2R(at center of loop),B=μ0I2R(at center of loop), where R is the radius of the loop. RHR-2 gives the direction of the field about the loop.

12.5 Ampère’s Law

  • The magnetic field created by current following any path is the sum (or integral) of the fields due to segments along the path (magnitude and direction as for a straight wire), resulting in a general relationship between current and field known as Ampère’s law.
  • Ampère’s law can be used to determine the magnetic field from a thin wire or thick wire by a geometrically convenient path of integration. The results are consistent with the Biot-Savart law.

12.6 Solenoids and Toroids

  • The magnetic field strength inside a solenoid is
    B=μ0nI(inside a solenoid)B=μ0nI(inside a solenoid)
    where n is the number of loops per unit length of the solenoid. The field inside is very uniform in magnitude and direction.
  • The magnetic field strength inside a toroid is
    B=μoNI2πr(within the toroid)B=μoNI2πr(within the toroid)
    where N is the number of windings. The field inside a toroid is not uniform and varies with the distance as 1/r.

12.7 Magnetism in Matter

  • Materials are classified as paramagnetic, diamagnetic, or ferromagnetic, depending on how they behave in an applied magnetic field.
  • Paramagnetic materials have partial alignment of their magnetic dipoles with an applied magnetic field. This is a positive magnetic susceptibility. Only a surface current remains, creating a solenoid-like magnetic field.
  • Diamagnetic materials exhibit induced dipoles opposite to an applied magnetic field. This is a negative magnetic susceptibility.
  • Ferromagnetic materials have groups of dipoles, called domains, which align with the applied magnetic field. However, when the field is removed, the ferromagnetic material remains magnetized, unlike paramagnetic materials. This magnetization of the material versus the applied field effect is called hysteresis.
Citation/Attribution
Reuse and redistribution of this content in digital or print format:
  • This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/university-physics-volume-2/pages/1-introduction

  • If you are redistributing all or part of this book in a noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/university-physics-volume-2/pages/1-introduction

Citation information

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Jun 11, 2026 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.