This is the first homework assignment for Lasers and Optomechanics at Syracuse University.
It is due 5pm on Friday, January 23, 2026
You will need to complete the questions in this jupyter notebook and submit it via your git repo
%matplotlib widget
from ipywidgets import *
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
plt.style.use('dark_background')
fontsize = 14
mpl.rcParams.update(
{
"text.usetex": True,
"figure.figsize": (9, 6),
"figure.autolayout": True,
"font.family": "serif",
"font.serif": "georgia",
# 'mathtext.fontset': 'cm',
"lines.linewidth": 1.5,
"font.size": fontsize,
"xtick.labelsize": fontsize,
"ytick.labelsize": fontsize,
"legend.fancybox": True,
"legend.fontsize": fontsize,
"legend.framealpha": 0.7,
"legend.handletextpad": 0.5,
"legend.labelspacing": 0.2,
"legend.loc": "best",
"axes.edgecolor": "#b0b0b0",
"grid.color": "#707070", # grid color"
"xtick.color": "#b0b0b0",
"ytick.color": "#b0b0b0",
"savefig.dpi": 80,
"pdf.compression": 9,
}
)Approximations Review
In this course, you will need to remember and use some basic approximations.
These approximations all come from taking the Taylor Expansion of a function about some point :
1Question 1: Binomial Approximation¶
The binomial approximation to first order in is as follows:
1.1Question 1A¶
Derive the binomial approximation using the Taylor Expansion to first order about
1.2Question 1B¶
Find the second and third order terms of the binomial approximation
1.3Question 1C¶
Plot the binomial function on for .
Compare to plots of the first, second, and third order binomial approximation.
At what does each approximation fail, becoming greater than 5% error?
1.4Question 1A Solution: (This example filled out for you)¶
Let
then at ,
Then the first derivative is
and the derivative evaluated at is
The Taylor Expansion to first order then becomes
1.5Question 1B Solution:¶
Taking the second and third derivatives, and evaluating at 0 yields
The second order expansion is
The third order expansion is
def binom(xx:float, nn:float):
"""Binomial function (1 + xx)^nn
Inputs:
-------
xx: float or array of floats
binomial variable
nn: float
binomial exponent
Output:
-------
binom: float or array of floats
binomial expansion
"""
return (1 + xx)**nn# Parameter definitions. Protip: never make single-letter variable names
nn = 0.5
xx = np.linspace(-1, 2, 100)
taylor0 = 1
taylor1 = taylor0 + nn * xx
taylor2 = taylor1 + 0.5 * nn * (nn - 1) * xx**2
taylor3 = taylor2 + (1/6) * nn * (nn - 1) * (nn - 2) * xx**3# At which x does the error become greater than 10%?
# First, we divide the approximation by the real function,
# Second, we subtract 1 from that ratio
# Third, we take the absolute value of the subtraction
# Fourth, we look for the first location where the final result is greater than 0.1
# Fifth, we find where x > 0
# Sixth, we take the intersection of the indices found
# Seventh, we find the first index where the error is large for plotting
error = 0.05
model = binom(xx, nn)
xx_errors = np.array([])
for taylor in [taylor1, taylor2, taylor3]:
abs_errors = np.abs(taylor/model - 1) # final result
indices_error = np.argwhere(abs_errors > error)
indices_x = np.argwhere(xx > 0)
indices_final = np.intersect1d(indices_error, indices_x)
index = indices_final[0]
xx_errors = np.append(xx_errors, xx[index])
print(xx_errors)[0.87878788 1.3030303 1.42424242]
/var/folders/t1/fq8mx5mj0bx4kn1hlgb4hh840000gn/T/ipykernel_60905/3003632814.py:14: RuntimeWarning: divide by zero encountered in divide
abs_errors = np.abs(taylor/model - 1) # final result
fig, s1 = plt.subplots(1)
s1.plot(xx, binom(xx, nn), label="Binomial Function")
s1.plot(xx, taylor1, ls="--", label="Taylor 1")
s1.plot(xx, taylor2, ls="--", label="Taylor 2")
s1.plot(xx, taylor3, ls="--", label="Taylor 3")
s1.axvline(x=0, label=f"$x = 0$")
for ii, xx_error in enumerate(xx_errors):
s1.axvline(x=xx_error, color=f"C{ii+1}",ls=":", label=f"Taylor {ii+1} Error")
s1.set_title("Binomial Approximations about $x = 0$ for $n = " + f"{nn}" + "$")
s1.set_xlabel("$x$")
s1.set_ylabel("$f(x)$")
s1.legend()
s1.grid()
plt.show()2Question 2: Sine and Cosine Approximations¶
2.1Question 2A: Sine¶
Repeat the Taylor Expansion approximations for sine to second order about .
Make the plots, but you don’t need to calculate the 5% error point.
2.2Question 2B: Cosine¶
Repeat the Taylor Expansion approximations for cosine to second order about .
Make the plots, but you don’t need to calculate the 5% error point.
3Question 3: Complex Number Review¶
3.1Question 3A:¶
Plot the following complex function on a domain of :
where for , , and .
3.2Question 3B:¶
Calculate the magnitude and argument for each .
3.3Question 3C:¶
Calculate the velocity of the phasors with respect to , and draw them for each evaluated at
3.4Question 3D:¶
What is the primary difference between and ?
3.5Question 3E:¶
For , substitute for , and calculate the normalized time derivatives : ,
and find expressions for the normalized real polar coordinates .
Discuss how the expressions you found for the polar coordinates relate to the path you plotted for in part A.
What happens if ?
4Question 4: Electric field propogating in 2D¶
In class, we assumed that an plane wave was propogating in the direction, with the electric field oscillating in the direction.
Suppose now that the is oscillating in the direction:
4.1Question 4A:¶
What direction of propogation and magnetic field vector are now possible?
Draw a diagram of the electric field vector and the plane of propogation.
4.2Question 4B:¶
What are the expressions for and if we constrain the direction of propogating to be (partially) in the positive direction?
5Question 5: Spherical Plane Wave Intensity and Radiation Pressure¶
Suppose you have a sinusoidal spherical plane wave source a distance away along the axis from a cylindrical mirror with radius .
Use the center of the spherical wave as the origin, and the distance from that center as the variable .
Assume that the cylinder is in the plane.
Also assume that the spherical wave is emitting total power in all directions.
5.1Question 5A:¶
What is the Poynting vector for the spherical waves?
Hint: Equation 9.49 of Griffith’s E&M may be helpful here
5.2Question 5B:¶
What is the Poynting vector incident on the mirror center?
What about the mirror edge?
Write an expression for the Poynting vector incident anywhere on the mirror’s surface.
5.3Question 5C:¶
Using your result from Question 5B, find the intensity incident on the mirror.
5.4Question 5D:¶
Find the total power incident on the mirror.
Compare to the total power emitted by the spherical plane wave.
5.5Question 5E:¶
Calculate the radiation pressure incident on the mirror.
Also find the radiation pressure force .
Assume the mirror is a perfect reflector.
If the mirror has a mass , what is its acceleration?