let f be PartFunc of REAL,REAL; for Z being Subset of REAL
for x being Real st Z is open & x in Z & Z c= dom f holds
( f | Z is_differentiable_in x iff f is_differentiable_in x )
let Z be Subset of REAL; for x being Real st Z is open & x in Z & Z c= dom f holds
( f | Z is_differentiable_in x iff f is_differentiable_in x )
let x0 be Real; ( Z is open & x0 in Z & Z c= dom f implies ( f | Z is_differentiable_in x0 iff f is_differentiable_in x0 ) )
assume A1:
( Z is open & x0 in Z & Z c= dom f )
; ( f | Z is_differentiable_in x0 iff f is_differentiable_in x0 )
assume A7:
f is_differentiable_in x0
; f | Z is_differentiable_in x0
consider N1 being Neighbourhood of x0 such that
A8:
N1 c= Z
by A1, RCOMP_1:18;
consider N being Neighbourhood of x0 such that
A9:
N c= dom f
and
A10:
ex L being LinearFunc ex R being RestFunc st
for x being Real st x in N holds
(f . x) - (f . x0) = (L . (x - x0)) + (R . (x - x0))
by A7;
consider N2 being Neighbourhood of x0 such that
A11:
N2 c= N1
and
A12:
N2 c= N
by RCOMP_1:17;
A13:
N2 c= Z
by A8, A11;
take
N2
; FDIFF_1:def 4 ( N2 c= dom (f | Z) & ex b1 being Element of K16(K17(REAL,REAL)) ex b2 being Element of K16(K17(REAL,REAL)) st
for b3 being object holds
( not b3 in N2 or ((f | Z) . b3) - ((f | Z) . x0) = (b1 . (b3 - x0)) + (b2 . (b3 - x0)) ) )
N2 c= dom f
by A9, A12;
then
N2 c= (dom f) /\ Z
by A13, XBOOLE_1:19;
hence
N2 c= dom (f | Z)
by RELAT_1:61; ex b1 being Element of K16(K17(REAL,REAL)) ex b2 being Element of K16(K17(REAL,REAL)) st
for b3 being object holds
( not b3 in N2 or ((f | Z) . b3) - ((f | Z) . x0) = (b1 . (b3 - x0)) + (b2 . (b3 - x0)) )
consider L being LinearFunc, R being RestFunc such that
A15:
for x being Real st x in N holds
(f . x) - (f . x0) = (L . (x - x0)) + (R . (x - x0))
by A10;
take
L
; ex b1 being Element of K16(K17(REAL,REAL)) st
for b2 being object holds
( not b2 in N2 or ((f | Z) . b2) - ((f | Z) . x0) = (L . (b2 - x0)) + (b1 . (b2 - x0)) )
take
R
; for b1 being object holds
( not b1 in N2 or ((f | Z) . b1) - ((f | Z) . x0) = (L . (b1 - x0)) + (R . (b1 - x0)) )
let x be Real; ( not x in N2 or ((f | Z) . x) - ((f | Z) . x0) = (L . (x - x0)) + (R . (x - x0)) )
assume A16:
x in N2
; ((f | Z) . x) - ((f | Z) . x0) = (L . (x - x0)) + (R . (x - x0))
then
(f . x) - (f . x0) = (L . (x - x0)) + (R . (x - x0))
by A12, A15;
then
((f | Z) . x) - (f . x0) = (L . (x - x0)) + (R . (x - x0))
by A8, A11, A16, FUNCT_1:49;
hence
((f | Z) . x) - ((f | Z) . x0) = (L . (x - x0)) + (R . (x - x0))
by A1, FUNCT_1:49; verum