# Solve the Differential Equation dy/dx=e^(x-y)

In this tutorial we shall evaluate the simple differential equation of the form $\frac{{dy}}{{dx}} = {e^{\left( {x - y} \right)}}$ using the method of separating the variables.

The differential equation of the form is given as

Separating the variables, the given differential equation can be written as

In the separating the variables technique we must keep the terms $dy$ and $dx$ in the numerators with their respective functions.

Now integrating both sides of the equation (i), we have

Using the formulas of integration $\int {{e^x}dx = {e^x}}$, we get

This is the required solution of the given differential equation.