(1−x2)y′′−2xy′+λ(λ+1)y=0.(a) [6] x=0 ordinary; recurrence for an.
(b) [5] Termination when λ=n; give P2.
(c) [5] Prove ∫−11P1P2dx=0; state general relation.
(a) Transfer function (4)
Laplace with zero ICs: L{y′′}=s2Y, L{y′}=sY. So
(s2+2ζω0s+ω02)Y(s)=F(s).(2 — using derivative rule)H(s)=FY=s2+2ζω0s+ω021.(1)
Poles: s=−ζω0±iω01−ζ2=−ζω0±iωd. ROC: ℜ(s)>−ζω0 (right of rightmost pole). (1)
(b) Convolution theorem (5)L{(g∗h)}=∫0∞e−st∫0tg(τ)h(t−τ)dτdt.(1)
Region: 0≤τ≤t<∞. Swap order (Fubini, valid since integrand absolutely integrable when g,h of exponential order and ℜs large enough): (1 for stating condition)=∫0∞g(τ)∫τ∞e−sth(t−τ)dtdτ.(1)
Substitute u=t−τ, du=dt:
=∫0∞g(τ)e−sτ∫0∞e−suh(u)dudτ=(∫0∞g(τ)e−sτdτ)H(s)=G(s)H(s).(2)
(c) Impulse response (5)H(s)=(s+ζω0)2+ωd21 (complete the square). (2)
Since L{e−atsinωdt}=(s+a)2+ωd2ωd, (1)h(t)=ωd1e−ζω0tsin(ωdt),t≥0.(2)
(d) Step response two ways (6)Route 1 — convolution:y=h∗f=∫0th(t−τ)u(τ−a)dτ=∫ath(t−τ)dτ for t>a. Let σ=t−τ:
y=∫0t−ah(σ)dσ=ωd1∫0t−ae−ζω0σsinωdσdσ.(2)
Using ∫0Te−aσsinωdσdσ=a2+ωd2ae−aT(−sinωdT)−ωde−aTcosωdT+ωd with a=ζω0, a2+ωd2=ω02:
y(t)=ω021[1−e−ζω0(t−a)(cosωd(t−a)+ωdζω0sinωd(t−a))],t>a.(2)Route 2 — second shift: For step at t=0, Y(s)=H(s)/s. Partial fractions / inverse give the bracket above with argument t; second-shift theorem L{u(t−a)g(t−a)}=e−asG(s) replaces t→t−a, reproducing the same expression. Both agree. (2)
(e) Euler + steady state (4)
State-space x1=y,x2=y′: x˙1=x2,x˙2=f−2ζω0x2−ω02x1. (1)
h=0.01; x1=0; x2=0; t=0
while t<T:
f = 1 # unit step
dx1 = x2
dx2 = f - 2*z*w0*x2 - w0**2*x1
x1 += h*dx1; x2 += h*dx2; t += h
record(t, x1)
(2)
Steady state: set derivatives =0⇒ω02y=1, y∞=1/ω02=1/4. (1)
(a) Critical points (3)y=0 and sinx=0⇒x=0,π. Points: (0,0) and (π,0). (3)
(b) Jacobian & classification (9)J=(0−cosx1−β). (2)
At (0,0): J=(0−11−β), char eqn s2+βs+1=0, s=2−β±β2−4. For 0<β<2: complex with negative real part → stable spiral; for β>2 → stable node. (4)
At (π,0): J=(011−β), char eqn s2+βs−1=0, s=2−β±β2+4: one positive, one negative root → saddle (unstable). (3)
(c) Origin, β=1 (6)s2+s+1=0⇒s=−21±i23. (2)
Eigenvector for s: (0−s)v1+v2=0⇒v2=sv1, take v=(1,s)T. (2)
Real general solution:
x(t)=e−t/2[c1(cos23tu−sin23tw)+c2(…)],
concretely x(t)=e−t/2(Acos23t+Bsin23t), y=x˙. (2)
(d) (2) A nonlinear centre has purely imaginary linear eigenvalues; nonlinear terms can push it to a stable/unstable spiral, so linearization is inconclusive (borderline case). Node↔spiral bifurcation at origin occurs at β=2 (discriminant zero). (2)
(a) Recurrence (6)p(x)=1−x2−2x, q(x)=1−x2λ(λ+1) analytic at 0 → ordinary point. (1) Sub y=∑anxn:
∑n(n−1)anxn−2−∑n(n−1)anxn−2∑nanxn+λ(λ+1)∑anxn=0.(2)
Coefficient of xn:
(n+2)(n+1)an+2=[n(n−1)+2n−λ(λ+1)]an=[n(n+1)−λ(λ+1)]an,an+2=(n+1)(n+2)n(n+1)−λ(λ+1)an.(3)
(b) Termination & P2 (5) When λ=n: numerator vanishes at that n, so an+2=0 and the series (same parity) terminates → polynomial. (2) For λ=2: a2=20−6a0=−3a0, a4=0. Even series: y=a0(1−3x2). Normalize P2(1)=1: a0(1−3)=−2a0=1⇒a0=−21: P2=21(3x2−1). (3)
[{"claim":"H(s) poles have real part -zeta*omega0","code":"s,z,w0=symbols('s zeta omega0',positive=True); roots=solve(s**2+2*z*w0*s+w0**2,s); result = all(simplify(re(r.rewrite(sqrt))+z*w0)==0 for r in [ -z*w0+I*w0*sqrt(1-z**2), -z*w0-I*w0*sqrt(1-z**2) ])"},{"claim":"impulse response inverse Laplace correct","code":"t,z,w0=symbols('t zeta omega0',positive=True); wd=w0*sqrt(1-z**2); s=symbols('s'); H=1/(s**2+2*z*w0*s+w0**2); h=inverse_laplace_transform(H,s,t); result = simplify(h-exp(-z*w0*t)*sin(wd*t)/wd)==0"},{"claim":"step steady state = 1/w0^2 with w0=2 gives 1/4","code":"result = Rational(1,4)==Rational(1,2**2)"},{"claim":"origin beta=1 eigenvalues -1/2 +- i sqrt3/2","code":"s=symbols('s'); r=solve(s**2+s+1,s); result = set(r)=={Rational(-1,2)+I*sqrt(3)/2, Rational(-1,2)-I*sqrt(3)/2}"},{"claim":"P2 normalized and orthogonal to P1","code":"x=symbols('x'); P1=x; P2=(3*x**2-1)/2; result = (integrate(P1*P2,(x,-1,1))==0) and (P2.subs(x,1)==1) and (integrate(P2*P