let f be Function of REAL,REAL; for a, b, c, d, r, s being Real st ( for x being Real holds f . x = max (r,(min (s,((c * (sin ((a * x) + b))) + d)))) ) holds
f is Lipschitzian
let a, b, c, d, r, s be Real; ( ( for x being Real holds f . x = max (r,(min (s,((c * (sin ((a * x) + b))) + d)))) ) implies f is Lipschitzian )
assume A1:
for x being Real holds f . x = max (r,(min (s,((c * (sin ((a * x) + b))) + d))))
; f is Lipschitzian
ex r being Real st
( 0 < r & ( for x1, x2 being Real st x1 in dom f & x2 in dom f holds
|.((f . x1) - (f . x2)).| <= r * |.(x1 - x2).| ) )
proof
per cases
( c = 0 or c <> 0 )
;
suppose A3:
c <> 0
;
ex r being Real st
( 0 < r & ( for x1, x2 being Real st x1 in dom f & x2 in dom f holds
|.((f . x1) - (f . x2)).| <= r * |.(x1 - x2).| ) )per cases
( a = 0 or a <> 0 )
;
suppose A2:
a <> 0
;
ex r being Real st
( 0 < r & ( for x1, x2 being Real st x1 in dom f & x2 in dom f holds
|.((f . x1) - (f . x2)).| <= r * |.(x1 - x2).| ) )take
|.a.| * |.c.|
;
( 0 < |.a.| * |.c.| & ( for x1, x2 being Real st x1 in dom f & x2 in dom f holds
|.((f . x1) - (f . x2)).| <= (|.a.| * |.c.|) * |.(x1 - x2).| ) )A5:
(
|.c.| > 0 &
|.a.| > 0 )
by A2, A3, COMPLEX1:47;
for
x1,
x2 being
Real st
x1 in dom f &
x2 in dom f holds
|.((f . x1) - (f . x2)).| <= (|.a.| * |.c.|) * |.(x1 - x2).|
proof
let x1,
x2 be
Real;
( x1 in dom f & x2 in dom f implies |.((f . x1) - (f . x2)).| <= (|.a.| * |.c.|) * |.(x1 - x2).| )
assume
(
x1 in dom f &
x2 in dom f )
;
|.((f . x1) - (f . x2)).| <= (|.a.| * |.c.|) * |.(x1 - x2).|
A9:
|.((f . x1) - (f . x2)).| =
|.((max (r,(min (s,((c * (sin ((a * x1) + b))) + d))))) - (f . x2)).|
by A1
.=
|.((max (r,(min (s,((c * (sin ((a * x1) + b))) + d))))) - (max (r,(min (s,((c * (sin ((a * x2) + b))) + d)))))).|
by A1
;
A7:
|.((max (r,(min (s,((c * (sin ((a * x1) + b))) + d))))) - (max (r,(min (s,((c * (sin ((a * x2) + b))) + d)))))).| <= |.(((c * (sin ((a * x1) + b))) + d) - ((c * (sin ((a * x2) + b))) + d)).|
by LeMM01;
A8:
|.c.| * |.(((a * x1) + b) - ((a * x2) + b)).| =
|.c.| * |.(a * (x1 - x2)).|
.=
|.c.| * (|.a.| * |.(x1 - x2).|)
by COMPLEX1:65
;
A6:
(
|.(c * ((sin ((a * x1) + b)) - (sin ((a * x2) + b)))).| = |.c.| * |.((sin ((a * x1) + b)) - (sin ((a * x2) + b))).| &
|.(((c * (sin ((a * x1) + b))) + d) - ((c * (sin ((a * x2) + b))) + d)).| = |.(c * ((sin ((a * x1) + b)) - (sin ((a * x2) + b)))).| )
by COMPLEX1:65;
|.(((c * (sin ((a * x1) + b))) + d) - ((c * (sin ((a * x2) + b))) + d)).| <= |.c.| * |.(((a * x1) + b) - ((a * x2) + b)).|
by XREAL_1:64, A5, A6, LmSin2;
hence
|.((f . x1) - (f . x2)).| <= (|.a.| * |.c.|) * |.(x1 - x2).|
by A9, A8, A7, XXREAL_0:2;
verum
end; hence
(
0 < |.a.| * |.c.| & ( for
x1,
x2 being
Real st
x1 in dom f &
x2 in dom f holds
|.((f . x1) - (f . x2)).| <= (|.a.| * |.c.|) * |.(x1 - x2).| ) )
by A5;
verum end; end; end; end;
end;
hence
f is Lipschitzian
; verum