Write the function as a quotient:
y(θ)=D(θ)N(θ) where
N(θ)=2cosθ+cos2θ
D(θ)=cos3θ+4cos2θ+5cosθ+2
First derivatives:
N′(θ)=dθd(2cosθ+cos2θ)=−2sinθ−2sin2θ
D′(θ)=dθd(cos3θ+4cos2θ+5cosθ+2)=−3sin3θ−8sin2θ−5sinθ
Second derivatives:
N′′(θ)=dθd(−2sinθ−2sin2θ)=−2cosθ−4cos2θ
D′′(θ)=dθd(−3sin3θ−8sin2θ−5sinθ)=−9cos3θ−16cos2θ−5cosθ
At θ=2π the trigonometric values are:
cos2π=0,sin2π=1
cosπ=−1,sinπ=0
cos23π=0,sin23π=−1
Hence
N=−1,D=−2
N′=−2,D′=−2
N′′=4,D′′=16
Using the quotient rule y′=D2N′D−ND′:
y′=(−2)2(−2)(−2)−(−1)(−2)=44−2=21
Define A=N′D−ND′, so A′=N′′D−ND′′ (because the N′D′ terms cancel).
At θ=2π:
A=2,A′=4(−2)−(−1)(16)=−8+16=8
The second derivative of a quotient can be written as
y′′=D3A′D−2AD′
Thus
y′′=(−2)38(−2)−2(2)(−2)=−8−16+8=1
Finally, at θ=2π:
y′′+y′+y=1+21+21=2
The required value is 2, which matches Option C.