v

d1 = 0.5 (slider from -5 to 5)
c1 = 1 (slider from -5 to 5)
d = 0.2 (slider from -5 to 5)
c = 4.2 (slider from -5 to 5)
b = -0.3 (slider from -5 to 5)
a = 1 (slider from -5 to 5)
g(x) = (a * x) + b + (d * cos((c * x))) + (d1 * cos((c1 * x)))
f(x) = If[1 ≤ x ≤ 7, g(x)]