>>552
f(θ)=(a+b)sin(2θ-π/4)/(2√2)+(a-b)/2