I have a doubt in applying KVL when an inductor comes to play in a circuit When we apply KVL in a circuit containing R and L elements connected to a battery, we write the voltage (or EMF?) across the inductor as EMF= L di/dt. But, according to Faradays law and Lenz law, we know that the EMF across the inductor is actually induced EMF that opposes the change in flux passing through the winding. EMF=-L di/dt. If so, why are we neglecting the negative sign while writing KVL equations. Also, the sign convention depends on the rate of change of current passing through the coil. So, we are supposed to form KVL equation according to the given circuit right? If I can consider an inductor as a battery, I am facing dilemma when I cross check it with Lenz law. I would like to know the where I am stuck.
 A: 
But, according to Faradays law and Lenz law, we know that the EMF
across the inductor is actually induced EMF that opposes the change in
flux passing through the winding. EMF=-L di/dt. If so, why are we
neglecting the negative sign while writing KVL equations.

The negative sign in Faraday's law comes from the fact that the voltage across the inductor is an induced emf that acts to oppose any change in the magnetic flux and current, as opposed to a drop in potential due to current flow as in the case of a resistor. As will be illustrated below, there is no conflict with KVL. First, the basic equations:
From Faraday's law
$$v_{L}(t)=L\frac{di_{L}(t)}{dt}$$
Or
$$i_{L}(t)=i_{L}(0)+\frac{1}{L}\int_{0}^{t}v_{L}(t)dt$$
The first equation says any attempt to change current in zero time will result in an infinite induced emf to oppose that change. Equivalently, the second equation says the current in an inductor can't change in zero time, ($dt=0$). Therefore, for example, the inductor current immediately following a switching event equals the inductor current immediately prior to the switching event.
Figures 1-3 below show a series RL circuit, battery and a switch. They demonstrate the case where an emf is induced in an inductor that opposes an increase in current through the inductor while satisfying KVL
Fig 1 begins with the switch open and no current flowing in the circuit. All of the battery voltage appears across the switch, satisfying KVL.
Fig 2 shows at time $t=0$ the switch is closed. At the instant following closing of the switch ($t=0+$) a voltage equal in magnitude to the battery voltage is induced across the inductor, but in opposition to the battery voltage so that no current flows at the instant the switch closes. Per KVL the sum of the voltages equals zero ($+V_{B}-V_{L}=0$) with no current flow.
Note that if there was a resistor in place of the inductor in Fig 2 the polarity of the voltage across the resistor would be the same as the inductor, but current would flow through the resistor whereas no current initially flows in the inductor. That is because the voltage across the inductor is actually an active emf source, just like a battery, opposing current flow, as opposed to a voltage drop across a resistor due to current flow and a drop in potential
As time progresses the voltage across the inductor decreases, and the current and voltage drop across the resistor increases.
Fig 3 shows the circuit with the switch closed for a long time. The current in the circuit reaches a maximum and is no longer varying in time. Per the first equation above, $L\frac{di_{L}(t)}{dt}=0$, $v_{L}(t)=0$, and $L_{L}(t)=\frac{V_{B}}{R}$.

And also, how will the equation be in the case when the current
through the inductor is decreased suddenly ? I also have a doubt
regarding how the current is made to decrease suddenly. Kindly
clarify.

Any attempt to suddenly reduce the current will result in an Emf the polarity of which will be to oppose a sudden decrease in current. To illustrate, see Figures 4 and 5 below.
Fig 4 shows the conditions when the switch is closed for a long time. The voltage across the ideal inductor is zero and the current in the inductor is $V_{B}/R_1$. There is no current in $R_2$ since the voltage across $R_2$ is zero.
In Fig 5 the switch is suddenly opened, so that the battery can no longer supply current to the inductor. Since the current in the inductor cannot change instantaneously, per the second equation, the current in the inductor has to be the same the instant after opening the switch as it was the instant before opening the switch. In order to for that to happen and emf is induced in the inductor with the polarity shown so that it can drive the current through $R_2$. Eventually the current and voltage fall to zero when all the energy stored in the inductor (1/2 LI$^2$) is dissipated in $R_2$.

From this explanation, I feel that in figure 2, when the switch is
closed at t=0, it is equivalent to connecting a battery of same EMF
but the positive is connected to positive and negative to negative so
there would not be any potential difference between them and zero
current at that instant.

That would be correct, but only for the instant after closing the switch.

Whereas when the switch is opened after a long time, as in figure 5,
the induced EMF across the inductor has polarity similar to a battery
in a circuit where current flows from negative to positive terminal
inside the battery. Correct me if I am wrong.

Essentially yes, but because conventional current is defined as the flow of positive charge (an unfortunate historical decision), the current flow is from the positive terminal of the battery to the negative terminal through the resistor $R_{2}$.

In the figure 5, isn't =L di/dt ? And the KVL equation for L-2
loop is -+I2=0 when the current is taken in clock wise direction

In the clockwise direction, yes. But as I said before, conventional current is the flow of positive (not negative) charge. So the direction of the current would counterclockwise in Fig 5 as shown. But it really doesn't matter. KVL then simply becomes $+V_{L}-IR_{2}=0$. Either way, $V_{L}=IR_2$ and the solution to the differential equation for the transient condition is the same.
Hope this helps.


A: 
we write the voltage (or EMF?) across the inductor as EMF= L di/dt. But, according to Faradays law and Lenz law, we know that the EMF across the inductor is actually induced EMF that opposes the change in flux passing through the winding. EMF=-L di/dt. If so, why are we neglecting the negative sign while writing KVL equations.

This is often poorly understood aspect of circuit theory. In that context, induced EMF in inductor is not the same concept as voltage, at least not in the standard sense "drop of potential" which we can measure with voltmeter or oscilloscope and which is used in the modern formulation of KVL.
Of course, in perfect inductor EMF and voltage have the same magnitude (but opposite effect on current) but in real inductors with internal ohmic resistance, they do not even have the same magnitude.
Faraday's law gives us formula for induced EMF in any inductor (ideal or real):
$$
\mathscr{E}_i = -L\frac{dI}{dt}
$$
where the minus sign is there because induced EMF is always opposed to change in current. So if $I$ increases, induced EMF is negative (with effect to slow down the increase).
Now, in Kirchhoff's voltage law, we need to express all voltages, i.e. potential drops in the designated positive direction of circulation, for all elements in a circuit.
Finding and expressing voltage on inductor is not trivial. For ideal inductor, we are lucky because due to lack of ohmic resistance, net force acting on current in the coils has to be always effectively zero (no resistance to push against) so we know potential drop has to exactly cancel the induced EMF. So we have potential drop in the positive direction
$$
p.d. = LdI/dt~~~\text{(without the minus sign)}
$$
For real inductors with substantial ohmic resistance, this relation is invalid, because then in the coils of the inductor, current experiences also force of ohmic resistance. The generalized Ohm law implies that current in a piece of wire is proportional to total electromotive force in that piece of wire (including all forces - induced, conservative, non-electromagnetic etc.). So in a winding of an inductor, we have two electromotive forces: 1) induced electromotive force as described above 2) potential drop, due to electrostatic field of charges nearby (mostly on surfaces of the conductors in the circuit). So we can express this relation as
$$
\mathscr{E}_{total} = RI
$$
$$
\mathscr{E}_i + p.d. = RI
$$
so we can express potential drop
$$
p.d. = RI - \mathscr{E}_i = RI + L\frac{dI}{dt}.
$$
So you can see here that potential drop across real inductor has different magnitude than induced EMF (except when current is zero).
