Can this equation be numerically solved using online resources or Matlab code?

  • Thread starter ColdFusion85
  • Start date
In summary, the student is trying to solve an equation involving a rational polynomial and is having difficulty. They are looking for help from someone more knowledgeable about these types of equations.
  • #1
ColdFusion85
142
0
I need to use a program to numerically solve the following equation:

[tex]exp(-2.222)=\frac{(\frac{2x}{2+2x})^2(\frac{x}{2+2x})}{(\frac{2-x}{2+2x})^2}[/tex]

I tried using Matlab to solve it but I kept on getting an error message. I'm not a programmer or familiar with these numerical solvers at all. Is there some place online I can solve this equation, or can someone post the Matlab code to solve it? The code is not part of the homework, but I arrived at the above equation and need to solve it in order to finalize my answer, so if anyone could help me solve it that would be great. Thanks.
 
Physics news on Phys.org
  • #2
Well, you can simplify the right-hand side quite a bit. Ultimately you can turn it into a cubic equation for x.
 
  • #3
First, simplify the expression. Then reformulate it in the form [itex]f(x)=0[/itex].

You now have something amenable to the zero finding functions.

[itex]x=2[/itex] and [itex]x=-1[/itex] are obviously problematic. You want to find a pair of [itex]x[/itex] values [itex]x_1[/itex] and [itex]x_2[/itex] such that neither of the poles is between [itex]x_1[/itex] and [itex]x_2[/itex] and such that [itex]f(x_1)[/itex] and [itex]f(x_2)[/itex] have opposite signs. There is a zero between these points.
 
Last edited:
  • #4
Avodyne said:
Well, you can simplify the right-hand side quite a bit. Ultimately you can turn it into a cubic equation for x.

Not quite that much. You get a rational polynomial, a simple cubic divided by a quadratic.

EDIT: I worked to much today.

Ultimately, you're right. Simplifying the RHS leads to [itex]p(x)/q(x)-c=0[/itex] where [itex]p(x)[/itex]is cubic and [itex]q(x)[/itex] is quadratic. Multiplying by [itex]q(x)[/itex] yields [itex]p(x)-cq(x)=0[/itex], a cubic.
 
Last edited:
  • #5
For the RHS I expanded everything out and got this:

[tex]\frac{4x^3(4x^2+8x+4)}{(8x^3+24x^2+24x+8)(x^2-4x+4)}[/tex]

Is this correct?
 
  • #6
Don't expand! Get rid of the common factor instead. Look at the numerator and denominator.
 
  • #7
Oh, ok so one gets:

[tex]\frac{4x^3}{(2-x)^2(2+2x)}[/tex]?
 
  • #8
Yes. You can also get rid of a factor of two. And oops, I said cubic/quadratic. What you have is a ratio of two cubics, which is correct. Now multiply through by the denominator to get a cubic equation (valid so long as x is not 2 or -1).
 

FAQ: Can this equation be numerically solved using online resources or Matlab code?

What is an equation?

An equation is a mathematical statement that shows the relationship between two or more quantities. It contains symbols, numbers, and mathematical operations and has an equal sign (=) to show that the two sides are equal.

Why do equations need to be solved?

Equations need to be solved to find the value of the unknown variable and to prove the relationship between the quantities. Solving equations is an essential part of mathematics and is used in various fields such as physics, chemistry, and engineering.

How do you solve an equation?

To solve an equation, you need to isolate the variable on one side of the equal sign. This can be done by using inverse operations, such as addition, subtraction, multiplication, and division, on both sides of the equation until the variable is alone on one side and the solution is on the other side.

What are the different types of equations?

The three main types of equations are linear, quadratic, and exponential. Linear equations have variables raised to the first power, quadratic equations have variables raised to the second power, and exponential equations have variables raised to a power other than one or two. Other types of equations include polynomial, rational, and trigonometric equations.

What are some strategies for solving equations?

Some strategies for solving equations include combining like terms, using the distributive property, clearing fractions, and factoring. It is also helpful to check your solution by plugging it back into the original equation to ensure that it satisfies the equation.

Back
Top