How do I solve a first order differential equation of the following form If I had a differential equation $x'(t) + \frac{x(t)}{t} = e^{t^2}$
And I have a question saying solve the following first ODE for $x(t)$ how would I go about doing this?

With this kind of problems, the standard approach is to start with finding a solution to the homogenous differential equation, and then add what's called a 'particular solution' for the inhomogenous part. If you're not familiar with this solving method, you should learn more about it very soon, it's quite common :)
For the homogenous equation:
$x'(t) = -\frac{x(t)}{t}$
I used the so called 'separation of the variables' method:
$\frac{dx}{x(t)} = -\frac{dt}{t}$
And came to the homogenous solution:
$x(t) = \frac{c}{t}$
for some constant $c \in \mathbb{R}$.
Then, to find a particular solution (you only need one of them), I used the method of the variation of constants:
$x(t) = \frac{1}{t}\left(c + \int_{0}^{t}x\cdot e^{x^2}dx\right)$
And finally found the following general solution to your ODE problem:
$x(t) = \frac{1}{2}\cdot\frac{e^{t^2}}{t} + \frac{c}{t}$
So, I hope this will help you to understand the steps to follow! And I wrote my results so that you can check on your way :)
