If I am reading this correctly, the differential equation is \(\displaystyle \frac{dA}{dt}= k_2(P- A)\) with initial condition \(\displaystyle A(0)= A_0\) (here, "A" is a function of t, and \(\displaystyle A_0\) is a number, the value of A(t) when t= 0). We can rewrite the equation as \(\displaystyle \frac{dA}{P- A}= k_2 dt\). Now integrate both sides.
To integrate \(\displaystyle \int\frac{dA}{P- A}\), let x= P- A. Then dx= -dA, dA= -dx so the integral becomes \(\displaystyle \int \frac{-dx}{x}= -ln(x)+ C= -ln(P- A)+ C\) where C is an undetermined constant.
The integral of \(\displaystyle \int k_2 dt\) is just \(\displaystyle k_2t+ C'\) where C' is also a constant, not necessarily the same as C.
So we have \(\displaystyle -ln(P- A)+ C= k_2t+ C'\). We can combine the two constants and call their difference, since it is yet another undetermined constant, C'': \(\displaystyle -ln(P- A)= k_2t+ C''\).
In order that \(\displaystyle A= A_0\) when t= 0 we must have \(\displaystyle -ln(P- A_0)= C''\) so we can write the solution as \(\displaystyle -ln(P- A)= k_2t- ln(P- A_0)\)
Multiply by -1 to get \(\displaystyle ln(P- A)= ln(P- A_0)- k_2t\).
Subtract \(\displaystyle ln(P- A_0)\) from both sides:
\(\displaystyle ln(P- A)- ln(P- A_0)= ln\left(\frac{P- A}{P- A_0}\right)= -k_2t\).
FINALLY, take the exponential of both sides:
\(\displaystyle \frac{P- A}{P- A_0}= e^{-k_2t}\).
You can, if you want, solve for A:
\(\displaystyle P- A= (P- A_0)e^{-k_2t}\)
\(\displaystyle -A= (P- A_0)e^{-k_2t}- P\)
\(\displaystyle A= P- (P- A_0)e^{-k_2t}\).