We start with the differential equation
dy=eαx+ydx.
Dividing both sides by dx gives
dxdy=eαx+y.
Now separate the variables. We write the right‐hand side as a product:
dxdy=eαxey.
Moving all terms in y to the left and all terms in x to the right gives
e−ydy=eαxdx.
Next we integrate both sides. For the left side we recall the basic integral
∫e−ydy=−e−y+C1,
and for the right side we recall
∫eαxdx=α1eαx+C2,
where C1 and C2 are constants of integration. Absorbing the two constants into one overall constant C, we have
−e−y=α1eαx+C.
Multiplying through by −1 simplifies the expression:
e−y=−α1eαx+C′.
Renaming the constant C′ as C for convenience, we obtain the general implicit solution
e−y=C−α1eαx.−(1)
We now use the two given initial conditions to determine the constant C and then find α.
First condition y(0)=ln(21).
At x=0 we have y=ln(21)=−ln2.
Thus
e−y=e−(−ln2)=eln2=2,
and
eαx=eα⋅0=1.
Substituting these values into (1) gives
2=C−α1⋅1,
so that
C=2+α1.−(2)
Second condition y(ln2)=ln2.
At x=ln2 we have y=ln2, hence
e−y=e−ln2=21,
and
eαx=eαln2=2α.
Substituting into (1) and using the value of C from (2) we get
21=(2+α1)−α12α.
Simplifying step by step:
21=2+α1−α2α,
21−2=α1−2α,
−23=α1−2α.
Multiplying both sides by α yields
−23α=1−2α,
which can be rearranged as
2α−1=23α.−(3)
Because α is a natural number, we test successive integers in equation (3).
For α=1: the left side is 21−1=1, while the right side is 23⋅1=1.5, which is not equal.
For α=2: the left side is 22−1=3, while the right side is 23⋅2=3, which matches exactly.
Hence the natural number α satisfying all the given conditions is α=2.
So, the answer is 2.