It looks like the integral might be

or perhaps

Take note of the fact that both integrands are defined only over the interval -3 < x < 3.
For either integral, we substitute x = 3 sin(θ) and dx = 3 cos(θ) dθ.
Note that we want this substitution to be reversible, so we must restrict -π/2 ≤ θ ≤ π/2, an interval over which sine has an inverse. Then θ = arcsin(x/3).
The first case then reduces to

By definition of absolute value,

and these cases correspond to 0 ≤ θ < π/2 and π/2 < θ ≤ π, respectively. But we are assuming -π/2 ≤ θ ≤ π/2, so the negative case doesn't matter to us.
You can compute the remaining antiderivative by exploiting the half-angle identity for cosine,

Then

and so

We can simplify this using the double angle identity for (co)sine,
sin(2θ) = 2 sin(θ) cos(θ)
cos(2θ) = 1 - 2 sin²(θ)
as well as the relations,
sin(arcsin(x/3)) = x/3
cos(arcsin(x/3)) = √(9 - x²)/3
which gives us

Putting this in terms of x, we get



If you were asking about the other integral, the first few steps are similar and you end up with the far more trivial integral and antiderivative

Putting it back in terms of x, we get

Recall that tan(θ) = sin(θ)/cos(θ), so

