Note:Down ward problem is just an example to express my question(I know the both solution of problem are insufficient but the first solution is in my 10+2 book and second one is mine which is incomplete. I knew that. I am just illustrating simple way of book and complex proof that we all know.)
Note:I am from India.
"Why 10+2 book gives such less detailed proofs?"
In my book of formula given without condition which have wrote down
$$\tan(A+B)=\frac{(\tan A+\tan B)}{1-\tan A\tan B}$$
OK one will solve questions using this frequently..and answer is correct also....
Now let $A=(2k+1)\pi/2$ ,similarly $B=(2l+1)\pi/2$. $A$ may or may not be equal to $B$.
which implies $\tan(A+B)=0$. However, the formula gives infinity by infinity.
Now while solving questions we just ignore about this fact why?
For example..
Prove $$\tan(45^\circ+A)\tan(135^\circ+A)=-1$$
Solution
$${1+\tan A\over1-\tan A}\cdot{\tan A-1\over\tan A+1}=-1$$
According to solution
$A$ is not equal to an odd multiple of $90^\circ$.
But by putting that in question
Case 1:$A=(4n+1)90^\circ$
$$LHS=(-1)(1)=-1$$
Case 2 : $A=(4n-1)90^\circ$ $$LHS=(-1)(1)=-1$$
So it is necessary to add those cases in the solution but in simple method we can't do that just left it without those cases.Also in book it is not written. Nor do we write those cases in exams.Nor do we think about.
Note: this is question only for example we are generally doing this thing in almost all examples my question refers to the all such solution
I am proving this thing at 10 + 2 level. And in our books such detail proof are not given.
We do not ignore it and the solution you give is flawed because it includes the assumptions that $\tan A$ exists and that $\tan A \ne \pm 1$. Also the statement $\tan (A+45) \tan (A+135)=-1$ is not true for all $A$ because $\tan (A+45)$ and $\tan (A+135)$ exist iff $(A+45)/90$ is not an odd integer.