Solve for a
a=-\frac{x}{x+2}
x\neq -2
Solve for x
x=-\frac{2a}{a+1}
a\neq -1
Graph
Share
Copied to clipboard
\left(a+1\right)x+2\left(3a+1\right)+2=4\left(a+1\right)
Variable a cannot be equal to -1 since division by zero is not defined. Multiply both sides of the equation by a+1.
ax+x+2\left(3a+1\right)+2=4\left(a+1\right)
Use the distributive property to multiply a+1 by x.
ax+x+6a+2+2=4\left(a+1\right)
Use the distributive property to multiply 2 by 3a+1.
ax+x+6a+4=4\left(a+1\right)
Add 2 and 2 to get 4.
ax+x+6a+4=4a+4
Use the distributive property to multiply 4 by a+1.
ax+x+6a+4-4a=4
Subtract 4a from both sides.
ax+x+2a+4=4
Combine 6a and -4a to get 2a.
ax+2a+4=4-x
Subtract x from both sides.
ax+2a=4-x-4
Subtract 4 from both sides.
ax+2a=-x
Subtract 4 from 4 to get 0.
\left(x+2\right)a=-x
Combine all terms containing a.
\frac{\left(x+2\right)a}{x+2}=-\frac{x}{x+2}
Divide both sides by x+2.
a=-\frac{x}{x+2}
Dividing by x+2 undoes the multiplication by x+2.
a=-\frac{x}{x+2}\text{, }a\neq -1
Variable a cannot be equal to -1.
\left(a+1\right)x+2\left(3a+1\right)+2=4\left(a+1\right)
Multiply both sides of the equation by a+1.
ax+x+2\left(3a+1\right)+2=4\left(a+1\right)
Use the distributive property to multiply a+1 by x.
ax+x+6a+2+2=4\left(a+1\right)
Use the distributive property to multiply 2 by 3a+1.
ax+x+6a+4=4\left(a+1\right)
Add 2 and 2 to get 4.
ax+x+6a+4=4a+4
Use the distributive property to multiply 4 by a+1.
ax+x+4=4a+4-6a
Subtract 6a from both sides.
ax+x+4=-2a+4
Combine 4a and -6a to get -2a.
ax+x=-2a+4-4
Subtract 4 from both sides.
ax+x=-2a
Subtract 4 from 4 to get 0.
\left(a+1\right)x=-2a
Combine all terms containing x.
\frac{\left(a+1\right)x}{a+1}=-\frac{2a}{a+1}
Divide both sides by a+1.
x=-\frac{2a}{a+1}
Dividing by a+1 undoes the multiplication by a+1.
Examples
Quadratic equation
{ x } ^ { 2 } - 4 x - 5 = 0
Trigonometry
4 \sin \theta \cos \theta = 2 \sin \theta
Linear equation
y = 3x + 4
Arithmetic
699 * 533
Matrix
\left[ \begin{array} { l l } { 2 } & { 3 } \\ { 5 } & { 4 } \end{array} \right] \left[ \begin{array} { l l l } { 2 } & { 0 } & { 3 } \\ { -1 } & { 1 } & { 5 } \end{array} \right]
Simultaneous equation
\left. \begin{cases} { 8x+2y = 46 } \\ { 7x+3y = 47 } \end{cases} \right.
Differentiation
\frac { d } { d x } \frac { ( 3 x ^ { 2 } - 2 ) } { ( x - 5 ) }
Integration
\int _ { 0 } ^ { 1 } x e ^ { - x ^ { 2 } } d x
Limits
\lim _{x \rightarrow-3} \frac{x^{2}-9}{x^{2}+2 x-3}